yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Did you do the modifications as suggested by [MENTION=8132642]diplomatic[/MENTION]?

I.e. adding

input()

before the line.

log("Check GPT")

That should make the normal bootrom-script to wait for you to press enter before continuing, same as the minimal does.

So you can do the "battery-trick" and then press enter.
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
I made the input modification, but nothing else as you said to forget it. Only minimal will complete, same way as before.

I may have found the problem though. The last two firmwares in the HD 10 firmware thread, aren't the same. I am on the one that has Suez in the title. There are variations in the boot images. So I put my working one to the test and its fine, but the exploit won't complete all the way. It fails at the last partition saying it's not userdata and halts. Still have root though, but at the end when it halts, also says permission denied. So I did it again without root, using mtk-su, and same result.
[Fire HD 8 and HD 10 Original Android Development] diplomatic:
[MENTION=8165603]DragonFire1024[/MENTION], that doesn't make much sense, tbh. Can you try the bootrom step again and post the output with the crash trace? I'd like to know if it's stopping at the same line in main() as it used to (95). The script will downgrade LK and TZ if yours are newer (which may be the problem), but those steps are the ones that are skipped in minimal. The userdata error is probably because you've already done the mod before.
[Fire HD 8 and HD 10 Original Android Development] diplomatic:
OK, let's focus on the broken tablet for now....

Come on, man, did you actually edit the main.py file like we told you???

Why do I ask? Because the place in main where it aborted is still shown as "line 95". If you had added the "input()" statement before "switch_user", that line would have become 96 instead. (Unless you deleted a blank line before that as well, which I doubt.) There is also no blank line in your log after "all good" that would have appeared from you pressing Enter had you added "input()" to that code, which would have required it. Now what is the output of running the bootrom script with a modified main.py?
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
Heads up the safety net module from magik will get you stuck on white amazon boot logo.... can anyone confirm

---------- Post added at 06:55 AM ---------- Previous post was at 06:21 AM ----------

So cant get the computer to see the device. WIll not go to actaul boot logo of yellow amazon logog. Stuck on the white logo. Can I run the stock recovery with unlock in recovery terminal or install a image of it from TWRP?
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
put recovery.img from bin to the SD card and restore it in twrp or install?
[Fire HD 8 and HD 10 Original Android Development] diplomatic:
OK, no problem....

The script is not hanging on 'all good'. That is your cue to press Enter to continue, as we keep mentioning. That's the whole point of the input function.

Don't worry about the other scripts (minimal, etc), tablets or signatures for now. Let's just see what happens from running the regular bootrom script, ok?
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
As mentioned in the OP anything that modifies the boot-image MUST be installed from TWRP.

What do you want with stock recovery? TWRP should still be working.

And booting into TWRP once should automatically fix your boot as well.
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
Im in TWRP have loaded it many times, but device continues to not load past white amazon logo. I wasnt aware the safety net module affected boot apologies. So since my device wont boot and I cant get my computer to read adb drivers. only coming up a suez with no way to enter the storage.... what do I need to do to flash the stock recovery img that doesn't affect data?
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Then just reinstall a working boot-image from TWRP (Just extract it from the latest update-bin), you don't need stock-recovery.
[Fire HD 8 and HD 10 Original Android Development] mindstorms8888:
Xposed

The exploit worked perfectly (Debian) so thank you very much fort that. :) After installing Magisk, I installed Xposed Framework from the module options. After a reboot, the hd 10 won't get past the fire logo. Gonna try to flash 5.6.3.0 through TWRP (by renaming the bin to zip?) Just a heads-up for anyone that was about to install Xposed through Magisk. ;)
[Fire HD 8 and HD 10 Original Android Development] bibikalka:
It seems that this post could be useful to you :

https://xdaforums.com/hd8-hd10/gene...via-magisk-t3906554/post79024406#post79024406
[Fire HD 8 and HD 10 Original Android Development] Wall.swe:
"NOTE: If you are already rooted, continue with the next step, otherwise get mtk-su by [MENTION=8132642]diplomatic[/MENTION]*from*hereand place (the unpacked binary) into*amonet/bin*folder"

So if I already have root I continue with 2. In the guide or do you mean 4. and sudo ./step-2.sh?
[Fire HD 8 and HD 10 Original Android Development] GuyInDogSuit:
Don't skip a step. You just don't need to obtain and copy the mtk-su binary to the device.
[Fire HD 8 and HD 10 Original Android Development] TheRealIntence:
Are there any source trees available yet? Someone mentioned that we could try to flash a custom rom build for another fire device. Have someone already tested it? I'm looking forward to build a custom rom for this device but it would take a lot of time to make the source trees from scratch since I'm not that experienced in making such trees. It would be much easier to adapt an existing tree for the rom I want to build.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
We only have minimal sources:

https://github.com/chaosmaster/android_device_amazon_suez

And the kernel source code:

https://fireos-tablet-src.s3.amazon...NP/Fire_HD10_7th_Gen-5.3.6.4-20181026.tar.bz2
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
I have the full code for the HD 10 I believe. Amazon really cherry picked the kernel to almost nothing. Also there is a ProjectConfig.mk that resides in system/data, that's on the tablet. Not sure what it's for, aside from being kernel specs. Anyways here is the FULL source for mt8173 https://github.com/Goayandi/mediatek_mt8176_development the link is deceiving. It's both the mt8173 and 76.
[Fire HD 8 and HD 10 Original Android Development] TheRealIntence:
We should be able to build at least a nougat AOSP rom with this. Wasn't there a thread about a built custom rom for this device? I think it was AOSP oreo.
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
There was a thread about it. Just do a search as it's over a year old. I just need to understand how to get the tree laid out. I am past the script issues, but now a new problem...the build won't boot.
[Fire HD 8 and HD 10 Original Android Development] TheRealIntence:
Feel free to send me a log :)
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
For anyone who wants to start working on a ROM, I have uploaded working kernel-sources:

https://github.com/chaosmaster/android_kernel_amazon_suez

I have also updated the device-tree to use these sources, so far seems to work great.

EDIT:

I have attached a TWRP-build using a self-compiled kernel.

I also updated TWRP sources to twrp-9.0 branch.

For anyone willing to test.

If there are no issues, I'll switch to the self-compiled kernel in the next release.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Thanks! Now we need the vendor tree. I do not have the tablet but someone could extract the blobs.
[Fire HD 8 and HD 10 Original Android Development] TheRealIntence:
I've uploaded the firmware and lib folder of the newest FireOS version: https://drive.google.com/file/d/1iNlmJF1rR63xxz1_4JIkGlSxQHdUr3rk/view?usp=sharing

Tell me if you need anything more.
[Fire HD 8 and HD 10 Original Android Development] secretsubscriber:
Hello

I just came across this thread a couple of days ago. I successfully installed TWRP on my HD10 64gb and sent a thank you donation to k4y0z.

Looking forward to and ready to donate to any custom ROM work.
[Fire HD 8 and HD 10 Original Android Development] wolfhelm:
For anyone wondering, you can successfully execute this in Windows Subsystem for Linux as well. I enabled the WSL, installed Ubuntu from the Windows store and executed the steps.

There's a couple of gotchas though.

1: Don't try to copy the scripts into the WSL Ubuntu (or any other distro) directory, it can screw up the install. Instead put it somewhere you can easily find it (I put it on my C root in a folder) then in Ubuntu navigate to /mnt/c/<directory you put it in>/amonet/

2: ADB doesn't work natively in WSL but you can massage it to make it work. If you run ADB in Windows first then allow it to run in Ubuntu it will see the device and let you run the script against it BUT the more recent versions of ADB for Windows don't match the Ubuntu version and it will break the workaround (since it forces ADB to restart in Ubuntu thus negating the workaround of having started it in Windows first).

To fix this you need to download the appropriate version of ADB, I would recommend you not replace your newer version, but instead put it in a directory and navigate to that directory in the Windows cmd CLI and execute adb devices from there. You can get the appropriate version of adb from here:

https://dl.google.com/android/repository/platform-tools_r24.0.4-windows.zip

(or from the attachment below, it's the same thing)

Flip back to Ubuntu and run adb devices again (and make sure you see the device), you should be good to execute the script.

If you repeatedly get a message in cmd or Ubuntu saying:

adb server version (39) doesn't match this client (36); killing...

Or similar, then you are not matching the version between Windows and Ubuntu and you need to make sure you're executing the correct version of adb in Windows first.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Well .. That's not the vendor tree. You need to run extract-files.sh
[Fire HD 8 and HD 10 Original Android Development] secretsubscriber:
In a similar veinI first tried to run the install in an Ubuntu VM running in virtual box on Windows 8. ADB within the VM detected the HD10 but didn't initiate the request for access on the tablet, so my VM environment remained unauthorized to perform commands. To impatient to figure it out, so I installed Peppermint on an old netbook.
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
Can't. It stays at the orange fire logo. So it's a problem with the make up of the system.
[Fire HD 8 and HD 10 Original Android Development] TheRealIntence:
Try 'adb logcat' and power on the device. I have adb access when my device stucks at the logo.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Yes but device is unauthorized so any adb command doesn't work.

Enviado desde mi Mi A2 mediante Tapatalk
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
where would I find update-bin al the bin folders i open using TWRP dont show any .img or any other files inside.
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
The Firmware-update bin-file.

Just rename it to zip on your computer and extract it, you will find the boot.img in there.
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
Sorry man, Im in the file explorer n TWRP i do not see anything labeled firmware-update. and Im and I cant access the store of the device from my PC so how can copy said file to it?

---------- Post added at 12:10 PM ---------- Previous post was at 12:05 PM ----------

ok im able to get into internal storage now in my pc
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
I get it now. I was pressing enter just once. And it wasn't doing anything. Speaking of pressing enter there, on the non broken tablet, I decided to look over all the .sh files. Since I had root, I was able to decipher what was being flashed and when and run the whole thing manually, line by line...and it worked. I had to press enter twice a time or two doh. That one is back to 100 now. Will try the other again in a few minutes.
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
Please list in steps what I need to do
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Just reinstall the firmware...
[Fire HD 8 and HD 10 Original Android Development] nikothebarber:
I found firmware folder under sys, it contains device tree. Is this the file I need?
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Dude, just download the firmware from amazon: https://www.amazon.com/gp/help/customer/display.html?nodeId=202194760

Rename it to .zip and install it using TWRP.
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
It worked like a charm. I'm going to take a guess at my 'battery' trick. Its likely because of Amazon's low charger crap, the battery was probably as dead as can get and wouldn't stay powered on long enough for anything to be able to happen.

Edit I say that because when the bootrom-step finished and I rebooted to recovery/twrp, it died. So I plugged it into an outlet and within a few mins it was booted to twrp

.
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
Great to hear, so all your bricks are recovered?
[Fire HD 8 and HD 10 Original Android Development] diplomatic:
Very good, [MENTION=8165603]DragonFire1024[/MENTION]!
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
As it stands...for the moment ;) thanks guys. You're both geniuses. Though it urks me how things like this usually take less than a few characters of code to fix. The rest is operator error. I really should learn python for real now that I'm on a full Linux distro. It does so much and the benefit of it to these tablets, along with you guys, is priceless.

---------- Post added at 05:04 PM ---------- Previous post was at 05:01 PM ----------

Ps. That's all tablets (3 total throughout the last 4 years) recovered from full brick, including the first one I broke trying to flash the unlock and one that was half screwed up, but working.
[Fire HD 8 and HD 10 Original Android Development] pocketrussian:
You are right. I am running Ubuntu 16.04 and kept having the same error:

adb shell su -c "ls /data/local/tmp/"

would return the tmp-mksh not found error.

After reading your post, I downloaded the latest version of adb from Google:

https://dl.google.com/android/repository/platform-tools-latest-linux.zip

for linux

and installed it in the the /usr/local/lib directory. I then created two simlinks of the binaries to /usr/local/bin/ and made sure that the system was now using the new binaries (I didn't uninstall the old ones). Run ./step-1.sh and everything worked. Something in in old version doesn't allow the creation of a root shell on the device.
[Fire HD 8 and HD 10 Original Android Development] diplomatic:
Well, thanks for that. I gotta admit, there was a pretty huge clue to help find the problem. The fact that the minimal script worked out but the other didn't was lucky break. We just had to look at the differences between the script behaviors to see the workaround. I mean, if both of them had failed, it would have been a different story altogether. Probably very tedious to diagnose remotely, and too tempting to blame on hardware damage....

Good to know... but have you tried to install the updated native packages, i.e. 'sudo apt install adb fastboot', and see if those work out? Maybe that is enough for users rather than going through that elaborate procedure.
[Fire HD 8 and HD 10 Original Android Development] pocketrussian:
I just tried and the updated packages do work to. The versions are:

/usr/bin/adb version

Android Debug Bridge version 1.0.32

Revision debian

and the latest is:

/usr/local/bin/adb version

Android Debug Bridge version 1.0.41

Version 28.0.3-5475833

Installed as /mnt/disk/axs/Android/platform-tools/adb

Both work fine, so no need to download the latest version indeed.

Thanks for all your help!
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
I have an Amazon 8.9 in. The current adb tools do not work with it. There's a option -i that you could set in a command like

fastboot -i 0x1949 <command>

that would activate 'waiting for any device' (specifically our tablets as 1949 is the vendor I'd) and a trigger that when powered off, then plugged into a PC, would boot the tablet into fastboot.

You don't even need to do all the above. Just put the new bins in home directory chmod a+x and link them to usr bin. Less confusing for me to just use a separate work folder for the 8.9 and leave the bin there. One of these days I'll compile a mega bin.
[Fire HD 8 and HD 10 Original Android Development] gabob1457:
Can I do this on a windows computer?
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
In a virtual machine yes. And I recall someone using the new Unix command line in windows 10. Aside from those, you will have to use Linux.
[Fire HD 8 and HD 10 Original Android Development] Kctucka:
Create a linux live system with persistent storage via a bootable USB. Scroll to "How to Make a Persistent Ubuntu USB Drive on Windows"

https://www.howtogeek.com/howto/14912/create-a-persistent-bootable-ubuntu-usb-flash-drive/

This worked well for me. Some users ran into issues with a virtual machine. This method is (mostly) noob proof, as you can just follow the instructions as is.
[Fire HD 8 and HD 10 Original Android Development] Mfewox2004:
Downgrade

I'm on fire os 5.6.4.0 i need to downgrade to 5.6.3.0 to do this. is there are copy of 5.6.3.0 someone can point me to? I've search but i can't seem to find one.

Never mind, i found it in the general section.
[Fire HD 8 and HD 10 Original Android Development] Legitsu:
Nnnnnnno you didn't read

you don't need todo anything other then run the unlock scripts

the scripts take care of bricking the preloader when necessary
[Fire HD 8 and HD 10 Original Android Development] Mfewox2004:
Thanks for catching me there

It's been a long week so I missed that. Thanks for catching my mistake.
[Fire HD 8 and HD 10 Original Android Development] chebractor:
Custom rom

Is there a custom rum for the Amazon fire HD 10?
[Fire HD 8 and HD 10 Original Android Development] Kctucka:
Not yet. There are some members working on it though.

There are some modified stock ROMs.
[Fire HD 8 and HD 10 Original Android Development] Vanbiker650:
Thank you all for your hard work.

The script worked perfectly on a brand new Fire HD 10, ver. 5.6.2. I installed it from a Dell 5000 series laptop running dual boot--Windoz7 and Linux Mint 17.3.
[Fire HD 8 and HD 10 Original Android Development] krmnelson:
Help with Fire HD10 - Amazon logo only

I have a Fire HD10 which now will only display the Amazon logo and then reboot continuously. I do not have Linux to be able to go through the steps listed. Anyone repair these tablets for other people?
[Fire HD 8 and HD 10 Original Android Development] n3wt:
Get linux. flash drive? vm? It's really not that hard. ...once you've done that bit (which you should've done before trying to brave your own path through a strange and dangerous forest all alone) you can fix it yourself by following the steps.
[Fire HD 8 and HD 10 Original Android Development] Kctucka:
If you can boot to recovery, you can sideload stock firmware. May be easier than using Linux if you're not that familiar.

If not, boot Linux with a flash drive. There are some guides/tools that make it fairly simple
[Fire HD 8 and HD 10 Original Android Development] krmnelson:
No recovery

Unfortunately, I cannot boot to recovery. It just keeps rebooting and displaying the Amazon logo.

Kristi
[Fire HD 8 and HD 10 Original Android Development] Kctucka:
Then booting Linux from a USB may be your best bet. I'd recommend it over a virtual machine, as some users have ran into trouble with that method.

See link below and scroll to "How to Make a Persistent Ubuntu USB Drive on Windows"

https://www.howtogeek.com/howto/14912/create-a-persistent-bootable-ubuntu-usb-flash-drive/

You can just follow the instructions as is from the OP after you get Ubuntu up and running.
[Fire HD 8 and HD 10 Original Android Development] justgosh:
The places where I hit bumps

Following the instructions on 5/22/19, I hit a few small bumps:

When it said to extract mtk-su to bin, it didn't mean to extract to /bin/mtk-su/ or to put all 3 of the mtk-su folders into amonet/bin/, it meant *find the correct mtk-su bin file in the zip and place only that file from the zip into the amonet/bin folder.

After bricking I needed to hold the power button for 20 seconds before sudo ./bootrom-step-minimal.sh worked.

I've never rooted my Amazon Fire 10 or used any of these tools before, so I hope this helps someone.

Thanks for the instructions, it worked really well!
[Fire HD 8 and HD 10 Original Android Development] bobcat131:
I just got the Fire 10 HD (7thed) and it is on Fire OS 5.3.6.4 (626533320). I rooted it with KinggoRoot ok. ADB connects good but when using Unbutu on Windows 10 all goes well but it hangs after command "sudo ./step-1.sh" Stuck there. Any help please?
[Fire HD 8 and HD 10 Original Android Development] Legitsu:
start over you can't do the process with kiggogarbage
[Fire HD 8 and HD 10 Original Android Development] SweetwaterBurns:
Use a live disc or USB. Windows subsystem for Linux doesn't hand over control of USB devices so that fastboot and adb work the way they should.
[Fire HD 8 and HD 10 Original Android Development] azuremoonbeam:
is anyone who has actually rooted this device live in albany ny? i dont wanna learn a whole new os just to root this.... if your local and sucsessfully rooted yours would you be willing to root mine once and for all so i dont have to learn a new os? thanks either way...
[Fire HD 8 and HD 10 Original Android Development] tylerhole:
What's there to learn? Other than turning on/off the device, pressing enter on a keyboard and plugging in a cable, the only thing left to do is run commands and they're given to you. Copy and paste.
[Fire HD 8 and HD 10 Original Android Development] azuremoonbeam:
im not comfortable installing a new os just to run an exploit once when id rather someone who has done it do it for me less likely to brick and other factors that should be obvious... i didnt ask someone who isnt local to me to condesend me... if you cant help me dont respond i was asking for local help not net sass...
[Fire HD 8 and HD 10 Original Android Development] tylerhole:
I was just asking a legitimate question (just like this next one),, sorry for thinking you could save yourself the trouble of finding/meeting up with someone and possibly saving you a couple bucks if someone charges you. But anyway, Why bother installing the os when you can run a live usb version of it?
[Fire HD 8 and HD 10 Original Android Development] azuremoonbeam:
if i knew how to maybe i would... but i dont know jack about linux accept for the limited info i know about android... im a windows baby i dont like messing with things im not farmiliar with and im ok with paying a couple of dollars to help someone out who helps me it the spirit of sharing with those who have knowledge that i dont have... i dont wanna take time to learn how to do something ill only do once i have more important things to learn than to learn how to do something once when ill never use the knowledge again...
[Fire HD 8 and HD 10 Original Android Development] tylerhole:
Never use the knowledge again? Bold statement considering technology becomes more and more of a thing in our daily lives, but that's just my opinion. Anyway, best of luck finding someone. [emoji849]

PS: it's a job if you have to pay someone to do it.