Merge "Fix preserveLegacyExternalStorage logic" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9ffa70c415
@@ -163,7 +163,7 @@ public abstract class SoftRestrictedPermissionPolicy {
|
||||
}
|
||||
@Override
|
||||
public boolean mayAllowExtraAppOp() {
|
||||
return !shouldApplyRestriction && targetSDK <= Build.VERSION_CODES.Q
|
||||
return !shouldApplyRestriction
|
||||
&& (hasRequestedLegacyExternalStorage
|
||||
|| hasWriteMediaStorageGrantedForUid
|
||||
|| shouldPreserveLegacyExternalStorage);
|
||||
|
||||
Reference in New Issue
Block a user