Commit Graph

11931 Commits

Author SHA1 Message Date
kholoud mohamed
284246f7e6 RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
Bug: 217388602
Bug: 218875965
Test: atest EnterpriseResourcesTests
Test: manual
Change-Id: I8af03136e67057d171e97cb5a43187aa6c7f4fe7
(cherry picked from commit b7aedc6f3d)
Merged-In: I8af03136e67057d171e97cb5a43187aa6c7f4fe7
2022-03-25 16:14:51 +00:00
Winson Chiu
8d1ca1303a Merge "Revert "Revert "Remove all appId migration related public APIs""" into tm-dev am: 6594433069
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17382464

Change-Id: Ibdf61a9d0702fb39076eaab3c3a16fd1ecf6fa25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 05:07:11 +00:00
Sumedh Sen
aa8f73b5bc Merge "Updating documentation of param statusReceiver in PackageInstaller" 2022-03-25 04:56:35 +00:00
Winson Chiu
6594433069 Merge "Revert "Revert "Remove all appId migration related public APIs""" into tm-dev 2022-03-25 04:47:26 +00:00
Pinyao Ting
93ab8fc534 Merge "Update surface related api in ShortcutIno for readability." into tm-dev 2022-03-25 01:17:20 +00:00
Winson Chiu
905b0b2176 Revert "Revert "Remove all appId migration related public APIs""
This reverts commit 2d3633485b.

Reason for revert: reintroduce change with correct removal

Bug: 226541637

Change-Id: I9825ec84a9dadfc3e0f2fd451852892d93e3fec8
2022-03-24 19:51:51 +00:00
Sumedh Sen
45ae5b1567 Merge "Update conditions for updates without user action for Android T" into tm-dev
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17229915

Merged-In: Iafd03b75ecf246a9651572becf6158316ecd8100
Change-Id: Iafd03b75ecf246a9651572becf6158316ecd8100
2022-03-24 19:10:28 +00:00
Ricky Wai
1048bb8923 Merge "Update PackageInstaller.setPackageSource() API docs." into tm-dev am: 9914f1c659
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17377943

Change-Id: I8dba5c78462d9fb7e5f1022f96e97a27fef675ae
2022-03-24 17:45:54 +00:00
Sumedh Sen
b0ad8d5220 Merge "Update conditions for updates without user action for Android T" 2022-03-24 17:19:46 +00:00
Pinyao Ting
b5f6bfef9e Update surface related api in ShortcutIno for readability.
Update surface related api in shortcut info in comply with api design
guideline.

Bug: 210991003
Test: atest CtsShortcutManagerTestCases
Change-Id: I493295fb6d1e780e5bfbb6feec31f7e85dc5294f
Merged-In: I493295fb6d1e780e5bfbb6feec31f7e85dc5294f
2022-03-24 16:15:35 +00:00
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
Ricky Wai
71312ff60c Update PackageInstaller.setPackageSource() API docs.
Bug: 218876748
Test: Able to compile and boot successfully
Change-Id: Ia99fcf2e90c0fd14f0aa38f16f1f2475f2741d85
2022-03-24 11:50:45 +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
Sumedh Sen
5e1705c590 Update conditions for updates without user action for Android T
-For Android T, updates without user action are permitted for apps
targetting API 30+
-Updated the conditions for SDK version check in PackageInstallerSession  and associated
documentation in PackageInstaller.SesionParams

Bug: b/215349058

Test: atest com.android.tests.hostside.silentupdate.SilentUpdateHostsideTests
Change-Id: Iafd03b75ecf246a9651572becf6158316ecd8100
2022-03-22 22:07:41 +00:00
Sumedh Sen
37a0d537fe Updating documentation of param statusReceiver in PackageInstaller
The original documentation about the param `statusReceiver` was unclear.
Updated the doc to explain what it tries to say.

Bug: b/148055512

Test: None. Documentation change
Change-Id: I8d0fd218d9f0c1d4c38938026bcdc00a5270e13a
2022-03-22 18:19:02 +00: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