Skip to content

Instantly share code, notes, and snippets.

@Fabax
Created October 28, 2013 17:18
Show Gist options
  • Save Fabax/7200837 to your computer and use it in GitHub Desktop.
Save Fabax/7200837 to your computer and use it in GitHub Desktop.
back up android file data
adb backup -f ~/data.ab -noapk app.name
dd if=data.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf -
@MetaiR
Copy link

MetaiR commented Sep 15, 2018

I got this error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 1: invalid continuation byte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment