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
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
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
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.
Test: Boot
Test: Added debug code to induce the WTF situation, booted and checked the log
Bug: 185177290
Change-Id: Ie95164f2794b461115f07d02c2363fbdc9a517b4
Adding API for the admin to set the SSID allowlist or denylist.
Bug: 197558754
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I53617a3e5cac9e5be09467dfe98ac63522931c92
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
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
* changes:
[automerge] *ServiceStartNotAllowedException shouldn't have a "cause" 2p: d4396b9a9d
*ServiceStartNotAllowedException shouldn't have a "cause"