Commit Graph

731786 Commits

Author SHA1 Message Date
Martijn Coenen
e57620446b Have getVolumeList() take a userId instead of a UID.
getVolumeList() previously accepted a uid and a packagename. This
approach has a few issues:
1) The uid wasn't actually checked in the implementation to match the
calling UID, nor was the package name checked against the UID in all
cases.
2) The implementation assumed that the UID also specificies the userId
that we want to get the volumes for. This was historically true, but
with the new app cloning implementation, MediaProvider running in user 0
might ask for volumes in the clone user.

To fix this, explicitly pass in the userId that we're requesting volumes
for, and verify that the calling UID and the passed in package name
match.

Bug: 206624903
Test: atest packages/providers/MediaProvider
Change-Id: Idffbb4ae7740c1b9725af0974948dc55bf1f1fde
2021-11-17 13:59:54 +00:00
Nataniel Borges
eeb9d427ce Merge "Disable tests not compatible with current shell transitions" 2021-11-17 13:59:35 +00:00
Pablo Gamito
b2182915f0 Merge "Support rounded corners animations in shell" 2021-11-17 13:44:49 +00:00
Prabir Pradhan
234a821860 Merge "Change PointerController to display space" 2021-11-17 12:58:02 +00:00
Nicolas Geoffray
827a16ba66 Merge "Remove obsolete files on preloaded classes." am: 637477eb87 am: a54de89cf0 am: 02b0ec4681 am: e833855ad5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885635

Change-Id: I7ed4099a60a32b98ad388e0c2c7f256d8414a517
2021-11-17 11:49:13 +00:00
Nicolas Geoffray
e833855ad5 Merge "Remove obsolete files on preloaded classes." am: 637477eb87 am: a54de89cf0 am: 02b0ec4681
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885635

Change-Id: I667eb3343e8e60ce2c1e030cadb0058e57ded796
2021-11-17 11:31:29 +00:00
Nataniel Borges
7fdad8f97a Disable tests not compatible with current shell transitions
Not all tests are working when wm shell is enabled. However, it is important to put the ones that are working in presubmit/postsubmit to prevent regressions

Test: atest FlickerTests WMShellFlickerTests with shell transitions on
Bug: 206753786
Bug: 206669574
Bug: 206086894
Bug: 204574221
Bug: 204570898
Bug: 206085788
Bug: 206090480
Bug: 206094140
Bug: 206101151

Change-Id: I3e7f6c8c044221c403a0a4030eb7806f2c8b63a5
2021-11-17 12:23:45 +01:00
Nicolas Geoffray
02b0ec4681 Merge "Remove obsolete files on preloaded classes." am: 637477eb87 am: a54de89cf0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885635

Change-Id: I7a2336951f7e65216fc218e2df8bde8e87983d87
2021-11-17 11:19:44 +00:00
Pablo Gamito
8181f28f1b Merge "Migrate task transition with background color to shell" 2021-11-17 11:19:04 +00:00
Pratyush More
7a937c356e Merge "Add LocaleManager host-side CTS suite to TEST_MAPPING." 2021-11-17 11:11:08 +00:00
Nicolas Geoffray
a54de89cf0 Merge "Remove obsolete files on preloaded classes." am: 637477eb87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885635

Change-Id: Ie1763534a12744cab0afc5fb7f9f48a73251958e
2021-11-17 10:58:40 +00:00
Bernardo Rufino
f5956d39ae Merge "Deprecate unsafe parcel APIs" am: 9f8b914c9f am: 87b6f365d3 am: 04f4d7aa21 am: df232c0faf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1890540

Change-Id: Ied54481c20c266512190fb0a438b5756c87b7687
2021-11-17 10:57:04 +00:00
Bernardo Rufino
df232c0faf Merge "Deprecate unsafe parcel APIs" am: 9f8b914c9f am: 87b6f365d3 am: 04f4d7aa21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1890540

Change-Id: I1cedae136129697fcf2df852034eb6c422e6316a
2021-11-17 10:37:31 +00:00
Nicolas Geoffray
637477eb87 Merge "Remove obsolete files on preloaded classes." 2021-11-17 10:36:58 +00:00
TreeHugger Robot
2a29c3f422 Merge "Fix install permission revocation upon source package uninstallation." 2021-11-17 10:29:48 +00:00
Bernardo Rufino
04f4d7aa21 Merge "Deprecate unsafe parcel APIs" am: 9f8b914c9f am: 87b6f365d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1890540

