Commit Graph

10164 Commits

Author SHA1 Message Date
Michael Groover
969c49681c Merge "Document Signature equals/hash should not include flags" into sc-dev 2021-02-01 20:55:14 +00:00
TreeHugger Robot
772cd3678c Merge "Adding APIs to get manifest entries for Launcher activities and widgets and getting resources for a particular config" into sc-dev 2021-02-01 19:37:15 +00:00
Sunny Goyal
7152080c07 Adding APIs to get manifest entries for Launcher activities and widgets
and getting resources for a particular config

This would allow fetching display infos for the activity in a particular
config independent of system config.

Bug: 156154533
Test: Included CTS
Change-Id: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
Merged-In: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
2021-02-01 17:35:23 +00:00
Hyundo Moon
666804029d Merge "Add a new system service: MediaCommunicationService" into sc-dev 2021-02-01 06:11:27 +00:00
Peiyong Lin
72036e758c Merge "Add GameManager service." into sc-dev 2021-01-29 23:47:19 +00:00
TreeHugger Robot
05921e00c8 Merge "System font check for downloadable font" into sc-dev 2021-01-29 20:33:39 +00:00
Peiyong Lin
32f6ff7e15 Add GameManager service.
GameManager service is a service to manage game related features. This
patch creates the initial service to manage the game mode and persist
the data across reboot.

Bug: b/174956354
Test: atest GameManagerTests
Test: atest GameManagerServiceTests
Test: atest GameManagerServiceSettingsTests
Change-Id: Iee2ab47c79d29f48847bc6d4b3eb781a5af18ff4
2021-01-29 09:18:34 -08:00
Michael Groover
47c04289f8 Merge "Grant signature permission to requesting app with common signer" into sc-dev 2021-01-29 15:34:52 +00:00
TreeHugger Robot
59050b0853 Merge "Make FEATURE_HDMI_CEC TestApi" into sc-dev 2021-01-29 14:28:53 +00:00
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
Siyamed Sinir
30900cac3f System font check for downloadable font
Adds a new attribute to downloadable font xml
that checks if downloaded font is on the system
already and uses that instead.

Test: added new tests
Test: atest ResourcesTest
Test: atest FontResourcesParserTest

Bug: 178589784
Change-Id: Ib7c32ba3037c534e9ab8c144716d68e46c908a39
2021-01-28 20:05:11 +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
Marvin Ramin
b8f502d77d Make FEATURE_HDMI_CEC TestApi
To allow HdmiControlManager CTS to access the constant.

Bug: 174345748
Test: atest HdmiControlManagerTest
Change-Id: I75913cc240c47bb584271f348ddd8ee1d99e03e5
2021-01-28 14:41:02 +01:00
Hyundo Moon
47b63528c3 Add a new system service: MediaCommunicationService
Bug: 175511943
Test: MediaCommunicationService can run.
      'adb shell service list' shows the service.
Change-Id: I81a1e11d96d1d30a29760507be6fe04592afcf70
Merged-In: I81a1e11d96d1d30a29760507be6fe04592afcf70
2021-01-28 13:07:53 +00:00
Michael Groover
d8bd3028e3 Document Signature equals/hash should not include flags
Some of the methods in PackageParser.SigningDetails rely on the
Signature class not including the flags / capabilities when
computing the hash code or performing equality checks. This commit
adds comments to the Signature class to highlight this and adds
tests to detect if this behavior is changed.

Bug: 176814921
Test: atest SignatureTest
Change-Id: I28c591af559568d498449f1c6cbceb1c292d2ad5
2021-01-27 21:24:09 -08: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
Michael Groover
40447c5ee1 Grant signature permission to requesting app with common signer
Previously signature permissions were only granted to a requesting app
under the following conditions:
- Both apps are signed by the same signer
- The requesting app's current signer is in the lineage of the
  declaring app, and this signer in the declaring app still has the
  permission capability granted
- The declaring app's current signer is in the lineage of the
  requesting app
However these requirements prevent the signing keys from diverging,
meaning all apps must always be signed by the same key (or remain at
a previous key in the lineage); this goes against signing key best
practices. This commit allows a signature permission to be granted
to a requesting app if it has a signing key in its lineage in common
with the declaring app, and the declaring app has still granted the
permission capability to that key.

Fixes: 176814921
Test: atest SigningDetailsTest
Test: atest PkgInstallSignatureVerificationTest
Change-Id: I386b53085fc47e5111fe083c934045f5fb8154f1
2021-01-27 18:01:13 +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