Commit Graph

11763 Commits

Author SHA1 Message Date
TreeHugger Robot
1ad48aa8b6 Merge "Recycle obtained TypedArrays" 2022-02-15 04:49:13 +00:00
Aaron Labiaga
5cec0fdb6a Merge "Update broken javadoc code ref. Use class fully-qualified class name" 2022-02-12 08:31:18 +00:00
Galia Peycheva
178b755646 Merge "Add API for expanded picture-in-picture" 2022-02-12 08:25:58 +00:00
Aaron Labiaga
5458f07e94 Update broken javadoc code ref. Use class fully-qualified class name
Change-Id: I15a7a7a05acb77321195f1722ff586e81cbfa3cb
2022-02-12 05:13:57 +00:00
Antony Sargent
0b677034e7 Merge "KeyguardManager#isDeviceSecure()" 2022-02-11 23:47:34 +00:00
Galia Peycheva
eb54e50617 Add API for expanded picture-in-picture
Bug: 208797488
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatio
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatioMaxWidth
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatioMaxHeight

Change-Id: I7d91ce1db197cf7dac1af8bdf4ee2579b8a70869
2022-02-11 21:39:11 +01:00
TreeHugger Robot
8eb30b3b30 Merge changes from topic "cross_uid_embedding_verification"
* changes:
  Verify cross-uid activity embedding
  Add Cross-UID ActivityEmbedding trust model APIs
2022-02-11 07:42:58 +00:00
Xu Cao
f04d752fec KeyguardManager#isDeviceSecure()
KeyguardManager#isDeviceSecure() shall return false when called on a virtual display

Bug: 210153811
Test: atest CtsVirtualDevicesTestCases:DefaultDisplayIsDeviceSecureTest CtsVirtualDevicesTestCases:StreamedAppBehaviorTest#isDeviceSecure_shouldReturnFalseOnVirtualDisplay

Change-Id: I5149b08fde8d3a09e484ea965035bd5e7d2bff7b
2022-02-10 18:15:34 -08:00
Winson Chung
ab4e152e05 Merge "Allow dragging to launch multiple instances of the same activity" 2022-02-10 18:59:35 +00:00
Alan Viverette
7d1188244c Merge "Migrate frameworks/base javadocs references to androidx" 2022-02-10 18:02:28 +00:00
Ömer Yaveroğlu
5d08fb7a9c Merge "Add a new install-time integrity formula type to check the lineages of the app certificate." 2022-02-10 17:13:34 +00:00
Nate Myren
65c07eea84 Merge "Add information to grant permissions intent for continue messages" 2022-02-10 16:26:18 +00:00
Ömer Yaveroğlu
70a8f68db5 Add a new install-time integrity formula type to
check the lineages of the app certificate.

Bug: 218486995
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity
Test: atest services/tests/servicestests/src/com/android/server/integrity
CTS-Coverage-Bug: 218679238
Change-Id: I3bee5b95be7217967764b7bd304a2fe3a6ee52e9
2022-02-10 16:18:33 +00:00
Nikolas Havrikov
32947847dd Recycle obtained TypedArrays
Bug: 218835043
Test: make
Change-Id: Ib5a8659e42b9550af607a1e685f7e6ed3425145a
2022-02-10 15:03:38 +01:00
Andrii Kulian
d21447ccd2 Add Cross-UID ActivityEmbedding trust model APIs
By default activity embedding should be restricted, and apps have to
opt in explicitly to allow other hosts to embed them. An app can
declare a list of known trusted embedding host certificates in
AndroidManifest for individual activities or entire application.
Alternatively, an app can allow embedding by all hosts in untrusted
mode. In this case interactions and operations that the client host
can perform on the embedded container will be limited to prevent
tapjacking and overlay attacks.

Bug: 197364677
Test: ActivityEmbeddingCrossUidTests
Change-Id: I78c303237fdc77bdf55bd74580ac0b19c8de622b
2022-02-09 23:56:36 -08:00
Charles Chen
ba29cdb63e Enable to add ComponentCallbacks to Activity
This CL is mainly from the requirements to receive WindowMetrics
updates in Jetpack Library. It also benefits the developers if
they want to listen to Activity's configuration changes outside
Activity

Test: atest RegisterComponentCallbacksTest
Bug: 199442549
Change-Id: Iff5c0a4d9c61d30b84ff9aee465f1b6b06f1a48d
2022-02-10 14:55:33 +08:00
Alan Viverette
406e0f6553 Migrate frameworks/base javadocs references to androidx
Does not remove Support Library artifacts from docs classpath (ApiDocs.bp)
because they are still used in development/samples, which is not as easy
to migrate as javadoc.

