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

Commit 3f51273d authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by android-build-merger
Browse files

Cache package names after reboot am: 773e9974

am: 94387b55

Change-Id: I5de79b71a2f170b4635bdf6406854d2685c9efc9
parents 0e731075 94387b55
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -130,6 +130,10 @@ class PreloadAppsInstaller {
                    // Install on user 0 so that the package is cached when demo user is re-created
                    installExistingPackage(basePackageName, UserHandle.USER_SYSTEM, counter);
                } else if (returnCode == PackageManager.INSTALL_FAILED_ALREADY_EXISTS) {
                    // This can only happen in first session after a reboot
                    if (!mApkToPackageMap.containsKey(apkName)) {
                        mApkToPackageMap.put(apkName, basePackageName);
                    }
                    installExistingPackage(basePackageName, userId, counter);
                }
            }