I had some troubles with the Android SDK so I will explain the steps you must take to connect your phone from your pc
Preparation:
- Download the Android SDK
- Turn on your USB debugging mode (On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging)
Steps:
- Install the Android SDK
- During the install ask to download and install the Java SDK
- Continue the installation when you have installed the Java SDK
- Start the (Android) SDK Manager and download all the default packages. Note: when you start the SDK Manager in the future always start the shortcut with administrator permissions. (right click > runas admin)
- Now download the USB drivers with the SDK Manager
- Now start notepad as administrator and open “C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver\android_winusb.inf”
- Now add some x64 code to the 32bits inf file
- [Google.NTamd64]
; HTC Desire
%SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87&MI_01 - Example:
- Now connect your phone with an USB cable (usb debuging mode must be turned on) open your device manager and update the android device with the modified driver.
- Now you can start cmd and use the adb util to manager your phone. Some example if you want to change your default install location for all apps to SD (even the app that not support this feature)
If your phone are other phone rather than HTC Desire, you have to change the Hardware ID (e.g. USB\VID_0BB4&PID_0C87) to be your phone’s ID. You can get this ID by
– Right-click on the My computer -> properties.
– Click on Device Manager.
– Find the phone in the list on left-hand. (Should be some warning mark if you don’t have driver for it)
– Right click on ADB -> Properties -> Detail
– Change the drop-down box to Hardware ID. This is where your phone USB ID is keep. Use this ID to put in the android_winusb.inf as described above.
Note: for 32bits computers use: [Google.NTx86]
Note: for 64bits computers use: [Google.NTamd64]
Happy debugging 🙂
(pfff crappy wordpress editor ;))