Commit Graph

10125 Commits

Author SHA1 Message Date
Hai Zhang
bbb9b5b5b1 Merge "Add necessary system APIs for moving role into module." 2021-01-23 00:38:22 +00:00
Winson Chiu
fa8ea23918 Merge "Parcel queriesProviders in ParsingPackageImpl" 2021-01-22 23:51:54 +00:00
Hai Zhang
84705c4ae3 Add necessary system APIs for moving role into module.
- Added Context.getUser() to system API, to allow module framework
classes to also implement multi-user support in manager classes.

- Added PackageManager.getPermissionControllerPackageName() to system
API for RoleControllerManager to know which package to bind to.

Bug: 158736025
Test: build
Change-Id: If69a97573eb1e676145e0accdfa73fef320aabe7
2021-01-22 14:26:55 -08:00
Winson
00f69942be Parcel queriesProviders in ParsingPackageImpl
This was broken in the original migration, causing this field to be
dropped on reboot.

Bug: 178209505

Test: TODO, separate change will include comprehensive parceling test

Change-Id: I67219fe00c7b92677391fd46305bf0424d74e5f3
2021-01-22 11:25:48 -08:00
Jeremy Joslin
de162a46ef Merge "New feature: FEATURE_SECURITY_MODEL_COMPATIBLE" 2021-01-22 17:58:30 +00:00
Paul Hu
27e9efd794 Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" am: 846e5f178d am: c9e394fc27 am: 796c878352
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1491876

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If4d6e07f92301baae6056d0891bc292cbd67450f
2021-01-22 03:09:15 +00:00
Paul Hu
796c878352 Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" am: 846e5f178d am: c9e394fc27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1491876

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic690e30e491538bef18fc4ca8b480609fd953d65
2021-01-22 03:03:01 +00:00
Paul Hu
846e5f178d Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" 2021-01-22 02:11:13 +00:00
Jeremy Joslin
d598dc2325 New feature: FEATURE_SECURITY_MODEL_COMPATIBLE
Adding a new public system feature constant that must be expressed by
devices that support Android's security model as documented in
the CDD.

Test: Build
Bug: 173540259
Change-Id: Ib651ab31cba065fc9b2a28d8ac16eaa85357f252
2021-01-21 23:08:21 +00:00
Ryan Mitchell
ea6cb2e365 Merge changes I33358ce4,I5746ffae,Ie307ce30,I8cd5eb46,Ie02ddd37, ... am: 0b5e65b81d am: 77ad0e767c am: 514b93a67b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550792

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I33bb25ece1e446a2881c20292e43494482d87d29
2021-01-21 20:09:12 +00:00
Ryan Mitchell
514b93a67b Merge changes I33358ce4,I5746ffae,Ie307ce30,I8cd5eb46,Ie02ddd37, ... am: 0b5e65b81d am: 77ad0e767c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550792

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idbf5c68c939202662e62e4031f128f40c805af52
2021-01-21 19:30:27 +00:00
Mårten Kongstad
dc427169c9 Revert "Revert "OMS: add transactional API""
This reverts commit 295e0d7183.

Change-Id: I5746ffae41f3e907c39420dce433c4dc91d1145c
2021-01-21 14:33:31 +00:00
Alexander Dorokhine
46aa81bb01 Merge changes from topics "sync_2020-01-20", "sync_2020-01-20-2"
* changes:
  Sync AppSearch from framework.
  Sync AppSearch from framework.
2021-01-21 05:07:42 +00:00
Michael Groover
af1fafe936 Merge "Add StrictMode check for unsafe intent launching" 2021-01-21 01:06:20 +00:00
Alexander Dorokhine
17e406e2fd Sync AppSearch from framework.
Contains changes:
* 37a4e9: Split indexing configs into per-type configs.
* 69d6e3: Add projection to the Get api.

Bug: 175039682
Bug: 177572431
Bug: 171857731
Test: Presubmit

