yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 Original Android Development] mxj_xda:
Finally Successfully Root 5.6.6.0

[MENTION=3628825]tnthd2[/MENTION] your summary is exactly what has happened. A very big thank you for the support, and also to other posts that have helped. I will summarize below so that it might be useful to those who want to root HD 10 (suez) with Fire OS 5.6.6.0.

mtk-su for 5.6.6.0 doesn't work. i have tried it. So I resorted to using Kingoroot.

it is very important to follow post #1152 by [MENTION=10542541]drdtyc[/MENTION]. And do not reboot after Kingoroot says "have root access". Then follow post #1148 by [MENTION=10542541]drdtyc[/MENTION] from steps #3A to #3F. Device can boot into TWRP recovery.

With TWRP recovery flashed, i have tried flash Magisk (latest version 20.4). In FireOS 5.6.6.0, Magisk is able to obtain root access.

If you try to use TWRP to install gapps (pico), it may return error 70 (insufficient system space). The solution I use is to use Titanium Backup Pro to uninstall some Amazon apps from system partition (after backup first). This frees up some system space. After that I was able to install gapps pico using TWRP. Of course, you can sideload GApps also, then there is no need to worry about insufficient system storage.

Along the way, something has gone wrong a few times. I will summarize below.

After Kingoroot obtained root access, I did a reboot and then the devcie went into boot loop (always stuck at "fire" logo screen). With [MENTION=3628825]tnthd2[/MENTION]'s help, there is no need to panic. Just boot into Amazon recovery, and use adb to sideload original stock rom 5.6.6.0. after that start the whole process again.

The first time after i flashed TWRP recovery, i wasn't able to install Magisk in TWRP (I don't know why). And the device went into boot loop again. But panic not. With TWRP recovery, can also use adb to sideload original stock rom. then you will end up with TWRP recovery and FireOS 5.6.6.0. Then boot into TWRP recovery to try to install Magisk again. It worked for me the 2nd time. With TWRP in place, there is no need to Kingoroot FireOS again after sideload stock ROM. Just install Magisk using TWrP.

As long as can boot into either Amazon recovery or TWRP recovery, there is no need to open up the device back cover (I did that just in case, but it is not necessary). Because with recovery, u can always adb sideload the original stock rom.

Attached is the picture of my suez with Magisk and FireOS 5.6.6.0 (no way to show the OS version because i have disabled system updates).

Again, many thanks to the members who have assisted. And last but not the least, the OP by [MENTION=7104332]k4y0z[/MENTION].
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
Congrats to your success on such a laborious process.

One last thing to check for if you have Prime Video, does it play in HD or FHD?
[Fire HD 8 and HD 10 Original Android Development] toybits:
First of all congrats and thanks for the steps you made! :good: Can you please clarify, where you able to completely disable/uninstall the fireos launcher and use another one? Do you know if widevine works? You can use drm info app in playstore to check. Lastly, what amazon apps you uninstalled? Thanks so much.
[Fire HD 8 and HD 10 Original Android Development] mxj_xda:
Nope. I have disabled/uninstalled almost all Amazon apps.

---------- Post added at 04:35 PM ---------- Previous post was at 04:33 PM ----------

I don't know about widevine. I use Nova Launcher. Yes, u can disable the fireos launcher completely. I used adb shell & pm disable/enable commands. The link is here.

https://xdaforums.com/hd8-hd10/general/successfully-changed-launcher-to-nova-t3744067
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
Widevine check by apps on device doesn't really mean much. It's L1 on mine with LOS, even safetynet passed, but neither Netflix nor Prime Video plays HD/FHD at all. There are some older patched Ntflx apps for HD but none for PR though.

Are you still on stock everything? If you're going to unlock and root, check out if PR can play HD. I suspect it won't since it may check for unlocked bootloader. Also be prepared on how to come back to locked bootloader just in case.
[Fire HD 8 and HD 10 Original Android Development] x-new:
why i failed in step 4.it is the reminder：Failed critical init step 4。

why i failed in step 4.it is the reminder：Failed critical init step 4。could you tell my how to solve the problem
[Fire HD 8 and HD 10 Original Android Development] toybits:
Yes, im still on stock and have not root. How do i check if prime video plays HD? Im wondering too if i root and use the stock 5.6.6.0 if will play prime and netflix at HD even with an unlock bootloader. What do you mean Also be prepared on how to come back to locked bootloader just in case?
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
Even with everything stock, appstore installed Netflix never plays 1080p for me either. Max it plays is 720p in stock and 530p in LOS.

