Revert "Guest mode UX flow updates to user settings"
Revert submission 16545010-kedarc-ephemeral-guest
Reason for revert: A conflicting CL got merged after presubmits were triggerred, will rebase and push again
Reverted Changes:
I86a5a1571:Guest mode updates to resolve privacy concerns in ...
I7cf205883:Guest mode UX flow updates to user settings
Change-Id: I91093a241f31a82f427be24d03e6c922779ceed0
- Add API in IUserManager to allow setting ephemeral user flag
- Implement and export this API in UserManagerService and UserManager
- Set guest as ephermal by default when createGuest in UserManager is called
- Handle guest user switching in UserSwitcherController for the case
of dynamic change of ephemeral state
- Add persistant notification when in guest mode to indicate
- if guest session is new or previously used.
- if guest session will be cleared on exit or not
- Add buttons in persistant notification to reset or exit guest
- Add flags to enable/disable this feature
Bug: 214031645
Screenshots: go/ephemeral-guest-b-214031645-ux
Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
Change-Id: I86a5a15715cc6dde0eae93d38cd1c5cef33d7c67
* changes:
RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
RESTRICT AUTOMERGE move device policy resource APIs to a separate class
RESTRICT AUTOMERGE hide device policy resources constants
Changed the wording of the NameNotfoundException documentation to be
more inclusive of other potential cases where the exception could be
thrown (such as a lack of permissions) in PackageManager methods that
query packge info.
Bug: 216062232
Test: Only making documenation changes
Change-Id: I07206b40cf33686fe842d21a624582da686c2f03
This adds two feature strings for EROFS, one for the legacy staging
version present in 4.19 kernels, and another for the official mainline
version present in later kernels.
Bug: 215725871
Test: manual test
Change-Id: Ic36424b578f985ef5a826c3a89c243720fecd0a6
Signed-off-by: David Anderson <dvander@google.com>
(cherry picked from commit 035cfec7d6)
These APIs should be removed from the platform and SDK to prevent
confusion from the ecosystem.
Test: m
Bug: 220015249
Change-Id: I019b2594803d44745846ac7d56ad36c342c0c5ba
requestedPermissionsFlags javadoc.
Instead of only the other way around.
Bug: 225095217
Test: presubmit
Change-Id: Ia3c05b4df4c6dc7543a7e55aa0470f4205520f36
* changes:
Rename revokeOwnPermissionsOnKill to revokeSelfPermissionsOnKill
Self-revocation: Call PermissionControllerManager directly from Context
Synchronously revoke permissions on OTP session end when kill delay is 0
Do not leak whether package exists in revokeOwnPermissionsOnKill
This fixes a bug where self-revocation didn't work in multi-user
settings. Now the correct context is used throughout the call stack and
the permission for the calling user will be revoked.
Also added a checked IllegalArgumentException (previously unchecked
SecurityException) when trying to revoke a permission that is not
currently granted.
Test: manual using two users and
atest android.permission.cts.RevokeOwnPermissionTest
Bug: 218788609
Change-Id: I3dce34b8b956b4d1eb0ac1e34b6fdbf1795aa269
Also update javadoc to clarify what visible means in the method.
Bug: 224542726
Test: atest AppEnumerationTests
Test: atest PermissionPolicyTest
Change-Id: I80de99afe253c4e516587928f6cab14228cdf2b3
SigningInfo#getSigningCertificateHistory should return the signer's
in an APK's signing lineage in order of rotation. This commit updates
the API's documentation to explicitly state this requirement.
Bug: 193834256
Test: Build
Change-Id: I5c1f028cd12039cbbac9f6f6c77122639f8e1d9c
Without this, when font are overlayed it will fail because it is looking
in the wrong place to load the font
Bug: 151770185
Test: Manual, example app that has a font that is overlayed
Change-Id: I64c5a436b7250cfd0a75f5de36c64f07a20d523a
Create dedicated classes for capability to decouple related apis from
native types for future extensibility.
Bug: 216590966
Test: atest CtsShortcutManagerTestCases
Change-Id: I6d7b9a00141ad8ad55ababb4a8446ed28e55031b
Introduces layer mirorring of a single task, given the task is both
identified (future work - dependency on setup flow in SysUI) and the
flag is enabled (currently disabled).
Error handling (tearing down the VirtualDisplay if task recording setup failed)
will come in a future change
Bug: 216625226
Test: atest WmTests:DisplayContentTests
Test: atest WmTests:ContentRecorderTests
Change-Id: I16abd55ce75537ff8fbbb379e4970668ea02a230