Commit Graph

11745 Commits

Author SHA1 Message Date
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
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
An An Yu
1197b41951 Merge "Add documentation on DisplayContext API that returned Resources could be stale." 2022-02-01 04:10:22 +00:00
Roopa Sattiraju
d5d506f7b5 Merge "API changes requires for Bluetooth apk inside the apex to build." 2022-02-01 03:00:57 +00:00
An An Yu
314ba598ee Add documentation on DisplayContext API that returned Resources could
be stale.

Test: None
Bug: 165859619

Change-Id: I0fb642c310ac33a4a79bff94683864d1fc80824a
2022-01-31 14:26:16 -08:00
Songchun Fan
3cb4911467 Merge "[pm] small refactor for InstallLocationUtils" 2022-01-31 22:15:37 +00:00
Kholoud Mohamed
e3fbc9417f Merge "Changed the managed profile switching icon" 2022-01-31 19:45:49 +00:00
Roopa Sattiraju
afa544dd74 API changes requires for Bluetooth apk inside the apex to build.
Bug: 216731966
Test: Compile and Test
Change-Id: Ic8e9c2db0743738b2b6649451c79a559c3b8edc5
2022-01-31 19:42:41 +00:00
Jeremy Meyer
b2f031a19f Merge "Add dumping of Resource paths and resource history" 2022-01-31 19:29:42 +00:00
Songchun Fan
997c6f7514 [pm] small refactor for InstallLocationUtils
+ Renaming to reflect the actual functionality of the class.

+ Move freeStorage related code to PackageManagerService, we will want
to clean that up later.

BUG: 198177734
Test: atest InstallLocationUtilsTest
Change-Id: I951129ffb5e53df548ef78fcd9de79c0ef994914
2022-01-31 18:59:37 +00:00
TreeHugger Robot
d0ee4efdcc Merge "Add platinum package manager suite to staging" 2022-01-31 16:30:45 +00:00
Alex Buynytskyy
a7f7cd8970 Merge "SDK -> SDK_PACKAGE to address API feedback." 2022-01-30 01:26:08 +00:00
kholoud mohamed
6c9333974d Changed the managed profile switching icon
Switched CrossProfileApps#getProfileSwitchingIconDrawable to use
PackageManager#getUserBadgeForDensityNoBackground which returns a
drawable that could be updated by the device management role holder.

Test: manual
Bug: 203548565
Bug: 188410712
Change-Id: Ia4246d7196b9d16e940d19752076b7d7f8916120
2022-01-29 15:07:26 +00:00
Jeremy Meyer
353e64eef5 Add dumping of Resource paths and resource history
Sample of results:

history
0
  class=class android.content.res.Resources
  resourcesImpl
    class=class android.content.res.ResourcesImpl
    assets
      class=class android.content.res.AssetManager
      apkAssets=
      0
        class=class android.content.res.ApkAssets
        debugName=<empty> and /system/framework/framework-res.apk
        assetPath=/system/framework/framework-res.apk
      1
        class=class android.content.res.ApkAssets
        debugName=/product/overlay/GoogleConfigOverlay.apk
        assetPath=/product/overlay/GoogleConfigOverlay.apk

Fixes: 206615535
Test: Called from custom app to confirm format and info
Change-Id: I19a9fc60b61fff86e5b41a2d789d6dde8acf51a3
2022-01-28 22:04:12 +00:00
Alex Buynytskyy
408108c380 SDK -> SDK_PACKAGE to address API feedback.
+documentation updated,
+don't load SDKs automatically.

Bug: 208096588
Bug: 210622326
Test: presubmit
Change-Id: I52efce96111ba72a788404f5eca92da2554fc807
2022-01-28 17:39:59 +00:00
Hui Wu
41f68c7d13 Changes the name from cloudsearch_service to cloudsearch
CTS-Coverage-Bug: 210528288
Bug: 216507592
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Ic9505f659befa01938b413e1e1944c3aaa0e8a0c
2022-01-28 09:28:48 -08:00
TreeHugger Robot
6381c8ea93 Merge "Link to getPlatformPermissionsForGroup() in PermissionInfo.group doc." 2022-01-28 01:51:37 +00:00
Patrick Baumann
88df10f277 Add platinum package manager suite to staging
This change adds all existing package manager tests we've considered for
the platinum test suite to TEST_MAPPING.

Bug: 140252512
Test: N/A
Change-Id: Ib1e27820a093198c7dcc0343fa36002dd19174e9
2022-01-27 16:37:48 -08:00
Evan Rosky
aad20ce51b Merge "Move fixed-rotation-related display information into config" 2022-01-27 22:04:14 +00:00
Brian Duddie
95c83dbfc0 Merge "Add head tracker sensor feature to PackageManager" 2022-01-27 19:51:15 +00:00