Commit Graph

10307 Commits

Author SHA1 Message Date
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
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
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
Michael Groover
5b7e4c45bb Merge "Include knownCerts in Parcels for PermissionInfo and ParsedPermission" into sc-dev am: 87d49d2f27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13551675

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia377168172cc7d3f325b15bd47e4c417f41f5004
2021-02-12 17:39:19 +00:00
Michael Groover
87d49d2f27 Merge "Include knownCerts in Parcels for PermissionInfo and ParsedPermission" into sc-dev 2021-02-12 17:31:45 +00:00
TreeHugger Robot
bfcb998d25 Merge "Add a new feature to store IncFs version." into sc-dev am: 6516885e88
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13556030

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1845fa51a1fc8d61ae70f65306090b46b70a585d
2021-02-12 16:50:15 +00:00
TreeHugger Robot
6516885e88 Merge "Add a new feature to store IncFs version." into sc-dev 2021-02-12 16:37:01 +00:00
Michael Groover
7c001ed2f3 Include knownCerts in Parcels for PermissionInfo and ParsedPermission
Android 12 adds support for a new knownSigner permission protection
flag that allows one or more trusted signing certificates to be
specified with the permission declaration; a requesting app signed
by any of these certificates will be granted the permission. This
commits adds the new knownCerts Set to the Parcels for
PermissionInfo and ParsedPermission instances.

Bug: 172970984
Test: atest PkgInstallSignatureVerificationTest
Test: atest PermissionInfoTest
Change-Id: I07e415c0d3df6fe352ec5b04a29d986a2647fa19
2021-02-11 19:04:28 -08:00
Alex Buynytskyy
50bc17cdaa Add a new feature to store IncFs version.
And deprecating the old feature which didn't have versioning support.

V2 means that the new features are either required if the device
was shipped with S, or available if device updated kernel to S.

Bug: 180010901
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: If037f0eb23260f354b0929ff7afaf1af9627e5fa
2021-02-11 19:01:00 -08:00
Philip P. Moltmann
5cd956696f Merge "Remove me from OWNERS files" am: 25ee5a7fb7 am: bf8de269cb am: 39198ddd84 am: 8d6a0cb6af
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573324

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id3f7c476394e344fc4a21515d3fc03c17e746af4
2021-02-11 23:44:04 +00:00
Philip P. Moltmann
8d6a0cb6af Merge "Remove me from OWNERS files" am: 25ee5a7fb7 am: bf8de269cb am: 39198ddd84
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573324

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I429557a8537fb6417fcb9539978964ade75c8dee
2021-02-11 23:15:42 +00:00
Philip P. Moltmann
39198ddd84 Merge "Remove me from OWNERS files" am: 25ee5a7fb7 am: bf8de269cb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573324

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibe2c5fd92070b1aebdc46755c8667b3ed22348ab
2021-02-11 22:57:48 +00:00
Philip P. Moltmann
25ee5a7fb7 Merge "Remove me from OWNERS files" 2021-02-11 22:29:07 +00:00
Philip P. Moltmann
a8eb3d3e69 Remove me from OWNERS files
Test: n/a
Change-Id: I6113011e6ab0997285d5b7a86303fc60a3b98a2b
Exempt-From-Owner-Approval: Previously approved
2021-02-11 22:28:43 +00:00
Winson
68c83e6346 Parcel queriesProviders in ParsingPackageImpl am: 985d71551d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13554511

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I346dbe05f1319f24af7b8fd36ebc26eee1e379bc
2021-02-11 19:42:12 +00:00
Winson
985d71551d 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
(cherry picked from commit 00f69942be)
2021-02-11 16:57:08 +00:00
TreeHugger Robot
f07f50aa00 Merge "Fix screen size with compatibility override scale" into sc-dev am: 40ad781251
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13544385

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7bf0d4eb554a9d40c2415c17adb112b05abec349
2021-02-11 16:51:15 +00:00
TreeHugger Robot
40ad781251 Merge "Fix screen size with compatibility override scale" into sc-dev 2021-02-11 16:39:15 +00:00
Kholoud Mohamed
dec632dc1d Merge "Expose PM#setKeepUninstalledPackages as TestAPI" into sc-dev am: bf3934e0af
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13518116

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic438e436b3cf880155fabd113d39a037ae11f8d4
2021-02-11 13:58:59 +00:00
TreeHugger Robot
bf732c6a2f Merge "Introduce SystemVibratorManager" into sc-dev am: ba4fa60b35
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13417831

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia7a90cc6f795169a1a84907b8374e83c827f565c
2021-02-11 13:58:15 +00:00
Kholoud Mohamed
bf3934e0af Merge "Expose PM#setKeepUninstalledPackages as TestAPI" into sc-dev 2021-02-11 13:56:46 +00:00
TreeHugger Robot
ba4fa60b35 Merge "Introduce SystemVibratorManager" into sc-dev 2021-02-11 13:12:18 +00:00
Daulet Zhanguzin
be67bbad65 Use public android.system.Int64Ref instead of Int32Ref which is hidden (CorePlatformApi) type of am: 3f22cb1106 am: 612b33fa9a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1582887

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id8fbbbc5f4f25998fb2ae8c42c5e0392c18f9510
2021-02-11 13:06:03 +00:00
TreeHugger Robot
9038560d26 Merge "DataLoader lifecycle." into sc-dev am: 8b8c4301ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13509737

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib72de1661a1d29a5798a708e2b64c67a3e658ca2
2021-02-11 11:07:04 +00:00
Lais Andrade
55a0aebe7f Introduce SystemVibratorManager
Add default system implementation of vibrator manager service that uses
IVibratorManagerService to access the device vibrators.

