ADB Commands
ADB stands for Android Debug Bridge. ADB is some what like connecting the Android device with your system. Connectivity can either be Wired or Wireless. Connectivity via Wire (USB Cable) is called as ADB over USB.Connectivity via Wireless (Wifi) is called as ADB over Wifi.
Wired Connectivity:
Wireless Connectivity:
If connectivity is successful, now the same approval confirmation dialog will be shown in android device.
adb command needs to be in path, before running this command. Normally adb can be located here in Windows 10,
C:\Users\<UserName>\AppData\Local\Android\sdk\platform-tools\
Some useful ADB Commands
References:
http://stackoverflow.com/questions/7076240/install-an-apk-file-from-command-prompt
http://stackoverflow.com/questions/31604610/how-to-test-wifi-connection-via-adb
http://stackoverflow.com/questions/14654718/how-to-use-adb-shell-when-multiple-devices-are-connected-fails-with-error-mor
ADB stands for Android Debug Bridge. ADB is some what like connecting the Android device with your system. Connectivity can either be Wired or Wireless. Connectivity via Wire (USB Cable) is called as ADB over USB.Connectivity via Wireless (Wifi) is called as ADB over Wifi.
Wired Connectivity:
- Need to enable Developer options in the Android Device, before connecting the Android device to the system.
- Once USB is connected , you will get a confirmation dialog to approve the System in the Android Device. Either approve the System temporarily or Permanently.
Wireless Connectivity:
- Need to enable Developer options in the Android Device.
- Android and the System must be in the same LAN, before attempting to connect.
- Get the IP of the Android device
- Now go to cmd prompt , and run this command
adb connect <IP_OF_ANDROID>:5555
If connectivity is successful, now the same approval confirmation dialog will be shown in android device.
adb command needs to be in path, before running this command. Normally adb can be located here in Windows 10,
C:\Users\<UserName>\AppData\Local\Android\sdk\platform-tools\
Some useful ADB Commands
|
Command
|
Description
|
|
adb install –f <Full_Path_to_APK>
|
Install an APK from system to the Android device
|
|
adb shell pm clear com.appName
|
Clear the App Cache
|
|
adb shell pm uninstall com.appName
|
Uninstall the App
|
|
adb disconnect <IP>:5555
|
Disconnect the ADB over Wifi
|
|
adb devices
|
List the devices connected to the System.
|
|
adb shell input text “SomeText”
|
Send the String to be typed in a text box in the Android UI
|
|
adb shell
|
Logging into the Shell (Bash like) of the Android device
|
References:
http://stackoverflow.com/questions/7076240/install-an-apk-file-from-command-prompt
http://stackoverflow.com/questions/31604610/how-to-test-wifi-connection-via-adb
http://stackoverflow.com/questions/14654718/how-to-use-adb-shell-when-multiple-devices-are-connected-fails-with-error-mor
No comments:
Post a Comment