Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save VDenis/ea7b73ee6fb241699d290ab97edf4188 to your computer and use it in GitHub Desktop.
Save VDenis/ea7b73ee6fb241699d290ab97edf4188 to your computer and use it in GitHub Desktop.
Download manifest from Android APK
//download data.ab (encrypted) and DONOT GIVE ANY PASSWORD when prompted
adb backup -f ~/data.ab -noapk app.package.name
//decrypt and extract the data.ab [this worked most of the time except for few instances ]
//this will output all the contents of app into 'apps' directory
dd if=data.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf -
//SOURCE: http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html
aapt l -a name.apk
//SOURCE : http://stackoverflow.com/a/11133263/623569
aapt dump xmltree base.apk AndroidManifest.xml
//Android aapt http://elinux.org/Android_aapt
//List of all packages in the device
// key: -f
adb shell pm list packages
//Get the path of the app
adb shell pm path com.example.someapp
//download the apk
adb pull <path obtained from above command>
//SOURCE: http://stackoverflow.com/a/18132934/623569
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment