Skip to content
Snippets Groups Projects
  1. May 21, 2018
  2. May 19, 2018
  3. May 18, 2018
    • Tyler Gunn's avatar
      Require READ_CALL_LOG permission to see phone numbers in phone state. · 84dad956
      Tyler Gunn authored
      Incoming and outgoing call phone numbers are visible in the phone state
      broadcast and via the PhoneStateListener.  To enhance user privacy, change
      to require the READ_CALL_LOG permission in order to receive the call
      phone numbers.
      
      This means to see phone numbers:
      1. android.intent.action.PHONE_STATE - requires READ_PHONE_STATE and
      READ_CALL_LOG permission.
      2. PhoneStateListener#onCallStateChanged - now required READ_CALL_LOG
      permission.
      
      To support this new behavior, added sendBroadcastAsUserMultiplePermissions
      method to context to allow sending the broadcast to all users while
      requiring the two permissions.
      
      Bug: 78650469
      Test: Created PHONE_STATE broadcast receiver in test app and verified that
      when no permissions are granted, the phone number is empty for incoming
      and outgoing calls.
      Test: Granted Phone state permission to test app and verified that phone
      number is not populated.
      Test: Granted test app read call log permission and verified that phone
      number is populated.
      Test: Created PhoneStateListener in test app and verified that when no
      permissions are granted, phone number is empty for incoming and outgoing.
      calls.
      Test: Granted read call log permission to test app and verified that both
      the incoming and outgoing numbers are populated.
      
      Change-Id: I857ea00cc58a0abbb77960643f361dd6dd9c8b56
      84dad956
    • Xiangyu/Malcolm Chen's avatar
    • Xiangyu/Malcolm Chen's avatar
      147dc32b
    • Adam Lesinski's avatar
      Change ownership of AAPT2 and libandroidfw · 89794158
      Adam Lesinski authored
      toddke@ is now the new owner of these projects.
      
      Exempt-From-Owner-Approval: setting new owners
      Test: none
      Change-Id: Ie92b020e0ba063f48ce8a76ebaef768fe0d554f1
      Merged-In: Ie92b020e0ba063f48ce8a76ebaef768fe0d554f1
      (cherry picked from commit a95e8418)
      89794158
    • Remi NGUYEN VAN's avatar
      Merge changes Ieb0a5d24,I44df6668 · 646dfc77
      Remi NGUYEN VAN authored
      * changes:
        Fix SntpClientTest failures with no active network
        Allow specifying a network for SNTP time sync
      646dfc77
    • nharold's avatar
      71c11daa
  4. May 17, 2018
    • Malcolm Chen's avatar
      Add carrier config for partial sms raw message expiration. · b668535a
      Malcolm Chen authored
      Everytime at boot-up, we check Sms raw table, and delete the rows
      with any partial message that is too old. By default the expiration
      age is 30 days, but we want to make it configurable.
      
      Bug: 77910620
      Test: sanity-test
      Change-Id: Ibd2374324be5513cbd09c04889e7b96051c26fb4
      Merged-In: Ibd2374324be5513cbd09c04889e7b96051c26fb4
      b668535a
    • Malcolm Chen's avatar
      Fix UiccSlotInfo equals method. · 9fd71f8e
      Malcolm Chen authored
      In UiccSlotInfo#equals method, it's comparing Strings incorrectly.
      
      Bug: 78033760
      Test: GTS test
      Change-Id: I4fed0a70ee0ef06bcf7a1af544e6aebced31d9c2
      Merged-In: I4fed0a70ee0ef06bcf7a1af544e6aebced31d9c2
      9fd71f8e
    • Nathan Harold's avatar
      Add toString() method to PhysicalChannelConfig · c50d40aa
      Nathan Harold authored
      We need to be able to print the PhysicalChannelConfig
      for debugging/dumping, so adding a toString() method
      to print in a format that we can easily digest and
      is consistent with other Telephony log formatting.
      
      Bug: 78791811
      Test: manual / TelephonyDebugMenu
      Merged-In: Ieb12f78a821369072ca9f03d28b28759836f84b4
      Change-Id: Ieb12f78a821369072ca9f03d28b28759836f84b4
      (cherry picked from commit 2636dd43)
      c50d40aa
    • Nicolas Geoffray's avatar
    • Remi NGUYEN VAN's avatar
      Fix SntpClientTest failures with no active network · 6657d426
      Remi NGUYEN VAN authored
      The last change is using getActiveNetwork to run the queries, which
      results in an NPE if there is no network on the device. Using network 0
      causes no socket tagging and allows queries to the local test SNTP
      server to go through as previously.
      
      Also migrating to JUnit4 and moving mServer and mClient initializers to
      setUp().
      
      Test: SntpClientTest now passes
      Change-Id: Ieb0a5d247129bcad89c1add0e9c1c504f516e2a9
      6657d426
    • Treehugger Robot's avatar
  5. May 16, 2018
    • Eric Schwarzenbach's avatar
      Add constant for PhysicalChannelConfig UNSOL · 45ed35e5
      Eric Schwarzenbach authored
      Bug: 78791811
      Test: compilation
      
      Change-Id: I48404342daaaf74d81386aa64cac99ae1a5dfa8b
      (cherry picked from commit ef44f95c)
      45ed35e5
    • Treehugger Robot's avatar
    • Colin Cross's avatar
      Disable AAPT2 for modules that use missing features · 940b98ee
      Colin Cross authored
      Use LOCAL_USE_AAPT2 := false to disable AAPT2 for modules that
      use features that are not implemented in AAPT2.
      
      Fixes:
      frameworks/base/core/tests/coretests/apks/install_multi_package/AndroidManifest.xml:46: error: unexpected element <package> found in <manifest>.
      frameworks/base/core/tests/coretests/apks/install_multi_package/AndroidManifest.xml:82: error: unexpected element <package> found in <manifest>.
      frameworks/base/core/tests/coretests/apks/install_verifier_bad/AndroidManifest.xml:19: error: unexpected element <package-verifier> found in <manifest>.
      frameworks/base/core/tests/coretests/apks/install_verifier_good/AndroidManifest.xml:19: error: unexpected element <package-verifier> found in <manifest>.
      frameworks/base/packages/CtsShim/build/shim/AndroidManifest.xml:25: error: unexpected element <restrict-update> found in <manifest>.
      frameworks/base/tests/ActivityTests/AndroidManifest.xml:42: error: unexpected element <preferred> found in <manifest><application><activity>.
      out/target/common/obj/APPS/CtsShimPriv_intermediates/AndroidManifest.xml:25: error: unexpected element <restrict-update> found in <manifest>.
      frameworks/base/core/tests/coretests/AndroidManifest.xml:26: error: unexpected element <meta-data> found in <manifest><permission>.
      ...
      
      Bug: 79755007
      Test: m FORCE_AAPT2=true java
      Change-Id: I393b697c521ab2a4fbc00b29a43aed6b4729b9a8
      940b98ee
    • Nicolas Geoffray's avatar
      Add a new dalvik.vm.jitpthreadpriority option. · 24934a9c
      Nicolas Geoffray authored
      To dynamically play with JIT thread priorities.
      
      bug: 79570024
      Test: m
      Change-Id: I84c691fb57b37e699429b9f511b2e235259d718a
      24934a9c
    • Pete Gillin's avatar
      ca3450b5
    • Kurt Marcinkiewicz's avatar
      Allow specifying a network for SNTP time sync · 7a4ff644
      Kurt Marcinkiewicz authored
      Permits syncing over a specific network instead of the default for
      the process. This was causing an issue with Android Wear devices
      paired with iOS where the default network is bluetooth
      (see b/32663274).
      
      This CL is in support of ag/3776564
      
      Bug: 32663274
      
      Test: adb shell am instrument -e class android.net.SntpClientTest -w \
      com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
      (cherry-pick of pi-dev Ic9fc169cf75457810d4992121d85d7642e350b90)
      Merged-In: I339c77063c72a9d76a5c4cb17052e20fb6e045a6
      Merged-In: I8dfd1cad99c63efdc14c174c19f094a61cdfc44f
      
      Change-Id: I44df66688292b144ec7dfcdd9ae5d82489f82774
      7a4ff644
    • Nan Zhang's avatar
  6. May 15, 2018
    • Nan Zhang's avatar
      Update Android.bp for api-stubs in order to do api-check. · 39d2d18b
      Nan Zhang authored
      Bug: b/78034256
      Test: m clean && m checkapi
      
      Change-Id: Ifbda8825f95e26bb79aac9b1bb73c5e43f12d1fb
      Merged-In: Ifbda8825f95e26bb79aac9b1bb73c5e43f12d1fb
      39d2d18b
    • Treehugger Robot's avatar
      Merge "Fix errors caught by aapt2" · 6d78fe03
      Treehugger Robot authored
      6d78fe03
    • Treehugger Robot's avatar
      Merge "Convert to Soong" · acbd94d7
      Treehugger Robot authored
      acbd94d7
    • Xiangyu/Malcolm Chen's avatar
    • Jordan Liu's avatar
    • Colin Cross's avatar
      Fix errors caught by aapt2 · 489e9a74
      Colin Cross authored
      Fixes:
      frameworks/base/tests/LotsOfApps/AndroidManifest.xml:10: error: attribute 'android:name' in <activity> tag must be a valid Java class name.
      frameworks/base/tests/LotsOfApps/AndroidManifest.xml:17: error: attribute 'android:name' in <activity> tag must be a valid Java class name.
      frameworks/base/tests/LotsOfApps/AndroidManifest.xml:24: error: attribute 'android:name' in <activity> tag must be a valid Java class name.
      ...
      
      Bug: 79481102
      Test: m java FORCE_AAPT2=true
      Change-Id: Ib00f277d251497942ad53f1ba1f8f5e12b2f7ba9
      489e9a74
    • Jiyong Park's avatar
      Merge "Add api txt files for nfc-extras" · be7959bb
      Jiyong Park authored
      be7959bb
    • Bernie Innocenti's avatar
      apf: Add counters for dropped / passed packets · ab30db70
      Bernie Innocenti authored
      ApfFilter maintains separate counters for each reason why a packet was
      passed or dropped by the filter logic.
      
      There's also a total which should match the individual counters,
      *unless* the APF interpreter aborted execution early due to an illegal
      instruction or an out-of-bounds access.
      
      Test: both on APFv2 and APFv4-capable device:
      	runtest -x tests/net/java/android/net/ip/IpClientTest.java
      	runtest -x tests/net/java/android/net/apf/ApfTest.java
      	manual tests connected to an AP
      Bug: 73804303
      Change-Id: I54b17fcbb95dfaea5db975d282314ce73d79d6ec
      Merged-In: I54b17fcbb95dfaea5db975d282314ce73d79d6ec
      (cherry picked from commit 3cc40ea6)
      ab30db70
    • Bernie Innocenti's avatar
      Add support for reading a snapshot of the APF data · 40b43542
      Bernie Innocenti authored
      No functional change yet, since startReadPacketFilter() has no callers
      at this time.  In the future, this new hook will be used to take
      periodic snapshots of the APF memory (for instance, when the device
      wakes up).
      
      Design note: WifiStateMachine grabs the APF data synchronously
      from another thread, but then the data snapshot is delivered to IpClient
      via an asynchronous reply, following the same pattern used by other
      commands. This means that there's no (practical) way for IpClient to
      read the APF data just before replacing the APF program.
      
      Even with this limitation, it's still possible to reliably decode packet
      counters and compute deltas relative to the last snapshot, provided that
      the address range isn't cleared when installing a new APF filter.
      
      Bug: 73804303
      Test: Manual - called the new code and inspected 'dumpsys wifi' output.
      Change-Id: Ia0923d71cf3ee4128fb1c381557316300adac1a3
      Merged-In: Ia0923d71cf3ee4128fb1c381557316300adac1a3
      Merged-In: I3b940f5a3b795f85d244882eaa7eca56bd9e167d
      Merged-In: I283fd5fb71f8a679911e58c487a4ac12a5190049
      (cherry picked from commit bb2193bf)
      40b43542
    • nharold's avatar
      05a16e8a
Loading