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

Commit bffa4ca9 authored by Christopher Tate's avatar Christopher Tate
Browse files

Tell the user to unlock/confirm backup & restore operations

People are being confused about the silent failure of backup/restore
when they didn't know they had to unlock the device & confirm the
backup/restore operation, so now adb prints a brief reminder.

Change-Id: I1b32913f0ad0cf6e30bf235dc975b9e983b533fd
parent ae8b56c0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -648,6 +648,7 @@ static int backup(int argc, char** argv) {
        return -1;
    }

    printf("Now unlock your device and confirm the backup operation.\n");
    copy_to_file(fd, outFd);

    adb_close(fd);
@@ -675,6 +676,7 @@ static int restore(int argc, char** argv) {
        return -1;
    }

    printf("Now unlock your device and confirm the restore operation.\n");
    copy_to_file(tarFd, fd);

    adb_close(fd);