Merge "Implement 'shell pm path' to display APEX source path"

This commit is contained in:
Treehugger Robot
2019-10-14 05:32:09 +00:00
committed by Gerrit Code Review

View File

@@ -464,7 +464,7 @@ class PackageManagerShellCommand extends ShellCommand {
* @param pckg
*/
private int displayPackageFilePath(String pckg, int userId) throws RemoteException {
PackageInfo info = mInterface.getPackageInfo(pckg, 0, userId);
PackageInfo info = mInterface.getPackageInfo(pckg, PackageManager.MATCH_APEX, userId);
if (info != null && info.applicationInfo != null) {
final PrintWriter pw = getOutPrintWriter();
pw.print("package:");