User Tools

Site Tools


Sidebar


/dev/null

tips:android:adb

**This is an old revision of the document!**

Android

network mode

adb -d tcpip 5555
adb connect <ip>

Packages

Install

adb install <file.apk>

Pull package

Getting list of packages

adb shell pm list packages
adb shell pm path boriol.multiplication.tableslite

pull

adb pull /data/app/boriol.multiplication.tableslite-1.apk

Backup package

adb backup  -f appBackup.ab  com.corp.appName

This archive can be converted in tar with

dd if=appBackup.ab  bs=1 skip=24|openssl zlib -d > appBackup.tar

Take screenshot

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen_name.png

boot custom recovery

Boot recovery image TWRP

adb reboot bootloader
fastboot flash recovery <recovery.img>
fastboot reboot
adb reboot recovery
tips/android/adb.1449847941.txt.gz · Last modified: by scipio