Commit Graph

22673 Commits

Author SHA1 Message Date
Nikita Ioffe
e5cac878b6 Merge "Teach PackageManagerService about supplemental process" 2022-02-02 12:41:45 +00:00
Shubham Dubey
b771f83365 Merge "Revert "User consent for Logcat data access"" 2022-02-02 12:11:21 +00:00
Shubham Dubey
d7138b445c Revert "User consent for Logcat data access"
This reverts commit b4f8ed9bb8.

Reason for revert: Breaking Dex2oatPressureRuleTest and PreRebootLoggerTest
BUG:217482811
BUG:217495147

Change-Id: I745de0dbcaa328918b5a1c58028471fd3d8ae0ab
2022-02-02 09:25:41 +00:00
Sharon Su
79d91e3efa Merge changes from topic "susharon-wallpapereffectsgeneration"
* changes:
  Server implementation of WallpaperEffectsService API.
  Data class and interface for wallpaper effects generation api.
2022-02-02 07:42:16 +00:00
Xiang Wang
0c20077d1f Merge changes from topic "convert_metadata"
* changes:
  Add allowGameFpsOverride intervention flag
  Introduce new game mode config xml resource file
2022-02-02 05:43:03 +00:00
Eun-Jeong Shin
813624d64d Merge "User consent for Logcat data access" 2022-02-02 04:18:38 +00:00
Xiang Wang
7998c248cc Introduce new game mode config xml resource file
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
2022-02-01 14:33:40 -08:00
Sharon Su
0b1dea8145 Data class and interface for wallpaper effects generation api.
Test: manual build and run cts on devices
Bug: 213238425
CTS-Coverage-Bug: 213238425
Change-Id: I8c3d579a5123aaa99999f9d0df92998cec9dec34
2022-02-01 22:08:49 +00:00
Lee Shombert
228a16b846 Merge "Export PropertyInvalidatedCache SystemApis" 2022-02-01 20:29:22 +00:00
TreeHugger Robot
37b77f2c8a Merge "Add constants for enterprise strings in PermissionController" 2022-02-01 19:16:55 +00:00
TreeHugger Robot
84e5767fdf Merge "Revert "Changes to support adding CTS Test TrustTestCases."" 2022-02-01 18:50:23 +00:00
Lee Shombert
baf2a6df43 Export PropertyInvalidatedCache SystemApis
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
2022-02-01 17:11:16 +00:00
eunjeongshin
b4f8ed9bb8 User consent for Logcat data access
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
2022-02-01 17:09:30 +00:00
Nikita Ioffe
05b17e193f Teach PackageManagerService about supplemental process
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
2022-02-01 16:59:17 +00:00
TreeHugger Robot
d2d8485be9 Merge "Improve documentation for EXTRA_ROLE_HOLDER_STATE" 2022-02-01 15:54:35 +00:00
kholoud mohamed
a877b6b878 Add constants for enterprise strings in PermissionController
Bug: 211422509
Bug: 188410712
Test: manual
Change-Id: Ibbdd51fcaca3832b77b37f412c735536e031b5ec
2022-02-01 14:47:18 +00:00
Antoan Angelov
2fc42bba4d Merge "Include adminExtras bundle in DPM provisioning APIs" 2022-02-01 13:15:52 +00:00
Kholoud Mohamed
dc1c61a2bb Merge "change getString/Drawable return value annotations to @Nullable" 2022-02-01 12:59:13 +00:00
Sanjana Sunil
a1919f7805 Merge "Add support for spawning multiple service processes" 2022-02-01 11:45:25 +00:00
Sanjana Sunil
e5cc81ce07 Add support for spawning multiple service processes
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
2022-02-01 10:22:33 +00:00
Dave McCloskey
f10dcdbb3b Revert "Changes to support adding CTS Test TrustTestCases."
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
2022-02-01 00:33:39 +00:00
Stephanie Bak
a2e870260f Merge "Adding Wi-Fi security level order in doc" 2022-01-31 20:07:34 +00:00
Kholoud Mohamed
d87bacafda Merge "Change getString/Drawable APIs to accept null default values" 2022-01-31 19:36:52 +00:00
Jeremy Meyer
b2f031a19f Merge "Add dumping of Resource paths and resource history" 2022-01-31 19:29:42 +00:00
Jonathan Scott
2614e63d37 Merge changes from topic "settingsoverride"
* changes:
  Use dpm getString to allow overrides in framework/base based on settings strings.
  Add Override Strings for Settings.
2022-01-31 19:10:30 +00:00
Jay Sullivan
87b22d6d8f Merge "Revert "Define new AUDIO/VIDEO/IMAGE permissions"" 2022-01-31 18:04:44 +00:00
Dmitry Dementyev
daf3b7d955 Merge "Make KeyguardManager.setLock API available to SUW on non auto variants." 2022-01-31 16:19:39 +00:00
kholoud mohamed
19dba59fa0 change getString/Drawable return value annotations to @Nullable
Bug: 217133492
Bug: 203548565
Bug: 211422509
Bug: 188410712
Test: N/A
Change-Id: I807b23fa09968b2c4e90e885b6115f3f1efde43f
2022-01-31 16:17:34 +00:00
arangelov
fd2fd2caa4 Improve documentation for EXTRA_ROLE_HOLDER_STATE
Fixes: 216832508
Test: compiled
Change-Id: Idc8a0f85f07e011647d34fe3588117d7ed27c808
2022-01-31 16:16:05 +00:00
kholoud mohamed
1f503eea13 Change getString/Drawable APIs to accept null default values
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
2022-01-31 16:10:01 +00:00
arangelov
ecadf06e97 Include adminExtras bundle in DPM provisioning APIs
Bug: 215145532
Test: atest DevicePolicyManagerTest
Change-Id: I9572137c75ca3582d0872ad113653313a4fdc75f
2022-01-31 15:42:01 +00:00
Tom Natan
d7a62ace0f Merge "[2/n] Letterbox Education: Add information about fixed orientation letterbox to TaskInfo" 2022-01-31 13:58:43 +00:00
tomnatan
72b8801b69 [2/n] Letterbox Education: Add information about fixed orientation letterbox to TaskInfo
Bug: 207010227
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:SizeCompatTests
Test: atest WMShellUnitTests:ShellTaskOrganizerTests
Change-Id: I04e82eb494c84bd78c269dd244bdd4a3e4d5fcc8
2022-01-31 10:30:45 +00:00
TreeHugger Robot
3811eb4e2e Merge "Add toString to SyncNotedAppOp, AsyncNotedAppOp" 2022-01-31 05:08:57 +00:00
Kholoud Mohamed
2cf9636806 Merge "Allow overriding managed profile notification badge" 2022-01-30 18:13:06 +00:00
Kholoud Mohamed
1095e15a9a Merge "Allow overriding enterprise badge drawables" 2022-01-30 18:12:11 +00:00
Alex Buynytskyy
a7f7cd8970 Merge "SDK -> SDK_PACKAGE to address API feedback." 2022-01-30 01:26:08 +00:00
kholoud mohamed
3df423f2a8 Allow overriding managed profile notification badge
Bug: 203548565
Bug: 188410712
Test: manual
Change-Id: I7e66442583e061d03db7281ab3d367ca88a832cb
2022-01-29 15:06:51 +00:00
kholoud mohamed
dc0bab518f Allow overriding enterprise badge drawables
Bug: 203548565
Bug: 188410712
Test: manual testing
Change-Id: Ibee6c28e8a231eab9c370af3065619c2dffa706a
2022-01-29 15:05:19 +00:00
Jay Sullivan
ff9f7176ac Revert "Define new AUDIO/VIDEO/IMAGE permissions"
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
2022-01-29 03:11:22 +00:00
Salud Lemus
c117711232 Merge "Use device owner type to restrict a financed device owner" 2022-01-28 22:16:54 +00:00
Etienne Ruffieux
5c31c58990 Merge "Added BinderCallsStats Bluetooth initialization" 2022-01-28 22:05:17 +00:00
Jeremy Meyer
353e64eef5 Add dumping of Resource paths and resource history
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
2022-01-28 22:04:12 +00:00
Dave McCloskey
3fc735da92 Merge "Changes to support adding CTS Test TrustTestCases." 2022-01-28 19:55:11 +00:00
Dmitry Dementyev
33e06ed28b Make KeyguardManager.setLock API available to SUW on non auto variants.
Test: manual
Bug: 214464941
Change-Id: I697065f1ca03b4f6875d2a8a6640245740357162
2022-01-28 11:49:09 -08:00
Salud Lemus
ad99d7570b Use device owner type to restrict a financed device owner
The restriction is to limit the APIs a financed device owner can
call.

Bug: 215754643
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest

Change-Id: Ic38b50d7388b277ad74d2c22182bc1e711a1aea4
2022-01-28 10:53:44 -08:00
Alex Buynytskyy
408108c380 SDK -> SDK_PACKAGE to address API feedback.
+documentation updated,
+don't load SDKs automatically.

Bug: 208096588
Bug: 210622326
Test: presubmit
Change-Id: I52efce96111ba72a788404f5eca92da2554fc807
2022-01-28 17:39:59 +00:00
Felipe Leme
11ef3cc33c Merge "Improves dump() to handle special cases." 2022-01-28 15:57:19 +00:00
Antoan Angelov
7cb84c79f3 Merge "Protect getPersistentDataPackageName with ACCESS_PDB_STATE" 2022-01-28 14:32:07 +00:00
Pablo Gamito
d72672e545 Merge "Add option to override background color for animation through overridePendingTransition" 2022-01-28 14:26:11 +00:00