Apply a recovery logic for apps on data

Bug: 162753655
Change-Id: I07a426ba8a40f63bd0981c2e663718a0138fc5ea
This commit is contained in:
Jeongsik Mun
2020-11-14 15:28:08 +09:00
committed by Todd Kennedy
parent 8bb72e2856
commit e4291f1212

View File

@@ -23562,7 +23562,7 @@ public class PackageManagerService extends IPackageManager.Stub
// Note: this code block is executed with the Installer lock
// already held, since it's invoked as a side-effect of
// executeBatchLI()
if ((e != null) && pkg.isSystem()) {
if (e != null) {
logCriticalInfo(Log.ERROR, "Failed to create app data for " + packageName
+ ", but trying to recover: " + e);
destroyAppDataLeafLIF(pkg, userId, flags);