Tuesday, April 16, 2013

ADB on Sony Xperia Tipo


ADB stands for Android Debug Bridge, it's a command line tool that enables us to control an android device when connected to the PC.

ADB is very famous in the world of android, whether you're just a normal user or even plan to develop app on android, you really must learn about ADB.

In this article i'm going to show you how to use ADB tool on sony xperia tipo and take advantage of it, explore more about what you can do with your phone.

Alright, first you will need the ADB itself, if you already installed android SDK on your computer, then you already has ADB, just go to your android SDK path and then look for "platform-tools" directory, the ADB is there.

But if you don't have android SDK, you have to download ADB separately, click here to download ADB. I believe that's not the latest ADB, but it should works fine for this tutorial.

And one more thing, make sure the driver of your sony xperia tipo installed properly on your computer, otherwise this won't work.

Once you have the ADB, follow these steps :
  1. activate "USB debugging mode" on your xperia tipo, read this article if you don't know.
  2. plug your xperia tipo to the computer.
  3. open command prompt (cmd) on your computer, and go to the directory where the ADB located by typing cd [path of the ADB]. For example the ADB is on c:/myandroid/adb/, then type cd c:/myandroid/adb/.
  4. once you're on that directory, type adb devices. it should say BX...something, that's your xperia tipo serial number i guess.
  5. if step 4 success, basically you can run any command below :
Command What for
adb devices show list of android devices
adb shell run linux command line on your tipo
adb help show help
adb version show adb version
adb logcat show log data on your tipo, to stop press CTRL + C
adb bugreport showing dumpsys, dumpstate, and logcat, to stop press CTRL + C
adb jdwp show JDWP (java debug wire protocol)
adb install <path-to-apk> install apk to your tipo
adb pull <remote> <local> download specified file on your tipo to the computer
adb push <local> <remote> upload specified file on your computer to the tipo
adb get-serialno show serial number of your tipo
adb get-state show the state of your tipo
adb wait-for-device wait until the device ready (combine this with other command)
adb start-server start the adb server
adb kill-server stop the adb server
adb shell am start -a android.intent.action.VIEW run something on your tipo
adb shell am start -a android.intent.action.MAIN run something on your tipo
adb shell am start -a android.intent.action.DIAL run something on your tipo
adb shell am start -a android.intent.action.EDIT run something on your tipo
adb shell am start -a android.intent.action.PICK run something on your tipo
adb shell am start -a android.intent.action.SEARCH run something on your tipo
adb shell am start -a android.intent.action.CHOOSER run something on your tipo

No comments:

Post a Comment