The initial implementation was setting the logout user to be SYSTEM
on non-headless system user mode, but recently it was changed to
return null if the user was not switched or started by the device
admin.
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser_systemApi com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser # on phones and automotive
Fixes: 216648012
Change-Id: I1f8f754167260a41df13dca13cb62467723c99b1
This migrates the media transfer from just a service to a full-fledged
@SystemApi. Some of the testing infrastructure has not yet been migrated
to keep this CL slightly smaller.
Bug: 216318437
Test: systemui media.taptotransfer tests *still need to be updated*
Change-Id: Idf1f72de1343020668e158d74051c1dfb970cfcd
This reverts commit b4f8ed9bb8.
Reason for revert: Breaking Dex2oatPressureRuleTest and PreRebootLoggerTest
BUG:217482811
BUG:217495147
Change-Id: I745de0dbcaa328918b5a1c58028471fd3d8ae0ab
If the new resource file parser fail to parse the boolean values from
the resource file due to tag not found in manifest or missing file, the
existing metadata values will be used to populate pre-existing flags
Bug: 214448560
Test: atest GameManagerTest
Change-Id: I1543a1bb84379a2e9322a65d41e44fa6014821b9
Bug: 152453213
Tag: #refactor
Make selected APIs of PropertyInvalidatedCache system APIs for
mainline modules. Only APIs that are believed to be needed by
Bluetooth have been exposed. APIs used only by framework code have
not been exposed.
Export the following methods as system apis, visible only to mainline
modules.
ctor public PropertyInvalidatedCache(int, @NonNull String, @NonNull String);
method public boolean bypass(@NonNull Query);
method public final void clear();
method public final void disableLocal();
method public final void invalidateCache();
method public static void invalidateCache(@NonNull String);
method public Result query(@NonNull Query);
method public abstract Result recompute(@NonNull Query);
All APIs originally tagged @VisibleForTesting are now tagged @TestApi.
A CTS test for the class is in the next CL.
Test: atest PropertyInvalidatedCacheTests
Change-Id: Ica0f60d60aee0b2100cbb1ee93f00d7e0f4356ab
The LogcatManagerService checks if logd access is coming
from background or foreground.
If the requester is foreground, the LogcatManagerService
generates a notification to get user consent. If the user grants access,
the LogcatManagerService approves logd access. If the user
does not grant access, the LogcatManagerService denies logd access.
If the requester is background, the LogcatManagerService waits
to observe process status change. If the
process status updates to foreground from background,
LogcatManagerService sends a notification to get user consent.
If the process remains background, the LogcatManagerService denies logd access.
This codebase is the continuity of the implementation ag/16618162 to
obtain user consent.
Bug: 193708292
Test: CtsVerifier
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: I4103c72daebdea5e8f04ab4901c05be2f1aefc84
Each app will have it's own supplemental process with a different uid
that uniquely maps to the uid of the application that this supplemental
process corresponds to.
This will impact some of the PackageManager and PermissionManager APIs
(e.g. PackageManager.getPackagesForUid, or
PermissionManager.checkPermission). In order to make it possible for
PackageManager to correctly treat supplemental process uids, we first
need to teach it about the supplemental process APK itself, hence this
change.
Bug: 215241564
Test: atest PackageManagerShellCommandTest
Change-Id: I28f4a382900f276170c51e8c92d8fcde8419ddb1
Modify activity manager code to allow for multiple processes to be
spawned for the same service (non-isolated) having different instance
names. A new API is introduced similar to bindService where the app UID
associated with the supplemental process service is used as the instance
name.
The main changes involve distinguishing it from isolated service
processes with instance name, removing a check that allows only isolated
services to have instance names and using distinguishing process names
in the ServiceRecord for the different processes running that service.
Bug: 203670795
Bug: 209058402
Test: Manual, installing two Supplemental client apps and attempting to
load code from each and examining new processes created. Automated tests
are WIP.
Change-Id: I2e349412338e6f0cc9cabaefb77fe2413f5850e0
Revert "Add TrustTestCases CTS test with first test for onUserRe..."
Revert submission 16640606-au-cts1
Reason for revert: Test case does not work on CTS. b/217203979
Reverted Changes:
I43bffe76c:Changes to support adding CTS Test TrustTestCases....
Ia0008dd81:Add TrustTestCases CTS test with first test for on...
Change-Id: I9161003d217e624f22d2d212197a365d92aba3c3
It also changes acknowledgeNewUserDisclaimer() to allow callers with
INTERACT_ACROSS_USERS permissions - that's more consistent with other
methods and allows it to be called by tests.
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_newUserDisclaimer
Test: m update-api
Bug: 203822627
Bug: 215375992
Change-Id: I8b98a1af60db65c1b27f19cf3e93b21d33d88278
Some callers of the APIs are passing in null default values, the null
checks are causing crashes for these callers.
Fixes: 217133492
Bug: 203548565
Bug: 211422509
Bug: 188410712
Test: manual
Change-Id: If94851bc62a7ba383997b52fbca33017c8605152
Revert "Fix PermissionPolicyTest and SplitPermissionsSystemTest"
Revert submission 15933906-t-define-media-permissions
Reason for revert: caused b/216588046 and b/216453842
Reverted Changes:
I79afe120d:Update DefaultPermissionGrantPolicyTest for new pe...
I321282b1f:Fix PermissionPolicyTest and SplitPermissionsSyste...
If3d357bae:Define new AUDIO/VIDEO/IMAGE permissions
Change-Id: I0d4f0eaefc5c29063f517755b4c9b61417a15fd0
Sample of results:
history
0
class=class android.content.res.Resources
resourcesImpl
class=class android.content.res.ResourcesImpl
assets
class=class android.content.res.AssetManager
apkAssets=
0
class=class android.content.res.ApkAssets
debugName=<empty> and /system/framework/framework-res.apk
assetPath=/system/framework/framework-res.apk
1
class=class android.content.res.ApkAssets
debugName=/product/overlay/GoogleConfigOverlay.apk
assetPath=/product/overlay/GoogleConfigOverlay.apk
Fixes: 206615535
Test: Called from custom app to confirm format and info
Change-Id: I19a9fc60b61fff86e5b41a2d789d6dde8acf51a3