summaryrefslogtreecommitdiffstats
path: root/cmds/bmgr
diff options
context:
space:
mode:
authorChristian Sonntag <cxs@android.com>2009-08-07 11:16:05 -0700
committerChristian Sonntag <cxs@android.com>2009-08-07 13:42:45 -0700
commit77095d49f203eed6a6742f2605ca319e7360af32 (patch)
treeba5d5cd0606f9a2ca58bffaa76ba42be16f86954 /cmds/bmgr
parent02d34e78f4de20fc05831c22a771fffc645c5953 (diff)
downloadframeworks_base-77095d49f203eed6a6742f2605ca319e7360af32.zip
frameworks_base-77095d49f203eed6a6742f2605ca319e7360af32.tar.gz
frameworks_base-77095d49f203eed6a6742f2605ca319e7360af32.tar.bz2
make restore tokens shown in hex.
Since they are android ids, it is much easier to use them as hex, since we can just copy then into android inspector and learn more about the restore set.
Diffstat (limited to 'cmds/bmgr')
-rw-r--r--cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
index 027c367..a79d0cb 100644
--- a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
+++ b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
@@ -268,7 +268,7 @@ public final class Bmgr {
private void printRestoreSets(RestoreSet[] sets) {
for (RestoreSet s : sets) {
- System.out.println(" " + s.token + " : " + s.name);
+ System.out.println(" " + Long.toHexString(s.token) + " : " + s.name);
}
}
@@ -294,7 +294,7 @@ public final class Bmgr {
private void doRestore() {
long token;
try {
- token = Long.parseLong(nextArg());
+ token = Long.parseLong(nextArg(), 16);
} catch (NumberFormatException e) {
showUsage();
return;