undercoverindian
12/27/2017 - 12:46 AM

ADB

ADB

1. Connect USB cable
2. adb tcpip 5555

3. Disconnect USB cable
4. adb connect DEVICE_IP_ADDRESS (192.168.1.6)
5. adb devices

6. adb kill-server
ls = list directories
cd = change directories
pwd = print current directory
exit

screencap FILE_DESTINATION

input keyevent #
3 = HOME
4 = BACK
26 = PWR
24 = VOLUME_UP
25 = VOLUME_DOWN

input text 'TEXT'
%s = SPACE

input tap 

input swipe X1 Y1 X2 Y2 DURATION
bottom left corner = 0, 1300
top right corner = 750, 0

am start ACTIVITY_NAME
adb devices
adb install APK_FILE_PATH 
adb reboot 
adb reboot-bootloader
adb reboot recovery      - no recovery program installed at the moment

//file transferring
adb push FILE_PATH /storage/emulated/legacy/Download
adb pull /storage/emulated/legacy/DCIM/Camera FILE_DESTINATION

*when working in bootloader adb commands no longer work*
fastboot devices
fastboot oem unlock
fastboot reboot
fastboot flash BOOTLOADER/RADIO
fastboot -w update IMAGE.ZIP

- Open Terminal
- Create bash profile file -> "nano .bash_profile"
- Enter -> "export PATH=$PATH:/Users/ishannarula/Programming/Android\ Apps/Eclipse/android-sdk-macosx/platform-tools"
- Click Ctrl + X and save
- Check path -> "echo $PATH"