summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRubin Xu <rubinxu@google.com>2020-06-03 23:00:43 +0100
committerRubin Xu <rubinxu@google.com>2020-06-09 14:02:43 +0100
commita8c58f06d06e1a69b0f3555678f51f679da8ea30 (patch)
tree56cfc3490bb9e69846190933c71c3222ed72ca48 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2ea259c04e9be82370d320f96e12931654b0fca4 (diff)
Allow automatic unlocking of work profile by Digital Wellbeing
At the moment, keystore key protecting the cached work profile challenge is only avaliable when keyguard is unlocked. This is to ensure an attacker cannot turn on profile automatically from Keyguard's QuickSettings tile without knowledge of the keyguard password. This has the inadvertent side-effect of blocking digital wellbeing app from scheduling turning on profile in the background when the device is most likely to be locked. Fix by allowing DWB to bypass the keyguard unlocked requirement when QUIET_MODE_DISABLE_ONLY_IF_CREDENTIAL_NOT_REQUIRED is passed in. Implementation wise, this is done by not setting the setUnlockedDeviceRequired bit on the keystore key, but enforcing the requirement in UserManagerService via a logical check which has the DWB bypass condition. Existing keys are retired by the framework assuming a new name for the encryption key. Bug: 158069733 Test: atest QuietModeHostsideTest Test: manual Merged-In: I4d241a4d7f11817f5171c5b064c379ff17aeaa43 Change-Id: I4d241a4d7f11817f5171c5b064c379ff17aeaa43
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions