From f2c67070a8ef47f252447b34078b4880e2bf80da Mon Sep 17 00:00:00 2001 From: yorick Barbanneau Date: Wed, 12 Dec 2018 22:49:01 +0100 Subject: [PATCH 1/2] Add message submodule --- .gitmodules | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d2129dd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/message"] + path = lib/message + url = https://git.epha.se/ephase/bash_message From fa6543090270592fcef21934d4ff03f2971bfb09 Mon Sep 17 00:00:00 2001 From: yorick Barbanneau Date: Wed, 12 Dec 2018 23:32:47 +0100 Subject: [PATCH 2/2] Update README --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 77c5f96..57c6515 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Android Oandbackup restore script A simple bash script to restore application backuped with OandBackup on a rooted Android Phone. This script can restore GPG encrypted backup. +## Installation + to use this script, clone the repo : ```shell @@ -12,7 +14,29 @@ cd oandbackup_restore git submodule init && git submodule update ``` -This script is in devellopment, this is not a working version +## Usage + +``` +$ ./restore.sh [-d] [--dry-run] +``` + + - `-d` : display debug messges + - `--dry-run`: do nothing, just display actions. + +To use this script, you must have a rooted phone with a custom recovery (Tested +with TWRP). + + 1. Activate develloper mode on your phone + 2. Authorize your PC for debug by running adb and accept the PC on your phone. + 3. launch the script with the folder containing backup as argument + 4. When the script finished to install applications, he will reboot the phone + into recovery. When it's done press space. + 5. When it's done, reboot your phone. + +## Warning + +This script is a first working version, tested with my own phone. Use it at +your own risk. ## Licence