Implement 'shell pm path' to display APEX source path
The change is mainly for developement purpose Currently 'shell pm path $APEX_PKG_NAME' can not disply source path It is make sense that 'shell pm path $APEX_PKG_NAME' show path Fixes: 142115351 Test: adb shell pm path $APEX_PKG_NAME Test: adb shell pm path $APK_PKG_NAME Change-Id: Ifd7297b6dbd8c684a7f8375c4d6671976f12da60
This commit is contained in:
@@ -483,7 +483,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:");
|
||||
|
||||
Reference in New Issue
Block a user