G1 Debug Mode - G1 Q&A, Help & Troubleshooting

Hi Guys,
I just rooted my T-Mobile Unlocked G1.
After doing this I updates it with Jesusfrek 1.5 ADP.
I want to start learning to create Android application so I was trying to connect the G1 in USB Debug mode.
When the option is selected and connected to usb it does not recognise any new hardware.
On mounting I can view files in the memory card.
Without mounting also I can see Disk Drive>HTC Andoid Phone USB Device
I want to use the device to test my application.
Please help.
Please note: I have bought an unlocked G1 and not the Dev Phone.
Thanks,
Chinmay
Hey Got the problem Solved :
Problem - G1 Not detecting in Debug Mode / ADB Mode
Reason - Windows Automatic Driver Update for USB Disk.
Solution:
Edit the registry
Disclaimer: be careful what you do in regedit.
If you're not sure,don't use it
- Open the Registry Editor (Start > search/run > regedit)
- You *may* need to be administrator to do that
- Search for "vid_0bb4&pid_0c02" in keys or values. It makes take a
while. If you find in a value, delete the whole key folder.
- Some keys might be "locked": right-click them and add "everyone:
full control" to the permissions. Then delete the key folder.
- Repeat the search till no more instances are found.
- Close regedit.
Now the devices will ask for driver and locate the android-sdk\usb_driver\x86
There the phone is now in ADB Mode.
Solution
Click to expand...
Click to collapse

so are you saying if u put it in USB mode it disconnects and not be able to detect it as new device? if its not disconnecting, then its working fine... and go ahead and use adb mode

1st, do you have the SDK and drivers installed on your computer. 2nd, do you know what ADB is?

Start asking your questions in the right sub-forum (Q&A) (Theme) or even in (General), or i will be forced to ban you for 3 days or till you learn.
Thanks
Thread Trashed!!

Gilliland12 said:
1st, do you have the SDK and drivers installed on your computer. 2nd, do you know what ADB is?
Click to expand...
Click to collapse
Hi,
Yes I have the SDK Installed and the Environment variables set.
I dont have the Dev phone but I have the dev phone firmware updated on my T-Mobile G1.
Does it require a different cable.
I need to get the phone in debug mode so I can start testing my applications on the phone. Testing the app on the phone is netime better then the emulator.

You missed the 2nd part of question 1 and you didn't answer question 2.
Does 'adb devices' show anything?

G1 Debug
evilkorn said:
You missed the 2nd part of question 1 and you didn't answer question 2.
Does 'adb devices' show anything?
Click to expand...
Click to collapse
ADB shows no devices connected.
When I read the instruction on getting the G1 on Debug mode. It said that when you connect a new hardware would be detected then install the new hardware with the usb drivers in the SDK Tools. - this never happenes when I connect my phone. It does not detect as a new hardware
I can see removable disk in My Computer - if I try to access it says please insert disk. Files are not accessible without mounting the SD Card.
Instead of the Removable Disk being detected the phone should be detected in debug mode right ?

Have you turned on USB debugging in Settings>Applications>Development?

chinmayfun said:
ADB shows no devices connected.
When I read the instruction on getting the G1 on Debug mode. It said that when you connect a new hardware would be detected then install the new hardware with the usb drivers in the SDK Tools. - this never happenes when I connect my phone. It does not detect as a new hardware
I can see removable disk in My Computer - if I try to access it says please insert disk. Files are not accessible without mounting the SD Card.
Instead of the Removable Disk being detected the phone should be detected in debug mode right ?
Click to expand...
Click to collapse
you need to go to this thread it is how I got adb to work on my computer. just make sure instead of the old sdk it has listed make sure you have 1.5r3

