Merge changes I5d66c2b2,Ic11952e0 into rvc-qpr-dev

* changes:
  RESTRICT AUTOMERGE Handling removing <original-package> tag
  RESTRICT AUTOMERGE Revert "Handling removing <original-package> tag"
This commit is contained in:
Patrick Baumann
2021-03-22 16:54:17 +00:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 2 deletions

View File

@@ -3658,8 +3658,6 @@ public class PackageManagerService extends IPackageManager.Stub
PackageParser.readConfigUseRoundIcon(mContext.getResources());
mServiceStartWithDelay = SystemClock.uptimeMillis() + (60 * 1000L);
Slog.i(TAG, "Fix for b/169414761 is applied");
}
/**

View File

@@ -168,6 +168,8 @@ class PackageManagerShellCommand extends ShellCommand {
switch (cmd) {
case "path":
return runPath();
case "validate":
return runValidate();
case "dump":
return runDump();
case "list":
@@ -322,6 +324,17 @@ class PackageManagerShellCommand extends ShellCommand {
return -1;
}
private int runValidate() {
final PrintWriter pw = getOutPrintWriter();
String identifier = getNextArgRequired();
if ("169414761".equals(identifier)) {
pw.println("applied");
} else {
pw.println("missing");
}
return 0;
}
/**
* Shows module info
*