tips:android:adb

This is an old revision of the document!


Android

apt-get install android-tools-fastboot
apt-get install android-tools-adb
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 https://mega.nz/#!kM02hYKa!YOgKkCtRu-7wQT8JK4naRMPRExwpwKF0_vAVa4nwIqo

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.1478860402.txt.gz
  • Last modified: 2016/11/11 11:33
  • by scipio