Commit Graph

11907 Commits

Author SHA1 Message Date
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
Bernardo Rufino
a89fede08c Add safer Intent extra APIs and deprecate old ones
Complementing new safer Bundle APIs introduced in aosp/1988908.

Test: Working on CTS
CTS-Coverage-Bug: 224457848
Bug: 224457848
Change-Id: I1d2b15d1214f2bd2eccade45693365098200ae01
2022-03-14 09:53:25 +00:00
TreeHugger Robot
0c9e223e36 Merge "Add a system API to make a package become visible to other package" into tm-dev am: 78a0333f67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17072124

Change-Id: I9d224d635a6bcfb6a665e38873975b5a306d95f3
2022-03-11 05:29:36 +00:00
TreeHugger Robot
78a0333f67 Merge "Add a system API to make a package become visible to other package" into tm-dev 2022-03-11 05:21:08 +00:00
Rhed Jao
829792d752 Add a system API to make a package become visible to other package
Expose a system API PackageManager#makeUidVisible for
mainline module to make a package become visible to the caller.

Bug: 222205552
Test: atest AppEnumerationTests
Test: atest PermissionPolicyTest
Ignore-AOSP-First: (for packages/Shell/AndroidManifest.xml) Permission
Change-Id: I6cf322ddfea09a8a4c0c442a6789af4e79d294d7
2022-03-11 10:53:08 +08:00
Winson Chiu
972b3fd902 Merge "Null check signature array before comparison" into tm-dev am: 2174fc2339
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17143017

Change-Id: Iea69b68109dff4ce10cf1d12056d295e15dca45b
2022-03-10 21:10:53 +00:00
Pedro Loureiro
a1c9623465 [conflict] Merge "Parse maxSdkVersion for APK in apexes" into tm-dev am: 85f1c315d9 am: f313582f41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17158980

Change-Id: I39b81c1decd6b0d55110614ea759d72eb89c7c46
2022-03-10 20:15:12 +00:00
Winson Chiu
2174fc2339 Merge "Null check signature array before comparison" into tm-dev 2022-03-10 20:11:03 +00:00
Pedro Loureiro
85f1c315d9 Merge "Parse maxSdkVersion for APK in apexes" into tm-dev 2022-03-10 14:41:31 +00:00
Charles Chen
32487b7f64 Merge "Revert "Revert "Promote startActivityAsUser to SystemApi""" into tm-dev am: 2828207a1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17076607

Change-Id: I405f52311c05c0cb3829863a6411a491fc19f62f
2022-03-10 04:18:39 +00:00
Charles Chen
2828207a1a Merge "Revert "Revert "Promote startActivityAsUser to SystemApi""" into tm-dev 2022-03-10 03:38:07 +00:00