Added one more name source 'PNN', which has priority
higher than carrier id but lower than EF_SPN.
Bug: 143493866
Test: Manual
Change-Id: I2ef14204d0db018e7f67578a57e56fdbea8b698c
Currently, if a user accounts database is corrupted, the system will crash and
boot loop.
This CL mitigates the issue by removing the user instead.
Bug: 145710595
Test: adb shell chmod 000 /data/system_de/10/accounts_de.db && adb reboot
Change-Id: I47916fde4577709a2555586b8dc94090605595bd
(cherry picked from commit 8472b904ecef69ee12818fa1f69458875a58c8df)
Make toasts non-clickable
Since enforcement was only on client-side, in Toast class, an app could
use reflection (or other means) to make the Toast clickable. This is a
security vulnerability since it allows tapjacking, that is, intercept touch
events and do stuff like steal PINs and passwords.
This CL brings the enforcement to the system by applying flag
FLAG_NOT_TOUCHABLE.
Test: atest CtsWindowManagetDeviceTestCases:ToastTest
Test: Construct app that uses reflection to remove flag FLAG_NOT_TOUCHABLE and
log click events. Then:
1) Observe click events are logged without this CL.
2) Observer click events are not logged with this CL.
Bug: 128674520
Change-Id: Ica346c853dcb9a1e494f7143ba1c38d22c0003d0
Make toasts non-clickable
Since enforcement was only on client-side, in Toast class, an app could
use reflection (or other means) to make the Toast clickable. This is a
security vulnerability since it allows tapjacking, that is, intercept touch
events and do stuff like steal PINs and passwords.
This CL brings the enforcement to the system by applying flag
FLAG_NOT_TOUCHABLE.
Test: atest CtsWindowManagerDeviceTestCases:ToastTest
Test: Construct app that uses reflection to remove flag FLAG_NOT_TOUCHABLE and
log click events. Then:
1) Observe click events are logged without this CL.
2) Observer click events are not logged with this CL.
Bug: 128674520
Change-Id: Ic36585bc4f186e0224f5b687c49c0b3d9266838c
We don't do transition if user unlocks the phone via biometric
authentication, but we haven't canceled the previous animation while
unlocking this way, as a consequence, the reveal state of
imagewallpaper may end up with a wrong state.
Bug: 139487871
Test: Manually test
Change-Id: Ida470d58910cbb22eed10338948aa8a99e8f4343
Set allow app switches so the accessibility service can start activity
without delay.
Bug: 141873810
TEST: atest AccessibilityServiceConnectionTest
Change-Id: I4204c4cf0baa1f66d6d2d73d56a342ae803d24dd
(cherry picked from commit 24ef87d5f1)
Turn off color sampling for qpr2
A separate CL has been submitted to add an API
to enabled / disabled color sampling in master.
Bug: 143556482
Test: atest BrightnessTrackerTest
Change-Id: I4401cd35a2aa0ec35afaba928c95c971f92b0557
It didn't set windowAnimationStyle, and hence
ViewTreeObserver.OnWindowShownListener.onWindowShown() was never called.
Fixes: 145021634
Bug: 145211062
Test: manual verification switching users
Change-Id: I7f995dbe21922422f678f460d69fa37a3b4357d1
(cherry picked from commit 2a30fe59626060277398f93aaf754a12b873d7d0)
Example:
11-22 06:44:38.846 2825 2842 W ActivityManagerUserSwitchingDialog: user switch window not shown in 3000 ms
Bug: 145001354
Test: manual verification
Change-Id: I2dc748ea43df227d9f07e6743e39ae25a096352a
(cherry picked from commit 72a052308f67b72c8abba231568f8c93e7e6ec07)
Only show volume dialog on first volume change event if the flags
related to the event are set to show UI.
For example, this allows us to not show the volume dialog if the volume
is changed from sound settings as the first volume change event.
Bug: 145134692
Bug: 145094923
Test: Manual
Change-Id: I9bf7eeb009a792e7205265add2cc6b1b0d542168