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

Commit b2a41769 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Temporary hack until we have dynamic remounting."

parents 1f616bc4 cf1fd519
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3847,7 +3847,9 @@ class StorageManagerService extends IStorageManager.Stub
                    uid, packageName, READ_EXTERNAL_STORAGE, OP_READ_EXTERNAL_STORAGE);
            final boolean hasWrite = StorageManager.checkPermissionAndAppOp(mContext, false, 0,
                    uid, packageName, WRITE_EXTERNAL_STORAGE, OP_WRITE_EXTERNAL_STORAGE);
            final boolean hasStorage = hasRead || hasWrite;
            // STOPSHIP: remove this temporary hack once we have dynamic runtime
            // permissions fully enabled again
            final boolean hasStorage = hasRead || hasWrite || true;

            // We're only willing to give out broad access if they also hold
            // runtime permission; this is a firm CDD requirement