Change-Id: Ida457b2d617be6e85557023bfb4716ad78c8db6c
2021-01-20 15:41:25 -08:00
Jeff Sharkey
6728d4f92c Add StrictMode check for unsafe intent launching
Exported components that are not guarded by a signature permission
can receive Intents from any other app on a device. If an app unparcels
and launches an Intent from the Intent delivered to this unprotected
component then a malicious actor can potentially craft an Intent that
could launch hidden components, grant URI permissions, etc. This
commit adds a StrictMode check to report if a component launches an
Intent unparceled from the delivered Intent.

Bug: 160796858
Test: atest StrictModeTest
Change-Id: I763b8a965f91f5b433ce2f4b619e10ef12f5c296
2021-01-20 13:05:09 -08:00
Galia Peycheva
c8a82f5ee5 Merge "Add blur feature to package manager" 2021-01-20 14:13:45 +00:00
TreeHugger Robot
3f8337ff57 Merge "Add APIs that can notify client ui translation state." 2021-01-20 04:43:54 +00:00
Alex Buynytskyy
681c5eef9f Merge "Backend attestation support: API." 2021-01-20 00:10:44 +00:00
Alex Buynytskyy
f1cbd3e110 Backend attestation support: API.
Bug: 160605420
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I5734e3dd0cc272cb95244182fee337f1c7564c79
2021-01-19 12:30:41 -08:00
Pinyao Ting
6dc9fe731f Add support to index ShortcutInfo as GenericDocument
Created AppSearchShortcutInfo and AppSearchPerson to handle data
transformation for AppSearch interops.

Bug: 151359749
Test: AppSearchShortcutInfoTest, AppSearchPersonTest
Change-Id: Ia3641982360a0a877172cb1ed21f36c0e70296f9
2021-01-19 19:20:58 +00:00
Iavor-Valentin Iftime
6638b0d2c8 Merge "Add start/stopProfile @SystemApi" 2021-01-19 18:18:55 +00:00
Galia Peycheva
36ba33e66a Add blur feature to package manager
Bug: 177523043
Bug: 177524486
Test: adb shell pm list features
Change-Id: Ibda2d51e6517753148609f5ae2e1a7e077b89b1e
2021-01-19 17:07:11 +01:00
Ahaan Ugale
feb36772c7 Add APIs that can notify client ui translation state.
The initial APIs for ui translation. There is no implementation in
this change, we will implement it in the next CL.

Bug: 172969740
Bug: 176871912
Test: manual. build pass and build success.

Change-Id: I4ae0bc7a695076a87bed73e458396312d87f48c5
2021-01-19 19:09:23 +08:00
Treehugger Robot
37f4ebb9e1 Merge "Make BugreportManager a public API that respects carrier privileges." am: 0dcf4de7df am: 6d6c5ec5cd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552883

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib26fe91f828ca6d39f19f7893f2f3c76da6e9738
2021-01-19 01:34:32 +00:00
Mohammad Samiul Islam
7b956dd62f Merge "Set FLAG_UPDATED_SYSTEM_APP properly for APEX packages" 2021-01-18 19:19:37 +00:00
paulhu
4ee7e55df0 Expose Context#sendStickyBroadcast(Intent, Bundle)
Bug: 177223402
Test: atest FrameworksCoreTests:ContextTest
Test: atest CtsContentTestCases:ContextTest
Change-Id: Ic85419934cf2c9df4e0f9cc287585b3296cec819
2021-01-18 00:09:38 +08:00
Hunter Knepshield
30e7b64d9c Make BugreportManager a public API that respects carrier privileges.
This permission model is only allowed for BUGREPORT_MODE_TELEPHONY to
let carrier apps (even from the Play Store / not pre-loaded) access
BugreportManager to trigger connectivity bugreports.

This also requires SELinux policy changes to allow non-system apps to
get an instance through Context#getSystemService, and then dumpstate
also needs permissions to write public apps' files.

