Commit Graph

8047 Commits

Author SHA1 Message Date
Songchun Fan
49c515ac0f Merge "[incremental] respect extractNativeLibs in native lib config" into rvc-dev am: f2a6af4b8a am: 8ecea0c1ce am: 1f5799ffdc am: 80ee4058e8
Change-Id: I3fa99b04bc249163f84b1639e29f323cc92eed6f
2020-05-28 01:24:33 +00:00
Songchun Fan
80ee4058e8 Merge "[incremental] respect extractNativeLibs in native lib config" into rvc-dev am: f2a6af4b8a am: 8ecea0c1ce am: 1f5799ffdc
Change-Id: Ib18aeefdc763c318f6c99f704abf016820d45dbd
2020-05-28 01:06:06 +00:00
Songchun Fan
f2a6af4b8a Merge "[incremental] respect extractNativeLibs in native lib config" into rvc-dev 2020-05-27 22:17:23 +00:00
Songchun Fan
14f6c3c735 [incremental] respect extractNativeLibs in native lib config
Makes sure the behavior is consistent with legacy installs:

When the flag is on, the native libs will be extracted to subdirs under
lib/.
When the flag is off, the lib/ subdirs will be created but the native
libs are not extracted.
When the flag is off, check if the native libs are uncompressed and well
aligned.

Test: atest android.extractnativelibs.cts.CtsExtractNativeLibsHostTest
BUG: 157173358
Change-Id: Idb57fd7ca1115f787faf5cde3056c32ff3f60890
2020-05-27 22:16:57 +00:00
Adam Bookatz
8676d3b4c0 Merge "Unify multiuser switcher enabled setting" into rvc-dev am: 203a17d955 am: 7ea82860a5 am: ef92bf2f6d am: 9257fdb767
Change-Id: I27de1d7a0a556aefd431e47bf94d92d59b76f210
2020-05-27 18:17:10 +00:00
Adam Bookatz
ef92bf2f6d Merge "Unify multiuser switcher enabled setting" into rvc-dev am: 203a17d955 am: 7ea82860a5
Change-Id: Ic82db764e341049ce8e3a6ba92f01ae020e9e656
2020-05-27 17:55:21 +00:00
Adam Bookatz
203a17d955 Merge "Unify multiuser switcher enabled setting" into rvc-dev 2020-05-27 17:15:33 +00:00
Alex Johnston
d6da393c0c Merge "Per-profile user restrictions in org-owned managed profile" into rvc-dev am: 155d909a08 am: f997f9a430 am: cab624e1d1 am: 247d47d854
Change-Id: I55ad1168a73ade61dcb1519c4e81ab7f7b18570f
2020-05-27 14:10:17 +00:00
Alex Johnston
247d47d854 Merge "Per-profile user restrictions in org-owned managed profile" into rvc-dev am: 155d909a08 am: f997f9a430 am: cab624e1d1
Change-Id: Ie8f990789426fa820843863a6d79e79872f425fe
2020-05-27 13:47:53 +00:00
Alex Johnston
5abed10363 Merge "Per-profile user restrictions in org-owned managed profile" into rvc-dev am: 155d909a08
Change-Id: I93687c3754b13bd72a53de49ce058211266bca64
2020-05-27 13:25:39 +00:00
Alex Johnston
155d909a08 Merge "Per-profile user restrictions in org-owned managed profile" into rvc-dev 2020-05-27 13:12:43 +00:00
Automerger Merge Worker
38326ba6db Merge "Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d am: 1ad652187c am: d1de4941b5" into rvc-qpr-dev-plus-aosp am: 3aa26d15b9
Change-Id: Ie1e8f3240286008bf0c6db0adaae2f8dce36c6f6
2020-05-27 05:13:09 +00:00
Alex Buynytskyy
fa6c8aee66 Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d am: 1ad652187c am: d1de4941b5
Change-Id: I2f099f41419d4232470094c2f7fa29ad5cc616a9
2020-05-27 04:49:11 +00:00
Alex Buynytskyy
53ea003df2 Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d
Change-Id: If0f24b8549fbf78aecf4586551528606064ecfe7
2020-05-27 04:17:10 +00:00
Adam Bookatz
d626fd310c Unify multiuser switcher enabled setting
This does the following:
1. The multiuser switcher (in Settings and SysUI)
is now disabled by default. In order for it to be enabled
one of the following must be true:
  a. the user has explicitly toggled it on in Settings
  b. a new user gets created (via any means)
  c. config_showUserSwitcherByDefault overrides this default

