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

Commit c98ee8b9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ignore mkdirs requests while storage is locked." into pi-dev

parents 992d0785 196c755f
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);