summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorZimuzo <zezeozue@google.com>2018-09-03 13:47:23 +0100
committerZimuzo <zezeozue@google.com>2018-09-12 13:28:24 +0100
commit9f62a26385dfa0d13c542ec0dda80633ecea9c66 (patch)
tree4c66c38194da2276b0505e9fa0799f1d61848058 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent66b0919dd20e6ed82e1b9ce09efa752747cc657f (diff)
Add privileged APIs to lock device and reset device password
In 534d732e9f274ad3f3e0637b9da963f889309afb, we are restricting privileged apps from silently becoming Device Admins. Privileged apps can now call the following existing Device Admin APIs provided they have the correct permissions: 1. DevicePolicyManager#resetPassword -> Guarded by android.permission.RESET_PASSWORD 2. DevicePolicyManager#lockNow -> Guarded by android.permission.LOCK_DEVICE The following existing Device Admin APIs already have alternatives hence no change required: 3. DevicePolicyManager#wipeData -> Send ACTION_FACTORY_RESET broadcast. Guarded by android.permission.MASTER_CLEAR 4. DevicePolicyManager#setKeyguardDisabledFeatures -> Write '0' to LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS setting Guarded by WRITE_SECURE_SETTINGS Bug: 111153365 Bug: 112601004 Test: Manually tested with dev privileged app Change-Id: Ia4e1ce9b81756e7f84ed0aa22d97e0b968cd8d89
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions