Fix anr when installing package

Test: Backport from AOSP
Fixes: 172829519
Change-Id: I02dba3a8f290c2cd8eb43062156f03302955ed06
This commit is contained in:
Sun Changqing
2020-10-30 15:26:47 +08:00
committed by Philip P. Moltmann
parent 655789af79
commit 32c9ed00a7

View File

@@ -339,6 +339,10 @@ public class InstallInstalling extends AlertActivity {
try {
session = getPackageManager().getPackageInstaller().openSession(mSessionId);
} catch (IOException e) {
synchronized (this) {
isDone = true;
notifyAll();
}
return null;
}