Commit Graph

651310 Commits

Author SHA1 Message Date
Josh Tsuji
de5cc5110e Don't crash trying to unregister a receiver twice.
Fixes: 190597198
Test: atest SystemUITests
Change-Id: I04c8cca24f9823bab5244126052d31d1b3549c5f
2021-07-13 15:08:13 -04:00
Lyn Han
12de672d3d Set views below shelf explicitly invisible to skip hardware rendering
Bug: 191969252
Test: manual logs verified that viewState#applyToView
      invisibles views below shelf
Change-Id: I36e8a4e96d6830c5610649e5987b1e65add593fa
2021-07-13 15:06:18 -04:00
Jeff Sharkey
4025c6e7ae Validate AttributionSource during unparceling.
The Bluetooth stack is just one example of an application that makes
self-calls through public APIs, which makes it very difficult to
unconditionally validate AttributionSource arguments.

(The AttributionSource is correctly defined the first time a remote
caller enters the Bluetooth stack, but we've found many cases where
Bluetooth stack calls back into itself without clearing the Binder
identity, causing validation chaos.)

This change is an attempt at gracefully solving this by performing
validation automatically as part of unparceling an AttributionSource
the first time it enters a process.  This strategy isn't perfect,
since transporting an instance inside a Bundle would risk
unparceling much later, possibly long after the calling UID
information has been discarded.  We're rationalizing that this risk
doesn't exist since AttributionSource was only added a few months
ago, and isn't being used in this way.

We still intend to circle back and provide a better strategy in a
future release for transporting AttributionSource across AIDL which
will handle the nuances of self-calls.

Bug: 188391719
Test: atest BluetoothInstrumentationTests
Change-Id: I10b198cfcd8f361e19d52f86deb7f10f05fec891
2021-07-13 12:34:14 -06:00
TreeHugger Robot
31c35df65a Merge "Remove keyguard state callback onViewDetached." into sc-dev am: d232ab98b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15273145

Change-Id: I3a5021aab88299f34488bcd1c0d2ee62db9d8302
2021-07-13 18:23:59 +00:00
Joshua Baxter
249c602ec7 Merge "docs: fix typo" into sc-dev am: 3035bfacb7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15264710

Change-Id: I7d28354af420b0f104e28c1b5afc461902e1c8af
2021-07-13 18:20:13 +00:00
TreeHugger Robot
d232ab98b3 Merge "Remove keyguard state callback onViewDetached." into sc-dev 2021-07-13 18:19:31 +00:00
Joshua Baxter
3035bfacb7 Merge "docs: fix typo" into sc-dev 2021-07-13 18:06:49 +00:00
Anna Zappone
6c14010528 Merge "Prevent any SecurityExceptions on Uri resolution" into sc-dev am: d1952df3d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15262570

Change-Id: Ie75076ad360e9036c18b3f5bacf7bf3ac93b0899
2021-07-13 18:02:40 +00:00
Anna Zappone
95c1b8e680 Ensure content shows before/after name
RTL handling broke long name handling for LTR. This logic works for both RTL & LTR.

Test: locally
Fixes: 193269905
Change-Id: I2abcfea4849066fe56be7a8d5659809169748e21
2021-07-13 18:46:29 +01:00
Anna Zappone
d1952df3d0 Merge "Prevent any SecurityExceptions on Uri resolution" into sc-dev 2021-07-13 17:46:06 +00:00
Jack Yu
5ec3ce814d [automerger skipped] Merge changes from topics "getApnTypeString", "qns_switched_pref" am: ef140360c3 am: c57a926bbe -s ours
am skip reason: Merged-In Ia79bb9eaa1fc43a2995730da47289274f94d67fe with SHA-1 6930ca1e6d is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763946

Change-Id: Idf633b7ded8338d8660d815ee71e98fd44d8136b
2021-07-13 17:36:14 +00:00
Jack Yu
0d4fb1e2e4 [automerger skipped] Disallow data when QNS switched the preference am: 3a72957b4b am: d773fb8f40 -s ours
am skip reason: Merged-In I1a0c86a978756d5b05851d939e011010f8f1afc2 with SHA-1 50a8fccec7 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763945

Change-Id: I25a3f4a5582f04b076a00ceaab256df057e159f4
2021-07-13 17:36:04 +00:00
TreeHugger Robot
847e452917 Merge "speech: Fix RemoteSpeechReco race condition" into sc-dev am: ede93e7710
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15260390

Change-Id: If410bf60774ef5d9da769df7881686637bc686fb
2021-07-13 17:26:30 +00:00
Jack Yu
c57a926bbe Merge changes from topics "getApnTypeString", "qns_switched_pref" am: ef140360c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763946

