aboutsummaryrefslogtreecommitdiffstats
path: root/backup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backup.cpp')
-rw-r--r--backup.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backup.cpp b/backup.cpp
index ad23b17..5849490 100644
--- a/backup.cpp
+++ b/backup.cpp
@@ -18,6 +18,8 @@
#include "voldclient.h"
+#include "messagesocket.h"
+
using namespace android;
static int append_sod(const char* opt_hash)
@@ -248,6 +250,10 @@ int do_backup(int argc, char **argv)
}
}
+ MessageSocket ms;
+ ms.ClientInit();
+ ms.Show("Backup in progress...");
+
rc = create_tar(adb_ofd, opt_compress, "w");
if (rc != 0) {
logmsg("do_backup: cannot open tar stream\n");
@@ -293,6 +299,8 @@ int do_backup(int argc, char **argv)
if (opt_compress)
gzflush(gzf, Z_FINISH);
+ ms.Dismiss();
+
logmsg("backup complete: rc=%d\n", rc);
return rc;