Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c72c9d17 authored by Zim's avatar Zim
Browse files

Disable resetting OP_LEGACY_STORAGE

When app preferences are reset AppOpsService toggles the appops for
all apps. This gives the Op watchers a chance to reset any state.

For OP_LEGACY_STORAGE case, the StorageManagerService listens for
changes so it can remount the appropriate storage view for the app.
This remount operation is expensive and unnecessary when resetting
app preferences because the view would not change at the end of the
reset.

Test: No remount uid logs from op changes when resetting app preferences
Bug: 141678467
Change-Id: I86c36786652b36504e624e3f021ad73396328c5d
parent 0f2b7fd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2008,7 +2008,7 @@ public class AppOpsManager {
            false, // WRITE_MEDIA_VIDEO
            false, // READ_MEDIA_IMAGES
            false, // WRITE_MEDIA_IMAGES
            false, // LEGACY_STORAGE
            true,  // LEGACY_STORAGE
            false, // ACCESS_ACCESSIBILITY
            false, // READ_DEVICE_IDENTIFIERS
            false, // ACCESS_MEDIA_LOCATION