Change-Id: If483ab5bd836e3700d67bc7ba6701f5e35a58b57
2021-11-17 10:20:56 +00:00
Bernardo Rufino
87b6f365d3 Merge "Deprecate unsafe parcel APIs" am: 9f8b914c9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1890540

Change-Id: I27a79a0f04d5cf99d9b8efb56fcc32a6dd43c108
2021-11-17 10:09:27 +00:00
Weng Su
80014dbe89 Merge "[Provider Model] Show "See All" when only connected WiFi appears" into sc-v2-dev am: cdb38ec55d am: eedf3af9c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16262238

Change-Id: I6e552d37dff8cd75bdb1fdd5debff4f5846a0b76
2021-11-17 10:02:00 +00:00
Bernardo Rufino
9f8b914c9f Merge "Deprecate unsafe parcel APIs" 2021-11-17 09:43:11 +00:00
Weng Su
eedf3af9c1 Merge "[Provider Model] Show "See All" when only connected WiFi appears" into sc-v2-dev am: cdb38ec55d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16262238

Change-Id: I02880bd3c155b34b58ddce6d1922e176c46dad28
2021-11-17 09:36:34 +00:00
Weng Su
cdb38ec55d Merge "[Provider Model] Show "See All" when only connected WiFi appears" into sc-v2-dev 2021-11-17 09:22:31 +00:00
Kriti Dang
e085620798 Merge "Fetch display metrics" 2021-11-17 09:15:51 +00:00
Kriti Dang
2063823739 Merge "Fetch surround sound metrics" 2021-11-17 09:15:27 +00:00
Nathalie Le Clair
ab03253dc2 Merge "Turn on TV when pressing power or wake key during boot" 2021-11-17 08:26:29 +00:00
Hui Wang
97c0d42172 Merge changes from topic "cbr-roaming-support"
* changes:
  [automerge] Apply new settings widget lib for cbr roaming feature support 2p: d5d275c90c
  Apply new settings widget lib for cbr roaming feature support
2021-11-17 07:20:19 +00:00
Diego Vela
b139877ad4 Merge "Ignore folding feature when it is not on the active display." into sc-v2-dev am: 3a323caf29 am: 2f37431c6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16196230

Change-Id: I183e3b6b7ed1e323ae8cb6c148e7336c9875ca05
2021-11-17 06:26:02 +00:00
Automerger Merge Worker
d9581fb66e Merge "Merge "Add ServiceManager.registerForNotifications" am: ce80de5db0 am: 45ddf12cbc am: 3b546f86e0 am: 5c940e62c3" 2021-11-17 06:25:39 +00:00
Yifan Hong
e0d06afbe5 Merge "Add ServiceManager.registerForNotifications" am: ce80de5db0 am: 45ddf12cbc am: 3b546f86e0 am: 5c940e62c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883550

Change-Id: I873e0e99b6671858cdbc4ed85312f77fd2bbe077
2021-11-17 06:24:57 +00:00
JW Wang
074b561a3d Merge "Merge cleanStageDir() and destroyInternal() (1/n)" 2021-11-17 06:24:53 +00:00
Diego Vela
2f37431c6a Merge "Ignore folding feature when it is not on the active display." into sc-v2-dev am: 3a323caf29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16196230

Change-Id: Idf6b6b5b3ed8621e8799191eb671d0c6e1c79ffc
2021-11-17 06:13:16 +00:00
Yifan Hong
5c940e62c3 Merge "Add ServiceManager.registerForNotifications" am: ce80de5db0 am: 45ddf12cbc am: 3b546f86e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883550

Change-Id: Ic5346dff7ffdb0f2d0d8e911cb931db167c7a2b0
2021-11-17 06:12:15 +00:00
Diego Vela
3a323caf29 Merge "Ignore folding feature when it is not on the active display." into sc-v2-dev 2021-11-17 06:00:31 +00:00
Yifan Hong
3b546f86e0 Merge "Add ServiceManager.registerForNotifications" am: ce80de5db0 am: 45ddf12cbc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883550

Change-Id: I8f7746e16b1e60fbc29a93dae3046b05f00c212d
2021-11-17 05:55:32 +00:00
Yifan Hong
45ddf12cbc Merge "Add ServiceManager.registerForNotifications" am: ce80de5db0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883550

