Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a72263b authored by JW Wang's avatar JW Wang
Browse files

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
parent 6ed8fce3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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("=");
                }