Commit Graph

10337 Commits

Author SHA1 Message Date
TreeHugger Robot
5bbc115545 Merge "Require .dm to install with .fsv_sig if supported" into sc-dev am: c952ffe7a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13587178

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iece1b7b6e7e0aab36621002264f40465cf391f4e
2021-02-22 18:02:43 +00:00
TreeHugger Robot
c952ffe7a0 Merge "Require .dm to install with .fsv_sig if supported" into sc-dev 2021-02-22 17:46:27 +00:00
Gavin Corkery
1704279f24 Merge "Add REBOOT_READY broadcast" into sc-dev am: 515af7889f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13454847

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I56f602bb71c99dafb1572fc2da387834939cf174
2021-02-20 11:36:46 +00:00
Gavin Corkery
515af7889f Merge "Add REBOOT_READY broadcast" into sc-dev 2021-02-20 10:44:38 +00:00
Nadav Bar
2e8c7896bf Merge "Add a system TextToSpeech implementation that initiates the connection through the system server." into sc-dev am: e8d124dc20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13612148

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id3a124df5b058cedb4c22e877fc3834b1f560cb3
2021-02-20 06:31:39 +00:00
Nadav Bar
e8d124dc20 Merge "Add a system TextToSpeech implementation that initiates the connection through the system server." into sc-dev 2021-02-20 06:21:18 +00:00
Guojing Yuan
fadb97ccff Merge "Provide an example for FLAG_PERMISSION_SELECTED_LOCATION_ACCURACY" into sc-dev am: bade294311
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13562598

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1767dcb165c07afd37c19f81f0aee52de709bda
2021-02-19 19:34:00 +00:00
Guojing Yuan
bade294311 Merge "Provide an example for FLAG_PERMISSION_SELECTED_LOCATION_ACCURACY" into sc-dev 2021-02-19 19:10:25 +00:00
Chavi Weingarten
3ebe6a968b Merge "Added public APIs to generate and validate a DisplayHash." into sc-dev am: c14465c2bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13429136

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iecbd79812c4d905035dc68bde44a4416a02a9022
2021-02-19 02:26:19 +00:00
Chavi Weingarten
c14465c2bb Merge "Added public APIs to generate and validate a DisplayHash." into sc-dev 2021-02-19 01:47:14 +00:00
Victor Hsieh
675088a491 Require .dm to install with .fsv_sig if supported
Previously, .fsv_sig for .dm is optional, and is only required if the
base apk has it. This change makes it required regardless of (base) apk,
when a system property is set to "true".

fs-verity is required for devices first launced with R (can also be opted
in). On older devices, .dm is still allowed to install without .fsv_sig.

The change contains 3 conceptual changes:
 - mVerityFound -> mVerityFoundForApks: since it now focuses on only
   APKs.
 - Bail out if .dm does not come with .fsv_sig (on supported devices).
 - Update tests

Bug: 180414192
Test: CtsAppSecurityHostTestCases:android.appsecurity.cts.ApkVerityInstallTest
Test: CtsDexMetadataHostTestCases
Test: ApkVerityTest
Test: Also run the above on a device without fs-verity support, and with
      the requirement disable by system property.

Change-Id: I1c93671b9b433a73b88ae23205eec2a57a147ae1
2021-02-18 12:25:55 -08:00
Gavin Corkery
a6a206f3ac Add REBOOT_READY broadcast
Adds a new REBOOT_READY intent
which may be sent from the system server,
indicating the device's reboot-readiness state.

This broadcast will be sent with a boolean extra,
which will provide a positive or negative signal
of whether the device is ready to reboot. This
broadcast may only be received if the REBOOT
permission is held.

Test: atest CtsRebootReadinessTestCases
Bug: 161353402

Change-Id: I70fa1c35c844189af86c519749144732ceceaaac
2021-02-18 19:37:16 +00:00
Alex Agranovich
50c987fbb8 Add a system TextToSpeech implementation that initiates the connection through the system server.
This change includes the new System Service that allows the supervised binding to the TextToSpeech service provider.
    It proxies the binding process from the client instead of the direct client -> texttospeech connection.

Bug: 178112052
Test: atest CtsSpeechTestCases
Test: forest apct/device_boot_health_check
Change-Id: I0709e71460fa01ab025c92753a20bce38f562845
2021-02-18 14:31:36 +02:00
Greg Kaiser
5256257fb5 Merge "Revert "Add a system TextToSpeech implementation that initiates ..."" into sc-dev am: a2584ca155
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13608827

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I085f8e1c468348a53893e9628b7f8bc05c416a03
2021-02-18 06:02:56 +00:00
Greg Kaiser
a2584ca155 Merge "Revert "Add a system TextToSpeech implementation that initiates ..."" into sc-dev 2021-02-18 05:39:24 +00:00
Greg Kaiser
c09430c189 Revert "Add a system TextToSpeech implementation that initiates ..."
Revert "Add CTS tests for TextToSpeech connection related functi..."

Revert submission 13547465-ttsproxy

Reason for revert: Setup wizard crashes due to "Service not registered: android.speech.tts.TextToSpeech$SystemConnection"
Reverted Changes:
Id4059e460:Add CTS tests for TextToSpeech connection related ...
Ie17800bae:Add a system TextToSpeech implementation that init...

Bug: 180519958
Change-Id: Ie43c485bd4d0f76f8bb0a1dc77d6d85d46ff8377
Test: Locally reverted this change and no longer see the exception in SUW we saw before.
2021-02-18 00:29:01 +00:00
Shawn Willden
94b7bee4a6 Merge "Add support for app-generated attestation keys." am: 50a66e39cd am: 2da3a280d2 am: bbdb4d9ee5 am: c418d4ef15
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584474

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I07fd8d02d2445ee25a74bcf151460fcc72ba242e
2021-02-17 21:05:23 +00:00
Shawn Willden
c418d4ef15 Merge "Add support for app-generated attestation keys." am: 50a66e39cd am: 2da3a280d2 am: bbdb4d9ee5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584474

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0e4b2bcfa54953e37452a7533a89b49586596502
2021-02-17 20:49:09 +00:00
TreeHugger Robot
b5971aee5d Merge "Use @InstallScenario instead of @InstallReason" into sc-dev am: e89b53ff78
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13603605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0bdd90a8476e26bad7fda9755795849534eb37dd
2021-02-17 20:44:02 +00:00
TreeHugger Robot
e89b53ff78 Merge "Use @InstallScenario instead of @InstallReason" into sc-dev 2021-02-17 20:26:23 +00:00
Treehugger Robot
f4a6722e06 Merge "Expose a setter for install scenarios" am: 29ec0b24c7 am: 34312d2173 am: 04422ecae9 am: eb03672631
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587776

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie7d6afc073eebb5aae822b8b154683beae62e22a
2021-02-17 20:15:21 +00:00
Shawn Willden
bbdb4d9ee5 Merge "Add support for app-generated attestation keys." am: 50a66e39cd am: 2da3a280d2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1584474

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad2f426ed43fdb9b4e62c81902d9f7ff8e936535
2021-02-17 20:14:54 +00:00
Treehugger Robot
eb03672631 Merge "Expose a setter for install scenarios" am: 29ec0b24c7 am: 34312d2173 am: 04422ecae9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587776

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1ef7bdd1b1b1c3153613740e64dab458697f84fd
2021-02-17 19:48:02 +00:00
Shawn Willden
50a66e39cd Merge "Add support for app-generated attestation keys." 2021-02-17 19:12:20 +00:00
Treehugger Robot
04422ecae9 Merge "Expose a setter for install scenarios" am: 29ec0b24c7 am: 34312d2173
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587776

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I72aaba3a7214c8cb3a2d25293f175ce27e0da50e
2021-02-17 18:53:43 +00:00
Todd Kennedy
6fc18b4f94 Use @InstallScenario instead of @InstallReason
Test: builds
Bug: none
Change-Id: Ifb753f89eab42c6afc6b4d87e7291f45ccdb8d6f
2021-02-17 10:17:40 -08:00
chaviw
19de7eab9b Added public APIs to generate and validate a DisplayHash.
Added public APIs to call into WindowManagerService, which will then
call into DisplayHasherService in mainline. Also, renamed to DisplayHash

Test: atest DisplayHashManagerTest
Bug: 155825630
Change-Id: I1e10a773fba9471dff41894389e0a9508446d3cc
2021-02-17 08:24:54 -08:00
Flavio Fiszman
15542a30ff Merge "Cache shortcuts on People Tile creation" into sc-dev am: 44a79fa3f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13444307

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib966d564fa4ba57e8e3ee5da1f6c8e0b72524b4e
2021-02-17 13:56:48 +00:00
Shawn Willden
bffded442a Add support for app-generated attestation keys.
This allows apps to request that AndroidKeyStore generate attestation
keys that can be used to sign attestations of other keys that the app
generates or imports.

Bug: 163606833
Test: atest CtsKeystoreTests
Change-Id: I943a6922271cbe909cb3a9d67021663b5646aa70
2021-02-17 06:46:13 -07:00
Flavio Fiszman
44a79fa3f3 Merge "Cache shortcuts on People Tile creation" into sc-dev 2021-02-17 13:26:44 +00:00
Alex Agranovich
4991bca626 Merge " Add a system TextToSpeech implementation that initiates the connection through the system server." into sc-dev am: 7c064eb586
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13462271

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic61ce660260cdd243c5825bd9ad90aaefa03d735
2021-02-17 09:38:33 +00:00
Alex Agranovich
7c064eb586 Merge " Add a system TextToSpeech implementation that initiates the connection through the system server." into sc-dev 2021-02-17 09:16:48 +00:00
Gavin Corkery
0d15c26328 Merge "Initialize RebootReadinessManagerService" into sc-dev am: 37dbb4e5d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13454846

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I80233896f7830145c7757628163b85c46a4680bf
2021-02-17 08:02:13 +00:00
Gavin Corkery
37dbb4e5d5 Merge "Initialize RebootReadinessManagerService" into sc-dev 2021-02-17 07:43:18 +00:00
Abhijeet Kaur
28ed0b9670 Merge "Add new API to check a collection of URIs at once" into sc-dev am: 6f6bdfd287
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13554287

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib7c25fff2536c6a1fe618f239b910055d113e2e8
2021-02-16 20:13:03 +00:00
Abhijeet Kaur
6f6bdfd287 Merge "Add new API to check a collection of URIs at once" into sc-dev 2021-02-16 19:43:50 +00:00
Winson Chiu
a8d2250d20 Merge changes I5e258e23,I72323430 into sc-dev am: 766326b69a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13530401

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idd310266c2c2ce6eb6cfe13fcb115166aa74a9a0
2021-02-16 19:38:25 +00:00
TreeHugger Robot
5614d1b6ba Merge "pm: Require manifest.json for .dm (dex-metadata) files." into sc-dev am: 9c28f9708a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13475370

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I125804f50779bb38da1ee7d9b6b9129870a10901
2021-02-16 19:35:37 +00:00
Winson Chiu
766326b69a Merge changes I5e258e23,I72323430 into sc-dev
* changes:
  Update isLinkHandlingAllowed to mean all or nothing
  Update intent resolution logic with new rules
2021-02-16 19:12:22 +00:00
TreeHugger Robot
9c28f9708a Merge "pm: Require manifest.json for .dm (dex-metadata) files." into sc-dev 2021-02-16 18:59:42 +00:00
Chris Wailes
8c2a706895 Expose a setter for install scenarios
This CL adds a setter for the install scenario data of the SessionParams
object in PackageInstaller.

Test: atest InstallSessionParamsUnitTest
Bug: 179841918
Change-Id: I9260d58285a5d0a051d2bdafa6ba6b23a739de01
2021-02-16 09:01:24 -08:00
Gavin Corkery
1d94eb9ea5 Initialize RebootReadinessManagerService
Initialize reboot readiness service from the
system server. This service is started
by calling into service-scheduling.jar
directly.

