adb on terminal

adb

  • In Android/sdk/platform-tools, there is adb call.

adb1

adb devices

  • able to see connected device
  • on mine, emulator is running as shown

adb2

adb shell

  • connects to your device
  • Can look up all the files on the device
  • exit: to come out

adb3

adb logcat

  • way to check logcat on terminal
  • ctrl+ c : to exit
  • V is the lowest priority. If we pick V, it will get all the data V and above.(V,D,I,W,E,F,S)
  • S is the highest priority

adb4

  • adb logcat TEST:D
    • gets all logcat which tag is TEST and above debug

adb5

vi .bash_profile

  • on here we can set PATH. So, I don’t need to get into the specific directory to do a job(ex. adb call)

bash1

  • If you add this line to bash_profile, Path automatically sets as shown below

bash2

  • Now, you can call adb on everypath where you are on

bash3

Leave A Comment

Your email address will not be published. Required fields are marked *