Change implementation of SystemVibrator to use VibratorManagerService
and delete local service VibratorService.

Introduce missing public APIs for VibratorManager and Vibrator.getId.

Bug: 167946816
Test: VibratorManagerServiceTest, VibratorTest, VibrationEffectTest
Change-Id: I55cdeb72c7ca39ccf0c7b2fda60b16de1031801e
2021-02-11 09:26:21 +00:00
Alex Buynytskyy
b19ee3ebd8 DataLoader lifecycle.
- restarting DataLoaders for not fully downloaded mounts,
- exponential backoff retry on DataLoader restart.

Bug: 173223115
Bug: 160634487
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I5a93fd515ef0fec09452ce7bb4cd79fbd283d45f
2021-02-11 08:47:27 +00:00
TreeHugger Robot
c0f1dd8710 Merge "Add support for knownSigner permission protection flag" into sc-dev am: 08ca0311b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13504004

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I315bdf457c8da8648f085e148c72e0e720c3d3b8
2021-02-11 01:58:10 +00:00
Mady Mellor
713fa317c7 Merge "Bubble API: intent extra for bubbled activities" into sc-dev am: b91377962d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13418961

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I633dc748615a47855419c9421fd611462afd8e85
2021-02-11 01:56:26 +00:00
TreeHugger Robot
08ca0311b5 Merge "Add support for knownSigner permission protection flag" into sc-dev 2021-02-11 01:48:45 +00:00
Mady Mellor
b91377962d Merge "Bubble API: intent extra for bubbled activities" into sc-dev 2021-02-11 00:35:56 +00:00
Michael Groover
27eef5cfcd Add support for knownSigner permission protection flag
This commit adds support for a new permission protection flag that
allows a permission declaration to also include an array resource of
trusted signing certificate digests. A permission declared with this
new knownSigner permission flag will be granted to a requesting app
if that app's current signer, or any of the previous signers in its
lineage, are in the declared trusted signing certificate set.

Bug: 172970984
Test: atest SigningDetailsTest
Test: atest PkgInstallSignatureVerificationTest
Change-Id: I54ff2ac720c3a1828d0606426197f7f0e0d0d4b5
2021-02-10 14:49:17 -08:00
Roland Levillain
a7f6e5ea40 Merge changes from topic "cherrypick-android_util-a0ae5zk4cb" into sc-dev
* changes:
  [Mainline] android.system package APIs migration
  Use public android.system.Int64Ref instead of Int32Ref which is hidden (CorePlatformApi) type of libcore
2021-02-10 18:23:48 +00:00