diff options
author | Alex Kershaw <alexkershaw@google.com> | 2020-03-21 22:17:52 +0000 |
---|---|---|
committer | Alex Kershaw <alexkershaw@google.com> | 2020-03-25 18:21:19 +0000 |
commit | ec19b8d07519c3ffab2088dd40f8fdaf10d073c4 (patch) | |
tree | 1a726dc39a1f9afac0724c1e18d50d0a17d73289 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 0ccefbe94b6519faa12fa7c25f85bfc446f575b9 (diff) |
Add hidden API to clear all cross-profile app-ops
Reset the INTERACT_ACROSS_PROFILES app-op for all apps on the device
when creating a new work profile. This ensures that user grants for
previous work profiles (perhaps with a different admin) are not saved
and also not restored with backup-and-restore.
Also, clear the shared preference storing which oem-whitelisted apps the
user has granted. This ensures that the user sees them all again
during work profile provisioning.
Fixes: 151145623
Test: atest com.android.managedprovisioning.task.CreateManagedProfileTaskRoboTest
Change-Id: I5f5c5aea1c36bd17a74c02e1b6fa9b4047f15003
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions