Skip to content

Commit cdf932e

Browse files
author
rich cannings
committed
Fix PackageInstaller displays with multi-user
With this fix, when all users cancel installing an app they were warned about, then the "Installing..." screen disappears, as desired. Bug: 7255231 Change-Id: I2475fa790a5d09abbf94411c696682502fb1e8df
1 parent 8bd206b commit cdf932e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/pm/PackageManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6401,7 +6401,7 @@ public void handleStartCopy() throws RemoteException {
64016401
* do, then we'll defer to them to verify the packages.
64026402
*/
64036403
final int requiredUid = mRequiredVerifierPackage == null ? -1
6404-
: getPackageUid(mRequiredVerifierPackage, 0);
6404+
: getPackageUid(mRequiredVerifierPackage, getUser().getIdentifier());
64056405
if (requiredUid != -1 && isVerificationEnabled(flags)) {
64066406
final Intent verification = new Intent(
64076407
Intent.ACTION_PACKAGE_NEEDS_VERIFICATION);

0 commit comments

Comments
 (0)