summaryrefslogtreecommitdiffstats
path: root/cmds/pm
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/pm')
-rw-r--r--cmds/pm/src/com/android/commands/pm/Pm.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java
index 326e2c8..cc6e739 100644
--- a/cmds/pm/src/com/android/commands/pm/Pm.java
+++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -259,7 +259,7 @@ public final class Pm {
for (int i=0; i<rawList.length; i++) {
list.add(rawList[i]);
}
-
+
// Sort by name
Collections.sort(list, new Comparator<FeatureInfo>() {
@@ -403,9 +403,11 @@ public final class Pm {
if (nonLocalized != null) {
return nonLocalized.toString();
}
- Resources r = getResources(pii);
- if (r != null) {
- return r.getString(res);
+ if (res != 0) {
+ Resources r = getResources(pii);
+ if (r != null) {
+ return r.getString(res);
+ }
}
return null;
}
@@ -1026,6 +1028,9 @@ public final class Pm {
System.err.println("The list instrumentation command prints all instrumentations,");
System.err.println("or only those that target a specified package. Options:");
System.err.println(" -f: see their associated file.");
+ System.err.println("(Use this command to list all test packages, or use <TARGET-PACKAGE> ");
+ System.err.println(" to list the test packages for a particular application. The -f ");
+ System.err.println(" option lists the .apk file for the test package.)");
System.err.println("");
System.err.println("The list features command prints all features of the system.");
System.err.println("");