Prime Video will display HD or HD1080 in the status/control bar when playing. You can also check the GB per hour for best quality in the settings of PR.

By "be prepared to come back to locked bootloader" I meant exactly that. In case you don't like watching low res Netflix and Prime Video with unlocked bootloader, you'd better find out how in advance and be prepared to restore the stock bootloader. Good place to start is the OP., but not sure how it'll work though.
[Fire HD 8 and HD 10 Original Android Development] toybits:
Thanks for the advice. That is also what I was thinking and why I have not unlock it yet. To be honest the stock is ok for me except the launcher. Do you have any idea to fully change the launcher besides using amazon toolbox? For you is it worth it to unlock and use LOS? Do you really see a big difference in performance and speed? Thanks
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
I put LOS on 1 device and keep another one stock. I only use these tablets to watch videos so I keep the stock launcher and haven't bothered to change it. Not sure if the toolbox can even fully change the launcher. I set the number of background apps to 2 and don't see much difference in responsiveness with the occasional browsing.

If there's a way to get Prime Video to play FHD on LOS then I'll switch both to LOS. But I'm thinking of switching back to stock if I get annoyed enough with the low res PR.

---------- Post added at 11:18 PM ---------- Previous post was at 11:08 PM ----------

You didn't say what you've done so probably noone can say why. My guess is you didn't need to do step 4.
[Fire HD 8 and HD 10 Original Android Development] x-new:
I just copy a mtk-su file to amonet\bin and enable ADB . Execute step-1.sh,then I see that reminder in a loop . And my kindle fire don't have any respond.it 's screen bright all the time
[Fire HD 8 and HD 10 Original Android Development] Michajin:
Did you get root access?
[Fire HD 8 and HD 10 Original Android Development] x-new:
no
[Fire HD 8 and HD 10 Original Android Development] Michajin:
Step one is root....

Post #1152 might help you. If you dont want to open the device...

https://xdaforums.com/hd8-hd10/orig...-2017-suez-t3913639/post82745681#post82745681

Link to his Kingoroot link -post #1010

https://xdaforums.com/hd8-hd10/orig...hd-8-hd-10-t3904595/post82713979#post82713979
[Fire HD 8 and HD 10 Original Android Development] x-new:
sorry ，I am not very good at English . Don't understand your article.
[Fire HD 8 and HD 10 Original Android Development] Michajin:
What FireOS are you on? The step one rooting method is no longer working on the newer FireOS. The links i posted give directions on a current root exploit that should get you past step 1 on the directions...
[Fire HD 8 and HD 10 Original Android Development] x-new:
I'm the newest fireos ,I will try again.
[Fire HD 8 and HD 10 Original Android Development] HagardoVesrozy98:
Okay, I'm thinking of using of using a Lubuntu live USB/disk since its a linux lightweight, would that work?

btw I'm using a FireOS 5.6.0.0 HD 10(7th gen)
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Restoring backups using TWRP should not result in a brick.
[Fire HD 8 and HD 10 Original Android Development] fortis91:
Just to add a bit more since I bricked my Fire HD 8 2018 and had to restore.

Restoring from TWRP didn't lead directly to the brick, flashing the boot image that was backed up during the unlock process caused the brick.

Here's the sequence that lead to my brick:

Use bibikalka process to unlock HD 8 2018 running 6300

Did a TWRP backup (6300)

Flash 6301 zip from TWRP - to remove scard message when tablet reboot

Did some deboat using pm hide

Install google services

After a day I wanted to test 6300 again as 6301 seemed sluggish.

Restore TWRP backup(6300)

After restore was completed reboot just went back to TWRP

Flash boot img backup during the unlock process

I should have just flashed the full 6300 but I was on the train and for some reason I thought flashing the boot image would resolve it.

Didn't want to go OT here, just wanted to add some info.
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Thank you for sharing your experience.

This cannot happen on the HD10 because the exploit works differently.

