diff options
author | Abhijeet Kaur <abkaur@google.com> | 2021-02-19 16:43:59 +0000 |
---|---|---|
committer | Abhijeet Kaur <abkaur@google.com> | 2021-02-19 18:15:10 +0000 |
commit | de862be6a88ff74c0378f3f506919ec2880bf6ba (patch) | |
tree | 2f92de83811a31d898419e00eeb76fb3177fa219 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | bd6db335a8ef068171f6440ad3504abb1aa63fae (diff) |
Disable resetting WRITE_MEDIA_IMAGES and WRITE_MEDIA_VIDEO appops
App holding System Gallery role is allowed WRITE_MEDIA_* appops by
virtue of the role. This allows the System Gallery app write-access for
images and videos.
When app preferences are reset AppOpsService toggles the appops for
all apps. Only the appops mentioned in sOpDisableReset are not toggled.
Disable WRITE_MEDIA_* appops to reset, as the system gallery app loses
write access on images/videos.
Bug: 179133883
Test: atest android.scopedstorage.cts.device.ScopedStorageDeviceTest#testDisableOpResetForSystemGallery
Change-Id: I168221c641566a9f691ed7956c038206b114d802
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions