ADB shell not reconizing it. - Kindle Fire General

I rooted it and installed CM7 on it, CM7 was getting a boot loop so I did a factory reset, I read online that I should reinstall CM7 to help get rid o the boot loop, i turned off the kindle, putting it into recovery mod (like a t**t). Stuck in FFF boot loop, windows reconizses its an ADB device but nether the KF utility, nor ADB thinks its plugged in. I can mount it as a mass storage device. Any help is appreciated.
Edit: This picture better explains what is going on, but as i am a new user, i cannot post a link so I'm sorry but you will have to copy and paste this : i.imgur.com/3Lcsh.png

Did you try this?
adb shell
idme bootmode 4000
reboot

Droidanian said:
Did you try this?
adb shell
idme bootmode 4000
reboot
Click to expand...
Click to collapse
As i was trying to explain adb shell keeps telling me the device isn't found
And before you ask, yes i have installed the drivers and yes i have reinstalled them and yes i have rebooted the device and my computer

Did you try using the command prompt instead of the KFU? I had success doing it manually.

yup, no luck

Remove the KF, uninstall the drivers, restart Windows, and install them manually.
That should work.

no luck, still stuck

Did you edit the "adb_usb" and "android_winusb" files?

HOLY **** after ~ 4 hours of tinkering i got it!!!
Within the KFU i installed the TWRP recovery and while it said waiting for device, I restarted it. I had done this before but it didn't take.
I LOVE THE KFU, IF I HAD ANY MONEY I WOULD GIVE IT TO THEM.
If anyone in the future has this problem and has any questions, PM me and I will try to help you as best as I can.

Related

[Q] Bricked/Stuck in Fastboot (How to Remove TWRP?)

So, I've been up all night after buying this Fire trying to fix it, and I've decided to go along with my original decision to just return it. I'll rewind a bit to give you guys a play by play to show how I got to what I've determined is a FUBAR situation, and hopefully you guys can help me at least remove TWRP so I can return it without much issue.
If it's tl;dr, I bolded the main errors I got from the console and TWRP
1. I purchased my Kindle Fire from Best Buy with a 1 Year Protection plan, so in all reality, I could just break it in half and get a replacement, but I don't necessarily want a replacement.
2. I initially purchased it for my mom, but when I found out that the stock Fire OS didn't have Korean input or the option to have a Korean interface, I did a bit of research and started reading up on how to root, how to install the market, things like that. My mom's not a native English speaker, so this was an important thing for her, etc etc.
3. I read multiple guides on this forum and others, and rooted using the guide found here , since a few of the threads I was reading through seemed to point in that direction, and I had a bad experience with SOCR on my Droid X.
4. The root was successful, so I moved on and used KFU .3 to do the rest of the important bits; android market, etc etc.
5. Everything was working fine, but, after looking through it, I realized that it wouldn't work for what I needed it to, and I would have to return it, so, I attempted to unroot the tablet using TWRP's interface.
6. I cleared the cache, the devlak cache, and system wiped, then restored using the system restore point in the TWRP folder, figuring after that, the Kindle would boot up with stock OS and then I would just system restore the default way. This method got me stuck in a recovery-loop, and no matter what I did, the Fire always booted to recovery mode.
7. I figured I had bricked it, so I followed the steps in this guide, but always seemed to have problems at the step where I have to chmod 755 of the zergRush. I get "Not a directory" error, which after doing some research, I believe is on account of me no longer having rw privilege?
8. I looked around some more, ignoring that guide, and found a method to force-push the amazon update, but TWRP would no longer run the update, saying it could not Mount the SD Card due to an Invalid Argument, and I have yet to determine what that means.
9. After manually changing it to fastboot in an attempt to at least get it out of recovery mode, I have the Fire recognizable as a device in my ADB, but it is now stuck in a fastboot loop, and when I attempt to re-root it in order to give myself rw privileges again, it stalls on "waiting for device" and never gets past that point.
Update
I tried to reroot while the Fire was stuck in the Kindle Fire splash screen using the KFU tool, and used zergRush, but the error message I got was - exec '/system/bin/sh' failed: No such file or directory (2) - 4 times over.
What I think the problem is, is that when I wiped the cache/devlak cache/ and system reformatted, it wiped my SU privileges, and as a result, no longer allowed me to write the backup to the Fire, therefore leaving me in a perpetual state of limbo?
What I'm asking for from you is;
What can I do to fix this?
Is there any more information you need/want from me?
And finally,
Is there an easy way for me to remove TWRP from the system?
Thank you.
Hi!
There are a lot of great tips regarding TWRP and fastboot over at RootzWiki.
Some users are reporting the same fastboot loop that you currently experience. I suggest you read the thread and follow the suggestions. One suggestion which you may want to try first is the one in this post.
Thank you for the reply. I did as you suggested and followed the links and the post on the guide, and although that did change the nature of my fastboot loop, I'm still stuck in a fastboot loop.
I was initially stuck in a fastboot loop on the Kindle Fire logo, which I determined by running fastboot devices, while it was stuck on that logo, and it showed the device as being fastboot. After following that guide, and using the hard reset, then using the "How to Unbrick" in order to change back to a normal boot, I'm stuck in a fastboot loop on the TWRP splash screen of a triangle with a fire in it. I'll continue looking through the guides to see if I can solve the problem, but thank you once again, and sorry for not clarifying which type of fastboot loop I was in.
Sorry it didn't work out! However...
isjonamon said:
I'm stuck in a fastboot loop on the TWRP splash screen of a triangle with a fire in it.
Click to expand...
Click to collapse
I really though the solution posted over at RootzWizi would solve this problem. Getting stuck at the yellow triangle is 'common'. I really though adding
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0100
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0100&MI_01
Click to expand...
Click to collapse
to android_winusb.inf would solve it. But if you are able to recognize your Fire in fastboot mode via your PC, I guess that's not where your problem is.
Is this tip to any help?
And lastly... the great Kindle Fire Utility thread is worth checking out, in case you haven't already
I hope you'll find a solution to this problem!
I've tried the tip you linked me to, and sadly it didn't do anything for me.
Moving on, though, I'm reading through the KFU thread again to see if there was anything I missed, and decided I might as well try re-flashing to CM7 to see if I can at least get it working up to a rooted/rom standpoint. I figure from there, I can at least have a working platform to factory reset from. If I can't do that... well...
Does anyone know a way to just return everything to factory settings? To just wipe everything and make it so it turns on like it's out of the box? Either through adb commands, or TWRP or anything?
Sorry for the double post, but I managed to get CM7 back up on my Fire, and managed to regain SU access. Can anyone point me to a guide to restoring it back to its former "glory" so I can return it?
Fixed it!!
For anyone interested, this is what worked for me;
From where I ended up with the problem, I followed hachiueno's advice and read through the KFU's thread as well as the TWRP thread on Rootzwiki, that led me to adding those lines to the device firmware, which I think was the first step in the solution, so...
Step 1. Add
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0100
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0100&MI_01
to android_winusb.inf , then restart your computer with your Fire unplugged.
After that, I was inspired, through reading the KFU thread, to attempt to manually install CM7 since I wasn't having much luck zergRushing on my own, so, I went to the CM7 thread and pushed the Update.zip there, and used my TWRP to install that, effectively rebuilding my filestructure, since it seems the Kindle Fire doesn't have so much as a SH folder in it.
Step 2. MANUALLY (maybe) install CM7 if you can.
Once I got CM7 up and working, using the USB mounting option, I replaced the update.zip in the sdcard folder with the Amazon 6.2 firmware downloaded from their website, renamed to update.zip, and then unmounted my fire from my laptop.
Step 3. Download the Amazon 6.2 Firmware from amazon's website (I can't post...), rename it to update.zip, and replace the CM7 mod update.zip in your /sdcard directory with it.
Then, I figured if I ran TWRP like it was supposed to run, and just ran the update.zip like any other ROM, it should fill in the blanks in the filesstructure, bypassing Amazon's own lack of certain folders, and various other things, filling in the gaps as they were. The next step might be entirely redundant, since I'm a bit clueless, and it might have been entirely luck on my part, but I initially forgot to wipe my cache, devlak cache, and system restore, so I did all that and did it again, and my wishful thinking leads me to believe that doing that saved my ass from having a crapton of errors....
Step 4. Using the install function on TWRP, install the renamed Amazon update.zip, reboot, clear your cache, devlak cache, system reformat, then reinstall the update.zip. Reboot one more time, and you should come up to the Kindle Fire splash screen. Leave it for a few minutes, and it'll be like it just came out of the box.
Thanks for all your help. I love you. Seriously. No homo. Maybe a little. I love you.
Good to hear that you managed to boot it again!
isjonamon said:
Sorry for the double post, but I managed to get CM7 back up on my Fire, and managed to regain SU access. Can anyone point me to a guide to restoring it back to its former "glory" so I can return it?
Click to expand...
Click to collapse
This guide seems to be an easy solution to this. However, no one has replied any success or failure, so not sure if it's 100% bulletproof for everyone... if I were you, I would follow JackpotClavin's guide here. He's a known developer here and knows what he's doing, and many successful replies from users having used this method... so yeah, just to be 'sure' (can you ever be...?) that you won't experience any further problems, I recommend the last one.
I actually used the first guide in order to get the Amazon update, but couldn't post a reply since I'm still a noob. I had to do a few things differently, and ultimately got a few different results, but posted up my own version of the steps.
Once again, thanks for all your help!
It seems to me that the majority of problems people are having are driver related. When I was using KFU to install TWRP it stalled half way through and just said waiting for device. Just had to install drivers again and it happily completed the install.
Sent from my Kindle Fire using xda premium
all u needed do initially was change bootmode it seemed. thrn u went and did all kinds of stuff that wasnt necessary.
sent from my kindle fire
smirkis said:
all u needed do initially was change bootmode it seemed. thrn u went and did all kinds of stuff that wasnt necessary.
sent from my kindle fire
Click to expand...
Click to collapse
I actually changed bootmodes quite frequently, following multiple threads and guides, changing from recovery, to normal, to fastboot, and back and forth when called for. Changing to fastboot stuck me in an eternal fastboot loop, changing to normal reverted me to a recovery loop, and recovery was the only bootmode I could access adb from.
Sheolrock said:
It seems to me that the majority of problems people are having are driver related. When I was using KFU to install TWRP it stalled half way through and just said waiting for device. Just had to install drivers again and it happily completed the install.
Sent from my Kindle Fire using xda premium
Click to expand...
Click to collapse
Driver issues seemed to be part of the problem for me, but just updating the drivers didn't fix the issue entirely. I'm jealous that you got it to work with just a driver update...
Hey i believe im in the same problem but i keep reading the posts and im still stuck and i have no idea what to do im worried that i cant fix it.... Some please help me ASAP
Thanks in advance
wrong boot mode ?
with adb:
adb shell su -c "idme bootmode 4000"
adb reboot
with fastboot:
fastboot -i 0x1949 oem idme bootmode 4000
fastboot reboot
bad drivers ?
http://forum.xda-developers.com/showpost.php?p=20855280&postcount=54
I have had the looping problem and none of these would fix it. I got it to work by adding those lines to android_winusb and running the run.bat, trying to make it switch to normal mode as the kindle was turning on. Somewhere along the yellow triangle when it was loading it accepted the command from KFU. Hope this helps, only thing that worked for me.
the drivers i included contain all the necessary entries in adb_usb.ini and android_winusb.inf
Please can someone help me!?
I did idme bootmode 4002 and now my fire won't boot up or show up in android adb. Any solution?
awidawad said:
I did idme bootmode 4002 and now my fire won't boot up or show up in android adb. Any solution?
Click to expand...
Click to collapse
you switched it to fastboot (4002) - adb commands are not working in fastboot mode !
little guide:
driver (under android phone):
normal & recovery boot: -> android composite adb interface
fastboot: -> android adb interface
here all the possible commands to change bootmode:
with adb (secure kernel):
adb shell su -c "idme bootmode 4000"
adb reboot
or (twrp or unsecure kernel):
adb shell idme bootmode 4000
adb reboot
with fastboot:
fastboot -i 0x1949 oem idme bootmode 4000
fastboot -i 0x1949 reboot
or:
fastboot -i 0x18d1 oem idme bootmode 4000
fastboot -i 0x18d1 reboot
or:
fastboot oem idme bootmode 4000
fastboot reboot
the number is the bootmode you want to switch to:
normal boot -> 4000
fastboot -> 4002
boot to recovery -> 5001
and if you know:
normal boot -> adb commands YES -> fastboot commands NO
fastboot -> adb commands NO -> fastboot commands YES
recovery -> adb commands YES -> fastboot commands NO
then you only have to count 1 and 1 together and can master nearly each hanging situation !
Click to expand...
Click to collapse
Not sure if this is totally helpful to anyone but originally I thought the thread was started with a posting of being stuck bootlooping into twrp in recovery mode with a complete loss of file structure. I had this same issue my Kindle would not start in anything but straight to twrp and if I tried to flash my CM9 ICS rom it was not there and only the twrp folder empty was. So I went to mount and mounted usb storage and moved the stock update zip file from amazon to the twrp folder and flashed that. Worked like a charm now I appear to be straight stock. I am no developer of this stuff I just am a bit of a tinkerer so don't understand all the code stuff but it starts like a normal kindle and appears totally stock. So hopefuly that helps you return your deice to stock for return or to continue wahtever modifications you intend.
2992

[Q] Yet another bricked KF

Hello all,
I've got a bricked droid, and haven't been able to find a fix that worked in other threads here.
I rooted my droid successfully, and installed GO Launcher EX, along with the android market, and a number of apps from there.
Among those, busybox, metamorph (which i then used to change the wallpaper), titanium backup, etc. I had successfully rebooted after all these installations and after changing the wallpaper.
I was getting on a plane the other day and turned off the KF, and havent been able to get it to boot since.
Originally it was in a boot loop, getting to the kindle fire icon and rebooting every 3 seconds.
I tried using the KFU, but it was unsuccessful at changing the boot mode (drivers were successfully installed).
Failing at that, i tried following the instructions in http://forum.xda-developers.com/showthread.php?t=1414832
After the reboot, it is now just stuck in the kindle fire screen, and i cant run any adb commands, device not found.
Am I straight up screwed now? or anything I might be able to do at this point.
Much appreciated, thanks for any advice.
Do you have fastboot access? Try running the following...
fastboot -i 0x1949 oem idme bootmode 4000
Try this: http://forum.xda-developers.com/showthread.php?t=1422832
Thanks guys, ill try those and post back w the results.
so i tried fastboot -i 0x1949 oem idme bootmode 4000
and it seems to have been successful, in that it is now back to its original boot loop state. however, it is still not booting fully.
it seems that adb commands are now working, i can do adb shell, and navigate root folders (system etc).
zombie, i havent had much luck with that route, i had tried that earlier.
I've seen people mentioning that the cause for their brick had something to do with permissions, so i did ls -l in the adb shell, here are the permissions for some of the relevant folders. if there are any others that might be helpful, let me know.
root -> drwx------
system -> drwxr-xr-x
sdcard -> lrwxrwxrwx
oh and framework-res.apk -> -rw-r--r-- (same as all other files in that directory)
i did modify the framework-res to change the background image. it successfully booted at least once after the modification - i used metamorph, i loaded the file, then rebooted for it to take effect. this was successful, but i believe it was the next reboot which did my kindle in, so possibly related.
i rambled a bit, but maybe if i replaced the current framework-res.apk with the stock framework-res.apk, that might be worth trying? are all stock framework-res.apk files the same at stock? because i don't have a copy of the original that came with my kindle.
i would go back into fastboot and then flash over TWRP... and then reinstall your os from scratch. it would probably be easier than trying to root around fixing it from the inside.
Thanks xrishox, I might do that. Is there a thread detailing how to do that?
When I tried doing fastboot I lost the ability to use adb commands so I'm not sure how to go about flashing twrp.
Download the fbmode binary and TWRP image. Then run the following.
Code:
adb push fbmode /data/local/temp
adb shell /data/local/tmp/fbmode
arbiter reboot
Your device should reboot and be stuck on the Kindle bootscreen. You are currently in fastboot mode. Now run the following...
Code:
fastboot -i 0x1949 poem idme bootmode 4000
fastboot -i 0x1949 boot twrp-blaze-2.0.0RC0.image
Your device will reboot after that last command. It will boot into the TWRP installer. When it completes, tap "Reboot". Then boot into TWRP recovery and install the factory update, or a custom image that won't replace FireFireFire and TWRP.
jackofaiitrades said:
Hello all,
I've got a bricked droid, and haven't been able to find a fix that worked in other threads here.
I rooted my droid successfully, and installed GO Launcher EX, along with the android market, and a number of apps from there.
Among those, busybox, metamorph (which i then used to change the wallpaper), titanium backup, etc. I had successfully rebooted after all these installations and after changing the wallpaper.
I was getting on a plane the other day and turned off the KF, and havent been able to get it to boot since.
Originally it was in a boot loop, getting to the kindle fire icon and rebooting every 3 seconds.
I tried using the KFU, but it was unsuccessful at changing the boot mode (drivers were successfully installed).
Failing at that, i tried following the instructions in http://forum.xda-developers.com/showthread.php?t=1414832
After the reboot, it is now just stuck in the kindle fire screen, and i cant run any adb commands, device not found.
Am I straight up screwed now? or anything I might be able to do at this point.
Much appreciated, thanks for any advice.
Click to expand...
Click to collapse
Howdy!
I recently just dealt with this same issue. My KF was stuck in boot loop and wouldn't be recognized by my computer. I left it in bootloop until it ran out of battery. Once it was completely drained, I connected it to my computer and my computer recognized it, I then reinstalled the drivers. Right after that I used KFU to change bootmode to normal boot and let it fully charge! Good to go! Hope this helps someone.
from the op of kfu:
Known Tricks
•If you end up stuck at the yellow triangle, in KF Utility select Boot Normal, wait for it to say <waiting for device> and then press and hold the power button 20 seconds until the fire turns off, then when its off turn it back on. This sometimes happens, I have yet to find a clean solution
•If you end up stuck with a yellow triangle, do not EVER unplug it. Leave it plugged in. Check the windows drivers to make sure it isnt showing as "kindle" again. Fastboot is different and can cause this.
Click to expand...
Click to collapse
and here is a note from vashypooh - the op of kfu
http://forum.xda-developers.com/showpost.php?p=20945694&postcount=506
maybe it helps someone ...
Thanks guys, I won't be near a computer until tonight but will try these out as soon as I get back
lmntone said:
Download the fbmode binary and TWRP image. Then run the following.
Code:
adb push fbmode /data/local/temp
adb shell /data/local/tmp/fbmode
arbiter reboot
Your device should reboot and be stuck on the Kindle bootscreen. You are currently in fastboot mode. Now run the following...
Code:
fastboot -i 0x1949 poem idme bootmode 4000
fastboot -i 0x1949 boot twrp-blaze-2.0.0RC0.image
Your device will reboot after that last command. It will boot into the TWRP installer. When it completes, tap "Reboot". Then boot into TWRP recovery and install the factory update, or a custom image that won't replace FireFireFire and TWRP.
Click to expand...
Click to collapse
Tone you're a life saver, thanks. I'm up and good to go.
good that it's working again !
have you seen this one in the dev section - could save a lot of handwork:
http://forum.xda-developers.com/showthread.php?t=1428428
Also, when I get back to my computer again, ill update my OP to include the solution so that others might benefit. its like a 20 minute fix but took me days to resolve it (largely due to lack of comp access but that's beside the point).

[Q] Tried to revert back from CM7 to stock Rom

and that worked fine. I restored my backup and had the stock rom up and running fine. I then tried to install the android market but root explorer would not let me change the "mount as R/W" option. So under system settngs, device, I did a factory reset. Well after doing so I was met with TWRP, where I found out that my backup for the stock rom and CM7 was gone.
I tried re-installing CM7 via TWRP only to get met with it telling me:
E:Can't open/cache/recovery/log
E:Can't open/cache/recovery/last_log
E:Cannot load volume/misc!
So now I take it doing the factory reset wasn't the greatest idea. My question now is, how do I get my kindle running again? I would prefer to get back to the stock rom with access to the android market until a stable ICS rom is released, but have no problem going back to CM7 if necessary.
Any help would be greatly appreciated.
Thank You.
NastyNasdaq said:
and that worked fine. I restored my backup and had the stock rom up and running fine. I then tried to install the android market but root explorer would not let me change the "mount as R/W" option. So under system settngs, device, I did a factory reset. Well after doing so I was met with TWRP, where I found out that my backup for the stock rom and CM7 was gone.
I tried re-installing CM7 via TWRP only to get met with it telling me:
E:Can't open/cache/recovery/log
E:Can't open/cache/recovery/last_log
E:Cannot load volume/misc!
So now I take it doing the factory reset wasn't the greatest idea. My question now is, how do I get my kindle running again? I would prefer to get back to the stock rom with access to the android market until a stable ICS rom is released, but have no problem going back to CM7 if necessary.
Any help would be greatly appreciated.
Thank You.
Click to expand...
Click to collapse
Well that quick looks like I have done more damage.
I tried to run the unbrick kindle utility found in the developers forums. I ran that and selected option 5, it then asked me if I had the yellow triangle so I selected no. It then rebooted the kindle and I am now stuck with the yellow triangle.
Any help?
NastyNasdaq said:
Well that quick looks like I have done more damage.
I tried to run the unbrick kindle utility found in the developers forums. I ran that and selected option 5, it then asked me if I had the yellow triangle so I selected no. It then rebooted the kindle and I am now stuck with the yellow triangle.
Any help?
Click to expand...
Click to collapse
Uhhhhh select yes.....Now that you have the triangle
Tried that and it gave me an error. Forget what it said (turned pc off, going to sleep) and did nothing to the kindle. Pc recognizes it as android phone but not as a usb storage drive.
Any suggestions?
Have you tried to fastboot it via adb?
its in fastboot. reinstall twrp. this is why I ordered a fastboot cable.
how did u install twrp the first time? sounds like u have a drivers issue.
Sent from my HTC Glacier using xda premium
in case you have a driver issue you could follow this thread:
http://forum.xda-developers.com/showthread.php?t=1436147
then you can use kfu or unbrick utility to set bootmode to normal
if you like to do it manually here are all commands depending on rooting method and the bootstate (use only the fastboot commands in your case):
with adb:
adb shell su -c "idme bootmode 4000"
adb reboot
with fastboot:
fastboot -i 0x1949 oem idme bootmode 4000
fastboot -i 0x1949 reboot
or
fastboot -i 0x18d1 oem idme bootmode 4000
fastboot -i 0x18d1 reboot
or
fastboot oem idme bootmode 4000
fastboot reboot

[Solved] Anyone have any success with a factory cable?

Solved
thanks to all for the great info
i have a fire that is stuck on the static kindle logo. was rooted and had fff and twrp. while messing with flashing different roms i used a custom rom that had several apks removed. after booting i still had fff and twrp but my wifi stopped working. i flash the 6.2.1 stock rom that removes fff and twrp, but did a stupid and wiped some stuff before i booted the stock rom. now im stuck with kfu showing online but under status says unknown. i can use adb to reboot but that seems all i can get it to do. im at work now and cannot quote the messages i get. something like /systme/whatever is not there. seems like i wiped the sd card and all. now with that information can i still use a factory cable to fix this? im working on one now to try and see. just wanted to hear from someone who has maybe done the same.
thank you very much for any info
I was in the same exact situation and with the factory cable i managed to fix my brick. Don't worry, your Fire is fine.
The same thing happened on mine 20 minutes ago. I worked it out with the method used in this thread.
lmntone said:
The same thing happened on mine 20 minutes ago. I worked it out with the method used in this thread.
Click to expand...
Click to collapse
That won't work without a working adb shell (http://forum.xda-developers.com/showthread.php?t=1418080), whik i think is the case.
man i hate being a noob fire owner i have my cable done 5v on 1 and 4 but not getting what i was looking for. kfu still shows
adb: online
adb rooted: no
boot status: unknown
im on windows 7 and can reboot the fire with cmd window adb reboot. but i have no idea where to go from here.
i thought the factory cable would put it in fastboot, but not sure how to check or what to do.
adb shell gets this:
-exec '/system/bin/sh' failed: no such file or directory (2) -
It won't show up in kfu, just select flash twrp anyway.
Sent from my myTouch_4G_Slide using XDA App
Use fastboot.exe located in the tools directory and run "fastboot.exe -i 0x1949 boot twrp-blaze-2.0.0RC0.image". But you have to download the TWRP image and place it in the same folder as fastboot.exe.
Iguanadon said:
man i hate being a noob fire owner i have my cable done 5v on 1 and 4 but not getting what i was looking for. kfu still shows
adb: online
adb rooted: no
boot status: unknown
im on windows 7 and can reboot the fire with cmd window adb reboot. but i have no idea where to go from here.
i thought the factory cable would put it in fastboot, but not sure how to check or what to do.
adb shell gets this:
-exec '/system/bin/sh' failed: no such file or directory (2) -
Click to expand...
Click to collapse
you know you're in fastboot mode when your kindle fire logo is static instead of glimmering
maybe you want to take a look here:
http://forum.xda-developers.com/showpost.php?p=21391952&postcount=38

[SOLVED] Stuck in boot loop with 6.2.2 and HAVE adb shell access, but still stuck...

Firstly, I'm sorry for creating a new thread, but please know that I searched everywhere (here and around the Internet) first. I barely slept last night. I have read and read. I'm still stuck.
I was able to root following these instructions - http://forum.xda-developers.com/showthread.php?t=1410223 - and all was good for a little while, until I made a bone-headed mistake in the File Expert app while trying to install Google Market. I changed the permissions to /system/app and I'm sure that if I was able to change them back, I'd be fine. I just can't figure out how to do that.
What I can do is connect to the device via ADB, but if I go to adb shell, the prompt is a $. As I understand it, I need that to be a #. I can't get a # prompt, because when I run "su", I get an error that says "Segmentation fault su". (Sometimes I get a different error message, but I'm sorry, I forget what that is right now.)
Anyway, so because I'm not superuser, when I attempt to run "chmod 755 /system/app" (which is what I know I need to do), I get an error "Unable to chmod ... Read-only file system."
In order to get around that error, I know I need to mount as readwrite. However, when I try to run "mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system", I get an error that says, "mount: Operation not permitted."
No doubt, I cannot chmod or mount because I'm not su. In an attempt to regain su, I tried to run BurritoRoot2.bin again (I don't know if that makes sense, but I decided to try it anyway, because BurritoRoot2 is what worked for me last night, and everything really was fine until I messed up those permissions). Anyway, that was last night. Today, BurritoRoot2 won't work anymore. Now I get an error says, "android.util.AndroidException: Can't connect to activity manager; is the system running?"
Well, no. The system is not running. That's sort of my problem.
I have no idea what to do now. I do not have TWRP installed. If I did have that installed, I might be able to flash a completely stock 6.2.1 or 6.2.2 ROM, thus restoring everything to "out-of-the-box" condition, which would be fantastic right about now. I don't know if I can install TWRP at this point, however, since my access to the device is so limited.
PLEASE help me... Where, exactly, should I go from here?
(Thank you for reading this. I'm sorry it's so long; I wanted to be thorough.)
you have to install fff and twrp therefore you have to get to fastboot:
http://forum.xda-developers.com/showthread.php?t=1414832
then install twrp:
download from http://techerrata.com/file/twrp2/twrp-blaze-2.0.0RC0.img
install with:
fastboot -i 0x1949 boot recovery\twrp-blaze-2.0.0RC0.img
and reboot:
fastboot reboot
now you can flash one of the prerroted stock roms or cm7 - whatever you like
would not use the stock rom from amazon cause you'll loose fff, twrp and root
Okay, so far so good! Thank you so much for that information.
It seems as if fastboot has been enabled without complication. I'm moving on now to the download and installation of TWRP and FFF. I'll let you know how it goes!
Well, crap. Now I'm stuck at the yellow triangle and "press power button for recovery", except pressing power does not start recovery.
AND, I can no longer access the device via ADB. The drivers appear to be invalid now. :`-(
I'll be working my way through this thread now - http://forum.xda-developers.com/showthread.php?t=1408056 - and again, will report back later.
CarpeNivem said:
Well, crap. Now I'm stuck at the yellow triangle and "press power button for recovery", except pressing power does not start recovery.
AND, I can no longer access the device via ADB. The drivers appear to be invalid now. :`-(
I'll be working my way through this thread now - http://forum.xda-developers.com/showthread.php?t=1408056 - and again, will report back later.
Click to expand...
Click to collapse
you'll have to update the driver - some did up to 4 times to get the right driver for each boot mode
in short:
normal boot -> android composite adb interface
fastboot -> android adb interface
adb is'nt working in fastboot mode and you'r still in fastboot mode
once you got twrp installed correctly, the drivers updated and correctly recognized you can force to recovery mode:
fastboot -i 0x1949 oem idme bootmode 5001
fastboot -i 0x1949 reboot
btw. to get to twrp you have to press the button repeatently (not holding,not once) till the button gets orange
After rebooting the Kindle several times, it is now appearing in Device Manager as "Android ADB Interface" (which, if I'm understanding your most recent post, is correct). However, it is not listed when I type "adb devices", so that's troubling. And, when I try to run the "fastboot oem idme bootmode 4000" command, I get an error that "AdbWinApi.dll is missing from your computer".
So far I've only searched the forums briefly, but that error seems to be related to improper drivers, which means I'm even MORE confused, since the drivers appear correct now. Well, they appear correct in terms of what I see in Device Manager. I'm still uncomfortable about "adb devices" not returning anything, though.
just updated my last post
got it - from where do you run the commands kfu tools folder or sdk ?
if you use kfu tools folder (would recommend cause there are all necessary files) then move kfu to something like c:\kfu - it don't like spaces in pathname
ah-HA!!
Thank you. I was running the fastboot from "C:\Kindle Fire Utility v6\", which was clearly wrong. First I renamed that folder to C:\kfu\ and then tried from there (but I was obviously still misunderstanding your post at that point). THEN, I read your post again, and realized I needed to be in the C:\kfu\tools\ folder. From there, I ran...
fastboot -i 0x1949 oem idme bootmode 5001
fastboot -i 0x1949 reboot
...and I am now inside TWRP! It is working.
To be abundantly clear (for any others who many be reading this in the future), after typing those commands, the Kindle rebooted itself. I then waited a little while, and the green light changed to orange (I had tried waiting before, but nothing happened previously). Shortly after the light turned orange, the Kindle rebooted itself again (on its own). It was on that reboot that TWRP started.
And that's where I stand now. I don't have time to actually use TWRP at the moment, though. I'm going to have to come back to this later.
But thank you again SO MUCH for getting me this far. I might just be able to take it from here.
to get to normal boot once your finished maybe you have to issue adb commands since adb is working in recovery
adb shell su -c "idme bootmode 4000"
adb reboot
and:
glad to help ...
please mark the subject of the topic (edit first post) with [Solved]
good luck !
HOT DAMN, I have a Kindle again!!
Alright, so once I had TWRP installed, I noticed there was a menu choice labeled "Fix Permissions". Since all I really wanted to do was undo the mistake I made with /system/app, I wondered if clicking that would do it. So I tried it.
When that finished, I connected via adb shell and checked the permissions on /system/app. They were still wrong. But, I also had a # prompt now, not a $. So then I thought, well, I bet I can use chmod now.
And I could! "chmod 755 /system/app" worked! At this point, I thought that might be good enough. I may not need to flash a ROM after all. I mean, changing those permissions is all I really wanted to do last night. Well, that and sleep.
At this point, I tried leaving the shell and running "adb shell su -c "idme bootmode 4000"" from cmd, as instructed, but that didn't work. It said "su" was not found. Hmm. On a whim, I decided to go back into the adb shell, and just type "idme bootmode 4000" right from the # prompt. It seemed to accept that. Then I typed "reboot" from the next # prompt.
The Kindle rebooted. At first, it went to the yellow triangle with the "press power button to enter recovery" screen. I didn't press anything. I just stared at it and waited. Eventually, it rebooted itself. On this reboot, it went to the Kindle Fire logo!! I wondered if it was working again, or just stuck back where I had been this morning. So I waited, tensely. I have mixed emotions about that logo animation now, ya know.
AND THEN IT BOOTED TO THE NORMAL LOCK SCREEN!!!
AND THEN I SWIPED TO UNLOCK, AND EVERYTHING WAS JUST AS I LEFT IT!!!
See? I told you it was just those permissions. I knew it all along.
Anyway, b63 is the best ever! Thank you SOOO much. If you're even in Denver, let me know. I owe you at LEAST a beer! Or if you have PayPal, seriously, I'll hook you up that way too. I really, really appreciate it!
(And... Original title edited. "Solved"!)
I tried following the fix but I am lost at the part that says:
then install twrp:
download from techerrata.com/file/twrp2/twr...e-2.0.0RC0
install with:
fastboot -i 0x1949 boot recovery\twrp-blaze-2.0.0RC0.img
and reboot:
fastboot reboot
I do not understand what that means. Plus, I now have the yellow triangle and ADB does not recognize my kindle.
that is normal - your kf should be in fastboot mode now - adb is'nt working here
regarding the driver you have to reinstall the driver at this point - in fastboot mode it should be "android adb interface" in device manager - here is how to do:
-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
then resume with the downloads and the commands
I just tried, that, but it said that the driver was the same one installed. Is there a different driver that I am supposed to be using? I selected the one I used to root it in my .android file. Is that the right one?
---------- Post added at 05:50 PM ---------- Previous post was at 05:43 PM ----------
Well, I think I just FUBARed it. I uninstalled the driver, reconnected, and not it is not letting me re install the driver because windows says its broken.
Daniel_Fate said:
I just tried, that, but it said that the driver was the same one installed. Is there a different driver that I am supposed to be using? I selected the one I used to root it in my .android file. Is that the right one?
Click to expand...
Click to collapse
no it is'nt - let's start at the beginning and check the precautions:
1. it would be good to know on what computer you are (os/bit)
2. download last kfu from http://forum.xda-developers.com/showthread.php?t=1399889
3. extract it to c:\ and rename from "kindle fire utility" to "kfu" that it is c:\kfu
4. the driver is now at c:\kfu\drivers\kindle - the file is android_winusb.inf
now you have all what you need
tell me if you'hv got it - i'll guide you further
AHA! I got it back, ill follow what you asked. I am running Win 7 64 bit.
---------- Post added at 06:02 PM ---------- Previous post was at 05:54 PM ----------
Alright, I downloaded, unzipped, and renamed the KFU. I went into device manager and selected update driver software, went and browsed and selected the kindle folder for the drivers. It started to install, asked if I trusted this unknown source, then started installing. At the end of the install it said:
"Windows found the driver software for your device but encountered an error while attempting to install it.
Android ADB Interface
This device cannot start. (code 10)"
Now my kindle is tethered and on. The screen is just the static kindle fire logo. thoughts?
Daniel_Fate said:
AHA! I got it back, ill follow what you asked. I am running Win 7 64 bit.
---------- Post added at 06:02 PM ---------- Previous post was at 05:54 PM ----------
Alright, I downloaded, unzipped, and renamed the KFU. I went into device manager and selected update driver software, went and browsed and selected the kindle folder for the drivers. It started to install, asked if I trusted this unknown source, then started installing. At the end of the install it said:
"Windows found the driver software for your device but encountered an error while attempting to install it.
Android ADB Interface
This device cannot start. (code 10)"
Now my kindle is tethered and on. The screen is just the static kindle fire logo. thoughts?
Click to expand...
Click to collapse
still trouble with the drivers - try to run install_drivers.bat from c:\kfu\
the status of the kf is ok on the logo - it's fastboot
b63 said:
still trouble with the drivers - try to run install_drivers.bat from c:\kfu\
the status of the kf is ok on the logo - it's fastboot
Click to expand...
Click to collapse
Here's what I did:
Opened cmd
entered "cd c:\kfu\"
entered "install_drivers.bat"
A window popped up saying "Welcome to the Kindle Fire Driver Installer. This will
walk you through updating your Kindle Fire. Click Next."
Clicked next
Says "drivers were successfully installed on your computer: Androidusbdeviceclass"
Clicked finish
Went to device manager
Still have yellow triangle.
Am I missing something here out of stupidity/ignorance?
Daniel_Fate said:
Here's what I did:
Opened cmd
entered "cd c:\kfu\"
entered "install_drivers.bat"
A window popped up saying "Welcome to the Kindle Fire Driver Installer. This will
walk you through updating your Kindle Fire. Click Next."
Clicked next
Says "drivers were successfully installed on your computer: Androidusbdeviceclass"
Clicked finish
Went to device manager
Still have yellow triangle.
Am I missing something here out of stupidity/ignorance?
Click to expand...
Click to collapse
no - you don't miss something - it's allways a hassle with win7 espacialy 64 bit
try to unplug - replug
I unpluged, and replugged about 5 times, each time it came up as an unknown device. I then unplugged it, shut it off, plugged it back in, then turned it back on, and it became a yellow triangle ADB.
Daniel_Fate said:
I unpluged, and replugged about 5 times, each time it came up as an unknown device. I then unplugged it, shut it off, plugged it back in, then turned it back on, and it became a yellow triangle ADB.
Click to expand...
Click to collapse
sounds not bad - let's test it:
you still have the command prompt open in c:\kfu\tools
issue the following command:
"fastboot -i 0x1949 getvar product" - it should return "kindle"

Categories

Resources