Unlike on the HD8 the boot.img doesn't need to be patched.
[Fire HD 8 and HD 10 Original Android Development] bibikalka:
OK, this makes sense! Actually, with the systemless root and the HD8 unlock patch it's pretty tricky to restore system backups via TWRP since one needs to think what is the state of boot.img, and how it is presently patched. It's probably easier to always flash full stock back, and add Magisk and modules to it. I shall add a note to that effect.

Nah, people will find ways to mess it up as well ! :D Anything that can go wrong will go wrong.

Just to clarify, if both boot & recovery went back to pure stock, would this handshake2.py method work? Or are you saying it will work only if recovery goes back to stock, but boot still has an exploit in it?
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
You are right of course, I'm just saying it won't happen like it happened on the HD8.

There are more protections in place ;)

Yes exactly, it will only work if the boot-exploit is still in place, but it will still work even if the boot-image doesn't boot as long as the microloader is still there. the boot-exploit is still there (There is no microloader on suez)

Allthough I just noticed this probably doesn't work in the current version, since I made a small mistake.

I am currently working on updates for the tank to include some of the protections I did for the suez and also to have a way to enter recovery using handshake2 (It will also be included in the zip-file).
[Fire HD 8 and HD 10 Original Android Development] RagManX:
Thank you for making this [MENTION=7104332]k4y0z[/MENTION] and making it so easy. I did the unlock on a Fedora 29 system. Already had adb and fastboot installed from the recent software root. Had to 'yum install python3-pyserial and dos2unix' to run this, but everything worked once I did. For some reason, the step-1.sh script errored out the first run when it was supposed to dump the GPT, but re-running the script lead to success, and everything proceeded fine in step-2.sh after that. Really appreciate this, and have a donation I'll be making soon to the HD8 unlock effort. Thanks again!
[Fire HD 8 and HD 10 Original Android Development] ffstudios:
I ran the first part of the script, the Kindle performed the factory reset, but now I go into Settings and the Serial Number is totally greyed out??? I cannot activate developer options at all within the Kindle now to re-enable ADB.

EDIT: I solved this problem by re-installing 5.6.3.0 stock image via ADB. I then enabled developer options and was able to run step-2.sh and continue with the process.
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
What?

Can you take a screenshot.

Also please share the output of the scripts!
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
This happened to my Fire 7. Do you have the WI-FI enabled?

Enviado desde mi Mi A2 mediante Tapatalk
[Fire HD 8 and HD 10 Original Android Development] DB126:
Misinterpreted response; was referring to partition images created from other ROMs and/or different devices. Explicitly avoided use of 'brick' as it depends on restoration target and interpretation of that term. My comment stands as written: "...just asking for trouble."
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Just uploaded version 1.1.

If you are already unlocked you can just install the zip-file from TWRP to update.

Version 1.1 (25.03.2019)

Update TWRP-sources to twrp-9.0 branch

TWRP uses kernel compiled from source

Add scripts to use handshake2.py to enter fastboot/recovery
[Fire HD 8 and HD 10 Original Android Development] ffstudios:
I managed to get to TWRP, flash Magisk, and install Magisk Manager. But if I open SuperSU, it asks to update the binaries, and if I hit "normal", it says installation failed. Am I missing something? Do I need SuperSU now that Magisk is flashed? I installed ES File Explorer to test root and granted the app permission successfully, so I guess I was just overthinking things. I have not yet run a system update but the device is reporting OS 5.3.6.4, when previously I had flashed stock ROM 5.3.6.0. Just double checking that this is normal as well? Otherwise great job so far, everything is working great now that I know I do in fact have root :good:
[Fire HD 8 and HD 10 Original Android Development] TheRealIntence:
Remove SuperSU if u have magisk installed. Both of them are root solutions and they interfere each other.
[Fire HD 8 and HD 10 Original Android Development] MontysEvilTwin:
Magisk has a built in root manager: open Magisk Manager, click on the three line icon (top left) to access superuser permissions. The reason you can't update the su binary from SuperSU is because Magisk is using it. You should uninstall the SuperSU app and use Magisk to manage access.

Fire OS 5.3.6.4 is OS 5.6.3.0. Amazon messed up the numbering with this version.
[Fire HD 8 and HD 10 Original Android Development] ffstudios:
I apologize for not updating my post sooner. I fixed the problem by flashing 5.6.3.0 stock image, and then was able to get into developer options. I wish I had taken a screenshot though! It was definitely one of the most bizarre things I have ever seen :p Never had an Android device that wouldn't let me get to developer options before

