Commit Graph

11897 Commits

Author SHA1 Message Date
Pedro Loureiro
e748d40d2b Merge "Allow unknown codenames in target sdk version for APK-in-apexes" into tm-dev 2022-04-05 12:46:45 +00:00
Jon Eckenrode
020a477050 Merge "Updated API documentation of screenWidthDp and screenHeightDp." am: ec2121901c am: d697c8b46d am: 6417364cfe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030783

Change-Id: I0304617ea90c3768fc80f1aa98b3e88ece996d0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 18:32:12 +00:00
Jacob Hobbie
2a9b86c1f7 Merge "Updating receiver flag requirements and enforcement." into tm-dev 2022-04-04 18:27:31 +00:00
Jon Eckenrode
d697c8b46d Merge "Updated API documentation of screenWidthDp and screenHeightDp." am: ec2121901c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030783

Change-Id: I607d3723b0d2855f9b53f30cd4dda058ff3b4d93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 18:00:57 +00:00
Jon Eckenrode
ec2121901c Merge "Updated API documentation of screenWidthDp and screenHeightDp." 2022-04-04 17:36:37 +00:00
Your Name
b4b352e37f Updating receiver flag requirements and enforcement.
Since we're no longer planning on enforcing the flag requirement for
exported/not exported in T, we should update the compat change so that
it's disabled, which will allow developers to still test it, change the
error message so it doesn't reference Android T, and remove the
additional system property that enabled stricter enforcement.

Test: atest ContextText
Bug: 225057637

Change-Id: Ibdc079ef7e92954422ddde715b3a4ae358f552e3
2022-04-01 16:39:37 +00:00
Pedro Loureiro
5ef7d7b777 Allow unknown codenames in target sdk version for APK-in-apexes
This is currently a recurring issue every new Android release as a few of
our apps will be targeting new platforms and they also get installed on
devices running older SDKs.

This change only changes behaviour for APK in apexes.

Test: atest com.android.server.pm.parsing.PackageParserLegacyCoreTest

Bug: 208239394

Merged-In: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
Change-Id: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
2022-04-01 11:51:06 +00:00
TreeHugger Robot
5b6ba1cfde Merge "Only allow the system server to connect to sync adapters" into tm-dev 2022-03-31 15:35:08 +00:00
Treehugger Robot
9b93e341f4 Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94 am: e34c026cbb am: edbb1a9687
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: I23340c062bd74fc987a18e621b9a646b5aea52d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 05:12:59 +00:00
Treehugger Robot
edbb1a9687 Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94 am: e34c026cbb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: Ibf50e24133b3c74cb61f59c665262703a5ad6727
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:58:11 +00:00
Treehugger Robot
c32215ee94 Merge "Update OWNERS file to reflect ownership in capability related files" 2022-03-31 04:17:58 +00:00
Makoto Onuki
4df2de8380 Only allow the system server to connect to sync adapters
Bug: 203229608
Test: Manual test with changing the check logic
Change-Id: I27ade06541e79746f6c1318296cd11cb7fd5da21
2022-03-30 16:49:12 +00:00
Minche Li
70a4c7685c Merge "Updates the doc for FEATURE_WINDOW_MAGNIFICATION" into tm-dev 2022-03-30 01:30:14 +00:00
Jon Moeller
03efadfcfb Add Extra to mark ClipData items as "sensitive".
This extra enables applications to mark ClipData items as sensitive,
indicating that the data within should not ordinarily be displayed.

Applications (e.g. IMEs that store clipboard history) can use
this flag to prevent sensitive data from being unintentionally
displayed on screen.

Bug: 195554988
Test: N/A
Change-Id: Ibccd3944842a40d3e5afec2dd99f32eb7a3564db
2022-03-29 20:50:27 +00:00
joneckenrode
5c907cb5ca Updated API documentation of screenWidthDp and screenHeightDp.
Bug: 170805355
Test: Built API docs
Signed-off-by: joneckenrode <joneckenrode@google.com>
Change-Id: I8ae77784e07c9f9a552da2f3b1d290fac65e0765
2022-03-28 20:51:06 +00:00
mincheli
76ee08efb5 Updates the doc for FEATURE_WINDOW_MAGNIFICATION
If this feature is not supported,
1. Settings should hide window magnification settings.
2. Magnification mode settings should fallback to.
  full-screen settings.

Bug: 225086379
Test: none
Change-Id: I3248034d25eb88136bda1874092319d4702be455
2022-03-29 02:15:20 +08: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
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
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
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
chaviw
abfe26db44 Add DISPLAY_HASH_SERVICE to ServiceName list
Test: Builds
Bug: 218553530
Change-Id: I8685909ddb838b3a0535fc1e38c736f3ae9f4411
2022-03-22 17:23:42 -05: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
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
6be2622511 Merge "Update getSigningCertHistory docs to reflect signers returned in order" into tm-dev 2022-03-19 04:51:07 +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
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
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
42f6b8d71d Update OWNERS file to reflect ownership in capability related files
Change-Id: I7997705e719f1c9cd5b2d077bf82115698eadbf1
2022-03-17 17:42:10 +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
4b563a2d37 Merge "Capture the contents of a single task" into tm-dev 2022-03-17 17:03:48 +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
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
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
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