Bug: 158779503
Test: make docs
Exempt-From-Owner-Approval: Mass find/replace for androidx migration
Change-Id: Icf7f53ec36a0e970413352e2ebf40ce9d60ed17e
2022-02-09 22:25:14 +00:00
Nate Myren
86d226366a Add information to grant permissions intent for continue messages
After first launch, remember T+ apps which had the review required flag
cleared on launch, until a grant permission request comes in.

Also modifies some behavior of the upgrade code grants.

Bug: 194833441
Test: atest NotificationPermissionTest
Change-Id: Iafef8348e6cdb05fb214382b945cc7886beaff4b
2022-02-09 10:01:26 -08:00
Winson Chung
f4ed441e18 Allow dragging to launch multiple instances of the same activity
- When dragging to launch a new app, apply MULTIPLE_TASK to the launch
  intent to allow apps that support it to show side-by-side
- This requires the pending intent resolved from LauncherAppsService to
  be mutable (should be ok since we only use this api from SysUI)
- Also remove some unused members and duplication of getting the running
  task when dragging

Bug: 207686016
Test: atest WMShellUnitTests

Change-Id: Ib233ad754a6c6e3c4e0d0e10ed788ab8e055cccc
2022-02-09 07:21:44 +00:00
Pinyao Ting
04f5f72355 Merge "Security fixes for PendingIntent related apis in LauncherApps" 2022-02-09 03:10:56 +00:00
Eva Chen
f43fc83ff8 Merge "Add TYPE_HEADING sensor type to PackageManager features." 2022-02-08 22:04:36 +00:00
Aman Gupta
fb361c92ab Merge "Adding feature flag for MEP APIs" 2022-02-08 21:50:37 +00:00
Kholoud Mohamed
e5734f2358 Merge "Add new intent action to show all work apps" 2022-02-08 17:12:18 +00:00
Ricky Wai
9edd4f669e Merge "Add a new API to let app installer to flag package source." 2022-02-08 14:40:29 +00:00
Eva Chen
7e84bdea74 Add TYPE_HEADING sensor type to PackageManager features.
Bug: 189983308
Test: Compiled
Change-Id: I87234af6d3dd92b5fdc16b295225cae62ba03e8e
2022-02-07 14:30:10 -08:00
Eva Chen
eb338ad900 Merge "Add limited axes sensor types to PackageManager features." 2022-02-07 22:08:53 +00:00
Aman Gupta
a976dab414 Adding feature flag for MEP APIs
Test: Build
Bug: 200812798
Change-Id: I1f0d6811ef2e5597969b23dade2170731654d5e7
2022-02-07 22:01:50 +00:00
John Wu
59c5a038ec Merge "Send the new UID along with ACTION_PACKAGE_REMOVED broadcast" 2022-02-07 21:18:35 +00:00
kholoud mohamed
638c1cbbf6 Add new intent action to show all work apps
Bug: 217385869
Bug: 203531272
Test: manual
Change-Id: I8b1801c6b81f64df0dd3adaa835dfbe458813ec6
2022-02-07 18:59:38 +00:00
Eva Chen
c6481c5fda Add limited axes sensor types to PackageManager features.
Sensors included:
- FEATURE_SENSOR_ACCELEROMETER_LIMITED_AXES
- FEATURE_SENSOR_GYROSCOPE_LIMITED_AXES
- FEATURE_SENSOR_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED
- FEATURE_SENSOR_GYROSCOPE_LIMITED_AXES_UNCALIBRATED

These changes will enable support for automotive style IMUs that have
more limited axes for accelerometers (x-axis and y-axis) and gyroscopes
(z-axis).

Bug: 187342209
Test: Compiled
Change-Id: I28dbf664f607a183a36a71f07f5c6d1aba31f39c
2022-02-05 22:45:02 +00:00
Ganesh Olekar
5b027fa0bb Merge "Validate pid can be trusted" into sc-dev am: 45312b8382 am: fd12e311a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16461958

Change-Id: Ibe87764f679863f20bac59ce237fbabeca29ce26
2022-02-05 04:30:56 +00:00
Ganesh Olekar
fd12e311a2 Merge "Validate pid can be trusted" into sc-dev am: 45312b8382
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16461958

Change-Id: I98982569be5032db5b302c10b6b925edb93b762c
2022-02-05 04:13:15 +00:00
Ganesh Olekar
45312b8382 Merge "Validate pid can be trusted" into sc-dev 2022-02-05 03:56:26 +00:00
Ricky Wai
143db55921 Add a new API to let app installer to flag package source.
Bug: 202130031
Test: Able to boot without error
Test: When app is installed by PackageInstaller app, restricted
settings app ops is set to MODE_ERRORED.
Test: atest InstallSourceInfoTest

Change-Id: I190583809d43386e671a82ded721a1829cb64dbb
2022-02-04 22:46:35 +00:00
John Wu
b1fcb76cc7 Send the new UID along with ACTION_PACKAGE_REMOVED broadcast
Follow up of ag/16417696