Thank you for the reply. I installed ES File Explorer and it asked for root successfully, so I uninstalled SuperSU.
[Fire HD 8 and HD 10 Original Android Development] GuyInDogSuit:
How are we looking so far? What's the success rate on this? And any news on a custom ROM?
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
I haven't had time to try and recover. As soon as I can set up the kernel source code properly in my AOSP working directory, and set the values where they need to be set, no rom. Theire is no support to build so everything has to be set up from scratch. Unfortunately the kernel source code I have doesn't appear to be set up properly either but I could be wrong.

Also these have a GPS chip that's not activated. I need help in tracking down the driver for it. I don't need it, but I need the complete path. If I can do that, I have an xml file that when combined with a GPS.conf will activate it.
[Fire HD 8 and HD 10 Original Android Development] ffstudios:
Continue into Fire OS, enable developer options, and run step-2.sh. You should be okay to continue at that point.
[Fire HD 8 and HD 10 Original Android Development] bibikalka:
[MENTION=7104332]k4y0z[/MENTION] and others,

I created a thread to chat about custom ROMs, as to de-clutter the other threads as much as possible:

https://xdaforums.com/hd8-hd10/general/chat-hd10-2017-custom-rom-brainstorming-t3915389

Feel free to contribute any ROM related thoughts you have!!!
[Fire HD 8 and HD 10 Original Android Development] toybits:
Have you tried the prime video and netflix kodi repo/plugin. I dont know if it will play in HD in LOS? http://https://github.com/Sandmann79/xbmc/releases/tag/Repository

http://https://github.com/CastagnaIT/plugin.video.netflix/[
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
I haven't used Kodi for many years. Will try it out and let you know.
[Fire HD 8 and HD 10 Original Android Development] toybits:
Make sure to download the leia repo in prime not the matrix. Both works well in kodi but im just not sure about the quality if it is in HD in rooted fire. Please let me know if you notice any difference. Thanks. Let me know too if you need help on how to install it but it is pretty simple. Hope it works.
[Fire HD 8 and HD 10 Original Android Development] Michajin:
Yes it should, mtk-su for root should work on the fireOS on 5.6.0.0, so you shouldnt have to open the device unless something goes wrong...
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
Good news is PV works and plays HD with Kodi addon. Appears to be as good as full HD 1080p, but I could only checked a couple of movies after an hour since the browsing or searching for a movie is awfully slow. It seems to want to load the full category instead of a few pages at a time. Is there a way to make it load faster?
[Fire HD 8 and HD 10 Original Android Development] Michajin:
These video issues posts should be in the LOS thread you are using. (likely if you are on 14.1, there is a fix in that thread), im not sure how bad your resolution is, but mine is perfectly clear for a 10 inch tablet...

Not trying to be a jerk, but this thread should be dedicated to unlocking and installing issues.
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
Agreed that it's digressed a bit, but it's not purely a video issue. It's a significant consideration in preparation to unlock and root these tablets since these DRM apps could be checking for unlocked bootloader status and there's no way to bypass that. I think it's quite appropriate to talk about the effects of unlocking bootloader in this thread. I couldn't find a better place to discuss this.

Also not a low res video in general, but specific to DRM streaming apps like Netflix and Prime Video after unlocking the bootloader. I don't think anybody is talking about video issue in general here, as far as I can remember.
[Fire HD 8 and HD 10 Original Android Development] Michajin:
The only app i have ever had issues with is disney plus. If it is root issue as you state, dont root, it is optional on los. 14.1 has a OMX issue that can be fixed. I guess i dont understand. But sorry to interrupt, my opinion is that it is rom based as mostly everything can be hidden by magisk...
[Fire HD 8 and HD 10 Original Android Development] toybits:
Glad it worked! I think on the left bottom of the page there is an options tab. You will see add-on setting. On the tab connection there is items per page that you can change from 20 to 250. There is also views section to change the view to iconwall instead of the list. On the options tab too you can click the viewtype and change it to preview the changes, so you can pick what works best for you.

