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