Change-Id: If3fd168078210a902f40f568336c7357c28db4b3
2021-07-13 17:21:38 +00:00
Jack Yu
d773fb8f40 Disallow data when QNS switched the preference am: 3a72957b4b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763945

Change-Id: I4443be2e2a5a05aecbc9a17af8e211925696a906
2021-07-13 17:21:36 +00:00
TreeHugger Robot
ede93e7710 Merge "speech: Fix RemoteSpeechReco race condition" into sc-dev 2021-07-13 17:13:28 +00:00
Lee Shombert
fcde814628 Take snapshots of SettingBase subclasses
Bug: 192478088

Snapshot SharedUserSetting and PackageSetting.

Test: atest
 * CtsContentTestCases:IntentFilterTest
 * CtsDynamicMimeHostTestCases
 * CtsRoleTestCases
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:ScanTests
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * FrameworksServicesTests:WatcherTest
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest

Change-Id: I5ccd77bd8a07aa833219c6bab797cdc153c1136f
2021-07-13 10:10:15 -07:00
TreeHugger Robot
66e8100471 Merge "Remove isDataspaceValid" into sc-dev am: 00b9b1190b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15265827

Change-Id: Iec6636ecf58c0b375077c6b4b282edb8cede6caf
2021-07-13 17:09:18 +00:00
Alex Buynytskyy
7a1de6fe81 Key rotation support when updating an app on IncFS.
Bug: 190569284
Fixes: 190569284
Test: have two apks with .idsig; adb install <original apk>; adb install <apk with rotated keys>
Change-Id: I6ff854786aea31c6e9f3f1e33be0a33b4ba67ccb
Merged-In: I6ff854786aea31c6e9f3f1e33be0a33b4ba67ccb
2021-07-13 17:04:35 +00:00
Jack Yu
ef140360c3 Merge changes from topics "getApnTypeString", "qns_switched_pref"
* changes:
  [Telephony] Clean up: remove getApnTypeStringInternal
  Disallow data when QNS switched the preference
2021-07-13 17:04:23 +00:00
Winson
acdbd49870 Remove PMS dropNonSystemPackages
This seems to have been added in error. A filterOnlySystemPackages
wrapper already exists, which performs the same function.

There are packages which are not required to be preinstalled system
apps, and using the non-specific dropNonSystemPackages wrapper would
accidentally strip those packages from the known set.

Bug: 192915574

Test: presubmit

Change-Id: I490c331653a2aac210ec090d1b5a96a7126f9fa4
2021-07-13 10:04:14 -07:00
Josh Tsuji
5094d64542 Reset tooltip preference to fix flaky test.
Fixes: 187725725
Test: run test in studio a few times, it passes instead of failing
Change-Id: I780cc09eb9b13b415f9299ab2e3661261ae2066e
2021-07-13 12:59:27 -04:00
TreeHugger Robot
00b9b1190b Merge "Remove isDataspaceValid" into sc-dev 2021-07-13 16:49:47 +00:00
Peter Kalauskas
fbb58d855d Merge "Fix bug where QS tiles appeared behind keyguard" into sc-dev am: aae8854106
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15263382

Change-Id: I2fe2f2019f29c5d42ff9fec9812fc0be919e0d24
2021-07-13 16:45:33 +00:00
Jordan Demeulenaere
a39e6a274d Prevent SysUI from crashing during Ghost animation
This CL prevents a crash in SysUI when starting a launch animation that
ghosts a View that is not attached to a ViewGroup. We now skip the
animation when that happens.

Bug: 192194319
Test: atest ActivityLaunchAnimatorTest
Test: atest GhostedViewLaunchAnimatorControllerTest
Change-Id: I6f2616776a092307c84d8f64fbbb798eb1bebafb
2021-07-13 18:42:45 +02:00
Peter Kalauskas
aae8854106 Merge "Fix bug where QS tiles appeared behind keyguard" into sc-dev 2021-07-13 16:34:08 +00:00
Anna Zappone
cdc15d7020 Prevent any SecurityExceptions on Uri resolution
By deferring resolution of the Uri to Launcher, we risk a
SecurityException. This is extremely important to avoid as if we the
SecurityException is thrown, we can no longer make any updates to the
widget.

Bug: 192986188
Test: locally with Signal
Change-Id: I5421ff5494b405ab9d48afd678fd72dc570a655b
2021-07-13 17:20:05 +01:00
Jiyong Park
da0ffb8e4f Merge "Implement permission check for virtualizationservice" am: 1ce000ff84 am: 01dfd737f5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763365

Change-Id: I81519001e9e2dae4eef2b38327858281e44d1886
2021-07-13 16:09:29 +00:00
TreeHugger Robot
8250841a19 Merge "Clear binder identity during network logging notification processing" into sc-dev am: 5002d71146
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15272232