Question, So the quality video of your non rooted fire hd was almost the same as the one with LOS? Have you also tried netflix? Are you in LOS 12.1 or 14.1? Im thinking of rooting it and play with 14.1 to see if i can make DRM run well. Have you tried LOS 14.1? Thanks
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
I left the items per page at the default 40, but seems first load would download all in the category, like 999 in the top movies regardless of that or pagination. Searching is slow every time.

I haven't been able to compare side by side with stock yet but my first impression is the quality seems quite better than 720p. Will try Netflix in Kodi later, but for now I'm using one of the older version Nflx app patched for HD (here's one among others: https://github.com/longseespace/netflix_patch).

I'm running LOS 12.1 and have not tried LOS 14.1 yet since it hasn't been updated for quite some time.

Update: So Netflix Kodi addon won't play HD at all in both LOS and stock rom. Even the native Netflix app in stock rom won't play 1080p for me. Max at 720p only. So give it a major thinking before going unlock if your life depends on FHD streaming :)
[Fire HD 8 and HD 10 Original Android Development] toybits:
Thanks for the update. I think there is also a mod apk of PV on karnak lineage os 16 pie. He made a PV signed apk to work on lineage os. I dont know it works as HD. You can look it up as I dont know how to attach files here or if I am allowed. I will look up and post the forum if I find it later.

Btw, What version of netflix did you get? It should be 1.4.0 as the other one is out dated.

Try this if it not the version you have.

http://https://github.com/CastagnaIT/plugin.video.netflix/releases
[Fire HD 8 and HD 10 Original Android Development] drdtyc:
I googled and found this patched Netflix v4.16.3 apk which can play in 1080p on all Widevine Level 1 devices. Downloaded and run it in LOS12.1. Voila! Netfix is now playing in 1080p. It allows downloading Netflix contents for offline viewing too.

https://github.com/longseespace/netflix_patch/releases/tag/v0.2

---------- Post added at 07:13 PM ---------- Previous post was at 07:01 PM ----------

If you search "Test Patterns" in Netflix and play it. It will play various resolution from low to the highest that can be played on your devce. Resolution is shown on the top right while the video is playing.

The above patched Netflix apk does play video in 1080p on my Fire 10hd with LOS 12.1.

https://www.dropbox.com/s/e8qlrvht05vyx0f/IMG_20200608_142253.jpg?dl=0
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
It'd be great if you can find the post. I've been looking but found nothing useful.

I've compared the Kodi addon on LOS 12.1 with stock PV and the resolution is the same at 1080p, but Kodi's decoding has a bit too much noise reduction resulting in smooth but washed out details. Not really noticeable if not comparing side by side.

I did get the latest 1.4.0. I read in the support thread and the readme on Github that unless it's certified Android hardware, this addon only use software decoding and is limited to SD on Android. Like I said above, this addon only plays 540p max in stock rom of this tablet. Do you use it? What resolution do you get when playing the Test Patterns video with this addon and the stock app?
[Fire HD 8 and HD 10 Original Android Development] toybits:
Here is the link on the prime video app. Let me know what happens

http://https://github.com/488315/prime_modded/raw/master/prime_modded-3.0.269.67055-signed.apk

My netflix test pattern says 960 x 540p on both Kodi add on and netflix stock app. Are you getting the same on your stock app? I dont know how to use test pattern as i just played it and look at the fps on the top left corner. Is LOS much faster, snappier and stable than stock? Im thinking of trying it as I can go back to stock in case that it does not work well for me right?
[Fire HD 8 and HD 10 Original Android Development] tnthd2:
Thanks for the link. I'll check it out and report back.

The Test Paterns will tell the resolution being played at the top right corner of the screen, just like in the image [MENTION=10542541]drdtyc[/MENTION] posted above. Netflix app from Amazon appstore in stock ROM on mine will play at 720p. The app settings will also tell the max res in the diagnostics section as well, mine says HD.

LOS is reported to run better than stock, but I don't use it much beside NF, PV and YT so I can't really tell. You can try change background apps in stock rom to 2 to make it more responsive.
[Fire HD 8 and HD 10 Original Android Development] drdtyc:
This modded Prime Video is for 8HD 2018 (karnak) with LOS 16 as you stated.

I tried to install it on 10HD 2017 (suez) with LOS 12.1 and it failed to parse the apk.

Thanks, nonetheless!
[Fire HD 8 and HD 10 Original Android Development] :
I am getting an java error how can I fix this?