Commit Graph

10150 Commits

Author SHA1 Message Date
Jeff Sharkey
7ca8108311 Merge "Add owners" am: 033aefcb06 am: 8098a5fa5d am: 8121f93bac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie654042f25cf29395f0891d701f574bde8ecddc2
2021-01-28 20:42:22 +00:00
Jeff Sharkey
8121f93bac Merge "Add owners" am: 033aefcb06 am: 8098a5fa5d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad27ddb7bfdc20663a7ecdfabf0e45a5fef60e02
2021-01-28 18:33:04 +00:00
Guojing Yuan
a081fd7563 Merge "[Location Accuracy] Add a new flag for location permissions." into sc-dev 2021-01-28 17:49:23 +00:00
Todd Kennedy
19d09ca6ed Add owners
Change-Id: If3e8e500c4a5de47ec76cc19413546b736feb5f9
2021-01-28 17:20:10 +00:00
Sergey Volnov
bf51d7482c Merge "Add System speech recognition service." into sc-dev 2021-01-28 16:55:27 +00:00
Jackal Guo
33e5dd7c1b Merge "Refactor PackageParser (2/n)" into sc-dev 2021-01-28 00:19:02 +00:00
Guojing Yuan
b5798a374c [Location Accuracy] Add a new flag for location permissions.
The new flag indicates if the location permission is selected as the
level of granularity of location accuracy.

Test: m build.

Bug: 178646267

Change-Id: Ieccff38072789791da2b32cecf179d3f1106b54e
2021-01-27 23:59:26 +00:00
Eugenio Marchiori
c3c0a1ee7e Add System speech recognition service.
Bug: 176578753
Test: local demo, CTS will follow
Change-Id: Ia7766c506bf43a5db5b9719363da66aab263fd8d
2021-01-27 09:40:27 +00:00
Treehugger Robot
ed907b9203 Merge "Add app hibernation service stubs" am: d7bac025fb am: d131f3737d am: 1438f59fb0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1544924

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I938d23eada77c80966b710a373de927adf72fae4
2021-01-27 07:56:38 +00:00
David Zeuthen
5147877a83 Merge "Identity Credential: API changes for Android 12" am: 40d6635701 am: 6252f82f61 am: 581bf34de0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1464362

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie64aad9ae67a5b62c43edcbf37b841dac60849e2
2021-01-27 07:54:40 +00:00
Jackal Guo
57bdf48a7f Refactor PackageParser (2/n)
Replace PackageParser.Package/ApkLite by the independent one in order
to move away from PackageParser.

Bug: 174723245
Test: make
Test: atest -p core/java/android/content/pm \
        core/java/com/android/internal/content \
	services/core/java/com/android/server/pm \
	services/tests/servicestests/src/com/android/server/pm
Change-Id: I84d387d9913206558f2582774f8a0ab64b1f6b39
(cherry picked from commit 5444ece938)
2021-01-27 07:14:27 +00:00
Treehugger Robot
1438f59fb0 Merge "Add app hibernation service stubs" am: d7bac025fb am: d131f3737d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1544924

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I44b19930ec127d096ac8f25da8e60302c02053b9
2021-01-26 23:10:54 +00:00
David Zeuthen
581bf34de0 Merge "Identity Credential: API changes for Android 12" am: 40d6635701 am: 6252f82f61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1464362

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id3405bbcbcd6deb35ea4cfeb03792b7ef793ac9f
2021-01-26 23:08:55 +00:00
Rhed Jao
97bf010bc1 Merge "Deprecates GET_INTENT_FILTERS in the PackageManager" am: cba3b81738 am: a81e3c0ffc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1473222

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4eff6716141761c27e9f6791bb4120a155ca544a
2021-01-26 23:07:16 +00:00
Treehugger Robot
d7bac025fb Merge "Add app hibernation service stubs" 2021-01-26 22:23:13 +00:00
Shubang Lu
4adf45f942 Merge "Add Context constant for Playback Metrics Service" 2021-01-26 20:02:36 +00:00
David Zeuthen
40d6635701 Merge "Identity Credential: API changes for Android 12" 2021-01-26 14:50:27 +00:00
Alex Buynytskyy
1d85df2d5e Signature verification for checksums.
Bug: 160605420
Test: atest ChecksumsTest
Change-Id: Ia1cca0c678256defc2d3b781eb75494b9b17496d
2021-01-26 04:57:37 +00:00
Rhed Jao
cba3b81738 Merge "Deprecates GET_INTENT_FILTERS in the PackageManager" 2021-01-26 04:39:42 +00:00
shubang
15c1dd0e51 Add Context constant for Playback Metrics Service
Bug: 159337195
Test: mmm
Change-Id: I771a5edd1ce022d196eb4b612f382f52f7701b4b
2021-01-25 17:28:10 -08:00
Yi Jiang
0127af73ed Introduces RotationResolverService to the system
Rotation Resolver Service provides the suggested screen rotation
to the system server.

Bug: 162359770
Bug: 172370409
Test: atest RotationResolverManagerPerUserServiceTest
Change-Id: Ia43dfdba8502e04768933ef46a4ac8a687d4936c
2021-01-25 20:58:14 +00:00
Seigo Nonaka
46d6a3f9ce Add FontManager API and font manager shell commands
FontManager is an interface of communicating with FontManaserService.
With this CL, system apps can know the primitive information about
what font files are installed and how it is configured.

This CL also adds shell command of dumping font configuration.
Example usages are:

  # dump primitive font configuration.
  adb shell dumpsys font

  # dump fallback font list
  adb shell cmd font dump serif

Bug: 173619554
Test: atest FontManagerTest
Test: Manually confirmed above commands works.
Change-Id: I5cb855308e199ac38bd7b56b60821346247bdce3
2021-01-25 08:51:41 -08:00
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
David Zeuthen
0df1312357 Identity Credential: API changes for Android 12
- Add PackageManager system features (with versions) for the normal
  and direct access store
- Deprecate IdentityCredentialStore.deleteCredentialByName() and add
  IdentityCredential.delete() as a replacement.
- Add IdentityCredential.proveOwnership()
- Add IdentityCredential.update()
- Add docs for ProofOfBinding CBOR in X.509 extension of certificate
  for AuthenticationKey
- Add IdentityCredential.setAllowUsingExpiredKeys()
- Add version of IdentityCredential.storeStaticAuthenticationData()
  which takes a an expiration date. Deprecate the old variant of
  this method.

Bug: 170146643
Test: atest android.security.identity.cts
Change-Id: I39a0ed65ed6efaa424ada7a9495e3b1da67cf452
2021-01-21 17:42:14 -05: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