Commit Graph

22586 Commits

Author SHA1 Message Date
Felipe Leme
9320f1b7bf Merge "Makes Activity.addDumpable() a @TestApi" 2022-01-26 17:50:22 +00:00
Felipe Leme
b41b25ff73 Merge "Replaces DPM.clearLogoutUser() by logoutUser()" 2022-01-26 16:34:47 +00:00
Sudheer Shanka
6ec5f7fd7f Merge "Inform UsageStatsManager about broadcast-dispatched events." 2022-01-26 08:08:11 +00:00
Jernej Virag
838426ac7a Merge "Limit the maximum size of small notification icons" 2022-01-26 07:48:41 +00:00
Felipe Leme
52660ae71b Replaces DPM.clearLogoutUser() by logoutUser()
Prior to this change, internal components like Settings or
CarUserManager would need to call 3 APIs to logout a managed user:

1. previousUserId = getLogoutUser();
2. switchUser(previousUserId);
3. clearLogoutUser();

This CL encapsulates the whole process into a new DPM.logoutUser(),
but it keeps the getLogoutUser() (as Car need to know which user it
will be switched to in advance, due to the Vehicle HAL integration).

Test: m update-api
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser_system

Fixes: 214336184

Change-Id: Ifffc229ecede5d086338e9c7fa08dce0e0de884c
2022-01-25 18:46:59 -08:00
Felipe Leme
ed71bd91a0 Makes Activity.addDumpable() a @TestApi
Test: atest CtsAppTestCases:android.app.cts.ActivityDumpTest
Test: m update-api

Bug: 149254050
Bug: 215435293

Change-Id: I3f570e2cc107a6924bbe71dbc47e0508a3b8cb38
2022-01-25 15:16:21 -08:00
Sudheer Shanka
c2e7bfb792 Inform UsageStatsManager about broadcast-dispatched events.
Bug: 206518114
Test: treehugger
CTS-Coverage-Bug: 206518114
Change-Id: If6b81970461854bf607f2bbd51f47a6f7ec44e03
2022-01-25 12:18:06 -08:00
Sooraj Sasindran
14efc83d31 Merge "Add device poliy manager support for profile network preference" am: 416fd5f440 am: 58dc5d1cb4 am: cde52bd800 am: c14b38c9de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1947228

Change-Id: Ic618644105db2072d45a6d8fd5ef1e6626c18e70
2022-01-25 18:35:33 +00:00
Sooraj Sasindran
c14b38c9de Merge "Add device poliy manager support for profile network preference" am: 416fd5f440 am: 58dc5d1cb4 am: cde52bd800
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1947228

Change-Id: I9506d2612679473203977afa1aa1d47d750e21e0
2022-01-25 18:16:11 +00:00
Sooraj Sasindran
cde52bd800 Merge "Add device poliy manager support for profile network preference" am: 416fd5f440 am: 58dc5d1cb4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1947228

Change-Id: I2888c07e7a0e89f2005e13a8aab02c868587c307
2022-01-25 17:59:24 +00:00
Jay Sullivan
aad39a3889 Merge "Define new AUDIO/VIDEO/IMAGE permissions" 2022-01-25 17:49:12 +00:00
Jernej Virag
5c8e246f55 Limit the maximum size of small notification icons
Right now, the size of small notification icons is unbounded and can cause big memory usage spikes (easily measured as 50MB+). This limits the maximum size of small icon when its set as a bitmap.

Bug:193720474
Bug:209044537

Test: manual via test app
Test: atest NotificationTest
Change-Id: I684fe29d5b473d86280035e00298c8e59f47dbb7
2022-01-25 15:47:59 +00:00
Alex Johnston
b8b0daccde Merge "Add lost mode platform changes" 2022-01-25 13:58:09 +00:00
Kholoud Mohamed
ed1d4d267f Merge "Change updatable drawable IDs to strings" 2022-01-25 13:52:57 +00:00
Alex Johnston
cf04bc3d29 Add lost mode platform changes
Changes:
* Add SEND_LOST_MODE_LOCATION_UPDATES permission.
* Add DPM.sendLostModeLocationUpdate API.
* Add intent action and extras to send lost mode
  location updates to the DPC.
* Add DPM attribution tag

Manual testing:
* Add lost mode receiver to TestDPC
* Call new API in GmsCore using reflection
* Verify API call is successful and the
  lost mode receiver receives the location update

