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

This commit is contained in:
Nandana Dutt
2020-01-03 08:54:42 +00:00
committed by Android (Google) Code Review

View File

@@ -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() {