Commit Graph

11918 Commits

Author SHA1 Message Date
Kedar Chitnis
34ae25d390 Merge "Revert "Guest mode updates to resolve privacy concerns in guest mode"" 2022-03-24 13:25:21 +00:00
Kedar Chitnis
dd5c440802 Revert "Guest mode updates to resolve privacy concerns in guest mode"
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
2022-03-24 12:45:25 +00:00
Kedar Chitnis
30d241d3b4 Merge "Guest mode updates to resolve privacy concerns in guest mode" 2022-03-24 11:55:17 +00:00
Winson Chiu
5248b96683 Merge "Revert "Remove all appId migration related public APIs"" into tm-dev am: 2ea87d4d90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17372475

Change-Id: I55c486d4c886430f6281d13357accddcaddeba7f
2022-03-24 08:49:16 +00:00
Winson Chiu
2ea87d4d90 Merge "Revert "Remove all appId migration related public APIs"" into tm-dev 2022-03-24 08:35:44 +00:00
Winson Chiu
2d3633485b Revert "Remove all appId migration related public APIs"
This reverts commit a2755c7fc3.

Reason for revert: b/226471699, resource finalization violation

Change-Id: I95463fb7a388509ee23d3df7cfd7be8c0075e474
2022-03-24 08:28:50 +00:00
Kedar Chitnis
d96ba2dee5 Guest mode updates to resolve privacy concerns in guest mode
- 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
2022-03-24 04:28:45 +00:00
Chavi Weingarten
6f7f15260f Merge "Add DISPLAY_HASH_SERVICE to ServiceName list" into tm-dev am: 325cbe552f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17335440

Change-Id: I5db8e8ae3af7a7cfff5dd3348ac13358c1cbfc1f
2022-03-24 00:26:19 +00:00
chaviw
abfe26db44 Add DISPLAY_HASH_SERVICE to ServiceName list
Test: Builds
Bug: 218553530
Change-Id: I8685909ddb838b3a0535fc1e38c736f3ae9f4411
2022-03-22 17:23:42 -05:00
TreeHugger Robot
850b54cfa6 Merge "Updated documentation for constants in PackageInstaller.SessionParams" 2022-03-22 01:59:37 +00:00
Rhed Jao
0499a1192a Merge "Add MAKE_UID_VISIBLE permission to the system api" into tm-dev am: d45ad7baf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17214345

Change-Id: If9f0a36502295f712cacd9466f76c0cba377ac5f
2022-03-21 06:07:45 +00:00
Rhed Jao
d45ad7baf4 Merge "Add MAKE_UID_VISIBLE permission to the system api" into tm-dev 2022-03-21 05:46:30 +00:00
John Wu
62341ff3b9 Merge "Remove all appId migration related public APIs" into tm-dev am: d14f7d3c68
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17060370

Change-Id: I19afa4acad366449e3840573654479b428e8b5c3
2022-03-19 07:50:05 +00:00
John Wu
d14f7d3c68 Merge "Remove all appId migration related public APIs" into tm-dev 2022-03-19 07:38:12 +00:00
Kholoud Mohamed
a8e9aa390d Merge changes from topic "apiFeedback" into tm-dev
* 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
2022-03-19 06:30:43 +00:00
Michael Groover
4d361fbcbf Merge "Update getSigningCertHistory docs to reflect signers returned in order" into tm-dev am: 6be2622511
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17212951

Change-Id: If0223c543932431b7cb1b6377bca5d1dd405dba9
2022-03-19 05:10:18 +00:00
Michael Groover
6be2622511 Merge "Update getSigningCertHistory docs to reflect signers returned in order" into tm-dev 2022-03-19 04:51:07 +00:00
William Loh
9443604c62 Merge "Fix NameNotFoundException documentation" into tm-dev am: 51f14d2581
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17130503

Change-Id: If953980b8e08789738aeeacd75a255ea7916611a
2022-03-19 00:31:55 +00:00
Pinyao Ting
af198032af Merge "Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order." am: 10fc99d0b8 am: b625f5a1d5 am: d08b485739 am: 09f324157e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030444