Change-Id: I990a12ae60232fa5b005f7805e9494c28a914922
2021-07-13 16:00:34 +00:00
TreeHugger Robot
72f604c5a7 Merge "Always show fp icon in portrait on keyguard" into sc-dev am: fdf2bc979d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15271913

Change-Id: Ic7684100cfdad435ab85df07e081941ca9043dda
2021-07-13 15:59:47 +00:00
Jiyong Park
01dfd737f5 Merge "Implement permission check for virtualizationservice" am: 1ce000ff84
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763365

Change-Id: Ic6af7d43e7abe742180413f3256eb3041c1ee575
2021-07-13 15:52:36 +00:00
TreeHugger Robot
5002d71146 Merge "Clear binder identity during network logging notification processing" into sc-dev 2021-07-13 15:48:19 +00:00
TreeHugger Robot
fdf2bc979d Merge "Always show fp icon in portrait on keyguard" into sc-dev 2021-07-13 15:48:15 +00:00
Josh Tsuji
6ade785d8f Remove keyguard state callback onViewDetached.
Fixes: 193411237
Test: atest SystemUITests
Change-Id: I5ead61776e0cfaa80288ba9d0ea6385cbb77c966
2021-07-13 11:38:58 -04:00
Jiyong Park
1ce000ff84 Merge "Implement permission check for virtualizationservice" 2021-07-13 15:38:51 +00:00
TreeHugger Robot
044fd7e538 Merge "Guard against NPE" into sc-dev am: b5d478b4cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15245692

Change-Id: I754a2a9f3a9d204fcf37e27dca0de8520d91d294
2021-07-13 14:57:06 +00:00
TreeHugger Robot
b5d478b4cc Merge "Guard against NPE" into sc-dev 2021-07-13 14:45:34 +00:00
TreeHugger Robot
6eb557fcfe [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: bb8ed302c8 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15267103

Change-Id: Ifec0ba6b1ccbb62ecc392f81c8fbff88ead56cab
2021-07-13 14:12:25 +00:00
TreeHugger Robot
bb8ed302c8 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-13 14:11:09 +00:00
James O'Leary
5964557eff Merge "Fix WallpaperPicker not being able to assign colors" into sc-dev am: db5a7a4ce0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15224262

Change-Id: Ib0a19974c0412b0ca39a2f4a4035a305af918bf0
2021-07-13 14:10:59 +00:00
TreeHugger Robot
53554aba4b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: c28d1e247c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15267102

Change-Id: I8366879bd1ffb4cb790387c128ee3fd0e2ffa9c4
2021-07-13 14:10:43 +00:00
Matt Pietal
9fb7fe0834 Merge "SIM PIN unlock - Keyguard in invalid state" into sc-dev am: f9be814922
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15260881

Change-Id: Id67642430b6bc869859441b20c00853e92668d07
2021-07-13 14:10:31 +00:00
TreeHugger Robot
894991f12e Merge "Use DockManager instead of BatteryController for Falsing." into sc-dev am: 7bb7211f76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15191523

Change-Id: I617822e5fe5007f6e3ab1e483f0747c835c9c1ec
2021-07-13 14:09:43 +00:00
James O'Leary
db5a7a4ce0 Merge "Fix WallpaperPicker not being able to assign colors" into sc-dev 2021-07-13 14:06:45 +00:00
TreeHugger Robot
c28d1e247c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-13 14:04:29 +00:00
Matt Pietal
f9be814922 Merge "SIM PIN unlock - Keyguard in invalid state" into sc-dev 2021-07-13 14:01:02 +00:00
TreeHugger Robot
7bb7211f76 Merge "Use DockManager instead of BatteryController for Falsing." into sc-dev 2021-07-13 13:59:38 +00:00
Dan Sandler
28f8033d80 Bubbling up some of these great new colors.
Bug: 177962166
Test: adb shell am start -n android/com.android.internal.app.PlatLogoActivity
Change-Id: I92cfe3f9e2294d888dfaa5f30591885804d8302b
2021-07-13 09:52:29 -04:00
Dan Sandler
318c00483c AnalogClock: Allow subclasses to override the "now" instant.
Allows you to use the (deprecated) AnalogClock widget to
display times other than the current system clock time.

While we're at it, update the AnalogClock widget assets to
contemporary vector drawables.

Bug: 177962166
Test: atest AnalogClockTest
Change-Id: I69e9e89b8f42030e910086ee79bb5a447a00bb84
2021-07-13 09:52:12 -04:00
TreeHugger Robot
fd807ee5ed Merge "Separate mute and vibrate icons in status bar" into sc-dev am: 8e741727cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15265319

Change-Id: Ie920ec333204bd90925f873bcbd83038f9dd482b
2021-07-13 13:38:20 +00:00