Merge "Move removePackageData to handler thread."

This commit is contained in:
TreeHugger Robot
2022-09-14 02:41:24 +00:00
committed by Android (Google) Code Review

View File

@@ -3311,7 +3311,8 @@ final class InstallPackageHelper {
if (disabledPs == null) {
logCriticalInfo(Log.WARN, "System package " + packageName
+ " no longer exists; its data will be wiped");
mRemovePackageHelper.removePackageData(ps, userIds, null, 0, false);
mInjector.getHandler().post(
() -> mRemovePackageHelper.removePackageData(ps, userIds, null, 0, false));
} else {
// we still have a disabled system package, but, it still might have
// been removed. check the code path still exists and check there's