Solution
Hey Got the problem Solved :
Problem - G1 Not detecting in Debug Mode / ADB Mode
Reason - Windows Automatic Driver Update for USB Disk.
Solution:
Edit the registry
Disclaimer: be careful what you do in regedit.
If you're not sure,don't use it
- Open the Registry Editor (Start > search/run > regedit)
- You *may* need to be administrator to do that
- Search for "vid_0bb4&pid_0c02" in keys or values. It makes take a
while. If you find in a value, delete the whole key folder.
- Some keys might be "locked": right-click them and add "everyone:
full control" to the permissions. Then delete the key folder.
- Repeat the search till no more instances are found.
- Close regedit.
Now the devices will ask for driver and locate the android-sdk\usb_driver\x86
There the phone is now in ADB Mode.

Do Vote
Let me know if this post has helped you !!

Related

Help installing my G1 Drivers

I need a bit of help installing my Android G1 USB drivers included in the Android SDK.
When I attach my Android G1 to my pc, it doesn't ask to search for drivers to install. I believe it automatically installs the drivers, as I see "HTC Android Phone USB Device" in device manager. Though that shows up, when I check for attached devices via ADB "adb.exe included in sdk ( SDK\Tools\adb,exe )", it doesn't list my device.
What should I do from there?
PS: Is there any other application that I need? Is eclipse required.
Note: My Android G1 is unactivated ( I am trying to activate without Sim or data plan [ Via Wi-Fi I guess? ])
You need to go to the development option and check on USB Debugging, but I think you your problem is you have to download the android_usb_windows.zip for adb to see your device.
I have the USB Drivers, the issue is probably the fact that I don't have eclipse.
Maybe I should download it, yes?
{{ What ver. of Eclipse? Java EE or Java? }}
Eclipse is not required. Heck, the full sdk is not even required. There is a zip file floating around that is just adb.exe and adbwin.dll. Works fine.
In that case, how do I enable Device debugging.
I downloaded the SDK (includes adb)
where should I set the usb drivers and how do I enable them?
settings->Applications->Development->USB debugging
JesusFreke said:
settings->Applications->Development->USB debugging
Click to expand...
Click to collapse
i have done it
but still cant setup usb driver correctly.
rddhome said:
i have done it
but still cant setup usb driver correctly.
Click to expand...
Click to collapse
what instructions are you following?
go under device manager and check under universal serial bus controllers...its prolly listed under usb mass storage device. you gotta go find the correct one and install the drivers manually. also you gotta type in that setprop.blah blah nonsense on your g1 and the computer will recognize it. check the ADB setup for dummies thread
rddhome said:
i have done it
but still cant setup usb driver correctly.
Click to expand...
Click to collapse
i have code 10 error for adb interface/htc dream composite adb interface in device manager.
volcomnator999 said:
go under device manager and check under universal serial bus controllers...its prolly listed under usb mass storage device. you gotta go find the correct one and install the drivers manually. also you gotta type in that setprop.blah blah nonsense on your g1 and the computer will recognize it. check the ADB setup for dummies thread
Click to expand...
Click to collapse
thankful.
i finish it following as u said.
but what reason?

adb shell :((((

ah please help. I have rc29 or whatever because when i type in reboot it restarts my phone. I ahve a SIM card in but I cannot get adb shell started. :/
when i plug in my phone nothing happens.
I d/l the sdk but it doesnt ask for the usb thing.
PLEASE HELP
i have tried everything. adb isnt seenig my device
you have to make sure USB debugging is on inside Settings | Applications | Development
Edit: hehehe ^^^ what he said.
Go to Settings > Applications > Development > USB Debugging (check)
well you cant do that when you cant even activate your phone. im doing the activate without data plan. help?
samrozzi said:
well you cant do that when you cant even activate your phone. im doing the activate without data plan. help?
Click to expand...
Click to collapse
did you try typing
<enter>setprop persist.service.adb.enable 1<enter>
?
yes hundreds of times. when i enter it and i plug into computer nothing happens. nothing pops up on vista. is there a way to maybe delete a driver for android I maybe installed already?
its that my pc isnt detecting my g1. it says no device detected. PLEASE HELP.
idk maybe I need a way to usb debug without activating?
i think its something with my driver. i might have installed it long ago? idk. any way to uninstall and reinstall?
samrozzi said:
i think its something with my driver. i might have installed it long ago? idk. any way to uninstall and reinstall?
Click to expand...
Click to collapse
If you have Windows Vista or 7 you can right click my comptuer > Manage > Device Manager (or just call up device manager in xp) and look for ADB Interface.
Right Click HTC Dream Composite ADB Interface and click Uninstall.
Unplug and replug the USB and it should re-detect.
nevermind me =)
Same problems
I am having the same problems as "samrozzi".
Phone is OK with Reboot command.
Will not recognize "Setprop Persist etc".
My device manager shows (HTC Android Phone USB Device) in "Disk Drives" but nothing about ADB interface.
Also you guys are saying
"Go to Settings > Applications > Development > USB Debugging (check)
Settings where? On the phone? not possible without getting past the registration screen.
In SDK ?
In ADB ?
On Computer somewhere ?
I have un-installed the driver for the phone. I reconnect and turn the phone on. The computer says HTC Google phone--hardware is installed and ready to use. Then it goes away and doesn't seem to be of any further use.
Please help, my brain is starting to sizzle from info-overload.
unkabuzz said:
I am having the same problems as "samrozzi".
Phone is OK with Reboot command.
Will not recognize "Setprop Persist etc".
My device manager shows (HTC Android Phone USB Device) in "Disk Drives" but nothing about ADB interface.
Also you guys are saying
"Go to Settings > Applications > Development > USB Debugging (check)
Settings where? On the phone? not possible without getting past the registration screen.
In SDK ?
In ADB ?
On Computer somewhere ?
I have un-installed the driver for the phone. I reconnect and turn the phone on. The computer says HTC Google phone--hardware is installed and ready to use. Then it goes away and doesn't seem to be of any further use.
Please help, my brain is starting to sizzle from info-overload.
Click to expand...
Click to collapse
did you install the driver
USBDeview
Try this:
- get USBDeview : http://www.nirsoft.net/utils/usb_devices_view.html
- unplug phone from PC
- in USBDeview delete all drivers that have anything to do with HTC
- plug phone in PC; drivers should now install correctly IF you have downloaded and installed them before
If the above procedure does not work reinstall drivers (from SDK) and start all over.
check out this thread on "How to solve "G1/HTC Magic not recognized by ADB under Windows"
http://groups.google.com/group/android-beginners/browse_thread/thread/ff713181959c48ee
pascanu said:
If the above procedure does not work reinstall drivers (from SDK) and start all over.
Click to expand...
Click to collapse
I don't see any "drivers" in SDK. I assume they are in "tools"??
unkabuzz said:
I don't see any "drivers" in SDK. I assume they are in "tools"??
Click to expand...
Click to collapse
it should be in the main folder of the sdk "usb driver"
Vulgrim said:
it should be in the main folder of the sdk "usb driver"
Click to expand...
Click to collapse
When I open "android-sdk-windows" I see;
add ons (empty)
platforms (empty)
SDK Readme
SDK Setup (green droid) running/opening this gives me a black rectangle that is gone in an instant. (I assume that this is a command screen)
and tools
Inside tools are 24 folders.
I have opened all that I can inside tools "all" of them open the same black rectangle and then disappear.
Closest thing I can see is AdbWinUsbApi.dll Don't see any way to open it successfully............
Found another thread
http://href.to/eNE
http://www.anddev.org/download.php?id=449
(Android USB Drivers)
that gave me drivers that seem OK.... HOWEVER...
You guys are also saying
"Go to Settings > Applications > Development > USB Debugging (check)
Settings where? On the phone? not possible without getting past the registration screen.
In SDK ?
In ADB ?
On Computer somewhere ?
unkabuzz said:
You guys are also saying
"Go to Settings > Applications > Development > USB Debugging (check)
Settings where? On the phone? not possible without getting past the registration screen.
In SDK ?
In ADB ?
On Computer somewhere ?
Click to expand...
Click to collapse
Can anybody help ?? Please ??
unkabuzz said:
Can anybody help ?? Please ??
Click to expand...
Click to collapse
settings on the phone
unkabuzz said:
When I open "android-sdk-windows" I see;
add ons (empty)
platforms (empty)
SDK Readme
SDK Setup (green droid) running/opening this gives me a black rectangle that is gone in an instant. (I assume that this is a command screen)
and tools
Inside tools are 24 folders.
I have opened all that I can inside tools "all" of them open the same black rectangle and then disappear.
Closest thing I can see is AdbWinUsbApi.dll Don't see any way to open it successfully............
Found another thread
http://href.to/eNE
http://www.anddev.org/download.php?id=449
(Android USB Drivers)
that gave me drivers that seem OK.... HOWEVER...
You guys are also saying
"Go to Settings > Applications > Development > USB Debugging (check)
Settings where? On the phone? not possible without getting past the registration screen.
In SDK ?
In ADB ?
On Computer somewhere ?
Click to expand...
Click to collapse
Run the setupsdk.exe and it should be under "available" for download, it will be called something like Usb Drivers r2 or something

[Q] USB Mass Storage Device driver failed

Bought a LG P970 Optimus Black.
Installed LGMobile Support Tool into my
Windows 7 64bit.
Installed the LG 3.2.1 drivers using LGMobile Support Tool.
Then, I connected the phone to the computer.
Result of drivers installation:
LGE Android Platform Composite USB Device - Ready to use
LGE Android Platform USB Modem - Failed
LGE Mass Storage Device - Failed
LGE Android Platform USB GPS NMEA Port (COM6) - Ready to use
LGE Android Platform USB Serial Port (COM7) - Ready to use
I wasn't planning to use the phone as a modem, so that driver does not worry me, but the USB storage problem is annoying.
In the phone, it does look as it connected. It offers the option to activate USB storage on screen, and if I click on the button, it says it enabled it, but nothing happens in the computer side.
I tested to uninstall everything LGE from the computer and restart from scratch, but same problem.
Ideas?
Update:
The LGMobile Support Tool in Windows says the phone IS connected, and that the software in the phone is up to date.
Do You see the phone into section computer like Removable Disc?
Matematiks said:
Do You see the phone into section computer like Removable Disc?
Click to expand...
Click to collapse
No. Nothing at all.
In "Devices and Printers" I have:
Under Devices:
LG Android Phone
LG Android (Modem)
LG Android (Serial)
LG Android (NMEA)
Under Unspecified:
LGE Bluetooth TransPort (COM4)
LGE Virtual Modem
In the "Device Manager" I have 1 "USB Mass Storage Device", with a yellow warning sign.
Under its Properties, in Device Status, it says: "This device cannot start. (Code 10)
If I try to "Update Driver" Windows says that the right driver is already installed.
FIXED !!
Updated LG driver to 3.5.
Still didn't work.
Then, I turned off the phone.
Removed the battery.
Put the battery back.
Turned on the phone.
Connected it to USB.
This time the USB driver started ok, and when I activated the USB storage I was able to see the drive under "Computer" in Windows Explorer.
I had turned the phone off and on before, so I think removing the battery did something that simply turning off and on wouldn't do.
dcardozo said:
Updated LG driver to 3.5.
Still didn't work.
Then, I turned off the phone.
Removed the battery.
Put the battery back.
Turned on the phone.
Connected it to USB.
This time the USB driver started ok, and when I activated the USB storage I was able to see the drive under "Computer" in Windows Explorer.
I had turned the phone off and on before, so I think removing the battery did something that simply turning off and on wouldn't do.
Click to expand...
Click to collapse
I had the same problem and could not find anything. Then I also found that turning phone off and pulling battery worked for me also!
mastamindz said:
I had the same problem and could not find anything. Then I also found that turning phone off and pulling battery worked for me also!
Click to expand...
Click to collapse
thanks for the trick, i hope this can be applied on my galaxy wonder,,
USB 3.0 External Storage Device driver not getting Installed- [Solved]
Issue: USB storage device is not working on my computer, be it a USB 2.0 or USB 3.0 it just doesn't install the driver for storage device and my USB mouse and webcam does work.Everytime I plug in a USB flash drive of USB 3.0 External hard drive it beeps and gives error message that the device driver could not be installed.
Here is the steps I took to troubleshoot this issue and it got fixed.
1.Open registry by going to Run-> Type Regedit.
and Navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}
Highlight this key ({36FC9E60-C465-11CF-8056-444553540000} ), on the right pane, and then check if “Upperfilters” and “Lowerfilters” value are present. If so, please right click on the values and select "Delete" to remove them.
2. Now go to "C:\windows\inf" folder and check if these three files USBSTOR.SYS, usbstor.inf and usbstor.pnf are available.If it was renamed change the name as I wrote them or if they are not available copy them from "C:\windows\System32\DriverStore\FileRepository\usbstor.inf_x86_neutral_83027f5d5b2468d3"
And then go to "C:\WINDOWS\SYSTEM32\Drivers" and make sure you have USBSTOR.SYS and usbd.sys available if not copy them again from
"C:\windows\System32\DriverStore\FileRepository\usbstor.inf_x86_neutral_83027f5d5b2468d3"
and paste it to Drivers folder.
3. Open Registry editor by going to Run-> typing Regedit and Navigate to the following key:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" and ensure that the Start value is 3. and restart the system.
It will work..
thx
mastamindz said:
I had the same problem and could not find anything. Then I also found that turning phone off and pulling battery worked for me also!
Click to expand...
Click to collapse
For me also worked ! I don't know why or how..but thx a lot! I was goin crazy because about few days ago it worked and suddenly it didn't but it all sorted out! Thanks!

[Q] Phone won't connect via ADB

Hi all.
I'm trying to S-Off my HTC first, but I can't get the phone to connect to ADB while in debug mode. It connects to ADB fine while in recovery mode, but apparently it needs to be in debug mode for moonshine to work. The phone is unlocked and rooted and I installed the HTC drivers. In the device manager it comes up as an Android device in recovery mode, but as a portable storage device in debug mode.
Can anyone tell me what I'm doing wrong?
nikpmr said:
Hi all.
I'm trying to S-Off my HTC first, but I can't get the phone to connect to ADB while in debug mode. It connects to ADB fine while in recovery mode, but apparently it needs to be in debug mode for moonshine to work. The phone is unlocked and rooted and I installed the HTC drivers. In the device manager it comes up as an Android device in recovery mode, but as a portable storage device in debug mode.
Can anyone tell me what I'm doing wrong?
Click to expand...
Click to collapse
Does it show up when typing adb devices in the command prompt?
Thanks for the reply.
No, not unless the phone is in recovery mode. Fastboot works as well. However when the phone is on and in debug mode I get nothing.
nikpmr said:
Thanks for the reply.
No, not unless the phone is in recovery mode. Fastboot works as well. However when the phone is on and in debug mode I get nothing.
Click to expand...
Click to collapse
Hmmm sounds like what happened to me once it was a frustrating situation but all that was needed was an update to the ADB drivers for the device. Sadly I'm away from my computer right now so it'll be a while until I can actually whip something up to help you, sorry
Try to force ADB to redetect with adb kill-server.
abrahammmmmmm_ said:
Hmmm sounds like what happened to me once it was a frustrating situation but all that was needed was an update to the ADB drivers for the device. Sadly I'm away from my computer right now so it'll be a while until I can actually whip something up to help you, sorry
Click to expand...
Click to collapse
Okay, let me know when you have some time. Thanks again!
I tried the kill-server command to no avail. The computer just plain doesn't recognize it as an Android device. I will try on my Linux computer and see if that makes any difference.
nikpmr said:
Okay, let me know when you have some time. Thanks again!
I tried the kill-server command to no avail. The computer just plain doesn't recognize it as an Android device. I will try on my Linux computer and see if that makes any difference.
Click to expand...
Click to collapse
Is your computer windows 7, 8 x32 or x64bit? I can probably do it today if you've got a windows 7 x64bit computer since I wont have to do much looking
I'm running win 7 64 bit. Thanks again for your help!
nikpmr said:
I'm running win 7 64 bit. Thanks again for your help!
Click to expand...
Click to collapse
NOTE THAT YOUR PHONE SHOULD NOT BE CONNECTED DURING THIS PROCESS
I already searched & set up the update folder so you don't have to do all the dirty work d:\
Ok Well I'm just going to make this quick and not really got through the basics like how to unzip things because if you don't know how to do that you probably shouldn't be trying to get s-off on your phone anyway so I'll just assume you already know how.
Step 1. open control panel select hardware and sound and open Device Manager with the administrative logo one the side.
Step 2. Near the top or somewhere on this list there's supposed to be a drop down that reads "adb devices, adb android, adb, android, adb drivers etc. Mine shows Android USB Devices it actually just varies based on computer I can't really go to the specifics of it but I'm sure you can find it.
Step 3. Select that dropdown menu and right click whatever shows (there should only be one thing) and then select Update Driver Software and choose the option that says Browse my computer for driver software and locate the htc drivers folder which should already be unzipped, select the whole folder and have the option to include subfolders checked. click next or whatever it says to finish
Step 3 Now you must remove your device from the Portable Devices dropdown menu to ensure all drivers are detected for the phone, to do this right click on HTC First and just select remove, wait until it's done. and now just reconnect your device and let all the drivers install and it should now be done!
Make sure you look at the screenshots I attached to make sure you don't accidentally remove or update something else also because that's where the drivers folder is an i'm pretty sure you'll need that
A reboot of the computer is recommended btw
Ask questions if you have any
View attachment 2459140
View attachment HTC_drivers_Win7_x64.zip
View attachment 2459141
Wow, that's quite explanatory, thank you! Unfortunately I only see the category ADB Devices when the phone is connected and in recovery mode, and I only see the category Portable Devices when the phone is connected, booted, and in debug mode. (Neither of these categories are visible when the phone is disconnected from the computer.) I did however try installing the drivers you gave me with the phone connected and in recovery mode, but to no avail; after the phone boots ADB Devices disappears and Portable Devices appears. Uninstalling Portable Devices doesn't help either; it just reinstalls when I reconnect the phone.
I am trying to get the category ADB Devices to appear in the Device manager when the phone is turned on and in debug mode so that I can use ADB while the phone is booted.
Got it working. I had to go to device manager > portable devices > HTC First and replace the driver with Generic USB Composite Device Driver.
Boom. Everything working. Weird.
nikpmr said:
Got it working. I had to go to device manager > portable devices > HTC First and replace the driver with Generic USB Composite Device Driver.
Boom. Everything working. Weird.
Click to expand...
Click to collapse
How exactly did you replace the HTC First driver with the Generic USB Composite Device Driver?

adb devices

Hello
Im brand new to Android and adb/fastboot.
I have looked at tutorials on youtube all day, and for everybody else their devices just pops up when you type adb devices.
I get nothing
I have done it correctly, because I get all the commands when I type adb/fastboot.
Im running windows8, could that be the problem?
Do I need some kind of extra USB drivers for my google glasses?
I do find my glasses as a camera tho.
EDIT:
So after watching a few more tutorials I understood my problem. Its windows8 usb drivers thats not correct.
I have tried to install correct drivers and edit the .ini files that need editing, but now I encountered a new problem.
Windows wont let me install correct usb drivers for google glass.
When I have device manager open, windows have already installed them as “Portable device – Glass1″
I click uninstall and they disaper from my device list, once I click “scan for new hardware” I can see that they reapper on my device list as other devices. Within 2sec windows autoinstall them as “portable device -glass1″ again.
So I try “update driver software” but this dont work either, I select the correct file and path, but I keep getting this message “windows has determined the driver software for your device is up to date”.
Im running windows8.
Any help is appreciated.
EDIT2:
As far as all the tutorial movies tell me to disable driver signing I have done so.
If all of the adb commands were working, then chances are you need to enable debugging on your Glass. Settings >> Device info >> Turn on debug
Update:
The way to bypass windows8 and installing usb drivers, is that I need to use the option "Have Disk" and then install usb drivers that way.
All works fine now.

Categories

Resources