Brion VIBBER has submitted this change and it was merged.

Change subject: Add helper script to pull data from device
......................................................................


Add helper script to pull data from device

Change-Id: Iad10e23c5d090fb63dc9a8ed0957320cb740db87
---
M .gitignore
A scripts/pullfiles.bash
2 files changed, 8 insertions(+), 1 deletion(-)

Approvals:
  Brion VIBBER: Verified; Looks good to me, approved



diff --git a/.gitignore b/.gitignore
index 953c790..d3b8119 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,4 +14,8 @@
 
 # OS specific files
 *~
-.DS_Store
\ No newline at end of file
+.DS_Store
+
+# Data pulled out of device with scripts/pullfiles.bash
+scripts/apps
+scripts/backup.ab
diff --git a/scripts/pullfiles.bash b/scripts/pullfiles.bash
new file mode 100755
index 0000000..7481d06
--- /dev/null
+++ b/scripts/pullfiles.bash
@@ -0,0 +1,3 @@
+#!/bin/bash
+# Pulls all files from the device and extracts them under app/
+adb backup -noapk org.wikimedia.wikipedia && dd if=backup.ab bs=1 skip=24 | 
python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" 
| tar -xvf -

-- 
To view, visit https://gerrit.wikimedia.org/r/98727
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iad10e23c5d090fb63dc9a8ed0957320cb740db87
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com>
Gerrit-Reviewer: Brion VIBBER <br...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to