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

Commit 230917ec authored by Zemiao Zhu's avatar Zemiao Zhu Committed by Corina Grigoras
Browse files

Force enable RESTRICT_STORAGE_ACCESS_FRAMEWORK for S and above.

Bug: 179145479
Test: manual
Change-Id: I25092a649452d84fd90c3c8d835467c56b213cbd
(cherry picked from commit 70db4c3f)
parent 87c02822
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;
        }