Pass the new UID in the broadcast via a new Intent extra with the name
Intent.EXTRA_NEW_UID. This is necessary for many system components to
migrate data structures linked with the old UID to the new one.

Test: SharedUserMigrationTest#testDataMigration
Bug: 217762162
Change-Id: I24f6707cf0fa0ed5acf6836cb803ce96df6f78fc
2022-02-04 14:14:45 -08:00
Hui Wang
356cf1d7f6 Merge "Update the value of the flag of TELEPHONY_RADIO_ACCESS" 2022-02-04 16:32:25 +00:00
Thomas Vannet
8b2f6ecf8a Update self-revocation doc: revoke by permission, not group
Test: None, this is just a doc update
Bug: 210387494
Change-Id: Ib6555c9c419e2f5b890d31c249f09207632d7724
2022-02-03 15:46:12 -08:00
Yi-an Chen
7fc36cc40e Merge "Update ACTION_MANAGE_PERMISSION_USAGE intent doc" 2022-02-03 21:34:03 +00:00
Yi-an Chen
a81f2eea03 Update ACTION_MANAGE_PERMISSION_USAGE intent doc
Bug: 189480134

Test: Not needed yet. This is currently not used.
Change-Id: I090118853c404c81e52b1c2e4f480f7bc6427d3e
2022-02-03 19:15:32 +00:00
Gavin Corkery
8b869af356 Merge "Expose SharedLibrary APIs for use by SupplementalProcess module" 2022-02-03 17:30:00 +00:00
TreeHugger Robot
83cb558cc9 Merge "(really) Deprecate BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND" 2022-02-03 03:39:29 +00:00
Makoto Onuki
d1b1bb3cbc (really) Deprecate BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND
In the previous CL (Ib53e2cdf45a10454), I mistakenly deprecated the wrong
flag. This CL fixes it.

Bug: 189235490
Test: prebuilt
Change-Id: I79c1f63475d80e0b077b577f32ae2cbca37edad2
2022-02-02 14:47:09 -08:00
Pinyao Ting
ee3d464035 Security fixes for PendingIntent related apis in LauncherApps
Allowing arbitrary activityOptions during the creation of PendingIntent
is a source of security vulnerability. This CL removes activityOptions
from the call-site.

Bug: 209607104
Test: manual
Change-Id: Id262b9a0de58d8834c85d925cf84bb44b8b99742
2022-02-02 19:18:19 +00:00
Gavin Corkery
2e81839835 Remove Context.SUPPLEMENTAL_PROCESS_SERVICE
Test: Make
Bug: 216474405
Change-Id: I272e15cba8c09d5ce7f28d219f91e07cdee048bb
2022-02-02 18:27:24 +00:00
Gavin Corkery
954bd46407 Expose SharedLibrary APIs for use by SupplementalProcess module
Test: atest SupplementalProcessServiceUnitTests
Bug: 211758072
Change-Id: I11595a8bdb02fa033082ab33a764e0d7d9b05b0b
2022-02-02 15:41:31 +00:00
Nikita Ioffe
e5cac878b6 Merge "Teach PackageManagerService about supplemental process" 2022-02-02 12:41:45 +00:00
Sharon Su
79d91e3efa Merge changes from topic "susharon-wallpapereffectsgeneration"
* changes:
  Server implementation of WallpaperEffectsService API.
  Data class and interface for wallpaper effects generation api.
2022-02-02 07:42:16 +00:00
Sharon Su
0b1dea8145 Data class and interface for wallpaper effects generation api.
Test: manual build and run cts on devices
Bug: 213238425
CTS-Coverage-Bug: 213238425
Change-Id: I8c3d579a5123aaa99999f9d0df92998cec9dec34
2022-02-01 22:08:49 +00:00
Hui Wang
76a1ccb356 Update the value of the flag of TELEPHONY_RADIO_ACCESS
Bug: 213174698
Test: make
Change-Id: Ib348052375a615a970ea78610631343b3fb32a21
2022-02-01 17:51:16 +00:00
Nikita Ioffe
05b17e193f Teach PackageManagerService about supplemental process
Each app will have it's own supplemental process with a different uid
that uniquely maps to the uid of the application that this supplemental
process corresponds to.

This will impact some of the PackageManager and PermissionManager APIs
(e.g. PackageManager.getPackagesForUid, or
PermissionManager.checkPermission). In order to make it possible for
PackageManager to correctly treat supplemental process uids, we first
need to teach it about the supplemental process APK itself, hence this
change.

Bug: 215241564
Test: atest PackageManagerShellCommandTest
Change-Id: I28f4a382900f276170c51e8c92d8fcde8419ddb1
2022-02-01 16:59:17 +00:00