|
Here is a compact yet deep technical step-by-step guide to how to
use ADB via USB cable connections to
Android mobile smartphones and tablets,
all in one page with clickable flowcharts,
wise tips, but without the sales hype and confusing generalities.
Related topics elsewhere on this same website (WilsonMar.com):
|
| Topics this page:
|
|
Download Windows USB Drivers
Macs do not need to go through this hassle.
On Windows, before deploying an apk file from your PC to the Android device via a USB cable:
- Remove the USB cable if it's connected between the PC and device.
- Some programs come with USB drivers:
- Otherwise, download the USB driver for your device's
manufacturers listed in
WEBSITE:
OEM USB Drivers on the Android site.
Samsung
Samsung offers two programs to install Windows USB drivers for Samsung Android phones.
Option 1: The preferred option. Samsung has a Kies mini program for Windows that
installs USB drivers.
Beware there are different editions for different models of Samsung devices.
- Close other running programs to avoid problems.
- Invoke the executable. Select the country. Accept the license. Wait for it to complete.
- Restart Windows.
- On the Windows Desktop, double-clicking the Samsung Kies mini may invoke program update.
- When the Kies pop-up requests it, connect the USB cable between the phone and the Windows PC.
- At the upper left corner of the Kies pop-up, click on Menu and select
Install driver.
- Click OK, then wait for the install and the pop-up to appear.
- TEST: After install, WIndows Start Control Panel (Hardware Sound) > Device Manager > Universal Serial Bus Controllers,
should list
SAMSUNG Mobile USB Composite Device
If instead you see "Unknown device", try unplugging the USB cable from your Windows machine
and plugging it into another USB port.
- TEST: In the Windows task bar, right-click on the time to bring up Task Manager.
Select Processes, click on Image Name to sort should list
KiesTrayAgent.exe.
Option 2:
WIKIPEDIA
notes that the full edition of
Samsung Kries (pronounced keys) is a widely panned MTP (Media Transfer Protocol) Windows client program.
It offers firmware update and content Sync.
But most people install it just for the USB drivers it installs.
Version Kies_2.1.0.11112_41_7.exe is what I've used.
TEST: After install, WIndows Start Control Panel (Hardware Sound) > Device Manager > Universal Serial Bus Controllers,
should list
SAMSUNG Mobile USB CDC Composite Device
HTC
These instructions apply to only these HTC devices:
- Sprint EVO 4G (HTC Supersonic)
- Droid Incredible (HTC Incredible)
- Droid Eris (HTC DesireC)
- HTC Desire GSM
- HTC Desire CDMA (HTC BravoC)
- HTC Aria
- HTC Wildfire (HTC Buzz)
On Windows clients,
first make the phone install its USB HBOOT driver on your Windows machine
by using an alternate power-up mode:
- Power off the phone
- Keep holding down the hardware volume down button and power
button at the same time until the menu appears.
- FASTBOOT
- RECOVERY
- CLEAR STORAGE
- SIMLOCK
- HBOOT USB
- On EVO 4G phones, at the menu press volume down to option "HBOOT USB" and then
presss the power button to select it.
- TEST: "S-ON" at the top of the screen indicates that the phone lock is active.
- Connect the USB cable between the Windows PC and phone.
This causes default USB drivers from the phone to be installed on Windows.
- In Windows Start > Control Panel > Device Manager > Other devices > Android 1.0 should now appear.
- Update USB drivers: using an internet browser, download and unzip
android-usb-driver.zip to a temp folder so it contains android_winusb.inf.
- Right-click on "Android 1.0" to Update Driver Software.
- Choose Browse my computer, the location where you unzipped folder Android USB Driver.
- Check Include subfolders.
- TEST: Windows Device Manager should now have an
Android Phone category containing
Android Bootloader Interface.
Motorola USB
I have not worked with Motorola yet.
If you have, please email me. I would appreciate instructions.
Prepare Android Device for Connection
- Remove the USB cable connection.
- In device Settings > Development > enable USB Debugging.
On some phones this is under Applications.
Click Accept at the confirmation pop-up.
- Plug the USB cable to the device. This causes ADB drivers to be installed.
- In device Settings > Application Settings > enable Unknown Sources.
This avoids errors on install of apk files.
- Connect the USB cable between the PC and the device.
If presented, click "Connect USB Storage".
On the device, expect a notification "USB connected".
Confirm Connection in ADB
To confirm a good connection, on a Windows PC with
Android SDK installed
open a command line and type:
The expected response is a 13-character IMEI (International Mobile Equipment Identity)
List of devices attached
M222C33a79b33 device
This should be the same as shown in device Settings > About phone > Status.
If the IMEI ID is not returned, watch for "USB Device Not Recognized" shown in the screen image.
It appears if the USB driver needs to be activated.
There are several blocks and solutions:
- Try unplugging the cable and plugging into another USB slot, if available.
- Try unplugging the cable, in device Settings > Development > uncheck (disable) USB Debugging
and enable again. Then plug the cable back in.
- Try to stop and re-start adb from a Run command window:
adb kill-server
adb start-server
When the adb server starts, expect to see:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
- If that doesn't work, re-install adb from a Run command window:
android update adb
adb kill-server
adb start-server
Alternatives to USB
Tether
To get around USB driver issues, if you have a device that has been
rooted
Some others to get around USB driver issues:
APP:
ConnectBot (from Kenny Root and Jeffrey Sharkey)
connects (as a client0 to remote Secure Shell services running on typically UNIX-based servers,
after a SSH user certificate is installed on the server.