Bug: 206945072
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      manual testing
Change-Id: I9374a53c1146143c8f5bff3ac38cfe18d3f0bf2f
2022-01-25 10:12:31 +00:00
Sooraj Sasindran
14074e8a2c Add device poliy manager support for profile network preference
Change-Id: If3f28dfdd731dddf2d2a7516d6479359a5454b83

Bug: 194332512
CTS-Coverage-Bug: 215722242
Test: unit test
Change-Id: Ibe680d47548e0f17979301ccbbac98a79c9031ac
2022-01-24 19:24:15 -08:00
Felipe Leme
71c4049fc6 Merge "Makes DPM.getLogoutUser() and clearLogoutUser() system APIs." 2022-01-24 23:37:53 +00:00
Roopa Sattiraju
c5399ffe76 Merge "Initialize FrameworkInitializer for Bluetooth" 2022-01-24 19:31:20 +00:00
Makoto Onuki
615951d16e Merge "Add a check to detect "duplicate app instances" bug" 2022-01-24 19:01:51 +00:00
Kholoud Mohamed
c1149937b4 Merge "Add constants for enterprise strings in docsUI and MediaProvider" 2022-01-24 15:08:44 +00:00
kholoud mohamed
81c9485a9f Change updatable drawable IDs to strings
Bug: 188410712
Bug: 203548565
Test: atest EnterpriseResourcesTests
Change-Id: I68b18fd46cba5c0c92eaf05bd09cfa7566c02efe
2022-01-24 12:59:22 +00:00
Roopa Sattiraju
a070d18c3c Initialize FrameworkInitializer for Bluetooth
Bug: 195146428
Test: Compile and bring up
Change-Id: Ife478832ced506ff156c0a1f680952390e50d425
2022-01-23 18:17:34 -08:00
Peiyong Lin
76dfa05df9 Merge "Implement getGameModeInfo API." 2022-01-23 05:47:25 +00:00
Stephanie Bak
11bd34ce6a Merge "DPM API to set the SSID restriction list" 2022-01-23 02:37:34 +00:00
Stephanie Bak
5a0d37c7bc Merge "DPM API to set Wi-Fi minimum security level required" 2022-01-23 02:37:01 +00:00
Kathy Chen
50460ddd32 Merge "AmbientContext (aka Ambient PCC) Framework API, with a client API for apps to subscribe for AmbientContextEvents, and a provider API for AiAi to implement and provide the detected events." 2022-01-23 01:54:29 +00:00
Kathy Xiaoming Chen
5d568eda62 AmbientContext (aka Ambient PCC) Framework API, with a client API for apps to subscribe for AmbientContextEvents, and a provider API for AiAi to implement and provide the detected events.
Client apps need the ACCESS_AMBIENT_CONTEXT_EVENT permission to use the service. The permission protection level is internal|role.

API overview: http://go/ambient-framework-api
PRD: http://go/ambient-attribution-prd
Design doc: http://go/ambient-service-api

Test: CTS test
Bug: 192476579
Change-Id: I9daede83af34f215c278cb0530238faba1be5c70
Ignore-AOSP-First: to prevent new feature leak.
2022-01-22 22:07:22 +00:00
Kholoud Mohamed
2c54922c72 Merge "Add constants for enterprise strings in the framework" 2022-01-22 15:23:25 +00:00
Makoto Onuki
18005c1496 Add a check to detect "duplicate app instances" bug
Test: Boot
Test: Added debug code to induce the WTF situation, booted and checked the log
Bug: 185177290

Change-Id: Ie95164f2794b461115f07d02c2363fbdc9a517b4
2022-01-21 17:19:57 -08:00
Junyu Lai
85eacf4d8b Merge "[MS66] Initialize TrafficStats with context" am: a411d32226 am: 71aca9af8f am: db3f98710b am: 0fd819f75f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956077

Change-Id: I5c1588157302b236ffa03329cde4f63277026bbf
2022-01-22 01:15:07 +00:00
Sharon Su
55485dd15b Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" am: 3166def10f am: 58e37e59d1 am: 9075544cd1 am: 2fff06e2cf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955206

Change-Id: I1dc6aa909d1179c52b26750ba9dccd0f781eb6f1
2022-01-22 01:13:38 +00:00
Junyu Lai
0fd819f75f Merge "[MS66] Initialize TrafficStats with context" am: a411d32226 am: 71aca9af8f am: db3f98710b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956077

Change-Id: Ide5f7ac8fb4ebafbe797e9d8d13662844d1b4bfd
2022-01-22 00:48:35 +00:00
Sharon Su
2fff06e2cf Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" am: 3166def10f am: 58e37e59d1 am: 9075544cd1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955206

