Skip to content

Instantly share code, notes, and snippets.

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
//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(" | tar -xvf -
aapt l -a name.apk
//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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment