summaryrefslogtreecommitdiff
path: root/libs/hwui/HardwareBitmapUploader.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2023-05-17 16:26:13 +0100
committer Yasin Kilicdere <tyk@google.com> 2023-05-25 12:59:24 +0100
commite1249ddf4d64a39d6f6117bd2247d57d6c2d6c4f (patch)
tree2ffdd902d44762d5a5a29df4847bcb04cc88184f /libs/hwui/HardwareBitmapUploader.cpp
parent39169f811534ff3a4341697b206125951ada6e34 (diff)
Wait for keyguard to be shown before completing the user switch.
If the target user has a pin/password we lock the device and show the keyguard, but not confirm that it is shown. With this CL we make sure the keyguard is shown, before completing the user switch and dismiss the user swithing dialog only then, which protects the target user's privacy. Otherwise, it's possible for target user's apps or wallpaper or etc to be exposed in case the keyguard is shown late. Bug: 281786028 Test: Apply ag/23285192 Test: atest FrameworksServicesTests:UserControllerTest Test: atest FrameworksServicesTests:UserControllerTest#testStallUserSwitchUntilTheKeyguardIsShown (this test MUST_SLEEP) Change-Id: Ide6ea04b9c40113ffde86508c7694c5279c1d0fc
Diffstat (limited to 'libs/hwui/HardwareBitmapUploader.cpp')
0 files changed, 0 insertions, 0 deletions