Preparing your device. Before you can use adb, you need to set your device on development mode to accept commands from adb. To do that, follow the given steps below:-
- From the MAIN screen of your device
- Press the MENU button
- Click on SETTINGS
- Click on APPLICATIONS
- Click on DEVELOPMENT
- Check "USB debugging"
- Alternatively you may also wish to check "Stay awake" to make sure the device stays on when USB is connected
Steps to install adb:-
- Download the Android SDK for your platform here. http://developer.android.com/sdk/index.html
- If you are planning to run ADB from within Windows platform. Download the USB driver here http://developer.android.com/sdk/win-usb.html
- Download and follow the instructions on how to install Windows USB from the link given in step 2
- Once you're done, extract the Android SDK into a directory
- Using command prompt or terminal, change directory (cd) into the android-sdk-xxxx/tools (where xxxx is the platform; linux, windows or mac)
- Run "adb" as it is to see all available help commands
Common adb commands:-
- adb devices (list the devices connected to your pc)
- adb push
- adb pull
- adb install
(Install a downloaded application which has the apk extension) - adb reboot (reboots your device)
- adb reboot recovery (reboot into recovery mode)
- adb reboot download (reboot into download mode)
- adb shell (shell into your device)
Feel free to read more from the adb help by just typing "adb" as it is.
No comments:
Post a Comment