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

Commit 4f1a24db authored by Zim's avatar Zim
Browse files

Skip remountUid for system_server

Several processes share the system_server uid. Since it has
all access it wants. No need to remountUid for apps sharing that uid
Test: manual
Bug: 141678467
Change-Id: Iab35e41d54e4d82eccfc8d8ca052aa93157e8b49
parent 0f2b7fd2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2203,6 +2203,11 @@ class StorageManagerService extends IStorageManager.Stub
    }

    private void remountUidExternalStorage(int uid, int mode) {
        if (uid == Process.SYSTEM_UID) {
            // No need to remount uid for system because it has all access anyways
            return;
        }

        try {
            mVold.remountUid(uid, mode);
        } catch (Exception e) {