Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
//List of all packages in the device
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