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

Commit 6aefe5f5 authored by Nandana Dutt's avatar Nandana Dutt Committed by Android (Google) Code Review
Browse files

Merge "Prevent apps that target >= R from opting out of scoped storage"

parents 3607553d a986bc64
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -145,7 +145,8 @@ public abstract class SoftRestrictedPermissionPolicy {
                    }
                    @Override
                    public boolean mayAllowExtraAppOp() {
                        return !shouldApplyRestriction && hasRequestedLegacyExternalStorage;
                        return !shouldApplyRestriction && hasRequestedLegacyExternalStorage
                                && targetSDK <= Build.VERSION_CODES.Q;
                    }
                    @Override
                    public boolean mayDenyExtraAppOpIfGranted() {