2. Even if a new user is added, if the user had explicitly
*disabled* the switcher, the switcher still won't be enabled.

3. SystemUI and Settings (et al.) all use
UserManager.isUserSwitcherEnabled as the source of
truth in this regard.
No one else reads USER_SWITCHER_ENABLED directly.

4. If the switcher is enabled, then SystemUI will show the
switcher avatar, even if there are no other users on the device,
as long as new users can be created. This way, if the user
has enabled the switcher, the user can use the avatar to add
guest/secondary users (which would not be possible if enabled
status was tied solely to the existence of other users).

Bug: 137943217
Bug: 141372193
Bug: 149973281
Bug: 130270878

Test: manual: Settings > Multiuser doesn't turn on the systemui avatar
Test: manual: Settings > Multiuser is initially disabled
Test: manual: adb shell pm create-user A, does turn on sysui avatar
              even if the user didn't enable, but not if they disabled

Change-Id: Ia440b4db78792da76f94322a563d93db0c68e933
2020-05-26 23:01:55 +00:00
Alex Buynytskyy
8ef61aebee Lifecycle: detecting blocked and unhealthy.
Part 1: interfaces and PM implementation.

Bug: 153874006
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: I312dd919d2bb552bea3d72fb49fd1579882da14b
2020-05-26 19:34:39 +00:00
Collin Fijalkovich
53aaac0bcb Merge "Cache isUserUnlockingOrUnlocked Binder calls" into rvc-dev am: adfe0e9193 am: d47bed436d am: 2bb58d0aa0 am: 6fcce441f4
Change-Id: Iaa183f2d7715002d33a02e412d2c494a2e769e43
2020-05-26 18:36:42 +00:00
Collin Fijalkovich
d47bed436d Merge "Cache isUserUnlockingOrUnlocked Binder calls" into rvc-dev am: adfe0e9193
Change-Id: Ia4488c0150fc811bbd476d275b6c8f5adec792da
2020-05-26 17:57:15 +00:00
Collin Fijalkovich
adfe0e9193 Merge "Cache isUserUnlockingOrUnlocked Binder calls" into rvc-dev 2020-05-26 17:49:51 +00:00
Alex Johnston
97b68a53fb Per-profile user restrictions in org-owned managed profile
Background
* Some user restrictions should be per-profile
  instead of per-device to allow for more
  granularity.
* For this reason, the profile owner of an
  organization-owned managed profile should
  apply user restrictions the same way as the
  profile owner on the personal user
  (instead of the device owner).

Changes
* Move per-profile user restrictions from
  PROFILE_OWNER_ORGANIZATION_OWNED_GLOBAL_RESTRICTIONS
  to PROFILE_OWNER_ORGANIZATION_OWNED_LOCAL_RESTRICTIONS
  in UserRestrictionsUtils
* Update UserManager javadocs
* Update DevicePolicyManagerTest

Bug: 148453838
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testDevicePolicyManagerParentSupport
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testUserRestrictionSetOnParentLogged
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testUserRestrictionsSetOnParentAreNotPersisted
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testPerProfileUserRestrictionOnParent
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testPerDeviceUserRestrictionOnParent
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCameraDisabledOnParentIsEnforced
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCameraDisabledOnParentLogged
Change-Id: I431f7b9bf45a24b77f62899794561d6098f2a54b
2020-05-26 14:32:01 +01:00
JW Wang
536691805c Add RollbackManagerInternal (4/n)
This is an effort to modularize RollbackManager.

AIDL interfaces (IRollbackManager in this case) can’t be used across
module boundaries. We need to add a wrapper so system_server classes
can depend on this wrapper instead of IRollbackManager.

See https://docs.google.com/document/d/1d60nWwTcwrLps8dWDkxtkcUxSNt6q1x9rgAKwG-xO9E/view#heading=h.vqwoptkbpscx
for more details.

Bug: 150347230
Test: atest StagedRollbackTest

Change-Id: Ie34489aa3276f75d192ac4a08112012ef7f94509
2020-05-26 07:03:45 +08:00
Adam Bookatz
17b917a34e Merge "UserRestriction doc fix: primary -> admin" into rvc-dev am: 535e4abdd2 am: 4727bd425d am: 41fccbe40b am: 7291840b05
Change-Id: I4e1fba2b5e3f07f0bb4c28ca635c62bab2c27506
2020-05-21 23:43:19 +00:00
Adam Bookatz
41fccbe40b Merge "UserRestriction doc fix: primary -> admin" into rvc-dev am: 535e4abdd2 am: 4727bd425d
Change-Id: I319046e5c5d4aa68237c4f2f3d17fcd55e2052da
2020-05-21 23:16:00 +00:00
Adam Bookatz
9dd510e1e9 Merge "UserRestriction doc fix: primary -> admin" into rvc-dev am: 535e4abdd2
Change-Id: I084ce0b6837db8216941e3e9cecf94fa6450535f
2020-05-21 23:00:33 +00:00
Adam Bookatz
535e4abdd2 Merge "UserRestriction doc fix: primary -> admin" into rvc-dev 2020-05-21 22:44:53 +00:00
TreeHugger Robot
62fc9fa4a4 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev am: 5a1dc47c34 am: 2bd5168c35 am: a0424d6071 am: 6c91ae3ec5
Change-Id: I3cc2bb7f7cabfe7cf36013708e407b97a0155798
2020-05-20 16:50:39 +00:00
TreeHugger Robot
6c91ae3ec5 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev am: 5a1dc47c34 am: 2bd5168c35 am: a0424d6071
Change-Id: Ib509fc89c183556cef2bae2749cc3ab37b94adf5
2020-05-20 16:35:26 +00:00
TreeHugger Robot
5eff0b3819 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev am: 5a1dc47c34
Change-Id: Ic57203d01bf9d2287baa876b7066be42eda15131
2020-05-20 16:15:23 +00:00
TreeHugger Robot
5804ce6725 Merge "Change implementation of VibrationEffect scaling" 2020-05-20 14:50:38 +00:00
shafik
3acc77cc7b Reconfigure Scoped Storage experiment: force ScSt on list of apps
Add a DeviceConfig feature that denotes a list of apps we want to force
into scoped storage. This would allow us to test these apps behaviours
under scoped storage at scale.

Also add the feature to StorageManagerService#dump.

Test: manual:
$ adb shell device_config put storage_native_boot forced_scoped_storage_whitelist <pkg>
$ adb reboot
$ adb shell dumpsys appops --package <pkg> # observe LEGACY_STORAGE
mode=ignored
Test: adb shell dumpsys mount
Bug: 151735608

Change-Id: I6a43e987ebf8d14fb64103a74bafde28f5863ae2
2020-05-20 12:37:24 +01:00
Mathew Inwood
532292f66a Merge "Remove garbage spaces" am: b29fb46920 am: fcce9c56d4 am: 045833a959 am: baa4f33e46 am: d29baf7a09
Change-Id: I7098716f70e0f18b75cd45ce3dab5d749ae34c6d
2020-05-20 10:39:46 +00:00
Mathew Inwood
045833a959 Merge "Remove garbage spaces" am: b29fb46920 am: fcce9c56d4
Change-Id: Ifb22ae812e5473c54d2a963eb60e9ef04af3ae9f
2020-05-20 09:41:54 +00:00
Mathew Inwood
fcce9c56d4 Merge "Remove garbage spaces" am: b29fb46920
Change-Id: I1fb3e6a7f598be9ea8d993a39e3f3ee6ac554f4d
2020-05-20 09:17:59 +00:00
Mathew Inwood
b29fb46920 Merge "Remove garbage spaces" 2020-05-20 09:01:15 +00:00
Treehugger Robot
bf2c4c945c Merge "Add isStable in Parcelable interface" am: 9bb27b0311 am: a5ace2e7be am: 27bfb77024 am: 6c310a5a1e am: e7264a69be
Change-Id: I69f795ed38d0f7b78caccc0c2b426bb5eb8bd37e
2020-05-18 23:03:21 +00:00
Treehugger Robot
27bfb77024 Merge "Add isStable in Parcelable interface" am: 9bb27b0311 am: a5ace2e7be
Change-Id: Ie4e99da3fb2f98222709960a7e6d1148ef18b643
2020-05-18 22:19:24 +00:00
Treehugger Robot
a5ace2e7be Merge "Add isStable in Parcelable interface" am: 9bb27b0311
Change-Id: Ia3ac39e9b47e2fdcebca868823dd6536d88f9860
2020-05-18 22:16:05 +00:00
TreeHugger Robot
2adaca4206 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987 am: 7b1bcf049b am: e7077fb944 am: 554f9178ef
Change-Id: Ib46eed57e418f9f9c4ba564f2fe0ed26acc351ea
2020-05-18 11:16:53 +00:00
TreeHugger Robot
7b1bcf049b Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987
Change-Id: Ie1aa08f25b14e2b112fe15a47dcab98e2a79fdab
2020-05-18 10:39:09 +00:00
TreeHugger Robot
669b6a5987 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev 2020-05-18 10:27:53 +00:00
shafik
75bb8caa55 Update documentation for ACTION_CLEAR_APP_CACHE
The actual cache clearing is not async anymore, so we can report the
status to the calling app. Here, we just change the documentation to
make the caller aware of the 3rd possible activity result: EIO.

This value is returned if an error happens while MediaProvider is
clearing the cache. In this case, we don't know how much of the cache
was deleted, if at all.

Test: build
Bug: 155290762
Change-Id: I3a04a9b5b6b07c6ec61e97a4cb0d3bc8b10b0370
2020-05-18 10:26:37 +00:00
Taesu Lee
c3ca1c2945 Remove garbage spaces
Test: build

Change-Id: Ia15e39bbcc410e9ffcf0f267e5a385d66a3bf420
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-05-18 08:57:31 +00:00
Jeongik Cha
7782abe5d2 Add isStable in Parcelable interface
Bug: 156242606
Test: m
Change-Id: I353958ebe24911ac9fb684878931aecad7e09b97
2020-05-18 04:29:26 +00:00
TreeHugger Robot
4c28890da6 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0 am: 4606688141 am: e43bd566f7 am: ab88e366e6
Change-Id: I628fcc4305b6e5d2ca94154295cc47f206a13f82
2020-05-16 02:33:33 +00:00
TreeHugger Robot
4606688141 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0
Change-Id: I4d8370e8755b9e917477cd4434b1acc27345a62d
2020-05-16 01:58:01 +00:00
TreeHugger Robot
7588f0d7a0 Merge "Fix for goat detection code" into rvc-dev 2020-05-16 01:41:30 +00:00
Collin Fijalkovich
3e7d47a09d Cache isUserUnlockingOrUnlocked Binder calls
isUserUnlocked and isUserUnlockingOrUnlocked share the same service-side
dependencies, so we can add a cache to the client-side of transaction
and hook into the isUserUnlocked cache invalidation infrastructure.

Bug: 140788621
Test: atest CtsMultiUserHostTestCases while validating cache operations.
Change-Id: Icf11b1e777936ec9922ce4a47f8cfccbd22ad5ef
2020-05-15 17:03:57 -07:00
Amith Yamasani
1f6e0b89b2 Fix for goat detection code
Since as of R, apps can no longer query other apps by default,
deprecate the isUserAGoat API's undocumented behavior and
always return false.

Fixes: 156543788
Test: atest CtsMultiUserTestCases
Change-Id: I9743d87b762aabb01dc010ba6d5a6c01643a1f92
2020-05-15 14:45:01 -07:00
Wenjie Zhou
4adce607d6 Merge "mCallback defined in BringYourOwnSection should be an object instead of a reference." into rvc-dev am: ad24e49e2f am: 9d83125d4d am: fe222a2bbc am: 99cc6ebbf0
Change-Id: I78b2c7b28516ceadac0c29ca7b772c1abfec8964
2020-05-15 16:18:16 +00:00
Wenjie Zhou
99cc6ebbf0 Merge "mCallback defined in BringYourOwnSection should be an object instead of a reference." into rvc-dev am: ad24e49e2f am: 9d83125d4d am: fe222a2bbc
Change-Id: I3bf65b71ab59c3a4e4864d2156975571fe9cdfba
2020-05-15 16:05:38 +00:00