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

Commit 77095d49 authored by Christian Sonntag's avatar Christian Sonntag
Browse files

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.
parent 02d34e78
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;