tips:android:adb

This is an old revision of the document!


Android

adb -d tcpip 5555
adb connect <ip>

Packages

adb install <file.apk>

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
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

1) cancellare la cache (wipe cache) e fare il reboot

adb reboot bootloader
fastboot flash recovery <recovery.img>
fastboot reboot
adb reboot recovery
  • tips/android/adb.1450450037.txt.gz
  • Last modified: 2015/12/18 15:47
  • by scipio