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

Commit 196c755f authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Ignore mkdirs requests while storage is locked.

Test: none
Bug: 76222913
Change-Id: Ia62479a7d3cfc0b308d1e2b19a775286d512fecf
parent b133cbfd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2668,6 +2668,9 @@ class StorageManagerService extends IStorageManager.Stub
        final int userId = UserHandle.getUserId(Binder.getCallingUid());
        final UserEnvironment userEnv = new UserEnvironment(userId);

        // Ignore requests to create directories while storage is locked
        if (!isUserKeyUnlocked(userId)) return;

        // Validate that reported package name belongs to caller
        final AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(
                Context.APP_OPS_SERVICE);