Change-Id: I65215f414aced825be29e036c378057d9c861138
2021-11-17 05:23:59 +00:00
Yifan Hong
ce80de5db0 Merge "Add ServiceManager.registerForNotifications" 2021-11-17 05:02:35 +00:00
Milton Wu
f5c3a290f6 Merge "Impl CUJ_NOTIFICATION_SHADE_QS_SCROLL_SWIPE" 2021-11-17 04:05:47 +00:00
Adam Bookatz
68fbeda8f2 Merge "Don't show corp badge for supervised users" 2021-11-17 03:47:58 +00:00
Chris Li
89a797ab00 Merge "Set window crop for TaskFragment open/close animation" into sc-v2-dev am: ddd87bf8d9 am: 9b017b058f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16239964

Change-Id: Iff2eba434725220615564657da22ca22df0e673d
2021-11-17 03:46:57 +00:00
Chris Li
9b017b058f Merge "Set window crop for TaskFragment open/close animation" into sc-v2-dev am: ddd87bf8d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16239964

Change-Id: Iad7ac0667b9f8593c5dfb431ddf3ebd97b1b1ee2
2021-11-17 03:30:36 +00:00
TreeHugger Robot
2cb41b6e3c [automerger skipped] Merge "[RESTRICT AUTOMERGE] Make MultiClient IMMS PendingIntent IMMUTABLE" into sc-v2-dev am: 59f1ee6a36 am: 305274a6b0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I45a64624aacc110e8c997827e7c99b3d18964f73
2021-11-17 03:11:00 +00:00
Wilson Wu
b2fad467ed [automerger skipped] [RESTRICT AUTOMERGE] Make MultiClient IMMS PendingIntent IMMUTABLE am: 60b062f7b8 am: 7bb86a69e7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I48e34378a14425561edc9b3fe9b74fa26cb8c2f8
2021-11-17 03:10:37 +00:00
Chris Li
ddd87bf8d9 Merge "Set window crop for TaskFragment open/close animation" into sc-v2-dev 2021-11-17 03:09:36 +00:00
TreeHugger Robot
305274a6b0 Merge "[RESTRICT AUTOMERGE] Make MultiClient IMMS PendingIntent IMMUTABLE" into sc-v2-dev am: 59f1ee6a36
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16170294

Change-Id: Ida87572c8e7f90e84528d066e97c47f802c84da9
2021-11-17 02:39:10 +00:00
Wilson Wu
7bb86a69e7 [RESTRICT AUTOMERGE] Make MultiClient IMMS PendingIntent IMMUTABLE am: 60b062f7b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16170294

Change-Id: I774620c4e0c7dc59f4bf5ff542c4e980073c3843
2021-11-17 02:38:34 +00:00
TreeHugger Robot
59f1ee6a36 Merge "[RESTRICT AUTOMERGE] Make MultiClient IMMS PendingIntent IMMUTABLE" into sc-v2-dev 2021-11-17 02:22:22 +00:00
Ching-Sung Li
50291a8fab Fix specified wallpaper color option missing after reboot am: 94568f1e74 am: 75448f6a3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16132041

Change-Id: I0fd73dab606dea7ed231329caa75f30a3c4eec64
2021-11-17 02:04:09 +00:00
Gary Jian
2b333b992b Merge "Make KEY_VONR_SETTING_VISIBILITY_BOOL default to true" into sc-v2-dev am: 02183c88aa am: 823a1964d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16253973

Change-Id: Ic0f753719f60c1ef863b4751ca98b9db3429b9db
2021-11-17 02:03:20 +00:00
Ching-Sung Li
75448f6a3e Fix specified wallpaper color option missing after reboot am: 94568f1e74
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16132041

Change-Id: I6ad7f6b694a0a1a695699db945cdfe28c8ecdea8
2021-11-17 01:46:46 +00:00
Gary Jian
823a1964d7 Merge "Make KEY_VONR_SETTING_VISIBILITY_BOOL default to true" into sc-v2-dev am: 02183c88aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16253973

Change-Id: I706ed856f6ad541e62e80d744405ecacc10bf244
2021-11-17 01:46:17 +00:00
Ching-Sung Li
94568f1e74 Fix specified wallpaper color option missing after reboot
Not only check latest wallpaper type (FLAG_SYSTEM, FLAG_LOCK) but also
check if the wallpaper color is specified to determine if we reset the
theme overlay setting.

Bug: 198449419
Test: atest ThemeOverlayControllerTest
Change-Id: Ic10c10c6fbccee0f330c67ae8b9bacb947c5e035
2021-11-17 01:41:04 +00:00