diff --git a/.gitignore b/.gitignore index ea3b10b..32d7072 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ /adb-sync/ /work/ *.kate-swp + +*.ab diff --git a/README.md b/README.md index 066e89f..b4f8800 100644 --- a/README.md +++ b/README.md @@ -31,4 +31,15 @@ This tool allows you to recover apps data from a TWRP-compatible backup - If the play store tells you an error and you don't have that app, skip to the next app using the volume DOWN button. 7. At the end restart the phone to fix permissions, if the app are crashing. -The program is licensed with GPLv3 by Andrea Cavalli +## ADB ".ab" backups +With .ab backups you must follow these extra steps before the others: +1. `adb backup --twrp` +2. Install the lastest openjdk version of your distro +3. `./ab_fix.sh ` +3. follow the other steps + +## License + +The program is licensed with GPLv3 by Andrea Cavalli (https://cavallium.it) + +twrpabx (https://github.com/prudy/twrpabx/tree/img_and_issue4) diff --git a/ab_fix.sh b/ab_fix.sh new file mode 100755 index 0000000..8822e52 --- /dev/null +++ b/ab_fix.sh @@ -0,0 +1,19 @@ +#!/bin/bash +bashdir="$PWD" +outdir="work" + +abfile=$(readlink -f "$1") + +mkdir -p "$outdir" +outdir=$(readlink -f "$outdir") +mkdir -p "$outdir/ab_backup" + +#dd if="$1" bs=512 skip=3 | tar -x -C "$outdir/ab_backup" +#java -jar abe.jar unpack "$1" "$outdir/ab_backup.tar" +cd "$outdir/ab_backup" +"$bashdir/twrpabx" "$abfile" + +#tar -xf "$outdir/ab_backup.tar" -C "$outdir/ab_backup" + +echo "The backup has been extracted to: \"$outdir/ab_backup\"" +echo "Please use that path for the next steps" diff --git a/twrpabx b/twrpabx new file mode 100755 index 0000000..5c01e1b Binary files /dev/null and b/twrpabx differ