Minor documentation and formatting fixes as well.

BYPASS_INCLUSIVE_LANGUAGE_REASON=leaving variable name derived from
"bugreport-whitelisted" sysconfig alone for now

Bug: 161393541
Test: atest CtsCarrierApiTestCases:BugreportManagerTest
Change-Id: I5a38e7a040fa23146fa6c1e785db102b066ad167
Merged-In: I5a38e7a040fa23146fa6c1e785db102b066ad167
(cherry picked from commit 57fd3440be)
2021-01-15 17:35:45 -08:00
Hunter Knepshield
59e4240e93 Merge "Make BugreportManager a public API that respects carrier privileges." 2021-01-16 00:35:27 +00:00
TreeHugger Robot
7c7300b24e Merge "Revert^2 "Expose role API for Settings on RoleManager."" 2021-01-16 00:20:17 +00:00
Hai Zhang
f2fc3e30e9 Revert^2 "Expose role API for Settings on RoleManager."
ec6ebc3a1e

Also made the APIs test API instead of system API, to be turned into
system API later during the actual move into module.

Bug: 158736025
Test: atest RcsProvisioningMonitorTest
Change-Id: I74ce1b8352b6e3afc595d8d0f08db28b8c2f29c3
2021-01-15 14:13:43 -08:00
Philip P. Moltmann
c691c16811 Merge changes from topic "CameraMicQSTile"
* changes:
  Provide IndividualSensorPrivacyController instead of bind it
  Add mic sensor privacy QS tile
  Hook up camera toggle QS tile to SensorPrivacyManager
  Create camera toggle tile
2021-01-15 19:00:34 +00:00
Hunter Knepshield
57fd3440be Make BugreportManager a public API that respects carrier privileges.
This permission model is only allowed for BUGREPORT_MODE_TELEPHONY to
let carrier apps (even from the Play Store / not pre-loaded) access
BugreportManager to trigger connectivity bugreports.

This also requires SELinux policy changes to allow non-system apps to
get an instance through Context#getSystemService, and then dumpstate
also needs permissions to write public apps' files.

Minor documentation and formatting fixes as well.

BYPASS_INCLUSIVE_LANGUAGE_REASON=leaving variable name derived from
"bugreport-whitelisted" sysconfig alone for now

Bug: 161393541
Test: atest CtsCarrierApiTestCases:BugreportManagerTest
Change-Id: I5a38e7a040fa23146fa6c1e785db102b066ad167
2021-01-15 10:58:14 -08:00
Jeff Sharkey
1364e402cf Merge "update owners for AppSearchPerson related files" am: a1daeb7005 am: f7de146c0f am: 613909af31
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I52abae8fc729406ac97feea1e17e725d5b54e6d4
2021-01-15 13:57:48 +00:00
Jackal Guo
8b2f2602f9 Merge "Refactor PackageParser (1/n)" 2021-01-15 01:07:02 +00:00
Philip P. Moltmann
bde12fd465 Hook up camera toggle QS tile to SensorPrivacyManager
Bug: 162549680
Test: Toggled tile and looked at 'dumpsys sensor_privacy`
Change-Id: I8b734adf3df7ef57b7c5c88f4b8fabe6ad60b96f
2021-01-14 22:32:04 +00:00
Jeff Sharkey
613909af31 Merge "update owners for AppSearchPerson related files" am: a1daeb7005 am: f7de146c0f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie2c4250a4813d9e3120cb01e96cd7f51532c52c0
2021-01-14 17:10:15 +00:00
Patrick Baumann
6a6b8d43bb Merge "Add support for pathSuffix" 2021-01-14 16:28:15 +00:00
Jeff Sharkey
a1daeb7005 Merge "update owners for AppSearchPerson related files" 2021-01-14 16:25:29 +00:00
Jackal Guo
3949de1552 Refactor PackageParser (1/n)
The PackageParser is deprecated, but two inner classes PackageLite
and ApkLite are still used widely. To move away from PackageParser,
the first step is having alternatives of these inner classes.

