Related
hi,
one of our members in and-roid.ir is facing a strange problem... his phone is s-off and recovery v.3 was flashed.
he was installing a rom and suddenly there was an error in the installation... he tried to enter recovery and restore a back up but when trying to enter recovery from bootloader instead of entering recovery mode it will enter fastboot mode...
he flashed recovery again but no luck...
suddenly when usb was plugged he entered recovery mode... he tried again with usb unplugged and couldn't enter recovery mode...
so after entering recovery mode with usb plugged memory card won't mount... he tried to manually mount it and still no luck...
any ideas what's the problem?and how to trouble shoot it?
any clues at all?
Reflash the misc partition. (you can see how to do this in the root HBOOT 1.00 thread) Or you can boot into recovery...
Go to fastboot
put the custom-recovery.img in your android-sdk/tools folder
fastboot boot (drag and drop recovery.img into cmd or terminal) press enter
so i have to do following commands? correct?
Code:
adb shell
su
...you should have root privileges now (showing #). Next thing is backing up misc partition and replacing it with one from hack4legend-v5.zip. Extract this zip somewhere and fire another command promt there. Now you should upload flash_image binary and misc1-2.img:
Code:
adb push flash_image /data/local/
adb push misc1-2.img /data/local/
...switch back to 1st command prompt and change permission of flash_image_binary:
Code:
chmod 755 /data/local/flash_image
...and backup your current misc partition:
Code:
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
Now flash misc1-2.img:
Code:
/data/local/flash_image misc /data/local/misc1-2.img
exit
Click to expand...
Click to collapse
I believe so yes
Link to original thread: http://forum.xda-developers.com/showthread.php?t=1452651
This is a specific guide to restoring your Kindle Fire from boot loop caused by changes in the /system/ directory permissions.
The problem:
After rooting my Kindle Fire, I tried to install the Android Market app and while doing so, messed up my read/write permissions of /system/app/
After rebooting my Kindle, the logo animation started looping endlessly, indicating there was a serious issue taking place.
The specs:
Device: Kindle Fire
Firmware: 6.2.1
Desktop: Mac Mini
OS: OS X Lion
The tools:
You will need,
1. The KindleFireRoot Kit from here (It has tools for all OSs)
2. TWRP 2.0 from here
3. The fbmode file found here to be able to stock fastboot in 6.2.1
The steps:
1. Move all the contents from both the downloaded KindleFireRoot Kit and TWRP into a single directory for convenience.
2. Assuming you were able to root your Kindle in the first place, it's likely you already have drivers installed (Windows). Check by opening a Terminal, navigating to the dir with all the tools and doing this on Windows:
Code:
adb kill-server
adb devices
on Mac:
Code:
sudo ./adb kill-server
./adb devices
Your device should be listed. If it is skip to the next step.
If it's not, install the drivers found in the usb_driver directory (Win only). In this directory you can find the adb_usb.ini file which you need to move to the .android directory that's inside /Users/[your_name]/
3. We will now use the fbmode to fastboot to stock 6.2.1 as explained in this thread.
Code:
adb push fbmode /data/local/tmp
adb shell chmod 755 /data/local/tmp/fbmode
adb shell /data/local/tmp/fbmode
adb reboot
4. Now that we can fastboot, we will install TWRP 2.0.
Just run this command:
Code:
fastboot -i 0x1949 boot twrp-blaze-2.0.0RC0.img
...and reboot. The Kindle should boot into a screen with a yellow triangle and TRWP will install itself.
5. What you need to do now is tap the reboot button onscreen. As it reboots, hold down the Power Button until the light turns orange. You will then boot into TWRP. You will see a Menu with a bunch of Buttons.
6. Now it's time to boot up your Kindle as a USB Drive to repair the permissions.
Touch the Mount button and select the checkbox that says System. After that tap on Mount USB
All you have to do after that is type this in the Terminal and voila:
Code:
adb shell chmod 755 /systme/app
7. Reboot your device and enjoy.
Thanks to everyone who helped me figure that out in the original thread and the threads that I've linked. I might be missing a step. PM if you get stuck or just Reply on this thread.
/system/app kindle fire
Hi,
Thanks for the instructions. I got to the point where the yellow triangle shows up on my kindle fire after doing the fastboot command and touching the reboot button on the kindle screen. However, it just locks up after that and I never get to the subsequent menu. All I see is the yellow triangle on the screen with the instructions to press the power button for recovery. I have reset the power many times and all I get is the yellow fire triangle now. Any ideas how to get out of this loop? Thanks.
fastboot -i 0x1949 oem idme bootmode 5001
fastboot -i 0x1949 reboot
if you'r done you may have to reset the boot mode to normal (when you are in twrp):
adb shell idme bootmode 4000
adb reboot
Windows doesn't seem to be recognizing my device anymore. I get an unknown usb device when I plug it in. When I run the fastboot commands I get a <waiting for device> from which it never returns. I tried to reinstall my android_winusb.ini file to the kindle, but windows says it is up to date. Windows gives me this error in the device manager: " Windows has stopped this device because it has reported problems. (Code 43)" Help!
you have to update the driver manually:
http://forum.xda-developers.com/showpost.php?p=21720811&postcount=41
Thanks, that did it! I also had plugged it into another computer that recognized it as a kindle. I'm not sure if that mattered or not.
This seems to be great. Unfortunately I've got to a different thread and I think I totally bricked my Kindle. I was able to install and run TRWP. However I tried to do a recovery from Amazon Stock img. Then rebooted the kindle. After that the kindle rebooted and got stuck again. I tried to re-run TRWP but this time I got a different error message when tried to run adb shell to go into fastboot. The error message said the system shell could not be found. Adb shell is not accessible and if I do a fastboot command it says waiting for device.
If I do adb devices I can see the actual device # not anymore in recover mode but listed as device. But not able to run the adb shell. I am really frustrated!
that happend many others by trying to flash the original amazon rom
the original rom deletes fff, twrp and root
with a messed up system shell you have no possibility to get to fastboot mode
the only solution is to use a factory cable - you can build or buy one:
http://forum.xda-developers.com/showthread.php?t=1392693
the factory cable forces the kf to fastboot mode
restore with factory cable:
http://forum.xda-developers.com/showpost.php?p=21391952&postcount=38
handling:
http://forum.xda-developers.com/showpost.php?p=21708081&postcount=157
or in short:
You must insert cable, then switch off kindle by pressing button about 20sec and press once again, kindle will be in fastboot.
test with "fastboot getvar product"
After kindle will be in fastboot, with Kindle Fire Utility install TWRP recovery and with recovery install prerooted stock or CM7 firmware.
Hi,
because I have unsufficient rights to post in dev section, I wanted to start a new thread about the 2nd bootloader.
I just followed the howto and I can confirm it worked fine. I did not even need a factory cable.
http://forum.xda-developers.com/showthread.php?t=2128848
Thank you for that!
First question: Is it normal, that from pressing the voldown and turning blue, it need about 3 mins to boot into TWRP?
thanks
f
freaksworth said:
Hi,
because I have unsufficient rights to post in dev section, I wanted to start a new thread about the 2nd bootloader.
I just followed the howto and I can confirm it worked fine. I did not even need a factory cable.
http://forum.xda-developers.com/showthread.php?t=2128848
Thank you for that!
First question: Is it normal, that from pressing the voldown and turning blue, it need about 3 mins to boot into TWRP?
thanks
f
Click to expand...
Click to collapse
i had a problem only flashing recovery and it boot and boot and boot and boot! and cant acces recovery!
100 percent normal
Sent from my KFTT using xda premium
Hello, I don't have rights for devs thread too so I'm happy to see this thread on. I installed 2nd recovery following the Hash's instructions and end happy and without any problems. And for me just take 30 seconds or less to go to recovery.
Enviado desde mi GT-I9100 usando Tapatalk 2
Hey, may I ask, where do you put the downloaded files? In the adb folder? (Android/platform-tools/et....? Or somewhere else?
Sent from my KFTT using Tapatalk 2
It takes my kindle a loooooooooooooonnnnnnnnnnnnnggggggg time to boot into twrp. It's worth the wait, I though.
Sent from my doubleshot using xda app-developers app
Used fastboot cable i made...no issues
I usually hold volume button next to headset input for 5 secs after logo changes then i let go.
Yes you are right, put the files in the same folder you have tree sdk tools.
Enviado desde mi GT-I9100 usando Tapatalk 2
jailuis said:
Hey, may I ask, where do you put the downloaded files? In the adb folder? (Android/platform-tools/et....? Or somewhere else?
Sent from my KFTT using Tapatalk 2
Click to expand...
Click to collapse
Change to the directory that has the files. If th file were on c:\ change to it then run the commands
this is what i did
I am not taking credit for this. this is just what i did on windows 7 with Android SDK already installed, adb mode already enabled on kindle
credit to Hashcode for instructions and work. read this http://forum.xda-developers.com/showthread.php?t=2128848
Shutdown Kindle
On the computer
open cmd
type cd C:\ press enter
type fastboot -i 0x1949 getvar product press enter
plugged fastboot cable to computer first
plugged fastboot cable to kindle
kindle turns on and fastboot logo appears
check cmd for product: Tate-XXX-XX (something here)
if the above results appear unplug fastboot cable from kindle and reboot(hold the power button) proceed to step 1
if not then you need unplug fastboot cable from kindle and reboot(hold the power button) proceed here https://developer.amazon.com/sdk/fire/connect-adb.html
FYI you should not be using the fastboot cable for the following steps
connect the Kindle to the computer with a regular usb cable
step 1
i had a backup folder in my kindle sdcard
in cmd type
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/backup/recovery.img' press enter
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/backup/boot.img' press enter
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/backup/system.img press enter
then i just copied the folder from sdcard to the computer
proceed to step 2
step 2
Stack override file: put this on the kindle sdcard
kfhd7-freedom-boot.img: put this computer c:\ drive
TWRP Recovery: put this computer c:\ drive
proceed to step 3
step 3
on the kindle used a file explorer with root access and placed the stack override file into /data/local/tmp/
in cmd type
adb shell su -c "dd if=/data/local/tmp/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1" press enter
proceed to step 4
step 4
in cmd type
adb shell su -c "mount -o remount,rw ext4 /system" press enter
adb shell su -c "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak" press enter
adb shell su -c "mount -o remount,ro ext4 /system" press enter
step 5
shutdown kindle disconnect usb cable from device and computer
in cmd type
fastboot -i 0x1949 flash boot kfhd7-freedom-boot.img press enter
*using the fastboot cable plug it in the computer first*
plug the fastboot cable to kindle boots to fastboot logo
in the cmd the first cmd will complete
in cmd type
fastboot -i 0x1949 flash recovery kfhd7-twrp-2.3.3.0-recovery.img press enter
fastboot -i 0x1949 reboot press enter
fastboot logo appears
unplug fastboot cable from kindle and reboot(hold the power button)
enter twrp by pressing the volume button next to the headset input while the kindle is booting hold for five sec after the blue screen appears then let go.
Thanks Maromi
So... in twrp.... now what. lol.
freaksworth said:
Hi,
because I have unsufficient rights to post in dev section, I wanted to start a new thread about the 2nd bootloader.
I just followed the howto and I can confirm it worked fine. I did not even need a factory cable.
http://forum.xda-developers.com/showthread.php?t=2128848
Thank you for that!
First question: Is it normal, that from pressing the voldown and turning blue, it need about 3 mins to boot into TWRP?
thanks
f
Click to expand...
Click to collapse
how did you do it without a factory cable???
Sent from my KFTT using Tapatalk 2
.... well, I just followed steps 1-4 and after unsucessfully trying step 5 with an usual usb cable I rebooted the kindle via adb with:
adb shell su -c "reboot bootloader"
... and the fastboot screen showed up.
After a working
fastboot -i 0x1949 getvar product
I continued with step 5.
f
I'm in need of help. I believe I was successfully installed the 2nd bootloader and TWRP. However, after having been once in TWRP and made back up of the Kindle, on boot up I can't seem to enter TWRP. I hold the Volume up button until the logo turn blue and let go, but it default back on to the normal logo and enter into the Kindle. What could be the problem?
Try booting into the kindle os, install a mobile terminal or use an adb shell and run
Code:
su -c 'reboot recovery'
this should force it to reboot into recovery.
Sent from my Amazon Kindle Fire HD using xda app-developers app
stunts513 said:
Try booting into the kindle os, install a mobile terminal or use an adb shell and run
Code:
su -c 'reboot recovery'
this should force it to reboot into recovery.
Sent from my Amazon Kindle Fire HD using xda app-developers app
Click to expand...
Click to collapse
Thank you! that did the trick.
Can't enter TWRP either abd shell command didn't work
Hi,
I was following the guide from the cyanogen mod website "Install_CM_for_tate" and after selecting the optional Backup, which ran through w/o errors, I was asked to restart and since then, I can't enter TWRP anymore.
I tried the adb shell command as suggested earlier in this thread but get an error 'device not found'. I though adb doesn't work in fastboot mode, why should I use it then?
Device is Kindle Fire HD 7, 3rd gen., 2012 (Tate)
fastboot -i 0x1949 getvar product
returns the product
"fastboot -I 0x1949 reboot bootloader" might do it, or you could just hold volume down as soon as you power on the kindle and keep holding it till you see twrp logo.
Hi guys,
After an update to 30th March nightly on Lineage OS (had only migrated from CM 12.1 OS to Lineage OS a day before with the 23rd March nightly), the boot got stuck to TWRP.
I could get into the Fastboot mode while TWRP was accessible.
Tried reverting back to stock ROM manually (& with a lot of guesswork) and the "fastboot flash system system.img" command was stuck too long on sending; I rebooted manually and the Cyanogen recovery showed up next with a error message. I pressed a button by mistake and since then the phone is stuck on the Zuk+powered by Android boot screen. Would appreciate help as it is no longer entering Fastboot or Recovery.
Update: somehow got into Cyanogen recovery after I had kept the phone away after trying many times. Have connected the phone to the computer but have no clue what to do next. Would appreciate exact steps with commands to get out of this mess.
Badly screwed this up. Was only beginning to enjoy the new Lineage OS when this series of mishaps and errors happened. :crying:
Connect your Lenovo ZUK Z1 device to your computer via USB and run this command as root: adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc count=1 bs=32
(try this in recovery mode)
You can also go to the TWRP terminal and run: dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc count=1 bs=32
This solves your problem..
Thank you
First somehow you will need to find a way to switch your phone off and then follow this : https://www.youtube.com/watch?v=9t1HMXfO5ic
thanks srk, bhattyash.
i couldn't figure out how to do your method; couldn't locate = on the twrp screen and didn't know how to exactly give the adb shell command; so didn't attempt your methods.
i however tried flashing again manually; this time the system flash command changed into something that breaks up the system img into files less than 512 kb/mb or so. can't locate that very helpful flash command; but that's what helped me boot back to stock ROM
Hello there,
I have exactly the same issue, cant get in fastboot or recovery mode, just the black screen with "ZUK powered by android" logo. i tried connecting the phone to my computer and it recognize my zuk as " ShenQi Composite ADB Interface " . When i run power shell in my adb folder, after type adb devices i get "List of devices attached" but no devices at all in that list just an empty line.
The YouTube link doesn't work and I can't fully undesrtand how did you fix your phone, I don't know what to do.
Thanks and excuse my bad English !