summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2012-01-06 15:43:03 -0800
committerChristopher Tate <ctate@google.com>2012-01-06 15:43:03 -0800
commitbffa4ca9ad2702d51f5b391b7a05be0c7c691e4e (patch)
tree6c5066eced74126ac0931ed3efcff1b967556bf4 /adb
parentae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d (diff)
downloadcore-bffa4ca9ad2702d51f5b391b7a05be0c7c691e4e.tar.gz
core-bffa4ca9ad2702d51f5b391b7a05be0c7c691e4e.tar.bz2
core-bffa4ca9ad2702d51f5b391b7a05be0c7c691e4e.zip
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
Diffstat (limited to 'adb')
-rw-r--r--adb/commandline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/commandline.c b/adb/commandline.c
index 31ba3acce..ffce883cc 100644
--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -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);