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
|
@Override
|
||||||
public boolean mayAllowExtraAppOp() {
|
public boolean mayAllowExtraAppOp() {
|
||||||
return !shouldApplyRestriction && targetSDK <= Build.VERSION_CODES.Q
|
return !shouldApplyRestriction
|
||||||
&& (hasRequestedLegacyExternalStorage
|
&& (hasRequestedLegacyExternalStorage
|
||||||
|| hasWriteMediaStorageGrantedForUid
|
|| hasWriteMediaStorageGrantedForUid
|
||||||
|| shouldPreserveLegacyExternalStorage);
|
|| shouldPreserveLegacyExternalStorage);
|
||||||
|
|||||||
Reference in New Issue
Block a user