Change-Id: Ie3665f0e50570aba6c23da876333ced49ab89d4a
2022-03-19 00:23:26 +00:00
kholoud mohamed
b7aedc6f3d RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
Bug: 217388602
Bug: 218875965
Test: atest EnterpriseResourcesTests
Test: manual
Change-Id: I8af03136e67057d171e97cb5a43187aa6c7f4fe7
2022-03-19 00:22:17 +00:00
William Loh
51f14d2581 Merge "Fix NameNotFoundException documentation" into tm-dev 2022-03-18 23:08:43 +00:00
Pinyao Ting
09f324157e Merge "Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order." am: 10fc99d0b8 am: b625f5a1d5 am: d08b485739
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030444

Change-Id: I9df9bfccd9bf03de907208e4756816b200358573
2022-03-18 21:54:45 +00:00
Pinyao Ting
d08b485739 Merge "Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order." am: 10fc99d0b8 am: b625f5a1d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030444

Change-Id: I12ea26420e292ce069fc1db71be604bbba3bc7de
2022-03-18 21:41:28 +00:00
William Loh
ab66ca2985 Fix NameNotFoundException documentation
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
2022-03-18 20:23:02 +00:00
David Anderson
652c4bade6 Merge "Add PackageManager feature strings for EROFS." into tm-dev 2022-03-18 17:29:26 +00:00
Pinyao Ting
2b57ab56ec Merge "Update capability related api in Shortcut" into tm-dev am: 7f35502d83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17198501

Change-Id: I8aa9234de2181d79008a95e3807deebd2b4dbeba
2022-03-18 16:43:45 +00:00
Pinyao Ting
7f35502d83 Merge "Update capability related api in Shortcut" into tm-dev 2022-03-18 16:39:51 +00:00
David Anderson
dc362ffcc7 Add PackageManager feature strings for EROFS.
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)
2022-03-18 04:43:46 +00:00
Hai Zhang
be2cb75cf3 Merge "Mention REQUESTED_PERMISSION_NEVER_FOR_LOCATION in requestedPermissionsFlags javadoc." into tm-dev am: 162255ae14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17244123

Change-Id: I238f089c971768928dfec5357fc80dcc9b57d2b6
2022-03-18 01:21:00 +00:00
John Wu
a2755c7fc3 Remove all appId migration related public APIs
These APIs should be removed from the platform and SDK to prevent
confusion from the ecosystem.

Test: m
Bug: 220015249
Change-Id: I019b2594803d44745846ac7d56ad36c342c0c5ba
2022-03-18 00:04:24 +00:00
Hai Zhang
0ee35ca5ca Mention REQUESTED_PERMISSION_NEVER_FOR_LOCATION in
requestedPermissionsFlags javadoc.

Instead of only the other way around.

Bug: 225095217
Test: presubmit
Change-Id: Ia3c05b4df4c6dc7543a7e55aa0470f4205520f36
2022-03-17 22:45:15 +00:00
Pinyao Ting
1234bf12fe Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order.
Change-Id: I6c247d6df38501b31491ec8cb7b7da7a430b5f1a
2022-03-17 17:39:47 +00:00
Naomi Musgrave
d34b99fe44 Merge "Capture the contents of a single task" into tm-dev am: 4b563a2d37
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17007808

Change-Id: I6478ac55fcc4f349399733c1dc412279358fd844
2022-03-17 17:06:43 +00:00
Naomi Musgrave
4b563a2d37 Merge "Capture the contents of a single task" into tm-dev 2022-03-17 17:03:48 +00:00
Thomas Vannet
cede13a039 Merge changes from topics "cherrypick-selfrevokemultiuser-emqfc1tlui", "cherrypick-selfrevokerenameself-lcm1yyzp8i", "presubmit-am-8a6e07e400554464bf71e06db20e4f32", "presubmit-am-d66e407983c84f0f90928a76de0d3ef2" into tm-dev am: ac4406b453
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17226523

