Commit Graph

497253 Commits

Author SHA1 Message Date
Dave Mankoff
bf88e9faf1 Pass interaction type to FalsingManager.isFalse
This ensures that the falsing manager always is testing against the
correct interaction type when it is asked. Prior to this change, we
could end up in states where a user was swiping down (opening the
quick settings) but the falsing manager believed the user was trying
to unlock the phone.

Fixes: 160967364
Test: atest SystemUITests && manual
Change-Id: I176f54a768622dec3e758a7f01ed8aec26223648
Merged-In: I176f54a768622dec3e758a7f01ed8aec26223648
2021-01-11 13:24:30 -05:00
Lais Andrade
557838f550 Check mode/boost index before accessing cached support value
Bug: 174243830
Test: manual
Change-Id: I2f81bcd57181791fa95d35ad52e6af2d7d9c8dcf
Merged-In: If305a4b694a9d6fcc27da8279f1f53f9fd9cb685
Merged-In: I345d9ff828021da35556f2d51da512840dda8026
2021-01-11 14:51:30 +00:00
TreeHugger Robot
b26c104b45 Merge "Ensure OK/Cancel buttons always shown" into rvc-qpr-dev 2021-01-11 10:06:22 +00:00
Todd Kennedy
d840949816 Ensure OK/Cancel buttons always shown
There is some weirdness with the way the AlertActivity behaves when
it's populated and elements are enabled while it's not actually on
the screen. Work around this by populating the AlertActivity during
onResume() [eg. every time the activity is shown] instead of
onCreate() [eg. only the first time the activity is created].

