Android Debug Bridge ( ADB ) is a tool that allow you manage state of an emulator instance or Android phone. ADB comes with Android SDK package this can be downloaded from here.
This is used for copy files, install application and execute some Linux shell commands.
How to install ADB in Windows OS.
- Download and install Java SDK.
- Download and install Android Studio package. ( Optional: install in C drive. )
Phone Configuration.
To use follow below points.- ADB, you have to install the phone USB driver.
- Enable USB Debugging option in phone (Settings-> Developer options > Debugging > USB debugging)
Windows Configuration
- Press (Windows key + R) then type "cmd" to open common prompt windows.
- Set path to android-sdk. So copy paste ( cd C:\Program Files (x86)\Android\android-sdk/platform-tools ) Note:- for this current directory must be C and installation of Android SDK in c drive.
!!!!!! Now you are ready to use adb commons.
- ls
- cp
- mv
- chmod
- rm
- adb install path/your-app-name.apk
- adb pull source
- adb push source
http://www.londatiga.net/it/how-to-use-android-adb-command-line-tool/
Commonds | |||||
---|---|---|---|---|---|
No | Commonds | Syntax | Example | Note | Paul |
1 | adb devices | ||||
2 | adb shell | ||||
3 | ls | ls [path] | #ls /system/lib | List directory | |
4 | cp | cp [optoins] source destination | copyfile or directory | To copy or delete files in Android root directories you have to change the directory access mode to ‘read and write (rw)’ using command: remount rw | |