yashsingh1/xdaforums huggingface dataset:
[Fire HD 6 and 7 General] bibikalka:
Too much updating ... You'll need to downgrade to 4.5.3 with stock recovery sideload, run KingRoot. Then you can go to post #2, and install TWRP via the script. Then, post #1

Go to post #2, run the script. This will get you TWRP. From TWRP, post #1 . It's the identical procedure to how you got the July preview installed, but you probably have forgotten since ;) You can use 5.2.0 stock recovery + uboot file, since you never had later versions.

In all cases, I highly recommend a USB OTG cable, it's very easy to add anything missing from the USB drive while you are still in TWRP.
[Fire HD 6 and 7 General] gamerlamer:
Ah, I see.. It's starting to become more clear. Thank you for the guide. To be honest, I'm pretty content with where I'm at. The only reason I'm thinking of upgrading is the off chance it fixes my notifications issues I have with some apps. Like hangouts for instance. I've tried to figure it out myself but alas my knowledge only goes so far. I have a suspicsion it has something to do with android.amazon.perm package. I know that's a core package, so I haven't messed with it. It just seems like such trivial issue that seemingly could be fixed. :/

If anyone would be willing to help me solve it would be greatly appreciated.

Other than that, is it really a decent upgrade to the latest build from the developers? Because it has run flawlessly for me, aside from the notifications issue I mentioned.

But thanks for responding. I will give it some more thought about upgrading. I'm just really nervous about bricking.

Cheers
[Fire HD 6 and 7 General] Reeebo:
Is the only way to have GAPPS working on the hd 6 by rooting? I just really want tasker to work
[Fire HD 6 and 7 General] sd_shadow:
http://xdaforums.com/fire-hd/general/how-to-google-play-store-root-fast-easy-t3226960
[Fire HD 6 and 7 General] Buzzy42:
This is possibly a really dumb question, but I can't seem to find the answer... if I've already run through all this to get my Fire to 5.1.1 (rooted/TWRP, etc), do I go through all this again to get to 5.1.2? Does it involve resetting the device?

Or do I just load up the 5.1.2 upgrade ZIP from Amazon, get back into TWRP, and then 'dirty' flash it (and I assume SU? Would I need to re-do the Google Apps too?), to get upgraded? (which, now that I look at it, basically IS re-doing everything except without the factory reset! :) )

Thanks!
[Fire HD 6 and 7 General] bibikalka:
Yes, indeed! You re-do everything, but no factory reset, so your data/apps survive fine.

The issue is that the updates wipe out /system, and the steps in post #1 simply repopulate all the goodness in /system on top of the freshly updated FireOS The modifiable user stuff sits in /data, and that one is not touched.
[Fire HD 6 and 7 General] DoLooper:
As posts have reported, 5.1.2 can now be rooted with Kingrooted. Also, Gapps can be installed per the "standard" non-root commands from olden days. I tested this and all has been running fine for a few days. But I'm wondering, is there a downside to running the 5.1.2 bootloaders? I believe it was reported we can downgrade the bootloaders. Should I boot TWRP and install 5.1.1 recovery_bootloaders? Thanks!
[Fire HD 6 and 7 General] bibikalka:
Hmm, interesting! Which specific posts reported Kingroot working for 5.1.2 ? Have you tried yourself ?

I do agree, GAPPS can work fine without root. On the other hand, to get widgets working with a custom launcher requires that the launcher is installed as a system app, thus it needs root. So there are levels of different desires here ... To each his own ...

I don't think 5.1.2 bootloaders are better/worse than 5.1.1, as long as neither bricks the other one. So whatever you have - just keep it! I kept them as 5.1.1 in this thread because I was too lazy to repackage the 5.1.2 versions ;) Along these lines, it'd be also totally trivial to update the stock recovery to the latest version (very easy!), but again, if there are no new features, there is no point to it.
[Fire HD 6 and 7 General] whoamigriffiths:
I've rooted my daughters Fire 6 v 5.12 with Kingroot.

*Failed 1st try, worked second attempt.
[Fire HD 6 and 7 General] bibikalka:
Cool, thanks! Was this the PC version, or the regular apk installed on Fire itself ?
[Fire HD 6 and 7 General] whoamigriffiths:
This was the apk.

Once I get my head around it, I will switch to SuperSU
[Fire HD 6 and 7 General] Brofreeman:
Success. Worked for me. Thanks.:D

---------- Post added at 10:01 PM ---------- Previous post was at 09:44 PM ----------

Jmz tool does not block ota on 5.2.0. The directory changes in 5.20 and jmz tool does not rename apk. I renamed apk manually.

/system/priv-app/devicesoftwareota/devicesoftwareota.apk.bak
[Fire HD 6 and 7 General] DoLooper:
pm "blocking" on Lollipop

Yeah, I noticed that too, plus lollipop doesn't accept "pm block." I put a guide here: http://xdaforums.com/fire-hd/general/how-to-disable-apps-services-includes-t3165348

.
[Fire HD 6 and 7 General] dardack:
Just curious. I love 4.5.4 and the stable/fast plus root/gapps. Is there any benefit to going to Lollipop?
[Fire HD 6 and 7 General] Brofreeman:
I like that the default launcher is stock android not kindle. Custom lock screen and wallpaper. Lock screen ads are gone. Notification bar is more like stock android. Notification bar has date.

---------- Post added at 02:58 AM ---------- Previous post was at 02:49 AM ----------

I have 5.2.0 rooted with gapps. If I factory reset, do I loose root and gapps? I don't need to. Just curious.
[Fire HD 6 and 7 General] dardack:
So is the newest Gapps working with no forced closes and stuff? So y'all are saying once your 5.2, you're basically stock android?

Is it faster?

And my last, so I read post 2 about flashing xposed/gapps. So once I DD the 3 files I have to be super F'ing careful and make sure when I click reboot I select recovery? Is that an option with 5.2 when rebooting? Do I just send the ADB command?
[Fire HD 6 and 7 General] DoLooper:
Gapps is good, yes. 5.2 is definitely not stock android. Speed is subjective. I posted some info here.

I'm going to do post 2 now, to get xposed, and will report back. But if I were updating, I'd flash xposed (and a pico gapps if you want) right after the 5.2.0_stock_recovery_only.zip (post 1, step 1) and before leaving TWRP (step 2), like bibikalka suggests. If you don't flash gapps, install with the JMZ tool, delete the empty com.android.vending and com.google.android.gms files in /data/app, and sign in to play store to update.
[Fire HD 6 and 7 General] dardack:
Yeah I saw that post. So no widget's on custom launcher? and can't remove the amazon search bar?
[Fire HD 6 and 7 General] argrr101:
A little confused, the 5.2.0 update file is a .bin file, and TWRP does not see it. Is there a .zip file that I'm not seeing?
[Fire HD 6 and 7 General] bibikalka:
Just rename bin to zip.
[Fire HD 6 and 7 General] bibikalka:
You don't have to be too careful when rebooting, just very careful when you dd the 3 files (if you do this from 5.2.0). When rebooting, you could always press Pwr & Vol+ and get to recovery.
[Fire HD 6 and 7 General] junglistknot:
After I bricked the last one I had because of the no recovery I have decided to stay on 4.5.4 with root and twrp and the google now launcher (which runs and looks excellent) until they release an official lollipop version. I did like 5.2.0 though even without root. I look forward to an official release but I have a feeling they will make it look like they normally do with kindles and not the normal android look. Fingers crossed it stays like this though.
[Fire HD 6 and 7 General] DoLooper:
Been wondering since doing the update: I renamed the 5.2 bin file extension to zip before installing. Was that necessary or is TWRP fine with bins? thx
[Fire HD 6 and 7 General] argrr101:
I wasn't able to flash while it was a .bin, I had to change it to .zip for it to work. I think it's necessary to do so.
[Fire HD 6 and 7 General] DoLooper:
Hey, Romolten :) I'm writing guide for starting from unrooted 5.2.0 and wonder: On mac, did you have to use TWRP's adb sideload? Plain "install" didn't work? Thanks!
[Fire HD 6 and 7 General] Remolten:
Yes, you have to use adb sideload. adb install actually is only for installing apk files (aka apps), so it shouldn't even work anyways.
[Fire HD 6 and 7 General] DoLooper:
Wait, I mean TWRP's install (flash) for zip/img files. You used adb sideload command from computer instead of flashing the files with TWRP? How come?

---------- Post added at 10:54 PM ---------- Previous post was at 09:59 PM ----------

Don't know if anyone else has tried this (post 2), but I did it to flash Xposed and it worked great! Seems like it could probably be done on the Fire with a script or Windows-side from a batch file. Hmmm . . .

[edit] (of course, seigesoldier did it!)
[Fire HD 6 and 7 General] bibikalka:
Awesome, I think you are the first to flash the "triplet" together !!! :D At least, I have not found other reports ... It seems that seigesoldier flashed Xposed at the same time as flashing 5.2.0, if I understood correctly.

So care to try to flash GAPPS from TWRP as well ? ;)
[Fire HD 6 and 7 General] Remolten:
DoLooper, you can do either one in that case. I just used sideload because my device didn't have much available storage.
[Fire HD 6 and 7 General] XxAmyJo87xX:
Thank You....Thank You....

Thank you ..Thank You....Thank You....You guys ROCK!!!!!!....I now have rooted lollipop with GAPPS...you guys are amazing please keep up all the hard work.....

I started off with rooted 4.5.4. with gapps.......

i flashed the 5.2.0 update zip,and the 5.2.0 recovery

yes to install root

then installed JMZ TOOL to install gapps...and it worked like a charm the first try

i have to say Again everyone who had a hand in making this happen if Amazing...please keep up the hard work
[Fire HD 6 and 7 General] SoundSquare:
a BIG thank you as well ! Followed the instruction and all went fine and smooth, enjoy very much this "almost" stock android tablet now : ) Finally my Kindle HD6 is being used and enjoyed !

thanks !
[Fire HD 6 and 7 General] DoLooper:
Yes, I rooted 5.1.2 with Kingroot 4 days ago. Actually, reports were in 2015 Fire forums, saying a new version of Kingroot was working on the Fires so I decided to give it a shot. This was after your update; they couldn't get root with previous version either. Anyway, now we have reports here^^ and in the Fire HD noob thread, and me! Your Kingroot link provides the latest version. Thanks for bootloader info!
[Fire HD 6 and 7 General] nabril15:
How can I force 5.1.2 onto my Fire 6 HD?
[Fire HD 6 and 7 General] sd_shadow:
Official Firmware links
[Fire HD 6 and 7 General] nabril15:
I downloaded a .bin file from the link above to the tablet, and I followed the manual steps or an update (settings, device, check update, updare) but nothing happens.

DISREGARD.. copy the file to the root or the sdcard directory. Then run update
[Fire HD 6 and 7 General] bibikalka:
For TWRP, use the script in post #2. Then you go back to booting Lollipop by flashing 5.1.1 bootloaders in TWRP.

Either Kingroot or SuperSu is OK, some people distrust Kingroot, so that's why re-install of the system is recommended from TWRP.

For Nova Launcher, you first install it as a system app (in order to get widgets working). Next, you block the stock Amazon launcher. This will pick up Nova.
[Fire HD 6 and 7 General] nabril15:
How do I install Nova as a system app?
[Fire HD 6 and 7 General] sd_shadow:
first make sure you have a second working launcher, in case this doesn't work

then use a file manager with root options, copy nova folder from /data/apps to /system/apps

fix file permission for the base.apk to match the other system apks

reboot
[Fire HD 6 and 7 General] nedwards:
It appears I may have bricked my Fire HD 7 (4th gen).

I believe I may have gotten a bit hasty and skipped step 9 in the "101" section of post #2 ("In TWRP, after you are done with everything, don't forget to flash the 5.x.x bootloaders zip file in order to boot back into Lollipop!"). I'm normally very good at following directions, but I feel like this line should have been emphasized a bit more. Perhaps some bold text instead?

Now I am stuck at a perpetual boot loop (the Amazon logo, not the Fire logo) and I'm afraid this is the end. I cannot get the device to respond in any way. The loop probably won't stop until the battery runs out. I cannot turn it off. As it restarts repeatedly, Windows keeps recognizing it briefly via the USB connection, but adb can't recognize it. I assume this is because the OS actually needs to start for that to happen.

Any thoughts? I'm just going to leave the thing plugged in to prevent the battery from dying for now. Seems I picked the wrong tablet to try and install a bootloader on. I just wanted normal Android and not Amazon's crappy OS and I think I just learned a $70 lesson (I got it used).
[Fire HD 6 and 7 General] bibikalka:
There is no need to panic.

Just hold the power button for ~ 40 sec until it does turn off. Then, turn it on while holding Vol+. This will get you back into TWRP, where you can flash 5.1.1 bootloaders.
[Fire HD 6 and 7 General] nedwards:
Hmm, the normal hard shutdown involves holding the power button for about 5-6 seconds or so if I recall correctly. I tried holding it longer (as well as pressing all sorts of key combinations as it continued to restart) but it was probably not longer than 30 seconds.

I'll try it when I get home later and let you know how it works. It's just limping along, boot-looping over and over on a wall-charger. It's like life-support.
[Fire HD 6 and 7 General] nedwards:
Ok, well I have managed to get the Fire HD 7 to power down but turning it back on and holding the vol+ rocker appears to have no effect. Still the same boot loop. Amazon logo only, never gets to the Fire logo.

Am I SOL yet? Without an adb connection I don't think I can get back into recovery.

[EDIT] Additional info: Plugging the device into my computer appears to automatically turn the device on and start the boot loop sequence, even after I've shut it down. The loop takes less than 40 seconds total so I'm not sure holding that button is even doing anything. I didn't try unplugging the power last night when this all started. It appears that just having power causes it to loop uncontrollably.

[EDIT 2] Further info: Perhaps the recovery isn't working because I never made it to Section A, B, or C in post #2. Wouldn't that imply that my only way into TWRP is via adb? That would suck pretty bad.
[Fire HD 6 and 7 General] bibikalka:
If you managed to boot into TWRP (after the script), and did not flash 5.1.1 bootloaders, TWRP is still there, ready to be launched ... Try turning it off, and reboot with Vol+ pressed. It can be a bit flaky, but keep trying. It will work !

I've had some scary moments like this when Vol+ seemingly did not work. But then you must make sure the Fire is off (not boot looping), and then turn it on with both Pwr & Vol+ buttons pressed together.
[Fire HD 6 and 7 General] dslowery:
Don't know if you are SOL, but I have the same problem on my Fire 7 5th Gen. I can get to fastboot with Vol+, but other than that, it just keeps looping Amazon. All of the posts I've read indicate that no one has figured this out yet. Something to do with a locked bootloader.
[Fire HD 6 and 7 General] nedwards:
Yesssss, that worked! It seems I cannot press both at the same time. The power button must be pressed first but the vol+ key would need to be pressed as well within a half-second later... otherwise (if pressing both at once, right off the bat) it doesn't even start at all. I managed to flash the 5.4.1_1133_stock_recovery_uboot.zip (not the s5.4.1_1133_stock_recovery_uboot.zip, not sure of the difference there, actually), rebooted, and the Fire started right up!

However, now when I run "adb reboot recovery" or start the tablet with the power + vol+ keys pressed... it goes back to the Amazon recovery. I can't seem to get back to TWRP. Is this what section A/B/C is for in post #2? Seems odd that TWRP would work once and that's it. I guess I originally thought that section allowed you to set up access to TWRP via the hard key presses (power + vol+ for booting).

To put things in perspective, I just want to load up a normal Lollipop Android ROM and kiss all this Amazon crap goodbye (FireOS? No thanks). It was a cheap tablet but I really just want it to mimic my Galaxy S4 (stock Lollipop, rooted, w/ Nova Launcher), which is what I am used to. I do have Amazon Prime but I could really care less for their OS. I don't even know what xposed is and could probably do fine without it. To be honest, doing this type of thing isn't exactly a hobby of mine. I generally get something set up with a decent environment and then don't touch it for a while. Last time I worked with any recovery programs it was all CWM (back when I rooted my Droid X, yeah, been a while).

So I guess my questions now are these:

How do I get TWRP to work all the time?

If I don't care about retaining any part of the FireOS and want stock Android Lollipop only, where do I go from here? I assume once TWRP is working correctly I can just flash a stock Lollipop ROM (plus SuperSu, and the GAPPS suite), amiright?

How do I get TWRP to work like... forever?

Have you got a donate button anywhere? I'll happily buy you a beer or two for some assistance! You've already been VERY helpful. :good:
[Fire HD 6 and 7 General] nabril15:
Once the device is rooted, can I uninstall Kingroot?
[Fire HD 6 and 7 General] sd_shadow:
see rootjunky's supersume video

https://www.youtube.com/watch?v=3O3DcpeS_Ic

or manually install supersu with a terminal emulator

http://www.w0lfdroid.com/2015/05/How-to-Remove-Replace-KingUser-KingRoot-with-SuperSU.html
[Fire HD 6 and 7 General] nabril15:
Done. I rebooted, and now how do I set Nova as the default? If I try to do it from within the Nova settings, it takes me to the device settings screen, and within that, I don't see any option for clearing the defaults.

Also. Do I leave the folder in the /data/apps directory? Or do I delete it since I copied it to system/apps?

I downloaded Android Terminal from the Amazon app store, but when I run it, I get a black screen for a second, and I'm returned to the launcher; it's as though it cant run. It never asked for root access.
[Fire HD 6 and 7 General] jh1521:
Hi there,

I managed to root the new Kindle HD 7 (2014) that I got recently with the instructions in the first 2 posts (used kingroot to root it once, installed TWRP and from TWRP I flashed 5.1.2, the 5.4.1 bootloader, su 2.46 and gapps-pico).

However, after all this was said and done and the tablet now has the google play store on it, I'm not rooted anymore. The root checker says so, and running su from adb shell returns

1|shell@ariel:/system/xbin $ su
su
[-] Connection to ui timed out

There is a /system/xbin/su, but it doesn't seem to work.

SuperSU 2.46 keeps nagging me to upgrade, but installation fails if I try - not surprising since I'm not rooted.

I was under the impression that the procedure results in a rooted tablet. Did I do something wrong, and how do I get root back. Do I have to install TWRP again?

I'd rather not have kingroot on this tablet if I can help it. And I'm pretty sure the /system/xbin/su is not from kingroot because I did a factory reset from TWRP and that should have erased kingroot, correct? Or does /system/xbin/su survive through factory reset and I still have the kingroot one?
[Fire HD 6 and 7 General] sd_shadow:
try

http://www.apkmirror.com/apk/jack-palevich/
[Fire HD 6 and 7 General] nabril15:
Sd shadow

I used the suggested script to remove kingroot with su, and it worked fine. I copied the nova directory to system as you said, and rebooted. I removed the folder from data/app and now I don't have Nova installed.

Don't i have to wipe dalvik after the copy to system/app for it to work properly? I dont have twrp installed, so i don't have a way to wipe it.

How do I get Nova to show up as an app and set it as default?
[Fire HD 6 and 7 General] sd_shadow:
is the Nova folder still in system/apps?
[Fire HD 6 and 7 General] nabril15:
Yes, with permissions set accordingly.
[Fire HD 6 and 7 General] bibikalka:
Did you get into TWRP at all ? Or did the black screen happen after you tried to go back to FireOS 5 ? Which FireOS 5 version did you have ?

The drives in Windows is not the typical bricking experience, so there is hope !
[Fire HD 6 and 7 General] mhuck0625:
I hope theres hope! haha. What i did wrong was accidentally run the script to install TWRP on the 4th gen. I have the 3rd gen. The script ran through, i had root and adb, the checksums matched what you said, but when i rebooted is when it never came back up :(

Side note, i spent four hours with amazon support trying to get them to help. I played dumb as if it crashed when i did a factory reset. They admitted that "if i was techy enough it can be reloaded" But they wouldnt help me do it. Again, hope! lol. I just hope i dont end up becoming a victim of my own stupidity
[Fire HD 6 and 7 General] bibikalka:
OK, this makes sense then ! It sounds like you have to start reading :

https://plus.google.com/communities/115612726860884592519

You need to figure out exactly what your model is, and look on XDA to see if there a forum for it. Then take it from there.
[Fire HD 6 and 7 General] mhuck0625:
Mines the 8.9 hdx 3rd gen...I'll look more though

---------- Post added at 07:24 PM ---------- Previous post was at 06:45 PM ----------

NEW DEVELOPMENT! Linux to the rescue again! I booted from one of my linux live USBs and plugged in my fire. Now i have more partitions showing files. A couple of them look like they have the OS on them! Im wondering if i used something to adjust the partitions to how they should be if that would fix my issue? How should the partition table look and is it even worth it to try? Might be grasping at straws here, but im really hoping to get this fixed :) Thanks!
[Fire HD 6 and 7 General] bibikalka:
Interesting ... In theory, 8.9 HDX has different partition names. So there is a slight chance you could recover. Head over here http://xdaforums.com/kindle-fire-hdx , and tell them that you overwrote these 3 partitions:

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

Also note that the script saved the contents of your partitions in files p3, p5, p7 (/data/media/0/gscript):

dd if=/dev/block/mmcblk0p3 of=p3.bin

dd if=/dev/block/mmcblk0p5 of=p5.bin

dd if=/dev/block/mmcblk0p7 of=p7.bin

So if you can get the files, and somehow write them to the device, you'd be in business. Otherwise just ask in that forum.
[Fire HD 6 and 7 General] mhuck0625:
Awesome! Thanks!! Im sorry I keep bugging you. I'm just afraid to make any changes until I get a second opinion so I really appreciate the fast responses. I'll head over to that page and see what I can figure out!
[Fire HD 6 and 7 General] WaywardOne:
Which version of Kingroot works? I've tried both the latest and the one I had installed when I rooted 5.1.1 frequently for about a week now, with no luck. Device: Fire HD 6 "KFARWI", Fire OS 5.1.2
[Fire HD 6 and 7 General] DoLooper:
What's the date of your OS? If it's March, you've got 5.1.2.1 and it can't be rooted. You can downgrade to 5.1.2 linked in the OP. The latest Kingroot 4.8.5 has worked fine for me (after several tries) on February 5.1.2.
[Fire HD 6 and 7 General] WaywardOne:
Ah, that must be it then, it was installed this month. The fact that it still just says 5.1.2 was a bit misleading. Thank you for your help :)
[Fire HD 6 and 7 General] WaywardOne:
Ok, so I successfully downgraded to the version in the OP, but now it seems root is lost after a reboot, with the "su" command giving the error "[-] connection to ui timed out". Again, I've tried both Kingroot 4.8.5 and 4.9.0, as well as the desktop version, with the same result. I then downgraded to 5.1.1., and tried the same root methods, with the same result. I have no idea what else to do, short of a factory reset (which would be a last resort for me). Does anyone have any ideas?