Change-Id: Ie939bcf302fc7f6939e2ac84352490ba9a324fc4
2022-01-22 00:48:06 +00:00
Junyu Lai
db3f98710b Merge "[MS66] Initialize TrafficStats with context" am: a411d32226 am: 71aca9af8f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956077

Change-Id: I6dbe1599e1eddb7cf5fc1cc396862c66c0ea0c94
2022-01-22 00:31:34 +00:00
Sharon Su
9075544cd1 Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" am: 3166def10f am: 58e37e59d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955206

Change-Id: Ib20ed16717dca5a44c31aa1cdd7221bf17e5f9a8
2022-01-22 00:31:15 +00:00
Stephanie Bak
a0fc4c0cb9 DPM API to set the SSID restriction list
Adding API for the admin to set the SSID allowlist or denylist.

Bug: 197558754
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I53617a3e5cac9e5be09467dfe98ac63522931c92
2022-01-22 00:25:14 +00:00
Stephanie Bak
85da5fd5f4 DPM API to set Wi-Fi minimum security level required
Adding API for the admin to set the mininum security level required
for a Wi-Fi network in order to be elligible for a connection.

Bug: 197558754
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I90abb4e3ce9597cb4bff57a6f9e1e8d4a097ed3e
2022-01-22 00:24:09 +00:00
Junyu Lai
a411d32226 Merge "[MS66] Initialize TrafficStats with context" 2022-01-22 00:06:17 +00:00
Sharon Su
3166def10f Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" 2022-01-22 00:05:24 +00:00
Beverly Tai
5b3857b8d4 Merge "Trust agents can show a message to the user on grant" 2022-01-21 20:51:45 +00:00
Shubang Lu
bcf19024d3 Merge "TIAF: rename IApp -> InteractiveApp." 2022-01-21 18:04:09 +00:00
Junyu Lai
de9cf3392d [MS66] Initialize TrafficStats with context
TrafficStats has static methods created in API level 8 that need
access to NetworkStatsManager but doesn't take a context.
Previously this was achieved by using ServiceManager, but
with TrafficStats moving to the connectivity module, this
is no longer possible.

Instead, make sure TrafficStats has an appropriate context by
the time any client code can call the relevant methods.
• In app code, this achieved by passing the application
  context from ActivityThread#handleBindApplication, before any
  app code can run.
• In the system server, this is achieved by passing the context
  right after creating service.

Test: atest TrafficStatsTest CtsWebkitTestCases
Bug: 204830222

Change-Id: I251bb8a4431ad12ff61929879ef1363cf06b9244
2022-01-22 01:01:49 +08:00
Antoan Angelov
034f3b9f43 Merge "Add system API to PersistentDataBlockManager to return config_persistentDataPackageName" 2022-01-21 16:42:07 +00:00
Antoan Angelov
f21152bba3 Merge "Add intent action to establish network connectivity prior to provisioning." 2022-01-21 16:41:42 +00:00
kholoud mohamed
a78e6fbbf5 Add constants for enterprise strings in docsUI and MediaProvider
Bug: 188410712
Bug: 211422509
Bug: 202398471
Test: N/A
Change-Id: I5c0e6b3701df70818e5df351e433e2f4a6d19e44
2022-01-21 16:21:33 +00:00
Makoto Onuki
e098aec346 Merge changes from topic "presubmit-am-8bb7303602ce4e5599c16939f20f4126" into sc-v2-dev-plus-aosp
* changes:
  [automerge] *ServiceStartNotAllowedException shouldn't have a "cause" 2p: d4396b9a9d
  *ServiceStartNotAllowedException shouldn't have a "cause"
2022-01-21 16:04:24 +00:00
kholoud mohamed
3f02c37304 Add constants for enterprise strings in the framework
Bug: 188410712
Bug: 211422509
Test: manual
Change-Id: I13de52ac580083070117a9f9e7212320dce6afad
2022-01-21 15:46:20 +00:00
Thomas Vannet
d5aa1c4270 Merge "Rename selfRevokePermissions to revokeOwnPermissionsOnKill" 2022-01-21 15:03:35 +00:00
Vadim Caen
e0b59d46ce Merge changes Ifc2ed99b,Ibd7fc78e
* changes:
  Integration of back gesture animation on Sysui (BackNav 2/n)
  Server infrastructure for back nav animation (BackNav 1/n)
2022-01-21 13:36:58 +00:00
Kholoud Mohamed
4e5275f350 Merge changes from topic "updateStrings"
* changes:
  Add getString override that accepts format args
  Add APIs to allow updating enterprise related strings
2022-01-21 11:50:11 +00:00