====== Android ====== {{tag>[android]}} apt-get install android-tools-fastboot apt-get install android-tools-adb ===== network mode ===== adb -d tcpip 5555 adb connect ====== Packages ====== ===== Install ===== adb install ===== 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 for mi4c|https://mega.nz/#!kM02hYKa!YOgKkCtRu-7wQT8JK4naRMPRExwpwKF0_vAVa4nwIqo]] 1) cancellare la cache (wipe cache) e fare il reboot adb reboot bootloader fastboot flash recovery fastboot reboot adb reboot recovery ====== check lock ====== in fastboot mode (Volume - and power) fastboot oem device-info unlock fastboot oem unlock-go ====== unbrick with FASTBOOT update ====== Enable OEM unlock and USB debugging in developer options (tap 7 times on miui version in info phone) Download fastboot image from http://en.miui.com/a-234.html Untar image and enter inside from terminal chmod +x flash_all* sudo adb reboot edl # or sudo fastboot oem edl sudo fastboot devices ./flash_all_except_data_storage.sh