Change-Id: Iff3d9cbd726a2558b0de06b9bd00f7f77c9de5fe
2022-03-17 14:54:27 +00:00
Thomas Vannet
ac4406b453 Merge changes from topics "cherrypick-selfrevokemultiuser-emqfc1tlui", "cherrypick-selfrevokerenameself-lcm1yyzp8i", "presubmit-am-8a6e07e400554464bf71e06db20e4f32", "presubmit-am-d66e407983c84f0f90928a76de0d3ef2" into tm-dev
* 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
2022-03-17 14:47:04 +00:00
Bernardo Rufino
9aa4441176 Merge "Add safer Intent extra APIs and deprecate old ones" am: 30e41a64b2 am: 0b0a4d71a2 am: c2fabc1d4a am: 2e5e263d31
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020758

Change-Id: I5ccd9bb7cf91ab1b2b0232a0d4408683ef1fe48d
2022-03-17 01:17:51 +00:00
Bernardo Rufino
2e5e263d31 Merge "Add safer Intent extra APIs and deprecate old ones" am: 30e41a64b2 am: 0b0a4d71a2 am: c2fabc1d4a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020758

Change-Id: I040b8847483a87403ec9a9e0dc2e9b1c352608ab
2022-03-17 01:11:45 +00:00
Bernardo Rufino
c2fabc1d4a Merge "Add safer Intent extra APIs and deprecate old ones" am: 30e41a64b2 am: 0b0a4d71a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020758

Change-Id: If0ecedefda7f6311788ad47cc17329d543edc4f6
2022-03-17 00:35:42 +00:00
Thomas Vannet
c418be3814 Rename revokeOwnPermissionsOnKill to revokeSelfPermissionsOnKill
Bug: 215555831
Test: atest android.permission.cts.RevokeSelfPermissionTest
Change-Id: I887e2b8a86868352e772537addd8cd20ef305d7b
2022-03-16 16:39:59 -07:00
Thomas Vannet
a24e244560 Self-revocation: Call PermissionControllerManager directly from Context
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
2022-03-16 16:35:59 -07:00
Bernardo Rufino
30e41a64b2 Merge "Add safer Intent extra APIs and deprecate old ones" 2022-03-16 23:16:37 +00:00
Jeremy Meyer
ffae6f3ddb Merge "Have Typeface pass a cookie of -1 to search through all assets" into tm-dev am: 88000ab26e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17057721

Change-Id: I119c918a74ea7c6fe5d804cf188a607508f1854f
2022-03-16 21:01:24 +00:00
Rhed Jao
41de18f864 Add MAKE_UID_VISIBLE permission to the system api
Also update javadoc to clarify what visible means in the method.

Bug: 224542726
Test: atest AppEnumerationTests
Test: atest PermissionPolicyTest
Change-Id: I80de99afe253c4e516587928f6cab14228cdf2b3
2022-03-16 15:17:20 +08:00
David Anderson
ad1f1db512 Merge "Add PackageManager feature strings for EROFS." 2022-03-16 05:02:57 +00:00
Michael Groover
e6f1afe1dd Update getSigningCertHistory docs to reflect signers returned in order
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
2022-03-15 17:46:39 -07:00
Jeremy Meyer
a07474c452 Have Typeface pass a cookie of -1 to search through all assets
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
2022-03-15 23:52:15 +00:00
Pinyao Ting
e5aec04daa Update capability related api in Shortcut
Create dedicated classes for capability to decouple related apis from
native types for future extensibility.

Bug: 216590966
Test: atest CtsShortcutManagerTestCases
Change-Id: I6d7b9a00141ad8ad55ababb4a8446ed28e55031b
2022-03-15 17:06:59 +00:00
Kholoud Mohamed
784e20708d Merge "Start an activity cross profile in same task." into tm-dev 2022-03-15 15:20:54 +00:00
Naomi Musgrave
13194c3ca4 Capture the contents of a single task
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
2022-03-15 14:13:11 +00:00