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

Commit b5f07f86 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Don't spin up encryption unaware providers twice.

Bug: 26503591
Change-Id: I31b92f3a31103dffb17de8ac8d887d864cb0de28
parent 475737c3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -10832,6 +10832,14 @@ public final class ActivityManagerService extends ActivityManagerNative
     * belonging to any running apps.
     */
    private void installEncryptionUnawareProviders(int userId) {
        if (!StorageManager.isFileBasedEncryptionEnabled()) {
            // TODO: eventually pivot this back to look at current user state,
            // similar to the comment in UserManager.isUserUnlocked(), but for
            // now, if we started apps when "unlocked" then unaware providers
            // have already been spun up.
            return;
        }
        synchronized (this) {
            final int NP = mProcessNames.getMap().size();
            for (int ip = 0; ip < NP; ip++) {