Merge "Run abandon() in the system server context"

This commit is contained in:
Chun-Wei Wang
2023-02-03 02:01:18 +00:00
committed by Android (Google) Code Review

View File

@@ -3996,7 +3996,14 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
return;
}
}
r.run();
final long token = Binder.clearCallingIdentity();
try {
// This will call into StagingManager which might trigger external callbacks
r.run();
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override