Skip to content

Instantly share code, notes, and snippets.

@ayosec
Last active January 10, 2022 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayosec/21908f9a7b484c51f478b604ddee62a4 to your computer and use it in GitHub Desktop.
Save ayosec/21908f9a7b484c51f478b604ddee62a4 to your computer and use it in GitHub Desktop.
Get data from an Android application

Get data from an Android application

  • Find the package name of the application:

    $ adb shell pm list packages
  • Download a backup, with no password:

    $ cd "$(mktemp -d)"
    
    $ adb backup -f app.bak -noapk $PACKAGE

    Replace $PACKAGE with the name of the package.

  • Extract files:

    $ tail -c +25 app.bak | pigz -dz | tar xv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment