Merge "Prevent apps that target >= R from opting out of scoped storage"
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user