Test: Manual, add logs to check that service
      is correctly started.
Bug: 161353402

Change-Id: I06d55ee6ee5c3dde7524cf508324fd408fb81d22
2021-02-15 21:30:23 +00:00
Abhijeet Kaur
a0d5569c89 Add new API to check a collection of URIs at once
Optimizes the workflow to check multiple URI permissions, which
currently need to be checked one URI at a time.

New APIs are logically similar to existing APIs: checkUriPermission,
checkCallingUriPermission and checkCallingOrSelfUriPermission. The
new APIs would take input of a collection of URIs instead of just one
URI.

Bug: 179362563
Test: atest ContextTest.java
Test: atest ExternalStorageHostTest#testMediaEscalation_RequestWriteFilePathSupport

Change-Id: I9cd6278f9b865c0532afc337b089771df6aea8c5
2021-02-15 18:23:53 +00:00
Vadim Caen
46d5e4bd17 Merge changes from topics "splash_api_sc_a2", "splash_api_sc_a3", "splash_api_sc_a4", "splash_api_sc_a5", "splash_api_sc_a6", "splash_exit_sc_a1" into sc-dev am: 24764efd19
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13482225

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia982bff920c42e48d97dbd628fe13a81cc04e765
2021-02-15 17:36:58 +00:00
Vadim Caen
24764efd19 Merge changes from topics "splash_api_sc_a2", "splash_api_sc_a3", "splash_api_sc_a4", "splash_api_sc_a5", "splash_api_sc_a6", "splash_exit_sc_a1" into sc-dev
* changes:
  Add two more Api for SplashScreenView(7/N)
  Support persist night mode for application(6/N)
  Allow ShortcutInfo to specify a theme for splash screen.(5/N)
  Add API for show branding image on splash screen.(4/N)
  Provide new APIs for customize splash screen window.(3/N)
  Customizable exit splash screen animation.(2/N)
2021-02-15 17:22:01 +00:00
Oli Lan
2870ee8fe2 Merge "Add ClipDescription method to determine if the clip is styled text." into sc-dev am: 0e588cc322
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13496225

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I73fd6ce751822ba5e706bbdd1610dc6e8dc39fbc
2021-02-15 16:33:27 +00:00
Oli Lan
0e588cc322 Merge "Add ClipDescription method to determine if the clip is styled text." into sc-dev 2021-02-15 16:14:15 +00:00
wilsonshih
cf05d92650 Allow ShortcutInfo to specify a theme for splash screen.(5/N)
Provides new APIs so that shortcuts can preset the theme of the splash
screen window.
- Static way: android:splashScreenTheme
  Preset the splash screen theme from xml.
- Dynamic way: ShortcutInfo.Builder#setStartingTheme
  Preset the splash screen theme when construct the ShortcutInfo
  programmatically.

Bug: 73289295
Test: build/flash
Test: atest AppWindowTokenTests ActivityRecordTests
Change-Id: Ie5e73f9b22fea22659e496c12198c942f4bc93cd
2021-02-15 15:27:03 +01:00
Flavio Fiszman
2cec2e96ba Cache shortcuts on People Tile creation
Change-Id: Ie85dd4bf48657ab080caed6fbcbf5982a5c9e6da
Test: manual
Bug: 177348950
2021-02-15 12:32:11 +00:00
Winson
ebf59827ee Update isLinkHandlingAllowed to mean all or nothing
This toggle is actually used to toggle whether or not the app can open
app links at all, not just verified app links.

Updates the persistence/data classes to be in line with the new default
behavior.

Also makes it so that unverified apps cannot be enabled if another
approved package already exists.

Bug: 178525735

Test: atest DomainVerificationPersistenceTest

Change-Id: I5e258e230e6d6b5de79aab32838496f2126f8451
2021-02-12 15:09:33 -08:00