Fixes: 172699073, 173159446
Test: Manual
Test: Start a staging install
Test: Turn off the phone screen
Test: Wait for the staging to complete
Test: Turn on the phone screen.
Test: See the install dialog has OK/Cancel buttons
Change-Id: Ia9525f20f98f42e6b2b865fa926b9707d416cde4
2021-01-09 02:58:56 +00:00
TreeHugger Robot
c58d6f6653 Merge "Protect DeviceAdminReceiver intents" into rvc-qpr-dev 2021-01-08 21:38:06 +00:00
Bill Yi
13070106c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I216f1736a0b63c8cf0c8b4a73e9ba57d5142fd32
2021-01-08 06:49:10 -08:00
Dmitry Dementyev
deb17bda7f [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours am: 065fbe9cae -s ours am: 91b1893603 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7515c5d471509c53b234d43432ced958e979c84e
2021-01-07 01:19:45 +00:00
Dmitry Dementyev
91b1893603 [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours am: 065fbe9cae -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I20ba00a11c0524b2452c27b9e31e540417ac7d4b
2021-01-07 00:41:22 +00:00
Hui Yu
da3fa364ca [automerger skipped] Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev am: 970762d46c am: 2005c4ee01 -s ours
am skip reason: Change-Id I7a240621267648ea54e7dc737ebc55bc665e39b6 with SHA-1 86bd39db35 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c3e570d60cea20eb0bc0700340baa706e14d200
2021-01-07 00:24:40 +00:00
Hui Yu
6f4aadc779 [automerger skipped] RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background. am: 346eed7325 am: 883e25f011 -s ours
am skip reason: Change-Id I7a240621267648ea54e7dc737ebc55bc665e39b6 with SHA-1 86bd39db35 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icd6b4d5874503ca83c632525e05018437775bafd
2021-01-07 00:24:32 +00:00
Dmitry Dementyev
065fbe9cae [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bf63aac89074610dbb8f6b475e3d6ba0f420f67
2021-01-07 00:18:39 +00:00
Hui Yu
2005c4ee01 Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev am: 970762d46c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If3bdb01bca9d8e14f2a62f379d4e688a91770c28
2021-01-06 23:41:33 +00:00
Hui Yu
883e25f011 RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background. am: 346eed7325
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d407b76df870c343a30199bf69ff4d0025c67e7
2021-01-06 23:41:30 +00:00
TreeHugger Robot
37ff5c9d04 Merge "Protect account chooser activities against overlay." into qt-dev am: 7f2257fa0f am: 683623e8b0 am: be186dc33e am: 88e38a7d1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If31258e284c7bad73295eaffcc2a1011f4538ad6
2021-01-06 23:34:54 +00:00
Dmitry Dementyev
948bd61f09 [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie78c9b638fe0d342b31833ddee9b2a4e790fddc3
2021-01-06 23:34:12 +00:00
Hui Yu
970762d46c Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev 2021-01-06 23:22:53 +00:00
Dmitry Dementyev
be9c053cef [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I31b47fd1a80db951eaa393a429e5495cc31a31e8
2021-01-06 23:10:43 +00:00
TreeHugger Robot
88e38a7d1c Merge "Protect account chooser activities against overlay." into qt-dev am: 7f2257fa0f am: 683623e8b0 am: be186dc33e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifab96b3897510a77e23ed02b3c0cb8ca57d21b65
2021-01-06 23:09:49 +00:00
Dmitry Dementyev
e1d00ab8b8 Protect account chooser activities against overlay. am: fedbadf57e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13194523

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iec137ae2642e0a5ac5247e9939c68d65179f02fd
2021-01-06 22:51:41 +00:00
TreeHugger Robot
be186dc33e Merge "Protect account chooser activities against overlay." into qt-dev am: 7f2257fa0f am: 683623e8b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9307ed863c033d169fb91994e976a94ca9267bf0
2021-01-06 22:51:18 +00:00
TreeHugger Robot
683623e8b0 Merge "Protect account chooser activities against overlay." into qt-dev am: 7f2257fa0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2f86ac2f6302f63f1dc3d11d93c1a99434ec4fb6
2021-01-06 22:15:09 +00:00
TreeHugger Robot
7f2257fa0f Merge "Protect account chooser activities against overlay." into qt-dev 2021-01-06 21:50:26 +00:00
Tiger Huang
e8bd5284d3 Notify visibility change if source visibility is changed
This makes view root dispatch the up-to-date WindowInsets to the app.

Fix: 166619182
Test: Steps in the bug (comment#12)
Change-Id: I8c47e3be84357f65084a7d9994f7d7b68f15611e
(cherry picked from commit fd94351305)
2021-01-06 17:56:34 +00:00
TreeHugger Robot
a428448b1e Merge "[RESTRICT AUTOMERGE] Remove DPMS#getProfileOwner in favor of getProfileOwnerAsUser" into rvc-qpr-dev 2021-01-06 17:21:50 +00:00
Beth Thibodeau
6ae71ece49 Merge "Use default color when artwork is too small" into rvc-qpr-dev 2021-01-06 17:06:44 +00:00
TreeHugger Robot
b8e8fe89e7 Merge "[RESTRICT AUTOMERGE] Make WPMS look for DOs and POs in the correct calling user" into rvc-qpr-dev 2021-01-06 15:36:36 +00:00
Alex Kershaw
72704403aa [RESTRICT AUTOMERGE] Make WPMS look for DOs and POs in the correct calling user
Currently, it will always look in user 0 since it uses the DPM from
mContext, which will always be from user 0 as WPMS is in the system
server process.

Extend DPMI to provide the necessary external helper API. This is
preferable to just using createContextAsUser before getting the DPM
instance since it avoids a second binding.

Fixes: 144048540
Fixes: 172682826
Bug: 153995973
Bug: 174642338
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetWallpaper_disallowed
Change-Id: I52b71000fac31ff6725ddded58206f69b263ae33
(cherry picked from commit 5b36ee3f1d)
2021-01-06 13:08:42 +00:00
Varun Shah
f20d333ada DO NOT MERGE: Disable StrictMode VM Policy check.
Disable the VM policy violation for intents that contain a content URI
but don't have FLAG_GRANT_URI_PERMISSION when scheduling alarms.

Fixes: 160426113
Test: atest CalendarProvider2Test
Change-Id: If6e4a03609fc3d03dde66bcaa3136b23662ccaeb
(cherry picked from commit 224822ecaf)
2021-01-05 21:27:13 +00:00
Beth Thibodeau
7d5eb9543f Use default color when artwork is too small
Fixes: 175833333
Test: atest SystemUITests:MediaDataManagerTest
Change-Id: I12e0bd8c32f3f5f824f83312d4b3b3cf181fd486
(cherry picked from commit 8d15cc48fb)
2021-01-05 17:30:01 +00:00
TreeHugger Robot
6bcc71b136 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-04 01:15:26 +00:00
TreeHugger Robot
3807812a22 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-04 01:13:42 +00:00
Bill Yi
0f4e6fa715 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I47b86a8159204d0de9c8c78faa2898b708730757
2021-01-02 23:57:36 -08:00
Bill Yi
aec14cc7ef Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib0960eb16584297c2d8386622448c6ab759b94ac
2021-01-02 21:31:59 -08:00
TreeHugger Robot
d2588800d3 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-03 05:18:19 +00:00
TreeHugger Robot
227389f6fe Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-02 22:32:31 +00:00
Bill Yi
5dfaea91c7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie184b899fc7ac5785eb6d4397e1d4212890c5719
2021-01-02 13:19:08 -08:00
Bill Yi
294205fc27 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie62c8e9f098c0a99f5fcb9399315ad5ca06723e8
2021-01-02 09:55:24 -08:00
TreeHugger Robot
c384101868 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-02 03:48:55 +00:00
TreeHugger Robot
418c665310 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-02 03:41:56 +00:00
Bill Yi
1c5de3588a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7b93906507ca01d9b06ca13529523f52dccc0eba
2021-01-01 16:12:23 -08:00
Bill Yi
1778299348 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1d6a91c3ed42c23c30bdeaa53558457faa55bf7c
2021-01-01 13:52:54 -08:00
Bill Yi
843cd67be5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia47d11def34eb04a26566d758ef601aa2d016fe2
2021-01-01 10:47:32 -08:00
TreeHugger Robot
10bc6e21dc Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-31 18:24:58 +00:00
Bill Yi
a5cf74d544 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf772ec7c107a3f3d6375fc4516ef1c051e93475
2020-12-31 02:13:09 -08:00
TreeHugger Robot
9da522e975 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-30 15:17:10 +00:00
TreeHugger Robot
6cbc7af3b3 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-30 15:14:07 +00:00
Bill Yi
d37582add2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I16c77d6af58e2b56532eb63a71554d348e9bce50
2020-12-30 03:28:05 -08:00
Bill Yi
80234e7e8d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9d538ba89679be7c0243c9f63a6cddf2930851c2
2020-12-30 02:58:12 -08:00
TreeHugger Robot
348c6f01e6 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-24 06:21:03 +00:00
TreeHugger Robot
d71616a3a8 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-24 06:19:25 +00:00