Besides, some constants in the PackageParser are also used. This CL
also moves them into the individual class.

Bug: 174723245
Test: make
Change-Id: Ice151dc4daf7e342e9f77cfdae69682c1d5ba56f
2021-01-14 11:57:30 +08:00
Todd Kennedy
3060654c8f Merge "add new owners for IntentFilter and Intent" am: c9e61a5c83 am: 5fcf36eefe am: cceb8b5a97
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549534

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie5197a46d7267a8ee6ea383b98b9eedac491a4da
2021-01-13 21:20:05 +00:00
Todd Kennedy
cceb8b5a97 Merge "add new owners for IntentFilter and Intent" am: c9e61a5c83 am: 5fcf36eefe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549534

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b89d19806bd96e3af6f8b93cb23db6faa641634
2021-01-13 20:47:21 +00:00
Bernardo Rufino
79745b3cae Merge "Deprecate Intent.ACSD" 2021-01-13 19:57:46 +00:00
Pinyao Ting
e164c3223e update owners for AppSearchPerson related files
Bug: 151359749
Test: manual
Change-Id: I4ab1e9f9b8a70021f8fc7bd0fdfbab63d71fffaa
2021-01-13 11:50:59 -08:00
Todd Kennedy
c9e61a5c83 Merge "add new owners for IntentFilter and Intent" 2021-01-13 19:47:10 +00:00
Bernardo Rufino
8c24eb10b4 Deprecate Intent.ACSD
The intent can be used to prevent the user from accessing critical
notifications (b/137274359) and system dialogs in general (eg. the
long-press power menu, assistant UIs, etc.). For these security reasons,
in S, the intent is severely limited to only a few use-cases/callers
after investigation (go/close-system-dialogs-usage), these are:

1. Permission holders of BROADCAST_CLOSE_SYSTEM_DIALOGS (includes
   platform, sysUI and recents).
2. Non-activity notification trampolines: Apps send the intent before
   starting an activity in trampolines.
3. Tests: Tests that interact with the UI send the intent to dismiss
   random dialogs.
4. Windows above the notification shade: Apps with windows above the
   shade that want to start activity send the intent to collapse the
   shade in order to show the activity to the user.

For apps w/ targetSdk < S: The intent will be dropped with the exception
of the cases above.

For apps w/ targetSdk S+: Sending the intent will result in a
SecurityException except for cases 1 and 3. For cases 2 and 4:

2. Non-activity notification trampolines: These activity starts are
   blocked (go/notification-trampolines), so the app has no reason to
   send the intent anymore.
4. Windows above the notification shade: The platform will automatically
   collapse the shade on activity starts in this case.

In all other use-cases, the user and the system is in control of closing
system dialogs, not third-party applications. Hence, marking
Intent.ACSD as deprecated for third-party applications.

Test: Builds
Bug: 159105552
Change-Id: Id82415ab4cfe09f7582da06ee20adb1e1cf447e0
2021-01-13 16:27:34 +00:00
Mathew Inwood
f3793ebcc9 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092 am: 982e50f2c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab20c244c8ff5b04f3236cfccb453a4fbe5a8705
2021-01-13 10:34:26 +00:00
Mathew Inwood
982e50f2c6 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4eeffeb0d9ab509e2f436435bf2079558e2d1c7d
2021-01-13 10:12:53 +00:00
Mathew Inwood
29bf6e8443 Merge "Derestrict some non-SDK APIs." 2021-01-13 09:38:35 +00:00
Todd Kennedy
cfed1e57ae add new owners for IntentFilter and Intent
Change-Id: I08cf0635715290a3baba049a81b35bcad0eddb03
2021-01-13 03:55:25 +00:00