This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# inspired by https://gist.github.com/yatsu/b62f07ef9ff3ae1e0e2bf9a00b8742b6 | |
# Assumes you already have homebrew and asdf installed! | |
# brew install openssl gcc@4.9 | |
# If your macOS is Mojave (10.14), install Xcode 10 and | |
# /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg | |
# (See https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make a backup | |
adb backup -noapk com.package.name -f backup.ab | |
# strip out the bits | |
dd if=backup.ab bs=1 skip=24 of=backup.bak | |
# use convertToTar.py (see other file in gist) | |
python convertToTar.py | |
# untar |