Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15d7968b authored by Zemiao Zhu's avatar Zemiao Zhu Committed by Android (Google) Code Review
Browse files

Merge "Force enable RESTRICT_STORAGE_ACCESS_FRAMEWORK for S and above." into sc-dev

parents 480e961e 70db4c3f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -171,6 +171,10 @@ public final class Shared {
     * Whether the calling app should be restricted in Storage Access Framework or not.
     */
    public static boolean shouldRestrictStorageAccessFramework(Activity activity) {
        if (VersionUtils.isAtLeastS()) {
            return true;
        }

        if (!VersionUtils.isAtLeastR()) {
            return false;
        }