yashsingh1/xdaforums huggingface dataset:
[Fire HD 6 and 7 General] bibikalka:
Stuff like this is hard to debug remotely. Do you have a Mac or a Linux system ? You could try it there.
[Fire HD 6 and 7 General] espeeee:
figured out how to fix my driver for the handshake to work.

posted my read mmc .part files to the other unbrick thread: http://xdaforums.com/showpost.php?p=68421350&postcount=142
[Fire HD 6 and 7 General] onesimus7:
Hey guys!

So I managed to update from 5.0.1 to 5.3.1. I successfully followed the instructions, flashing all the necessary files. It successfully booted. I managed to root it too using Kingroot's latest apk from their website.

Then I tried restarting it, but it's now stucked with a boot loop saying, "Optimizing storage and applications.."

Things I tried:

1. Restart the device for a few times.

2. Cleared the data/cache via bootloader.

I'm not sure if I can repeat the process (using the window script to be able to install TWRP) because the conditions now are different and I'm being cautious not to make the condition worst.

If I'll downgrade back to 4.5.3 again, do I need to do something first? Or I just flash it directly?
[Fire HD 6 and 7 General] bibikalka:
Yes, downgrading back to 4.5.3 is safe (from the recovery which you should still be able to get into). Once you downgrade, root via Kingroot, and repeat the 5.3.1 installation (make sure you do clear /data in the process). See if it works the 2nd time. Do re-read instructions to see if you did not miss anything the 1st time ...
[Fire HD 6 and 7 General] onesimus7:
Got it, time to redownload 4.5.3 haha!
[Fire HD 6 and 7 General] Chall3nger:
Noob question: Is the first step to root my 5.3.1 system is to downgrade to 4.5.3? And another question: How can I do that? I found the "Downgrade to 4.5.3 so you can root device" topic but it seems silly and old to me. I'm not totally beginner but there are too many topics here with lots of links. Unfortunately I have already used the 1_FIRE_HD_4TH_GEN_TWRP bat file on my 5.3.1 system without restarting the tablet. Is it a problem or can I just move on downgrading? Many thanks in advance!
[Fire HD 6 and 7 General] Chall3nger:
Solved

I managed to do the steps and now everything is fine. Btw the topics should be updated, there are a lot of irrelevant or old information. But many thanks for the descriptions!
[Fire HD 6 and 7 General] Emil Borconi:
Huh.... no bricking.... all working from first attempt.... but have to say the instructions are quite hard to follow, I needed to re-read them quite a few times before I got everything, I think [MENTION=6680544]bibikalka[/MENTION] you might want to try to simplify them a bit, way too much information making it a bit hard to follow, that being said, EXCELLENT work, thank you!
[Fire HD 6 and 7 General] vmiller1963:
where can I get su binary

Trying to follow Tutorial, starting with :

unrooted Lollipop, with FireOS 5.3.1.0 (Fire 6 HD 4th Gen)

When I get to commands:

adb shell

su
​

I receive the message:

/system/bin/sh: su: not found​

where can I get a usable "su" binary from, and what folder should I place it in on the fire.

just need it so it can run the commands in the 1_FIRE_HD_4TH_GEN_TWRP.bat

Thanks for all your work on this.
[Fire HD 6 and 7 General] bibikalka:
You don't have root yet, so you need to get it first ! There are reports now that the latest Kingroot supports rooting FireOS 5.3.1 (for the 5th gen Fire), so could you please try Kingroot on your Fire as well?

http://xdaforums.com/amazon-fire/general/root-t3471289
[Fire HD 6 and 7 General] WaywardOne:
I tried with my Fire HD 6 yesterday, latest Kingroot, and so far I have had no luck. (Btw, thanks for your earlier help bibikalka, but it turns out none of the OS's on my desktop or laptop can successfully complete the first read command in your unbricking thread :/)

I'll keep trying Kingroot throughout the day. Also, should I be worried about several "system component updates" Amazon keeps trying to give my device? Could they have an effect on my ability to root?
[Fire HD 6 and 7 General] bibikalka:
OK, I see!

Note that if you have stock recovery, you can simply downgrade to 4.5.3, and root that one, then upgrade back to Lollipop via TWRP.

There is a new unbricking Linux USB distribution in that thread, so do check it out! If you do the unbricking route, you can keep the /data stuff without doing a factory reset.

Also, the updates should not impact anything, so you can apply those with no issues.
[Fire HD 6 and 7 General] WaywardOne:
Ok, cool. So just to be absolutely clear, with my device (Fire HD 6, 5.3.1 stock recovery), I can safely downgrade via adb sideload directly to 4.5.3, root, install twrp, and then reupgrade to rooted 5.3.1 without having to do any of the read/write commands in the unbrick thread? (Sorry if it seems like I'm restating what you said, I'm just trying to make sure I have everything right before I start doing anything major)
[Fire HD 6 and 7 General] vmiller1963:
Thank you, will give it a try.
[Fire HD 6 and 7 General] WaywardOne:
Well, it now seems I'll have to wait until I find a computer that can unbrick my device, as it won't turn on at all now. I downgraded to 4.5.3, turned around for a second, and came back to it upgrading. It then shut off and refuses to start.
[Fire HD 6 and 7 General] bibikalka:
Did you notice if it upgraded to 4.5.5.1, or the latest Lollipop ?

In any event, try the usual unbricking, there is a convenient Linux option now with youtube video.
[Fire HD 6 and 7 General] draxie:
Quick fix for lost root?

Howdy,

Starting out (helping a friend) on 5.1.2.1, I downgraded to 5.1.2 proper (via sideload),

rooted using Kingroot (took a *lot* of attempts), then followed the steps to install

5.3.1, uboot&co, SuperSU, Xposed, and Gapps from TWRP. Rebooted fine, and at

that point still had root, but SuperSU had issues and I still had the Kingroot app,

since I opted not to wipe /data (to preserve my friend's stuff). **Apparently**,

it was Kingroot (or Kinguser?) that was managing root access, but since this was

my very first time with this wicked tool, I didn't quite know how to deal with it.

I ended up rebooting to update the SuperSU binary, which did not happen, but

now I'm seeing "[-] Connection to ui timed out" whenever I attempt to 'su' from

adb... I think I finally managed to get rid of the Kingroot app, but there seem to be

remnants of it in /system/xbin (ku.sud?).

Is there a quick and painless way to fix this issue?

Re-installing the SuperSU app did _not_ help.

I'm guessing the new unbricking method (using aftv2-tools) may be my best bet,

seeing that 5.3.1 is not yet rootable and how rolling back seems to result in bricks.

UNLESS there is some quick and easy solution I may have missed.

Advice/guidance is very welcome!
[MENTION=6680544]bibikalka[/MENTION] / [MENTION=4469251]powerpoint45[/MENTION] would you care to comment?

Thanks in advance!!
[Fire HD 6 and 7 General] mrthtung:
how to downgrade to 4.5.3 from 5.3.1? plz make a video about this
[Fire HD 6 and 7 General] draxie:
Is this even possible?

The preloader trick appears to have been blocked in 5.3.1.

Kingroot does not appear to have any useful effect [yet?].

And, AFAIK, rolling back to earlier firmware produces bricks.

Or, am I missing something?
[Fire HD 6 and 7 General] bibikalka:
Rolling back to 4.5.3 never bricked before, so that should still be OK !
[Fire HD 6 and 7 General] draxie:
OK. Thanks! I found the "alternative option" (#2) in your OP. (-;

The aftv2-tools approach still seems to be linked "preferentially", though...
[Fire HD 6 and 7 General] draxie:
Just to confirm: sideloading 4.5.3 worked as expected.

Then, Kingroot and the steps from the OP went like a breeze,

but a few points may be worth noting:

The 4.5.5 update managed to download while Kingroot was doing it's magic;

so, I made sure to delete that (from /cache after su) and turned on airplane mode,

as soon as I got root. The system still got rebooted to recovery for the update

while I was uploading all the ZIP:s to be installed (after I had flashed TWRP).

(Blocking the otaverifier as suggested in another thread had no effect whatsoever.)

Funny enough TWRP even tried to install the update (which by then wasn't there ;)).

I had to start & cancel sideload (from the Advanced menu) to get adb activated,

and then continued to upload and ultimately flash all the required pieces.

This time, I chose to wipe everything, even formatted /data to make absolutely sure

no trace of Kingroot remained. Life is good! (-;
[Fire HD 6 and 7 General] jpr9845:
Stock 5.3.1

I have been reading this thread and I am confused about rooting my refurbished HD6 that came with 5.3.1 installed. I have read in several places that it cannot be downgraded so can I use your method to root my device? I tried using the RootJunky new release that is suppose to be able to root my OS now at least for the HD7 but Kingroot gets to 34% and fails, I am up to about 75 attempts now. (Actually made to 36% twice)

Any advice or insights greatly appreciated.:confused:
[Fire HD 6 and 7 General] sd_shadow:
I'm pretty sure that Rootjunky's video is only for the 2015 7in Fire (not HD)
[Fire HD 6 and 7 General] jpr9845:
I figured

That is what I figured but it was just extra info. My real question is about this thread not the RootJunky video. Thanx for your reply tho!
[Fire HD 6 and 7 General] mrthtung:
My fire run cm 11 had twrp now i boot 4.5.3 or 5.3.1?
[Fire HD 6 and 7 General] Hagslayer5:
rooting 4 gen 5.3.1.1 hd 7

I'm a beginner and I don't know anything about android rooting, so can someone experienced send me in the right direction? I have this device on 5.3.1 but I want to root, but the post is confusing to follow. Thanks in advance!
[Fire HD 6 and 7 General] ngtom:
Hi bibikalka. I'm now using CM11 on Hd6 followed the instructions : downgraded from 5.3.1 to 4.5.3, then rooted by kingroot, and installed TWRP, SuperSU, then flash CM11, Gapps. With CM11, I found that the display, font is blurred, and I used HD6 amost exclusively to read newspaper. So now I want to return to Fire OS 5.3.1.1. I've read your instruction '[How to] Restore full stock FireOS ' and '[TUT] Install [FireOS 5.3.1, Jun 24, 2016], ROOT & GAPPS'. But I'm not clear that I can up to 5.3.1.1 and just do like all your instructions or those instruction only applied to 5.3.1. Thanks.
[Fire HD 6 and 7 General] bibikalka:
Ha, good catch ! Testing 5.3.1.1 is on my to do list. However, I've already looked at what's inside the update package, and don't see any show stoppers. It looks the same as 5.3.1 as far as the core update scripts are concerned. So use post #1 to update to 5.3.1.1, and flash 5.3.1 bootloaders when you are done. The expectation that this will work fine is 99%. Report back ;)
[Fire HD 6 and 7 General] kyle12345109876:
Hi please help

I am kinda lost with all this info. I have the kindle fire 6 with fire os 5.3.1.0 installed. So far I understand that downgrading from 5.3.1.0 to 5.1.2 bricks the tablet so does downgrading from 5.3.1.0 to 4.5.3 also brick the tablet? All I want to do is root it. thanks.
[Fire HD 6 and 7 General] dudeldo:
same issue right here
[Fire HD 6 and 7 General] draxie:
In case you missed it, that issue was fairly easily resolved.
[Fire HD 6 and 7 General] dudeldo:
thanks, I didn't see that.

downgrading to 4.5.3 worked just as installing Kingroot and "jmz fire ...".

Well, while using Kingroot the 4.5.5 OTA update downloaded just as in the other post and I couldn't do anything to stop this after the Kingroot reboot. Couldn't boot with Vol UP + Power either. Always started with the Update. Now the device doesn't turn on anymore.

and no, "adb shell pm unblock com.amazon.otaverifier" didn't work.

Any idea what to do?
[Fire HD 6 and 7 General] jpr9845:
OS 4.4.2?

My Fire HD 6 (KFARWI) came with ariel 4.4.2 bootloader unknown. I have a root access via Kingroot but don't know what method to use to install TWRP. In recovery my only options are to reboot or reset the devices.
[Fire HD 6 and 7 General] ChanTheRisen:
Well, I think I bricked my tablet.

I followed 101 step by step, did everything it told, and now I have turned my kindle into a paperweight.
[Fire HD 6 and 7 General] bibikalka:
Sorry to hear that :(

Perhaps, try the method from this post :

http://xdaforums.com/fire-hd/development/video-linux-iso-unbrick-fire-hd6-hd7-t3474999
[Fire HD 6 and 7 General] sebr:
First of all thanks for your work in providing these detailed instructions. I just got my new HD6 that came with FW 4.5.2 and I manually upgraded to 4.5.3. then rooting with Kingroot, install TWRP and following your guide but using FW 5.3.1.1. No problems at all. You can scratch it off of your to-do list :good:
[Fire HD 6 and 7 General] bibikalka:
OK, fantastic !!! My laziness prevented me from doing the testing, also, there 5.3.2 already rolling out to some Fires, so this one should be coming soon too !
[Fire HD 6 and 7 General] kingkea:
Thanks for reporting in. I am definitely going to try this on my son's tablet tomorrow. I hadn't seen anyone mention 5.3.1.1
[Fire HD 6 and 7 General] olliebean:
A couple of quick questions:

1) Would I be right in thinking you don't need TWRP if you adb sideload everything using the stock recovery? (I did it with adb sideload via TWRP, then it occurred to me afterwards I could have used stock for that)

2) For a minor update, e.g. 5.3.1 to 5.3.1.1 or 5.3.1.1 to 5.3.2, will it be necessary to repeat the entire procedure or will just flashing or sideloading the new ROM do the trick and keep all installed apps?
[Fire HD 6 and 7 General] TheRealSmurf:
Hi,

I bought a fire hd 6 which came with 4.5.3 installed. I found this thread while searching for how to get the play store on it and get rid of the ads.

To be honest, I am totally lost with this initial posts, just too much comments for every Firmware and Upgrade situation and I am just unsure what files to pick and which way to go now. Can somebody provide a more simple Guide or help in to find my way through this one?

Thanks :)
[Fire HD 6 and 7 General] bibikalka:
Stock recovery does not have any features other than letting you sideload a signed update. So TWRP is a must.

Also, minor updates wipe the system fully, so all of the customization (such as root) needs to be fully redone as per post #1.
[Fire HD 6 and 7 General] SCHAEFERHUND:
Hey guys,

i really need your help.

I flashed my HD 6 down to 4.5.3 and got root - everything nice. I got TWRP by ariel - everything nice.

Then, i wanted to go to the newest Version, because on playstore services installation i always got the message - there is not enough space available.

So i wanted to go to the newest version and (fml) flashed the wrong recovery - device bricked.

I downloaded the Linux ISO Usb and successfully unbricked my device (lol succeed...) There way Option B the best and bla bla bla

now i am in TeamWIN Recovery - then - i flashed the wrong recovery again (from the post) here:

http://xdaforums.com/fire-hd/development/video-linux-iso-unbrick-fire-hd6-hd7-t3474999

These were update-kindle-20.5.5.2_user_552153420.bin and 5.4.1_1133_stock_recovery_uboot.zip.

I guess this was the wrong recovery because is were on 4.5.3?

So, again USB Key - Linux - Read Adresses - Option B- OK again in teamWin

I realy dont know what i should do. I am in TeamWIN recovery right know and asking right here - what the **** i have to do?

---------- Post added at 04:45 PM ---------- Previous post was at 03:59 PM ----------

Okay guys,

i am back on 5.3.1.0.

I flashed 5.5.2_1534_stock_recovery_uboot for recovery.

What i have to do right now?
[Fire HD 6 and 7 General] Slickone_:
I installed 5.1.2. What would I gain by installing 5.3.1?

And will it erase my apps from GP and re-install all the default Amazon apps that I disabled/deleted (each of which took a long time to do)? When I installed 5.1.2, I hadn't done either of these yet.
[Fire HD 6 and 7 General] BanaSplit:
Hi guys,

for your interest:

Firmware 5.3.1.1 is running fine with 5.2.0 bootloaders also (still I don't understand what's the benefit of using 5.2.0 bootloader ?).

I recently bought a refurbished Fire HD6 with 4.5.2 stock rom and did the update to 5.3.1.1.

Thanks to you bibikalka for the instructions, but to be honest, I struggled to find the right way between the hundreds of various colored lines in post #1 and #2. Had to read through several times until I figured it out.

Maybe I will post later a short version of how I did.

Thanks and happy holidays!
[Fire HD 6 and 7 General] bibikalka:
Well, and that's the challenge! The way the Fire HD is rooted is fairly complex, and so there is a bit of a barrier to entry. But as you figured out, getting to TWRP is the real key. One could get there by writing TWRP directly into memory, but even then, things will still be somewhat confusing ... Sorry, that's just the nature of the beast! ;)
[Fire HD 6 and 7 General] Pikadude1228:
I am totally confused by this...
[Fire HD 6 and 7 General] cgeezy:
Are the download links in the original post working for anyone else?
[Fire HD 6 and 7 General] Killa8:
Hi

Was once rooted with everything fine, until I tried to install Xposed, bricked my device upon installing wrong bootloader(third time), unbricked it, got root, TWRP, flashed Xposed, and fire OS, with our flashing any bootloader and super SU. Device boots Xposed works, but no root, no way to get to TWRP and root nor any recovery. Has happened to me multiple times( Fire OS 5.3.1) but I was able to get back root after multiple reboots and kingroot tries. But this time around nothing, Even tried writing TWRP and 4.5.3 bootloader directly to memory, but it just hangs when I select my option, handshake is fine but no response.

Any help is welcome
[Fire HD 6 and 7 General] zeromega:
I successfully tested your procedure with release 5.3.1.1 (update-kindle-20.5.5.4_user_554207020.bin).

I started with a downgrade to 4.5.3 from 5.3.1. This is my procedure, step by step:

- Sideload version 4.5.3

- Wipe data and cache

- Reboot

- Install KingRoot

adb install NewKingrootV5.0.1_C165_B375_en_release_2017_01_04_20170104171925_105203.apk

- Disable ota

adb shell
pm block com.amazon.otaverifier
pm block com.amazon.dcp
exit

- Copy TWRP files to sdcard (my path is /sdcard/453_key_images)

- Root device with kingroot

- Install TWRP

adb shell
su
cd /sdcard/453_key_images
dd if=453_tee1.img of=/dev/block/mmcblk0p3
dd if=453_uboot.img of=/dev/block/mmcblk0p5
dd if=453_twrp.img of=/dev/block/mmcblk0p7
exit
exit
adb reboot recovery

- In TWRP, wipe data, cache, system

- Copy from pc to sdcard: update-kindle-20.5.5.4_user_554207020.bin (and rename to update-kindle-20.5.5.4_user_554207020.zip), 5.4.1_1133_stock_recovery_uboot.zip, make_space_v02.zip, open_gapps-arm-5.1-pico-xxx.zip (the smallest the best), UPDATE-SuperSU-v2.46.zip

-- install update-kindle-20.5.5.4_user_554207020.zip)

-- install 5.4.1_1133_stock_recovery_uboot.zip

-- install make_space_v02.zip

-- install open_gapps-arm-5.1-pico-xxx.zip

-- install UPDATE-SuperSU-v2.46.zip

- Reboot system and enjoy

At the moment, I can't find any difference with 5.3.1 :)
[Fire HD 6 and 7 General] Killa8:
Link to 4.5.3 firmware?
[Fire HD 6 and 7 General] zeromega:
https://kindle-fire-updates.s3.amazonaws.com/update-kindle-20.4.5.3_user_453011120.bin

Inviato dal mio KFARWI utilizzando Tapatalk
[Fire HD 6 and 7 General] tlacuache:
I followed these instructions and successfully downgraded, flashed TWRP, etc. After the steps of installing the zips via TWRP in the order you listed, then rebooting, my kindle screen went black and never came back. I can't get any combination of holding buttons (power, power+volup, power+voldown, all for > 60 seconds, tried both plugged in and unplugged) to do anything. I removed the connectors for the battery and re-connected them. I'm assuming at this point I've hard-bricked my device because I can't get it into recovery or fastboot or anything. Not the end of the world, these devices aren't too expensive, but does anyone have anything I can try? Thanks!
[Fire HD 6 and 7 General] zeromega:
I had the same problem once, and I successfully recovered my Fire following this guide: https://xdaforums.com/showthread.php?t=3474999

Inviato dal mio XT1635-02 utilizzando Tapatalk
[Fire HD 6 and 7 General] tlacuache:
Awesome, thank you. I've booted the iso and it looks like it's going through the unbricking process. Thanks a million times over.
[Fire HD 6 and 7 General] zeromega:
We both must thank Powerpoint45!

Inviato dal mio KFARWI utilizzando Tapatalk
[Fire HD 6 and 7 General] Killa8:
????????? [MENTION=6680544]bibikalka[/MENTION]
[Fire HD 6 and 7 General] spyroz540:
Hey guys! I currently have a FIRE HD 6 with 5.3.1.1 installed and will root it soon. The problem is, i don't understand how to install twrp safely on my device without brick, i know you have to downgrade to 4.5.3 and then root it but then what? the post #2 about installing twrp is making me confused since it's just got loads of updates and sections.

Also, can you brick if you go from 5.3.1.1 (stock) > 4.5.3 (stock) > 4.53 (root) > 5.3.1 ?? or am i supposed to get 5.3.1.1 again but rooted?

NVM I found a video of the installation of twrp.

Help will be appreciated.
[Fire HD 6 and 7 General] nabril15:
Spyroz- can you share the link to the video?
[Fire HD 6 and 7 General] jpearn:
Has anyone successfully used this method with 5.3.3.0 ? I am guessing the uboot / bootloaders have changed and need updating

Edit : Spent some time on this today and the latest update to 5.3.3.0 includes new uboot / bootloader but no recovery. It will not boot on the older 541 / 552 bootloader / uboot combos. So my upgrade path is to install the 5.3.3.0 update in TWRP, then SuperSu, then the 5.2.0 recovery only zip file from the tutorial. Everything seems to be fine and I have root and can still get back into TWRP from GScript if needed.
[Fire HD 6 and 7 General] bibikalka:
Wait, are you claiming that 5.3.3.0 does not boot with the old bootloaders ? Did you have to sideload an older (rootable version) when your old bootloaders did not boot the system? Or are you saying something else ? You don't mention that you had to recover from non-booting OS, so what actually happened ?
[Fire HD 6 and 7 General] jpearn:
Loaded up TWRP and flashed the 5.3.3.0 update SuperSu and then bootloaders. I was on 5.3.1 with 541 bootloader so tried this first. Bricked on reboot so recovered with the Linux ISO and tried with 552 bootloader. Bricked on reboot so recovered again. Checked the partition checksums to see if the latest bootloaders were installed against what was in the update zip. Saw there was no recovery so in TWRP flashed the update, SuperSu and recovery. Rebooted and all OK. Still can get into TWRP but needs the latest bootloaders and recovery to get back again. Hope that makes sense!
[Fire HD 6 and 7 General] bibikalka:
Strange, since the recovery with that Linux ISO does not work on some of the later versions. I see nothing unusual in the update file, same structure as before. I wonder if you somehow had newer bootloaders than you thought pre-upgrade, so when you started using older ones, it was bricking.
[Fire HD 6 and 7 General] jpearn:
No idea, I had followed this tutorial and used the 541 bootloader for my previous upgrade. Anyway the new upgrade is working (can't get Alexa to work though . . . root detection ?) and I learned a few things on the way ! Thanks.