Show file path when listing APEXes (1/n)

-f now works for APEXes as well.

Bug: 140813980
Test: adb shell pm list packages --apex-only -f
package:/system/apex/com.android.apex.cts.shim.apex=com.android.apex.cts.shim
package:/system/apex/com.android.art.debug.apex=com.android.art
package:/system/apex/com.android.conscrypt.apex=com.google.android.conscrypt

Change-Id: I6206c4db392a37152f14aa5510c35e52f565f9a6
This commit is contained in:
JW Wang
2019-09-30 10:42:30 +08:00
parent 6ed8fce33f
commit 9a72263bce

View File

@@ -756,7 +756,7 @@ class PackageManagerShellCommand extends ShellCommand {
(!listThirdParty || !isSystem) &&
(!listApexOnly || isApex)) {
pw.print("package:");
if (showSourceDir && !isApex) {
if (showSourceDir) {
pw.print(info.applicationInfo.sourceDir);
pw.print("=");
}