Skip to content
Snippets Groups Projects
  1. May 20, 2024
  2. Dec 06, 2023
  3. Dec 01, 2023
  4. Nov 21, 2023
  5. Nov 15, 2023
  6. Nov 10, 2023
    • Alex Buynytskyy's avatar
      Introduce a new APK attribute: updatableSystem, default true. · ab59af61
      Alex Buynytskyy authored
      Specified in the manifest.
      If a preloaded APK is marked updatableSystem=false, any request for an update is rejected.
      If an APK marked updatableSystem=false is being installed, regardless of the updatableSystem state of the version it's replacing, the install is rejected.
      Disregard this restriction adb running as root.
      
      !!This also marks Shell as such package!!!
      
      Bug: 266131956
      Test: atest PackageManagerTest
      Test: atest PackageManagerServiceUnitTest
      Change-Id: I86622e48a368bed260949b62c558c3e6ee0df931
      ab59af61
  7. Nov 08, 2023
    • Kangping Dong's avatar
      [Thread] add Thread network permissions · fa35b426
      Kangping Dong authored
      Defines permissions for guarding access to Thread network API.
      
      The permissions are also granted to shell for CTS tests, see the
      instructions here: go/ctswrite#write-a-test-to-test-an-api-that-requires-system-permission
      
      Design doc: go/thread-android-api
      
      Bug: 262683651
      Merged-In: Ib15d5589bbd304d68840ee52a193676d12110512
      Change-Id: Ifc6c1d55cc170a5a200dfb5d531f5e0f86a9507a
      fa35b426
  8. Nov 07, 2023
    • Kangping Dong's avatar
      [Thread] add Thread network permissions · ad6d6b6c
      Kangping Dong authored
      Defines permissions for guarding access to Thread network API.
      
      The permissions are also granted to shell for CTS tests, see the
      instructions here: go/ctswrite#write-a-test-to-test-an-api-that-requires-system-permission
      
      Design doc: go/thread-android-api
      
      (cherry picked from commit 03aa71cd4b5eabe9310d3c4d4db10038b80853d1)
      
      Bug: 262683651
      Change-Id: Ib15d5589bbd304d68840ee52a193676d12110512
      ad6d6b6c
  9. Nov 06, 2023
    • Makoto Onuki's avatar
      New Importance API for Rb · 0162f2a1
      Makoto Onuki authored
      Bug: 292533010
      Test: atest CtsGetBindingUidImportanceTest
          ... with and without android.app.get_binding_uid_importance set.
      
      Change-Id: Iee6f0e08ba499f2f51d8173e45168c69933cd451
      0162f2a1
  10. Nov 02, 2023
    • Iván Budnik's avatar
      Create MEDIA_ROUTING_CONTROL app op permission for proxy routing · 0534fe13
      Iván Budnik authored
      The new permission allows holders of COMPANION_DEVICE_WATCH to use
      MediaRouter2 to control the routing of other apps from the watch.
      Users will grant the permission from a Special App Access setting.
      
      Bug: 305919655
      Bug: 192657812
      Test: atest CtsMediaBetterTogetherTestCases
      Change-Id: I204ddbf545c3e8952bd6bec1ef86bffadbe58cbd
      0534fe13
  11. Oct 19, 2023
  12. Sep 21, 2023
  13. Sep 16, 2023
  14. Sep 12, 2023
    • Jyoti Bhayana's avatar
      Add permission for HeadlessSystemUser Camera. · 88a68d14
      Jyoti Bhayana authored
      To allow only platform signed apps to access camera
      as User 0 in Headless user Mode, add a new permission
      android.permission.CAMERA_HEADLESS_SYSTEM_USER with
      protection level of "signature".
      
      Bug:296959023
      Test: Test that headless system user is not able to access
      the camera without the new permission.
      
      Change-Id: I8fab31e1d7e483b476fe1761c8b35e1766119b25
      88a68d14
  15. Aug 31, 2023
  16. Aug 25, 2023
    • Varun Shah's avatar
      Update certain APIs to require the REPORT_USAGE_STATS permission. · ad842da7
      Varun Shah authored
      Add requirement of either being the system or having the
      REPORT_USAGE_STATS permission in order to call any report events related
      APIs. This includes the reportChooserSelection and reportUserInteraction
      APIs.
      
      Also add the permission to Shell so the APIs can be tested via CTS.
      
      Bug: 296056771
      Bug: 218679369
      Test: atest CtsUsageStatsTest
      Change-Id: I3b28e00b9da73cd4bc051f3c5e03e29a734a1df0
      ad842da7
    • Pierre Barbier de Reuille's avatar
      Add APIs to control the external display state · 4d96c1ff
      Pierre Barbier de Reuille authored
      External displays start disabled, signal connection / disconnection and
      can be enabled / disabled by system apps.
      
      The implementation of the signalling is mostly in LogicalDisplayMapper.
      
      The flags are accessed through DisplayManagerFlags, which is injected
      into DisplayManagerService. All other uses come from
      DisplayManagerService and is propagated. This allows for injection in
      tests.
      
      Currently, we are using a standard flag, but if DeviceConfig is not
      ready, we instead read a default static value. The value cannot change
      during the runtime of the device.
      
      When read only flags are ready, we can simplify the code to remove the
      default value, as the flag will always be available.
      
      To test on a local device, set
      `DisplayManagerFlags.DEFAULT_IS_CONNECTED_DISPLAY_MANAGEMENT_ENABLED` to true.
      
      Bug: 280739508
      Test: atest LocalDisplayAdapterTest
      Test: atest DisplayManagerServiceTest
      Change-Id: I91411a8e726982d88474cf2ecd0f423bde9be107
      4d96c1ff
  17. Aug 24, 2023
  18. Aug 23, 2023
  19. Aug 22, 2023
  20. Jul 28, 2023
  21. Jul 26, 2023
  22. Jul 19, 2023
  23. Jul 17, 2023
    • Robin Lee's avatar
      Allow shell to control transition animations · 0be0367e
      Robin Lee authored
      Change-Id: Iffe5625ae57c21874805ef98b67faac9f56f87f5
      Test: atest 'CtsSecurityTestCases:android.security.cts.ActivityManagerTest#testActivityManager_stripTransitionFromActivityOptions'
      Bug: 290586831
      Bug: 237290578
      0be0367e
  24. Jul 14, 2023
  25. Jul 13, 2023
Loading