Skip to content
Commit de862be6 authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

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
parent bd6db335
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment