Revert submission 9996524-restrict_legacy_appop

Reason for revert: Potential culprit for Bug 147134548 - verifying through Forrest before revert submission
Reverted Changes:
I63a26fd59: Verify scoped storage policy for R
I86dfaec89: Prevent apps that target >= R from opting out of s...

Change-Id: I9d27fa97fb939dc52855f9f09c37f9b3632a9222
This commit is contained in:
Kholoud Mohamed
2020-01-03 14:23:59 +00:00
parent a986bc6420
commit ebd5b2447e

View File

@@ -145,8 +145,7 @@ public abstract class SoftRestrictedPermissionPolicy {
}
@Override
public boolean mayAllowExtraAppOp() {
return !shouldApplyRestriction && hasRequestedLegacyExternalStorage
&& targetSDK <= Build.VERSION_CODES.Q;
return !shouldApplyRestriction && hasRequestedLegacyExternalStorage;
}
@Override
public boolean mayDenyExtraAppOpIfGranted() {