CHEAT SHEET
*Check if device is recognized by adb
adb devices
*Kill/Restart (sometimes helps with connection issues)
adb kill-server
- after hitting enter type in any command to make it restart ADB
*Un/Install APKS
adb install APKNAME.apk
adb uninstall APKNAME.apk
adb install -r APKNAME.apk
adb uninstall -r APKNAME.apk
for %f in (C:\your_app_path\*.apk): adb install "%f"
- to install a TON of apks at once
*Log Grab - ensure device is hooked up and recognized by adb
adb logcat -v long > XX.txt
- this is creates longform logs, each new log entry creates a new line
- to kill the log, hit CTRL+C or unplug device
*Record Screen - this does not record audio, can record both orientations but try to stick to one during length of recording. Otherwise recording is cut off
adb shell screenrecord /sdcard/XXXX.mp4
- basic, low-res
- to kill capture, hit CTRL+C or unplug device
- screen captures are saved on the device - open up the device in file explorer to view it
adb shell screenrecord --bit-rate 100000000 /sdcard/XXXX.mp4
- super hi-res, looks pretty, not much heftier than basic screen capture
- to kill capture, hit CTRL+C or unplug device
- screen captures are saved on the device - open up the device in file explorer to view it
*List Packages on Device
adb shell
cd /system/vendor/app
ls *.apk
- OR
ls -l
adb shell pm list packages
*Set Date/Time
adb shell date -s 20150709.000000
- 20150709 – fill in date
Hacky Ways to check where app is installed & how to remove system apps
List all packages installed: pm list packages -f'
Get Full path:
adb shell pm path com.example.someapp
- mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
- rm /system/app/your_app
- rm /data/data/your_app
- remove any entries in /data/system/packages.xml
- remove any entries in /data/system/packages.list
- edit AndroidManifest.xml and get rid of android:sharedUserId="android.uid.shared"
- 000000 – hour(00) minute (00) second (00)