Skip to content
Snippets Groups Projects
  1. May 08, 2018
    • David Brazdil's avatar
      Add presubmit hook for hidden API lists. · 2200a1b8
      David Brazdil authored
      Check that they're sorted as expected and contain no duplicates.
      The sort order now uses:
      $ LC_COLLATE=C sort -f
      
      So that non-alphanumeric characters are not ignored, giving a more
      intuitive sort order. the '-f' means ignore case.
      
      Also sort the existing lists accordingly.
      
      Test: repo upload
      Bug: 64382372
      Merged-In: I52b884da33a9a46455df6747a215683d9d3c3218
      Change-Id: Icc124fd8ceb3f001a9c11bbf40e0a111910c6b39
      (cherry picked from commit e5dc64d4)
      2200a1b8
    • Mathew Inwood's avatar
      Fix typo in comments. · 40f67c52
      Mathew Inwood authored
      Keep the nitpickers happy.
      
      Test: m
      Bug: 77517571
      Merged-In: I70374c05df3e366b5a0ce3bbb103dce28f48d4b8
      Change-Id: I70374c05df3e366b5a0ce3bbb103dce28f48d4b8
      (cherry picked from commit 5e986dcc)
      40f67c52
    • Mathew Inwood's avatar
      Treat hidden API exemptions as whitelist. · 5449fc72
      Mathew Inwood authored
      Update docs accordingly.
      
      Test: m
      Bug: 64382372
      Merged-In: Ief8daf3badeb046b0461a3ebcd289e242d559070
      Change-Id: Ief8daf3badeb046b0461a3ebcd289e242d559070
      (cherry picked from commit 33d5138e)
      5449fc72
    • Mathew Inwood's avatar
      Replace ALL_LISTS policy with JUST_WARN. · a4ba0e44
      Mathew Inwood authored
      It seems pretty unlikely that we'd ever want to disallow access to the
      light greylist in P, since doing do would break do many apps. We don't need
      this policy here as an opt-in for apps now, since the StrictMode work will
      achieve the same thing.
      
      Instead, make a "just warn" policy which allows access to all APIs, but
      leaves the detection and logging logic in place. This gives us the option
      of disabling enforcement, but still gathering logs to find out which apps
      use which APIs.
      
      Bug: 77517571
      
      Test: Boot device
      Test: Hardcode policy of HIDDEN_API_ENFORCEMENT_JUST_WARN and verify log
      Merged-In: I588f347716a79ac5887b74763c8afc16b3be699b
      Change-Id: I588f347716a79ac5887b74763c8afc16b3be699b
      (cherry picked from commit a6d02fb1)
      a4ba0e44
    • Remi NGUYEN VAN's avatar
      Merge "Fix testRegisterUsageCallback" · d0b9f983
      Remi NGUYEN VAN authored
      d0b9f983
    • Remi NGUYEN VAN's avatar
      Merge "Fix testUidPoliciesToString" · c8613f99
      Remi NGUYEN VAN authored
      c8613f99
  2. May 07, 2018
  3. May 05, 2018
  4. May 04, 2018
  5. May 03, 2018
  6. May 02, 2018
    • android-build-prod (mdb)'s avatar
    • Vitor Albuquerque's avatar
      AudioService: fix uid check in setBluetoothScoOn · c3bb48cc
      Vitor Albuquerque authored
      Calling UID is now checked in setBluetoothScoOn and only allow
      route to change if request comes from a system component.
      
      The check was not taking into account secondary users, hence
      causing failure to route audio to SCO when secondary users
      were active.
      
      This change makes sure we are checking the correct app id,
      without taking into account the user id.
      
      Bug: 74057977
      Test: SCO call using Guest User
      
      Change-Id: I3e26dedb6333a85b315073fe4830c4d1b8070742
      c3bb48cc
    • wangmingming1's avatar
      don't block adb while running uninstall · 0f8da1c8
      wangmingming1 authored
      
      Test: Manual
            1. setup a work profile
            2. set a uninstall restriction on foo app for the work profile
               by calling set DevicePolicyManager.setUninstallBlocked()
            3. observe adb uninstallation can return with 'DELETE_FAILED_OWNER_BLOCKED'
               message without blocking forever by using the following command line:
               `adb uninstall --user user-id-of-work-profile com.foo`
      Test: Manual
            1. install lots of apks via adb
            2. uninstall apks via adb
      
      Change-Id: I68706782ae547250433e3dd8ff285d4932473033
      Merged-In: If89978c5a79ef998bde55c254ced4b6a3ff6e645
      Signed-off-by: default avatarwangmingming1 <wangmingming1@xiaomi.com>
      0f8da1c8
    • Anton Hansson's avatar
    • David Brazdil's avatar
      c859c809
    • David Brazdil's avatar
      Build same hidden API lists as in pi-dev · 96c9cbc1
      David Brazdil authored
      P branch builds hidden API lists in a separate invocation of droiddoc
      which includes @SystemApi and @TestApi annotated class members in the
      public API. This patch creates the same build rule in the master branch,
      only with Soong instead of Makefile.
      
      Test: make out/soong/.intermediates/frameworks/base/hiddenapi-lists/android_common/private-dex.txt
      Merged-In: Ifa912f8751025b7de24a982a1a227a9c27d18267
      Change-Id: I80860c2b9f7213db65d0a9ca65bd645187aa0ce0
      96c9cbc1
    • David Brazdil's avatar
      0835de9e
    • Remi NGUYEN VAN's avatar
      Fix testUidPoliciesToString · e025d4de
      Remi NGUYEN VAN authored
      The test is likely failing since go/ag/1344349 because of a bad
      copy-paste between patchsets 6 and 7.
      
      Test: test now passes
      Change-Id: I87341c4f4db1e7b61c3899368b24ea484fe8bfd1
      e025d4de
    • Remi NGUYEN VAN's avatar
      Fix testRegisterUsageCallback · 14178014
      Remi NGUYEN VAN authored
      noteOp (introduced in go/ag/3897834) checks that the calling uid matches
      the calling package, which is not correct when using a fake calling
      package. Use the real package of the test so permissions are checked
      properly.
      
      The test currently only fails this way in pi-dev as noteOp is only used
      in pi-dev.
      Change-Id: I9ac3717af9335ba9efa0b8842a2df0d7b69ec9ab
      Test: Fixed test now passes in pi-dev
      Bug: b/78487385
      14178014
    • android-build-prod (mdb)'s avatar
      Merge changes from topic "ifaceStats" · 90c01b00
      android-build-prod (mdb) authored
      * changes:
        Remove the unused file parsing function
        Use eBPF map data for per iface stats
      90c01b00
  7. May 01, 2018
    • Chenbo Feng's avatar
      Remove the unused file parsing function · b815c978
      Chenbo Feng authored
      With the new xt_bpf support for iface stats. We no longer need to parse
      the per interface stats from /proc/net/dev. And since the old xt_qtaguid
      code path also not depend on it, we can completly remove that helper
      function since no caller is depending on it now.
      
      Bug: 72111305
      Test: runtest frameworks-net -c com.android.internal.net.NetworkStatsFactoryTest
      Change-Id: Icb7eaeef0eeb9fdffd32a90316c76ee05bafffbe
      b815c978
Loading