(I posted this in the wrong category of a forum last night, so I'm reposting it here)Hey, guys, I just tried to root my Kindle Fire and was successful. However, I decided to be an idiot and change the permissions on the /system/app folder, and now the bootscreen is stuck on an endless loop. It used to be able to be detected by ADB, but for some reason, it is no longer able, nor is it able to be detected in my computer's Devce Manager. So I have no idea how to unbrick it at this point. Can anybody help me, or is there not yet an existing way to fix this issue? Any responses would be appreciated! Thanks!
Sent from my Transformer TF101 using xda premium
as a first step you could try:
http://forum.xda-developers.com/showthread.php?t=1428428
Yeah, I already tried that, but like i said before, i'm sure it would work, considering it's worked for most people, if it would get detected by ADB, but, sadly, it's not being detected.
Sent from my Transformer TF101 using xda premium
that's only a loose description that you see how it is done:
if you' asked for a driver:
-choose browse my computer for driver software
-Then select have disk
-Then select browse
-direct to where you downloaded the usb driver
-Select ok and ok
if you'r not asked and want to update the driver:
-Go to device manager
-right click on the exclamation mark kindle
-Choose update driver software
-choose browse my computer for driver software
-choose let me pick from a list of devices on my computer
-Then select have disk
-Then select browse
-direct to where you downloaded the usb driver
-Select ok and ok
b63 said:
that's only a loose description that you see how it is done:
if you' asked for a driver:
-choose browse my computer for driver software
-Then select have disk
-Then select browse
-direct to where you downloaded the usb driver
-Select ok and ok
if you'r not asked and want to update the driver:
-Go to device manager
-right click on the exclamation mark kindle
-Choose update driver software
-choose browse my computer for driver software
-choose let me pick from a list of devices on my computer
-Then select have disk
-Then select browse
-direct to where you downloaded the usb driver
-Select ok and ok
Click to expand...
Click to collapse
Oh okay. Thank you! I'll try that out once I get home! I'll update on how it went!
Sent from my Transformer TF101 using xda premium
you need to tell us if the kindle fire logo is flashing/glimmering or if it is static
if it is static then you are in fastboot mode, from here we should be able to help you progress. I've bricked my fire doing only exactly what you did with permissions and the like, there is always a way to get back towards a place you can restore.
if you've had adb working at least once (you must have considering you rooted it initially) then you will be able to get to it.
NintendoFanboy1235 said:
Oh okay. Thank you! I'll try that out once I get home! I'll update on how it went!
Sent from my Transformer TF101 using xda premium
Click to expand...
Click to collapse
i assume that you have allready tried a cold reset (pwr button ~20sec till it turns off) - unplug and replug without powering on (will do it by itself)
the next steps:
once you have sorted out your driver issue you can use the unbrick utility as stated in post #2 or simply do it manually by issuing the following commands:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
then power off like above and power on again
It's glimmering, not static. And I can't get it to detect the device somehow in either ADB or the Device manager. it says neither Kindle nor ADB device or whatever. Can somebody direct me toward a step-by-step guide for chnging the Drivers without having the Kindle detected by the computer at all?
Sent from my Transformer TF101 using xda premium
I recall having a similar problem a few weeks ago and I managed to fix it. The reason I couldn't get ADB to recognize my Kindle was that the VID changed when it was bricked (perhaps the VID is different when the bootloader is active?).
Does it show up as an "Unknown Device," "Other devices," or USB device in Device Manager? An easy way to check is to plug your Kindle in with Device Manager open and see if anything changes.
If it does show up in the Device Manager, right click it and select Properties. Select the Details tab and scroll down to Hardware Ids in the Property list box. There should be a few values displayed at this point. They should look something like this:
Code:
USB\VID_1949&PID_0006&REV_0216&MI_01
Where it says "PID_1949" do you have a different number? If so, you will have to add that number to your adb_usb.ini file. I'm sure someone else here can give better instructions on how to do that than I can.
EDIT: When I did a cold reset my Kindle briefly displayed the following hardware ID. Maybe you need to set ADB to recognize the VID 18D1.
Code:
USB\VID_18D1&PID_0100&REV_0100
Schubatis1 said:
I recall having a similar problem a few weeks ago and I managed to fix it. The reason I couldn't get ADB to recognize my Kindle was that the VID changed when it was bricked (perhaps the VID is different when the bootloader is active?).
Does it show up as an "Unknown Device," "Other devices," or USB device in Device Manager? An easy way to check is to plug your Kindle in with Device Manager open and see if anything changes.
If it does show up in the Device Manager, right click it and select Properties. Select the Details tab and scroll down to Hardware Ids in the Property list box. There should be a few values displayed at this point. They should look something like this:
Code:
USB\VID_1949&PID_0006&REV_0216&MI_01
Where it says "PID_1949" do you have a different number? If so, you will have to add that number to your adb_usb.ini file. I'm sure someone else here can give better instructions on how to do that than I can.
EDIT: When I did a cold reset my Kindle briefly displayed the following hardware ID. Maybe you need to set ADB to recognize the VID 18D1.
Code:
USB\VID_18D1&PID_0100&REV_0100
Click to expand...
Click to collapse
Yes, I am almost positive that once you do this that your kindle will be recognized and that you should then be able to use adb to enter fastbooy mode. From here you should be able to install TWRP using the kindle fire utility. Refer to the thread on entering fastboot without a factory cable for more info after you have fixed your Usb ini. It is stickied on one of these three kindle fire subforums.
Sent from my Kindle Fire using Tapatalk
Okay, Thanks for all your help! I'll try this and post what happens on here. Keep an eye on this forum in case I can't figure something out. I'm a slight noob at this stuff!
Sent from my Transformer TF101 using xda premium
your adb_usb.ini in the .android folder should include 0x1949 and 0x18D1
the android_winusb.inf of your driver source should include:
;Kindle Fire
%SingleAdbInterface% = USB_Install, USB\VID_1949&PID_0006
%CompositeAdbInterface% = USB_Install, USB\VID_1949&PID_0006&MI_01
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0100
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0100&MI_01
under both sections [Google.NTx86] and [Google.NTamd64]
here is an alternate driver set which includes the above :
http://forum.xda-developers.com/showpost.php?p=20855280&postcount=54
furthermore some info about your computer will be helpful:
os/bit ?
if you have a 32bit machine available that's the better choice - it's easier
if you have a 32bit xp that's the easiest because you don't have to care about the uac (user access control) - on 7 you mostly have to do on an elevated command shell (as adminitrator)
My computer is 64-bit running Windows 7
Sent from my Transformer TF101 using xda premium
NintendoFanboy1235 said:
My computer is 64-bit running Windows 7
Sent from my Transformer TF101 using xda premium
Click to expand...
Click to collapse
did you check the things above (the files) ?
which driver set are you using ?
you can take the ones i provided - they have all the entries
you can try to remove the old drivers:
in device manager uninstall all you see with kindle, adb or unknown
if you don't see:
http://support.microsoft.com/kb/315539/en-us
then cold power down kf - unplug - power down computer and power up (no restart) - plug kf (don't power on - does itselt) - install provided drivers as stated in previous post
do the following commands to know to what the kf is responding:
"adb devices" or "fastboot -i 0x1949 getvar product"
tell us from which command you get a response
I only get a response from "adb devices". it seems to pick it up now in device manager and in adb devices. at least we're making progress! any advice on what to do next?
NintendoFanboy1235 said:
I only get a response from "adb devices". it seems to pick it up now in device manager and in adb devices. at least we're making progress! any advice on what to do next?
Click to expand...
Click to collapse
great ! now you can try to correct the permissions:
adb shell
if you get the $ prompt type su - prompt should change to #
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
adb reboot
Everything was going great, but for some reason, after i go into adb shell, when the symbol is $, and i type in su, it does not change to #. please help! we're so close!
Sent from my Transformer TF101 using xda premium
could you figure it out ? was'nt online some time ...
do you have twrp available ? if you boot into twrp you should have automatically the # prompt
since it seems you have fixed the driver issue i would recommend to try to follow this thread:
http://forum.xda-developers.com/showthread.php?t=1455501
I didn't install TWRP, no
Sent from my Transformer TF101 using xda premium
if "adb devices" didn't work and fastboot did.
b63 said:
did you check the things above (the files) ?
which driver set are you using ?
you can take the ones i provided - they have all the entries
you can try to remove the old drivers:
in device manager uninstall all you see with kindle, adb or unknown
if you don't see:
(As a noob, i can't quote your link, so its missing from the quote)
then cold power down kf - unplug - power down computer and power up (no restart) - plug kf (don't power on - does itselt) - install provided drivers as stated in previous post
do the following commands to know to what the kf is responding:
"adb devices" or "fastboot -i 0x1949 getvar product"
tell us from which command you get a response
Click to expand...
Click to collapse
I had the exact same problem as OP, but mine responded only to "fastboot -i 0x1949 getvar product" I was able to get it up and running with the following command:
fastboot -i 0x1949 oem idme bootmode 4000
Thanks to all for the amazingly helpful threads!
Right, I don't know what kind of sorcery my nexus 7 tablet is employing, but it simply isn't getting the ADB treatment.
I've tried installing Samsung drivers, Naked drivers, all the drivers, bleh, test mode- the whole kaboodle and nothing's working.
ADB isn't recognizing my nexus 7, and I have absolutely no idea why.
I thought maybe it'd have something to do with these specs, maybe?
OS: Windows 8 Pro x64
ROM: ParanoidAndroid 3.1 (Newest, formerly 2.54 but still same problem)
Recovery: TWRP
MTP and PTP are offered at connection. Debugging is available on Nexus 7, but computer seems entirely oblivious to its existence as an ADB device. Device Manager lists Nexus as 'Android ADB Composite Device' after I installed Google's SDK Drivers
Ask questions away
Thanks
A lot of users have luck by using toolkits that install the drivers for you. I simply used the drivers from the Asus website on my Win 8 x64 laptop.
Sent from my SGH-I777 using xda premium
korockinout13 said:
A lot of users have luck by using toolkits that install the drivers for you. I simply used the drivers from the Asus website on my Win 8 x64 laptop.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
Yep, that's the problem:
I've used:
1) WugFresh drivers
2) ASUS drivers
3) SDK Drivers
4) Whatever else- drivers there are on those toolkits
Three phrases that should never be used on XDA are:
a) "Nothing's working"
b) "I've tried everything"
c) "It doesn't work"
Why? Because they don't really provide any useful details to a reader that might otherwise be able to help.
Look - You said that you observed "ADB Composite Interface" in you device manager, and yet you said NOTHING about whether Windows noted that the device was not working correctly.
At a minimum, that means that you DO (or did) have a driver successfully installed, and moreover, the device on the far end of the cable is properly communicating and asserting a VID/PID hardware identifier that selects the installed Windows driver that is supposed to handle that device. Otherwise you would see nothing or an unknown device in the device manager.
What your OP does not mention is what exactly the symptoms of "doesn't work" actually are: are you saying that "running the command 'adb devices' from the command line produces an 'offline' message"?
Also, you failed to mention whether you are trying to communicate via adb to the regular OS or the custom recovery. It makes a difference because most windows wingnuts end up installing TWO drivers for adb - the custom recoveries claim a completely different VID/PID device identifier than what is used by the OS, and the unmodified Asus/Google drivers don't claim the custom recovery VID/PID hardware ID.
One other thing to note: with jb4.2.2, if /default.prop has
ro.adb.secure=1
then you need to have the screen unlocked when you fire up adb on the PC so that you can accept the connection from the tablet side, otherwise it will report an "offline" device. (This only applies to the OS, not the recoveries. As I noted, you didn't' say which & I don't know what PA does in its ramdisk anyway.)
good luck
Hi. Simple solution for this. Uninstall all the nexus drivers you have and reboot your machine, then go here:
http://support.asus.com/Download.aspx?SLanguage=en&m=Nexus+7&p=28&s=2
download the driver software and reinstall. That should sort you out
Thanks for the response
Well, to clear things up...
I mean, the Nexus 7 says 'USB Debugging connected' when connected.
adb devices displays 'List of devices attached' as nothing, and adb reboot gives 'error: device not found'.
Hardware/PIDs for 'Android Composite ADB Interface', (comes up on Device Manager when Nexus 7 plugged in)
USB\VID_18D1&PID_4E42&REV_9999&MI_01
USB\VID_18D1&PID_4E42&MI_01
General Tab for ADB Interface properties says Device Type: Android Device, Status 'Is working properly'
Opening up recovery yields yet the same problem on ADB- nothing is found.
Plugging in my ZTE Skate with CM7= adb devices picks IT up perfectly and i can do whatever I want with it.
The result is exactly the same on my Windows 7 laptop. The adb I'm trying to communicate with is a Windows 8 x64 'Test Mode' System
MTP/PTP works fine. USB OTG with NTFS is a total failure and doesn't detect
I'm trying to communicate with the normal system OS. But both TWRP and OS are undetected by adb devices
Edit: I've never needed to 'accept' anything from the tablet side- that's odd.I've tried adding certain PIDs to the Google drivers .ini and unin/reinstalling the drivers in vain (I'm unfortunately not exactly sure what those PIDs should look like stuck in the .ini driver file anyway, sorry)
Edit 2: @BluDRed - just tried that again for good measure- still nothing.. thanks anyway
Edit 3: THIS GUIDE does not work > http://zacktutorials.blogspot.ca/2012/08/nexus7-android-development.html
tigrey said:
Hardware/PIDs for 'Android Composite ADB Interface', (comes up on Device Manager when Nexus 7 plugged in)
USB\VID_18D1&PID_4E42&REV_9999&MI_01
USB\VID_18D1&PID_4E42&MI_01
Click to expand...
Click to collapse
Last time I went through all the mode combinations was on 4.2.1 (see the VID/PID listing at the end of the first post in this thread); judging from that info the above sort of looks like ADB mode without either MTP or PTP turned on. Don't know if it is important or not, but I have noticed reports in here with slightly different results than mine - some folks saying "I couldn't get MTP to work unless ADB was turned off" ... my result was the exact opposite! But frankly, I don't remember anyone having the reverse problem where they couldn't get ADB to work and solved it by fooling with MTP/PTP toggling.
tigrey said:
Opening up recovery yields yet the same problem on ADB- nothing is found.
Click to expand...
Click to collapse
Both TWRP and CWM should show up at USB\VID_18D1&PID_D001. So the driver that loads for "adb" from the custom recovery will be different (or "unknown device") unless the .inf file in the driver install kit from Asus/Google claims this VID/PID pair... or you have a completely separate driver installed.
tigrey said:
MTP/PTP works fine.
Click to expand...
Click to collapse
This seems like a very important observation/clue. MTP seems to work extremely well on my Win 7 x64 box - transferring big files at something like 80-90 Mbits/sec! If your pair of devices is capable of those kinds of speeds, it certainly seems to rule out a scenario where the hardware link succeeds at low speed (and thus gets the driver properly set up), but then later screws up after the link transitions to high speed.
tigrey said:
Edit: I've never needed to 'accept' anything from the tablet side- that's odd.I've tried adding certain PIDs to the Google drivers .ini and unin/reinstalling the drivers in vain (I'm unfortunately not exactly sure what those PIDs should look like stuck in the .ini driver file anyway, sorry)
Click to expand...
Click to collapse
That security dialog is new in 4.2.2 stock. As I mentioned in my previous post, you might not notice it in a custom ROM (even if based on 4.2.2) if the ROM dev toggled off that adb security property.
Tell you what - typing detailed posts on my N7 is lame. I'll post this now, and then add some further comments using a real keyboard in a couple minutes...
OK, this isn't meant to be a prescription - more like a recounting of experiences to see if perhaps you get some further ideas.
When I first got my N7 in early January, I already had on my Win7 Pro x64 box the Google SDK, and (iirc) I had a variety of ADB/fastboot drivers installed for a different Android devices. (HTC and Samsung)
Fired it up, and of course no communication to the N7 with either adb or fastboot. So I updated the entire SDK and the Google driver, and now ADB & fastboot worked (with the N7's regular OS).
Rooted the device, installed a custom recovery, and - no communication with the custom recovery via ADB. WTF?
Well, it turns out that my prior Android experience had been with a custom recovery where the developer took pains to make sure that the VID/PID pair used by the custom recovery was the same as that used by the OS for ADB - so only a single "adb" driver was needed for both situations.
But that's not the case for either TWRP or CWM for the N7 - the PID is different than any values appearing in the .INF file for the Google SDK USB driver or the Asus USB drivers. That means that without modification the Google or Asus drivers simply will not work with ADB from the custom recovery.
I didn't know that at the time, so I punted and installed the XDA "Universal Naked" (and unsigned) driver - origin unknown. Ugh.
After seeing all the troubles that other people seemed to be having, and not being too happy about installing random unsigned drivers off of the internet, I decided I wanted to clean up this mess of a situation - even though it was working perfectly fine for me!
So I went and downloaded the Asus drivers (R06 2012-06-24).
Next, I hacked the .INF file "android_winusb.inf" in the Asus driver bundle.
Code:
$ diff android_winusb.inf.distro android_winusb.inf
30,41[b]d[/b]29
[color=red]< ;Google Nexus One
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02&MI_01
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E12&MI_01
<
< ;Google Nexus S
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E21
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E22&MI_01
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E23
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E24&MI_01
<[/color]
47[b]a[/b]36
[color=green]> %CustomRecoveryAdbInterface% = USB_Install, USB\VID_18D1&PID_D001[/color]
51,62[b]d[/b]39
[color=red]< ;Google Nexus One
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02&MI_01
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E12&MI_01
< ;Google Nexus S
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E21
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E22&MI_01
< %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E23
< %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E24&MI_01
<[/color]
68[b]a[/b]46
[color=green]> %CustomRecoveryAdbInterface% = USB_Install, USB\VID_18D1&PID_D001[/color]
130[b]a[/b]109
[color=green]> CustomRecoveryAdbInterface = "Custom Recovery ADB Interface"[/color]
The above might be a little hard to read, but basically I deleted all the lines pertaining to Nexus One (PIDs 0D02, 4E11, & 4E12) and Nexus S (PIDs 4E21, 4E22, 4E23, 4E24), and added to the Nexus 7 sections the line
Code:
%CustomRecoveryAdbInterface% = USB_Install, USB\VID_18D1&PID_D001
to both the [Google.NTx86] and [Google.NTamd64] sections of the .INF file
The deletions of the Nexus One and Nexus S were not necessary - if you want, they could be left in there. I wanted to be sure that this driver would ONLY be used with the Nexus 7 though.
Also - note the string "CustomRecoveryAdbInterface" - this needs to be defined in the [Strings] section at the end of the .INF file. It was shown above, but I'll show it again here:
Code:
CustomRecoveryAdbInterface = "Custom Recovery ADB Interface"
The reason I did it this way is because this is the string which will be displayed in the Windows device manager when this particular driver loads! If you want, you can customize this behavior - including putting your own name or other string in there - so that when the driver loads in Windows you will be 100% sure Windows is using the driver you intend!
For instance, I could have used
%MyFearsomeHackedDriver% = USB_Install, USB\VID_18D1&PID_D001
in the [Google.NTx86] and [Google.NTamd64] sections of the .INF file, and
MyFearsomeHackedDriver = "TWRP/CWM Recovery Using Asus Driver R06"
in the [Strings] section of the .INF file. Anyway, you get the idea. Change those strings to say whatever you want (but avoid using any special characters).
Important Note: I would avoid using Wordpad or any other editor which is likely to fool with line termination characters in the .INF file. - edit the .INF file using Notepad
OK, onward.
What I did next was to:
1) Disconnect my PC from the internet.
2) Disconnected N7 from the PC
3) Put "devmgr_show_nonpresent_devices=1" into the Windows Environment - system variables (search for devmgr_show_nonpresent_devices=1 if you don't know what it means. Computer->Properties->Advanced System Settings->Environment Variables)
4) Start up the device Manager, and then View->show hidden devices
#3 and #4 together will display every driver ever installed on your computer, even for devices which are not attached. (Devices which actually are attached will show up in bold, rather than washed-out colors)
Then what I did was - looking in all the usual places in the Device Manager - e.g.
"ADB Interface", or "Android Phone" or "Other Devices"
I laboriously inspected every driver's VID/PID pair one by one. For any that matched
VID_18D1&PID_4E40 - N7 bootloader
VID_18D1&PID_4E41 - ADB off + MTP on
VID_18D1&PID_4E42 - ADB on + MTP off (&REV_9999&MI_01) or MTP on (&REV_9999&MI_00)
VID_18D1&PID_4E43 - ADB off + PTP on
VID_18D1&PID_4E44 - ADB on + PTP on
VID_18D1&PID_D001 - Custom Recovery (either CWM or TWRP)
I not only removed them as the driver, but when presented with the option "do you want to also delete this driver", I clicked YES.
NOTE: You can skip over the section in the device manager labeled as "Portable Devices", as these pertain to MTP/PTP drivers. OR, depending on how you feel about them, you could also uninstall them - just don't say yes to the "do you want to also delete this driver" query. The idea is that we are trying to rid the machine of prior Asus/Google or other drivers matching the N7 - but not delete Microsoft drivers for MTP/PTP. If you uninstall them, they will get re-installed the next time the device starts up.
The reason for this is that Windows maintains a hidden database of every driver that has ever been installed on the machine, and includes with them the matching conditions that cause them to be loaded once they are installed - in particular, VID/PID USB hardware IDs. This is how Windows can re-instate an old driver as soon as you plug the hardware into the machine - even without asking you first!
After walking through all drivers that look like they might match (Note for instance you might have drivers for other Android Devices that you want to leave alone - they will show up with different VID/PID pairs however), and deleting ALL of them that match the above-listed Nexus 7 (and "Universal Naked Google VID/PID of VID_18D1&PID_D001), your machine should be expunged of old drivers.
The disconnection from the internet was to also make sure that Windows wouldn't automatically go out onto the internet and start downloading stuff. I wanted to be SURE that it only was capable of a manual driver install of my choosing.
So, I booted the N7 into the OS, made sure that ADB debugging was enabled, and plugged the N7 into my PC. I suppose it might have been even better to boot into the custom recovery and attach - if Windows installed a driver before it offered me a chance to manually install one, that would mean that I hadn't properly expunged matching drivers from the machine.
When given the option to install a driver, I pointed it at the folder with my (modded) Asus driver, and asked it to install.
Now the Asus driver is signed - and modifying the .INF file breaks the signing. So, in my case Windows 7 complained about the broken signature - but at least it let me over-ride it's complaints and install it anyway. Windows 8 is more fussy about this sort of thing I suppose - at a minimum you would need to be in Win 8 test mode when you do this; perhaps even worse.
Anyway - long story short is that it worked. No Google USB driver, no "Universal Naked Driver" - only a single hacked Asus driver for everything: fastboot and ADB (from both the OS and the custom recoveries - I've used it with both TWRP and CWM).
If you go through this procedure correctly, you should not need to re-connect to the Internet in order to install any drivers - everything you need should already be on the machine. If you want, before you re-attache to the internet, you can toggle on and off MTP/PTP, boot into the the OS and enable/disable ADB, boot into the custom recovery - and verify that all connections are satisfied with your "hacked" Asus driver plus any drivers previously on the machine (hopefully only for the MTP and PTP modes).
I don't know if this will work for you - it sounds like youve tried similar stuff (although perhaps were fuzzy about the .INF mangling). I hope this post provides you with some things to attempt.
As I said before - if you really can transmit lots of data at high speed (via MTP), that suggests that problem is not hardware, and this entire nightmare revolves around Windows drivers issues. TBH though, I would feel a whole lot better about saying this if you were using rooted stock instead of a dev ROM. In either event, you can certainly use TWRP or CWM - that would remove any question about "is it the ROM?".
Another way to validate that it is not hardware is to attempt the whole thing using Linux: boot a Linux "live" CD/DVD Distro on the PC, and cobble together a fastboot/adb executable (plus any required shared libs not present in the Linux distro) and speak to the N7 device using exactly the same PC hardware and cabling, but eliminating Windows temporarily. If it works, the problem has to be Windows.
Jeebus. To think that neither the Mac nor any Linux box need any driver at all for this crap - it really is amazing that "easy to use Windows" is the hardest platform to get this stupid sh!t working. The ADB and fastboot protocols used "on the wire" are incredibly, incredibly bare and simplistic.
anyway, I hope this helps somebody, even if the OP's troubles can't be resolved.
cheers
bftb0 said:
-snip-
Click to expand...
Click to collapse
Good news and bad news!
First, thanks for taking time to answer my cry for help The effort was amazing.
Bad news being... it didn't work :/
I managed to mangle the INF into this:
Code:
;
; Android WinUsb driver installation.
;
[Version]
Signature = "$Windows NT$"
Class = AndroidUsbDeviceClass
ClassGuid = {3F966BD9-FA04-4ec5-991C-D326973B5128}
Provider = %ProviderName%
DriverVer = 05/24/2012,6.0.0000.00000
CatalogFile.NTx86 = androidwinusb86.cat
CatalogFile.NTamd64 = androidwinusba64.cat
;
; This section seems to be required for WinUsb driver installation.
; If this section is removed the installer will report an error
; "Required section not found in INF file".
;
[ClassInstall32]
Addreg = AndroidWinUsbClassReg
[AndroidWinUsbClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-1
[Manufacturer]
%ProviderName% = Google, NTx86, NTamd64
[Google.NTx86]
;Google Nexus 7
%TWRPNexus7Recovery% = USB_Install, USB\VID_18D1&PID_D001
%bootloader% = USB_Install, USB\VID_18D1&PID_4E40
%ADBoff_MTPNexus7OS% = USB_Install, USB\VID_18D1&PID_4E41
%ADB_MTPNexus7OS% = USB_Install, USB\VID_18D1&PID_4E42&MI_00
%ADB_MTPoffNexus7OS% = USB_Install, USB\VID_18D1&PID_4E42&MI_01
%ADBoff_PTPoffNexus7OS% = USB_Install, USB\VID_18D1&PID_4E43
%ADB_PTPNexus7OS% = USB_Install, USB\VID_18D1&PID_4E44
[Google.NTamd64]
;Google Nexus 7
%TWRPNexus7Recovery% = USB_Install, USB\VID_18D1&PID_D001
%bootloader% = USB_Install, USB\VID_18D1&PID_4E40
%ADBoff_MTPNexus7OS% = USB_Install, USB\VID_18D1&PID_4E41
%ADB_MTPNexus7OS% = USB_Install, USB\VID_18D1&PID_4E42&MI_00
%ADB_MTPoffNexus7OS% = USB_Install, USB\VID_18D1&PID_4E42&MI_01
%ADBoff_PTPoffNexus7OS% = USB_Install, USB\VID_18D1&PID_4E43
%ADB_PTPNexus7OS% = USB_Install, USB\VID_18D1&PID_4E44
[USB_Install]
Include = winusb.inf
Needs = WINUSB.NT
[USB_Install.Services]
Include = winusb.inf
AddService = WinUSB,0x00000002,WinUSB_ServiceInstall
[WinUSB_ServiceInstall]
DisplayName = %WinUSB_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys
[USB_Install.Wdf]
KmdfService = WINUSB, WinUSB_Install
[WinUSB_Install]
KmdfLibraryVersion = 1.9
[USB_Install.HW]
AddReg = Dev_AddReg
[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{F72FE0D4-CBCB-407d-8814-9ED673D0DD6B}"
[USB_Install.CoInstallers]
AddReg = CoInstallers_AddReg
CopyFiles = CoInstallers_CopyFiles
[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"
[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll
WdfCoInstaller01009.dll
[DestinationDirs]
CoInstallers_CopyFiles=11
[SourceDisksNames]
1 = %DISK_NAME%,,,\i386
2 = %DISK_NAME%,,,\amd64
[SourceDisksFiles.x86]
WinUSBCoInstaller2.dll = 1
WdfCoInstaller01009.dll = 1
[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll = 2
WdfCoInstaller01009.dll = 2
[Strings]
ProviderName = "Google, Inc."
SingleAdbInterface = "Android ADB Interface"
CompositeAdbInterface = "Android Composite ADB Interface"
SingleBootLoaderInterface = "Android Bootloader Interface"
WinUSB_SvcDesc = "Android USB Driver"
DISK_NAME = "Android WinUsb installation disk"
ClassName = "Android Phone"
TWRPNexus7Recovery = "TWRP Nexus 7 Recovery"
bootloader = "Nexus 7 Bootloader"
ADBoff_MTPNexus7OS = "ADB off, MTP on Nexus 7 OS"
ADB_MTPNexus7OS = "ADB on, MTP on Nexus 7 OS"
ADB_MTPoffNexus7OS = "ADB on, MTP off Nexus 7 OS"
ADBoff_PTPoffNexus7OS = "ADB off, PTP off Nexus 7 OS"
ADB_PTPNexus7OS = "ADB on, PTP on Nexus 7 OS"
I then went around into recovery and fiddled about with the MTP PTP settings after enabling devmgr to show hidden drivers. I uninstalled them all, then reinstalled them from the Asus R06 drivers with my ethernet link disabled.
When booting into the Nexus 7 OS with ADB on and MTP off, then installing the drivers, the description ADB on, MTP off Nexus 7 OS was seen in device manager, and the hardware ID was
Code:
%ADB_MTPoffNexus7OS% = USB_Install, USB\VID_18D1&PID_4E42&MI_01
Therefore, it installed properly.
But running cmd>adb kill-server>adb start-server>adb devices
yielded... nothing.
So, I rebooted into recovery, and "TWRP Nexus 7 Recovery" showed up in devmgr. But adb devices remained oblivious.
I think I'm lost to this cause :/
P.S- you mentioned MTP could do up to 80mbit/s? Mine is very slow indeed. I use a USB OTG cable to do any transfers, and it doesn't work with NTFS, even with Paragon NTFS/HFS+ root app :/
P.P.S- word of advice, Windows 8 is the most useless, horrendous, unusable and awful OS you could ever use if you don't have a touchscreen. 1) Hacky unsigned driver install leaves you open to attacks 2) Boots a useless 'Metro' start screen with crap app selection that eats memory. 3) Clearly doesn't work with Android out of the box. Or any other Linux OS for that matter. for the love of god DON'T. GET. IT.
@tigrey
Sorry it didn't work out. Really strange though that it seems to function correctly for some things but not others.
Way OT question... is it possible to boot that Win 8 machine with anything else, or does it have mandatory signing requirements that prevents that from happening? (e.g. will it boot a Linux "live" CD?). Just curious - I haven't been keeping up with what M$ has been forcing on their hardware partners.
bftb0 said:
@tigrey
Sorry it didn't work out. Really strange though that it seems to function correctly for some things but not others.
Way OT question... is it possible to boot that Win 8 machine with anything else, or does it have mandatory signing requirements that prevents that from happening? (e.g. will it boot a Linux "live" CD?). Just curious - I haven't been keeping up with what M$ has been forcing on their hardware partners.
Click to expand...
Click to collapse
Well, it doesn't have a CD drive, but I'm sure i'd be able to make a live USB boot before windows. I haven't tried it.
I don't know anything about Linux, sorry, so I wouldn't know how to 'cobble together a fastboot/adb executable' :/
I think you can: http://mjg59.dreamwidth.org/20522.html for select distros
tigrey said:
Well, it doesn't have a CD drive, but I'm sure i'd be able to make a live USB boot before windows. I haven't tried it.
I don't know anything about Linux, sorry, so I wouldn't know how to 'cobble together a fastboot/adb executable' :/
I think you can: http://mjg59.dreamwidth.org/20522.html for select distros
Click to expand...
Click to collapse
Well the fastboot executable for Linux is dynamically linked; exactly analogous to how dynamically-linked executables for Windows require supporting .DLLs, Linux executables require ".so" files (Shared Object libraries). Usually, most of them are already part of the distro, but perhaps one of two are shipped with the executable. The last time I used a Linux Live CD with Google's fastboot for Linux, I only had to grab two files out of the Google Linux SDK - the fastboot executable itself and a single .so file - and put them on a USB key drive in order to use fastboot (from the live cd boot) without installing the Google SDK.
There is only one additional trick to getting this done - adding an environment variable LD_LIBRARY_PATH - to the command shell's environment so that when you start up "fastboot" it knows where to find the missing .so file(s).
PM me if you want some assistance - but it sort of sounds like you don't want to go down that path, especially if it were to turn out that the N7 really is the source of the trouble.
Thanks for the link - it sure looks like that UEFI/ secure boot technology is in play and some sort of signed boot shim from M$ is needed. Ugh.
Are you sure Win 8 is accepting Un-signed drivers?
I had issues before. Un-installed any android related drivers.
Accepted unsigned drivers.
Reboot.
Install Android drivers.
BAM!
bftb0 said:
Well the fastboot executable for Linux is dynamically linked; exactly analogous to how dynamically-linked executables for Windows require supporting .DLLs, Linux executables require ".so" files (Shared Object libraries). Usually, most of them are already part of the distro, but perhaps one of two are shipped with the executable. The last time I used a Linux Live CD with Google's fastboot for Linux, I only had to grab two files out of the Google Linux SDK - the fastboot executable itself and a single .so file - and put them on a USB key drive in order to use fastboot (from the live cd boot) without installing the Google SDK.
There is only one additional trick to getting this done - adding an environment variable LD_LIBRARY_PATH - to the command shell's environment so that when you start up "fastboot" it knows where to find the missing .so file(s).
PM me if you want some assistance - but it sort of sounds like you don't want to go down that path, especially if it were to turn out that the N7 really is the source of the trouble.
Thanks for the link - it sure looks like that UEFI/ secure boot technology is in play and some sort of signed boot shim from M$ is needed. Ugh.
Click to expand...
Click to collapse
Holy mother of jesus
After a month of tinkering, I just solved the problem! I have no idea how any of this is linked together, but I updated the bootloader from 4.13 to 4.18 and bam, the device is now recognised in ADB. Since fastboot and adb are mutually exclusive, I find it odd that it worked. Thanks for the help, thought I'd end the thread with some closure
tigrey said:
Holy mother of jesus
After a month of tinkering, I just solved the problem! I have no idea how any of this is linked together, but I updated the bootloader from 4.13 to 4.18 and bam, the device is now recognised in ADB. Since fastboot and adb are mutually exclusive, I find it odd that it worked. Thanks for the help, thought I'd end the thread with some closure
Click to expand...
Click to collapse
Ouch!
Well, at least it is working now - congrats on your persistence (although I'm sure you would have preferred to have spent the time on other stuff). I don't know why that would make a difference for adb, either.
I had a similar issue as the OP with Win7 x64 presenting my Nexus 7 as an "Android Composite ADB Interface" but no devices showing up in 'adb devices'. This is using the auto-downloaded Windows Update drivers; nothing special.
On a whim, I pulled down the notification where it said, "Connected as a Media Device. Select to change" and changed it from a Media device (MTP) to a Camera (PTP). Windows beeped and booped, installed two more drivers, and I immediately got the prompt to authorize connection via ADB on the tablet. Now 'adb devices' shows the device and I'm ready to rock.
- Dave
ViperGeek said:
I had a similar issue as the OP with Win7 x64 presenting my Nexus 7 as an "Android Composite ADB Interface" but no devices showing up in 'adb devices'. This is using the auto-downloaded Windows Update drivers; nothing special.
On a whim, I pulled down the notification where it said, "Connected as a Media Device. Select to change" and changed it from a Media device (MTP) to a Camera (PTP). Windows beeped and booped, installed two more drivers, and I immediately got the prompt to authorize connection via ADB on the tablet. Now 'adb devices' shows the device and I'm ready to rock.
- Dave
Click to expand...
Click to collapse
You Sir, are a legend.
BS...
I know this is an old thread but it shows up on Google, so I thought I would add something useful to it.
If you don't want to hack your drivers and mess with unsigned drivers on Windows 8, I suggest you install the UniversalADBDriver
https://github.com/koush/UniversalAdbDriver
Your device might show up under another name in the device manager, but who cared. It works.
Continuing the work of @ofutur and @ViperGeek, there's one other suggestion that it doesn't appear to have fully been made that has been known to work...
Go into your device manager for your computer, and where the device shows up when you plug it in (Android/Portable Devices/wherever...), go to the device properties and select the Driver tab, and down at the bottom, select Uninstall. There will be a small prompt that has a check-box in it that says "Delete the driver software for this device", and check that box. When it's done removing everything, unplug the device and go into it's developer options (selecting debugging on) and going into your storage options (selecting MTP/Media Device), and then plug the device back into the computer. Drivers will start installing themselves, and when they complete, refresh your C:/ folder to see if anything's appeared there (namely, your device). If it has, in MTP mode, you're good to go. If nothing's shown there while you're in MTP mode on your device, then what's happened is that your computer used other drivers that (still) aren't compatible upon the new installation. The reason why this happened is because you have so many different driver options on your computer that it essentially doesn't know which of the multiple options you have is the right one. NakedDrivers/Cyogenmod Drivers/CompanyDrivers/WhateverDrivers, there's a lot of options out there that many people have used/installed. Effectively, you need to weed out which ones are completely compatible, and which ones aren't. So keep plugging in your device, uninstalling the drivers (and the driver software), un-plugging and re-plugging in your device (and there-by installing different drivers), until your computer installs the drivers that are the correct and most compatible drivers. Upon doing this, chances are your computer will show a different driver type in the installation, including MTP in it. From there, you should be good to go. In short, you don't need to download and install anything, you just need to uninstall whatever software and drivers you have on your machine until when you plug your device in, they communicate in the way they're supposed to.
i have spent hours stuffing around with my nexus 7 2012 (wifi) and wanted to share a tip. hope this helps someone!
i wanted to downgrade from 5.x back to 4.4.4 so i could play the old tetris (mission failed anyway, no longer available, where do you get old versions of apps & games?) anyway i found that adb 1.0.32 only shows devices once my nexus is fully powered on to the normal state
when i reboot into bootloader aka fastboot mode, i was being driven mad by adb "not showing my device"
then i realised that both the bootloader image and the 4.4.4 zip file only needed the "fastboot" command not the "adb" command. also noticed that "adb devices" has a similar command "fastboot devices" and in bootloader mode, fastboot devices DID return my device...
so i was trying to solve a problem that didn't exist! adb does not need to see devices in bootloader aka fastboot mode!! and so i was able to use fastboot to do the last steps of boot image and system zip file update
Code:
fastboot flash bootloader [bootloader file].img
fastboot -w update [image file].zip
PS. i had stumbled onto these "manual" commands at first, but they failed, so i assumed it was because of adb no devices. it turns out the nexus 7 has a 2013 model (wifi) called "flo-flo" i had downloaded from android central. well, my device was listed further down under nexus 7 2012 (wifi) called "grouper". this was the root cause of the fastboot error (not adb lack of devices in bootloader aka fastboot mode) once i used "grouper" the boot.img and image.zip worked fine. my nexus 7 actually had a little echo up top left saying "signature match" which i presume was the "flo-flo" vs. "grouper" issue.