Count failed install as finished

Otherwise DEMO_USER_SETUP_COMPLETE will not be set.

Bug: 30445353
Change-Id: Id2a0c1b1643dd9846328a20f4c67e11e69b3bc84
This commit is contained in:
Fyodor Kupolov
2016-08-15 15:29:47 -07:00
parent 375ac04044
commit 4f4780f023

View File

@@ -136,6 +136,10 @@ class PreloadAppsInstaller {
mApkToPackageMap.put(apkName, basePackageName);
}
installExistingPackage(basePackageName, userId, counter);
} else {
Log.e(TAG, "Package " + basePackageName + " cannot be installed from "
+ apkName + ": " + msg + " (returnCode " + returnCode + ")");
counter.appInstallFinished();
}
}
}.getBinder(), 0, SYSTEM_SERVER_PACKAGE_NAME, userId);