yashsingh1/xdaforums huggingface dataset:
[Fire HD 6 and 7 Android Development] bibikalka:
You probably have an older Python version ... You can actually leave it as is, re-install Python, and then re-run this command ;)

Another option is to just read_mmc something, and hold the power button & Vol+ for a while until it starts.
[Fire HD 6 and 7 Android Development] FumundaSaq:
The command i tried to run is: python read32.py 0 1 which gave the syntax error.

According to this i have the newest version of python3: sudo apt-get install python3

Reading package lists... Done

Building dependency tree

Reading state information... Done

python3 is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.

and what do you mean "just read_mmc something"? Do you mean do that and then hold pwr+vol up?

Sorry if Im dense...
[Fire HD 6 and 7 Android Development] my2k2zx2:
read_mmc.py 0x0000000 0x1000 0x0000000.part

I've now installed ubuntu on a netbook but I cant get to to handshake. Do drivers need to be installed? I have no linux experience.
[Fire HD 6 and 7 Android Development] FumundaSaq:
I didnt have to install any drivers in linux mint which is just a distro of ubuntu. Surprisingly, after messing with windows machines and trying to get this to work, using mint was quite easy. Once I got python setup and the handshake waiting i just plugged in and bam, handshake completed.

---------- Post added at 11:42 AM ---------- Previous post was at 11:31 AM ----------

Ok. Success! I can now get into TWRP. Of course, now what? How do I get the rom to the kindle? using adb? After all the headache the last few days, i forgot how i screwed this thing up in the first place. I dont want to do it again so please just bear with me.

And btw, thanks for all the help!!!
[Fire HD 6 and 7 Android Development] Killa8:
Now you have to install the correct ROM either via adb or from TWRP

Depends on you, check this http://xdaforums.com/fire-hd/general/how-to-upgrade-to-lollipop-root-gapps-t3163950
[Fire HD 6 and 7 Android Development] bibikalka:
The easiest way is a USB OTG cable, which you plug in, and TWRP will see it. Never tried to beam things into TWRP from a PC, but I guess it should be possible ... (just need the drivers, again ! ;) )
[Fire HD 6 and 7 Android Development] bibikalka:
Just to be sure, you do have a 4th gen Fire HD 6/7 ??? Or is it something else ? Perhaps, you have a 5th gen Fire ?
[Fire HD 6 and 7 Android Development] FumundaSaq:
And if I don't have one of those? Short of buying one of course. Is there a way to get the rom to the kindle other than that? Maybe using the handshake method since that works....
[Fire HD 6 and 7 Android Development] bibikalka:
TWRP sideload option could work, so do try it!
[Fire HD 6 and 7 Android Development] FumundaSaq:
Ill be honest... I'm not all that familiar with the sideload option. I haven't even used twrp before now. I bricked this thing the first time trying to install twrp but did it for the wrong version of kinde fire hd 6. So I'm kinda worried I will screw this up again. I will let you know how it goes
[Fire HD 6 and 7 Android Development] Killa8:
My files

So these are my files

I tried to look into em' myself with a Hex editor but I was so confused i close everything, hope you can help̣!:cowboy::):D:D:D
[Fire HD 6 and 7 Android Development] Killa8:
Just make sure you follow steps keenly, sideload always works, or you can mount the internat storage, sopy the rom the install simply, I think it shhould work, give it a try tho ;)
[Fire HD 6 and 7 Android Development] bibikalka:
OK, post #1, Option A. LK @ 0x1300000

Now, how did you manage to have TEE1 from 4.5.3, and UBOOT from 5.2.0 ??? Being a bit too naughty lately ? :D:D:D
[Fire HD 6 and 7 Android Development] FumundaSaq:
Success!

Thanks Bib for all your patience and help. I now have my kindle back in working order! This process has taught me that I don't have a clue what I'm doing. :) But I love the forum here for all the advice and help the people provide. I may look into putting a droid rom on it just for poops and giggles. Ill decide that later. One last question, can you point me to a thread discussing how to make a backup with twrp? Since I have it working again I want to back it up just in case... which I should have done to begin with.

THANKS AGAIN!
[Fire HD 6 and 7 Android Development] my2k2zx2:
I believe it's a 4th gen. It has the power button on the top and 2 speakers on the back (on the top if you hold it horizontally). It's full of cache errors when I load up the Amazon System Recovery <3e>, would that be causing the read_mmc issue?
[Fire HD 6 and 7 Android Development] Killa8:
:D:D:D What happened is that i was stuck at fire logo, and i ha access to TWRP, but i needed to flash the 5.1 ROM, so i tried to flash the 5.1 bootloader first but the device went dead :eek:

I just saw my old Fire lying since a year and decided to find a solution, then i found this

MAY GOD BLESS YOU BRUH? BLESSS YOU MUCH:victory:

EDIT : IT WORKED, IT WORKEEEDDDDDDDDDD

SOMEONE GIVE THIS GUY LOTS OF BEERSSS

EDIT 2 : Is there a super like button here?
[Fire HD 6 and 7 Android Development] my2k2zx2:
Ok, I got it to handshake in ubuntu using "sudo python3 handshake.py" but the read_mmc command is still hanging.
[Fire HD 6 and 7 Android Development] FumundaSaq:
Me again

Well I got kindle fire 5.5.2 installed and it works. BUT I don't have root and cant seem to get it. Also I cant get back into twrp. What the heck did I do this time?
[Fire HD 6 and 7 Android Development] bibikalka:
Did you install all the packages as per my other post ? You can now downgrade to 4.5.3, root there, or just use this thread to write twrp again. You should save all packages to the local storage, so that you can now install rooted lollipop from twrp, and follow all instructions !
[Fire HD 6 and 7 Android Development] bibikalka:
Are you running read_mmc as root ?
[Fire HD 6 and 7 Android Development] my2k2zx2:
the full command I used is "sudo python3 read_mmc.py 0x0000000 0x1000 0x0000000.part". Is this the correct command?
[Fire HD 6 and 7 Android Development] bibikalka:
OK, try another address, from the bottom. You probably have to restart and handshake again.
[Fire HD 6 and 7 Android Development] FumundaSaq:
No I didn't install all the tee1 and uboot..... I just did twrp cause I thought that's what you said I needed. Now when I tried to write twrp again I get the handshake but the read and write commands hang and do nothing, just a blinking cursor... Guess I'm stuck with what I have. Also SuperSU is installed but I cant get back into twrp to finish installing it I guess. I will try to put the gapps on and see if I can install supersu from the play store. Ill let ya know.

---------- Post added at 04:10 PM ---------- Previous post was at 03:39 PM ----------

Cant install gapps. Can handshake but cant write or read now. Dangit what did I do.
[Fire HD 6 and 7 Android Development] Killa8:
I flashed the 5.2.0 bootloader I say from TWRP, now my fire is not even recognised by computer again :confused: :crying: :crying:

EDIT: I was only freaked out a bit, changed USB port and it's ok now, just need to start from step 4 again lol
[Fire HD 6 and 7 Android Development] my2k2zx2:
No luck, tried a different address and it didnt work. How long should it take to read each part?

I've now installed linux mint 17 and it's hanging there also.
[Fire HD 6 and 7 Android Development] FumundaSaq:
For me it was immediate. The reading was anyway. Of course now it wont do it at all but that's now not then.
[Fire HD 6 and 7 Android Development] Killa8:
Okay, i managed the stuff to get to TWRP

but this guide http://xdaforums.com/fire-hd/general/how-to-upgrade-to-lollipop-root-gapps-t3163950 isn't clear for me, i don't really know were to start

EDIT: I understood the procedure to follow, and i'm on it

Thx Bibi and if possible add keywords ton the thread, cause to find this thread it took me like 2hrs from Google
[Fire HD 6 and 7 Android Development] bibikalka:
You probably need to restart USB or go for a different USB port, see this :

http://xdaforums.com/showpost.php?p=68548360&postcount=167

Something seems wrong in your situation. Can you take a picture of your tablet, front & back ? Also, there are gray symbols on the lower back, if you could get a high quality picture of that (readable!), that would help. Also, what kind of brick do you have ? Totally dark? Or does it bootloop Amazon logo ? Or even Fire logo?
[Fire HD 6 and 7 Android Development] FumundaSaq:
Ok I will try that and let you know what, if anything, happens. Thanks again [MENTION=2880560]Bibka[/MENTION]lka !

---------- Post added at 07:59 PM ---------- Previous post was at 07:53 PM ----------

Nope. Oh well. At least it works as a kindle again. Thanks for everything!
[Fire HD 6 and 7 Android Development] bibikalka:
Just sideload 4.5.3, root it via Kingroot, and install rooted Lollipop as per this :

http://xdaforums.com/fire-hd/general/how-to-upgrade-to-lollipop-root-gapps-t3163950
[Fire HD 6 and 7 Android Development] my2k2zx2:
When the device powers on, it shows the Amazon logo for a couple seconds, then freezes on a Fire logo. I can get in to the Amazon recovery, but it's full of cache errors. Wiping data/factory restore and wiping cache doesn't help.
[Fire HD 6 and 7 Android Development] bibikalka:
OK, looks like a legit 4th gen. Have you tried "apply update from ADB" option in your recovery (2nd option in your screenshot)? As in here :

http://xdaforums.com/fire-hd/general/how-to-downgrade-to-4-5-3-root-device-t3139351

The errors with /cache will probably prevent you from doing so, but it's worth a shot !
[Fire HD 6 and 7 Android Development] Bren123:
Ok so i decided to go back to 4.5.3 from lollipop so i installed 4.5.3 then rooted disabled ota and downloaded flashify and twrp I flashed twrp but the tablet said 15% but it turns out it was lower than that so once flashify asked me to reboot it went to to the red low battery every time I try to plug it in it gives me the green lightning bolt shows white amazon then reboots back to the battery it doesnt seem to want to charge i can get preloader to be recognized in device manager but then the device reboots and it decides to disconnect.
[Fire HD 6 and 7 Android Development] whackerpacker:
*.part files

Hey there [MENTION=6680544]bibikalka[/MENTION],

I bricked my buddy's Fire when I flashed the incorrect bootloader after downgrading from 5.1.3 to 4.5.3 and created an instant brick. I've followed your instructions above and I've attached the .zip containing the *.part files needed to determine the offset. I look forward to hearing back from you soon. I seriously appreciate your knowledge and willingness to share it.

Thanks!
[Fire HD 6 and 7 Android Development] bibikalka:
Your addresses are in post #1, Option A. LK @ 0x1300000

It seems like it bricked with 5.4.1 bootloaders, so once in TWRP, just flash 5.5.2 bootloaders, and it should be good to go (if you have root & all already installed).
[Fire HD 6 and 7 Android Development] FumundaSaq:
I have tried the suggestions from that post http://xdaforums.com/fire-hd/general/how-to-upgrade-to-lollipop-root-gapps-t3163950 under 101, a, and b and I cant go anywhere with them. When I try adb shell followed by su I get the error "[-] connection to ui timed out. " I tried the windowsautotwrp way also but when it tries to write using dd it gives the same error.

Also tried the method I used originally to downgrade to 4.5.3 but of course one of the first things required is to reboot into recovery and factory reset, which I cant do.

I cannot use adb reboot recovery because I have no recovery other than TWRP for 4.5.3 which 5.5.2 will not recognize and I have no amazon recovery. The device just reboots to the amazon screen, sits for a couple seconds, then reboots again and loads FireOS 5.3.1.

I simply cannot get root now. I have tried via kingroot, supersu (downloaded via play store which I did get installed), and one click root (?). Supersu needs to update the binary. I try via the normal means and it fails and tells me how to fix that on a webpage. But the instructions require root to accomplish to begin with so that's pointless. I tried once via the twrp/cwm method listed as the other way to update the binary but as stated previously, I cant get into twrp so when it reboots it goes through the same sequence and then back in fireOS.

I am glad it works as a kindle again but I really am at a loss as to whether or not I can do anything else with this now. It works, so I am happy for that. If you have anymore ideas, feel free to let me know but I am out of them.

---------- Post added at 11:42 AM ---------- Previous post was at 11:40 AM ----------

This is what I get when trying to sideload via adb :

C:\Users\zekep\Downloads\test>adb sideload update-kindle-20.4.5.3_user_453011120.bin

loading: 'update-kindle-20.4.5.3_user_453011120.bin'

error: closed
[Fire HD 6 and 7 Android Development] Killa8:
Dont sideload, mount the tablet via USB in TWRP,thn copy the bin file(renamed to zip) and simply update, it worked like that for me, and right now im answering from my relived tablet:laugh:

Though i cant get into TWRP too but Kingroot rooted my device(maybe it worked because it was rooted before brick??) And installed gapps using the one click script for Windows
[Fire HD 6 and 7 Android Development] FumundaSaq:
Guess I don't understand what you mean by "mount the tablet via USB in twrp" considering I can no longer get into twrp.
[Fire HD 6 and 7 Android Development] my2k2zx2:
trying to sideload gives an "E: failed to set up expected mounts for install: aborting".

I take it we are out of options and this is a full brick?
[Fire HD 6 and 7 Android Development] Killa8:
No, try writing everything from step 5 using the correct addresses using the python script, if you are unable to make the handshake, change USB port(3.0 ports seem not to be working), disconnect device and hold power button for like a minute, then launch the handshake script and connect device, it should work
[Fire HD 6 and 7 Android Development] my2k2zx2:
I guess I dont understand what you mean. I was never able to read anything with read_mmc.py. What am I writing and where am I writing it to? I have no trouble getting a handshake.
[Fire HD 6 and 7 Android Development] Killa8:
Well, your situation seems complicated, try powering off the device totally and start the handshake process again, it may help

Apart from that I don't really know what to do

Personally I didn't read with the script, I went directly into writing the 3 files
[Fire HD 6 and 7 Android Development] my2k2zx2:
What did you write and where did you write it to? I'll try anything at this point if I'm about to toss it out.
[Fire HD 6 and 7 Android Development] Killa8:
Use the option given to you by bibi, e.g.Option A LK as it was for me, then just execute the commands in that option
[Fire HD 6 and 7 Android Development] my2k2zx2:
I downloaded the files and tried all 3 write commands for each option and everything hangs once I hit enter, just like it did with all of the read_mmc.py commands.
[Fire HD 6 and 7 Android Development] Killa8:
Try restarting handshake or even change computer/OS, Windows was naughty for me, so I went live with Kali Linux, and all worked as a charm
[Fire HD 6 and 7 Android Development] whackerpacker:
Thanks a million! I'm going to finish the process this evening. I'll share my results when complete.
[Fire HD 6 and 7 Android Development] YamiRioru:
is there a noob tutorial on how to do this?? a video of some sorts explaining the steps??? my kindle fire hd 6 (kfarwi) ariel keeps boot looping at the amazon logo?? should I call it a brick and buy a new kindle fire hd???
[Fire HD 6 and 7 Android Development] FumundaSaq:
No don't go buy a new one. Follow the steps in the first part and [MENTION=2880560]Bibka[/MENTION]lka can help. I had the same problem but he helped me unbrick it. Works fine now. I would recommend that if you have access to a Linux box that would be the way to go though. Windows can be a pain to get setup correctly.
[Fire HD 6 and 7 Android Development] Killa8:
1.Install python and pySerial

2.Download AfTv2 and mediaTek drivers if needed

3.Unpack the Aftv2 and cd into it via command prompt(in Windows just do shift right click then select open command prompt in this folder"

3.Execute the handshake.py script as such "python handshake.py", then connect your device

4.you should see handshake successful, if not, unplug your fire and hold power button for like a minute, then try again

5.Execute the read commands in step 4 of the original post(you may need to add "python" in front of each command)

6.There will be new files created, compress them all and upload here as one zip file

7.Bibi will tell you which address is good for you

8Unzip the file downloaded into Aftv 2 folder,you should see 3 new files

9.Execute commands after step 5 where you see all the available ones, each command make take 10-15 mins or more

CAUTION: Execute the correct addresses if not you may brick your device forever

10.Execute the exit command, your device should reboot, if not, unplug it and hold power button for like a minute, then power it on while pressing vol up button

11.Flash the 5.2 Rom seen on the tutorial link given by bibi on flashing the rom, via TWRP

12.Kiss your fire and thank Bibi

---------- Post added at 11:03 AM ---------- Previous post was at 11:01 AM ----------

Thats true, Windows didn't work well for me tho
[Fire HD 6 and 7 Android Development] YamiRioru:
I got this error when I tried to connect... sorry for being a total noob...
[Fire HD 6 and 7 Android Development] Killa8:
Install pySerial 2.7 for Windows, then it will be ok
[Fire HD 6 and 7 Android Development] my2k2zx2:
No luck in Kali, same results that I've been getting. Everything hangs on the read_mmc & write_mmc commands and sideloading the firmware errors out. Thanks for the help, I'm officially giving up on this.
[Fire HD 6 and 7 Android Development] Killa8:
Sorry to see this, will have liked to be more helpful

Maybe bibi ASAP will help you out, there's a way outta this for sure, I too had a lot of problems with this stuff but finally I'm writing this from my unbridled tablet, so try again and troubleshoot your problem, figure out what is wrong...

Which command did you use exactly?
[Fire HD 6 and 7 Android Development] my2k2zx2:
I was trying to write the 3 files 453 files with python write_mmc.py and about every combination python3, sudo python, sudo python3. All hung up. Is there any way to clear the memory by shorting it? I think I did something like that to get a router working again when it ended up with a bad dd-wrt flash.
[Fire HD 6 and 7 Android Development] Killa8:
I see what you mean

Try running the script as python and not sudo python 3

Power off your device by holding power button for like a min

Then restart handshake and make sure device isn't disconnected

Then retry to write again with the commands I gave
[Fire HD 6 and 7 Android Development] my2k2zx2:
I had used that and it didn't go anywhere either. :(
[Fire HD 6 and 7 Android Development] bibikalka:
Yeah, I think the unbricking processing (read_mmc/write_mmc) should have worked by now - since it does not, I think you are out of options. Sorry ...
[Fire HD 6 and 7 Android Development] gascomm:
I cant hold the power button for a minute - it simply carries on looping to the amazon logo & restarting. aargh. having had a few days break from this feadf**k I've downloaded kali Linux & plan on creating a bootable usb ... & then I'm gonna have to learn some Linux as ive no knowledge with Linux whatsoever. if Linux is the way to go I wish someone brighter than me would put up a walkthrough. I feel as though i'm searching for a needle in a darkened room.

[MENTION=238282]BIBI[/MENTION] - where are you? if this fails I'm likely to send you my hd6 as a gift for your excellent support work in this thread. xda community is wicked. so many good peeps. sometimes I just hit a thread which leaves me feeling incredibly thick to the point I wish bbc basic ruled the mobile world.
[Fire HD 6 and 7 Android Development] YamiRioru:
can I have a link to download pySerial??? I can't find it for 64 bit anywhere on the python website...
[Fire HD 6 and 7 Android Development] gascomm:
is this what yr after? https://pypi.python.org/pypi/pyserial
[Fire HD 6 and 7 Android Development] YamiRioru:
no, those are 32 bit... not 64 bit... how can I get a 64 bit version of pyserial???

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

I'm on windows 10 64 bit... how can I get a pyserial 64 bit file in exe format?? I had found one but it was packed with viruses...
[Fire HD 6 and 7 Android Development] my2k2zx2:
Well it sure wasn't from a lack of trying. I really appreciate the help from everyone.
[Fire HD 6 and 7 Android Development] Killa8:
no, just download pyserial 2.7
[Fire HD 6 and 7 Android Development] gascomm:
so, after numerous attempts - including 2 fresh installs of win10 to reset drivers, usb ports and whatever. I just can't get this damn thing to handshake successfully. I even tried Ubuntu but it's beyond me.

DM me if yr in the UK and fancy earning a few bob from a small commission to unbrick & flash twrp & a vanilla android OS. I hate being beaten but time is a commodity too & I've spent too many weeks going round in circles.

thanks to everyone who's offered support & advice, especially [MENTION=6680544]bibikalka[/MENTION] - the true star of this thread.
[Fire HD 6 and 7 Android Development] Killa8:
Is the device even recognized by the computer?

It may not be problem with your computer but with what you install

Which error message did you get first?
[Fire HD 6 and 7 Android Development] gascomm:
the mt65xx preloader other device is showing in my device manager when bootlooping for a couple of seconds but refuses to handshake despite having followed driver instructions to the l e t t e r, and the python stuff similarly is fine to the point where it just waits for a handshake.

my ignorance of Linux has been highlighted by this, so after sleeping on it I've decided to create a dual-boot machine and pursue that path properly. time will tell. winters coming so it'll keep me out of trouble hanging around the bus shelter causing a nuisance.
[Fire HD 6 and 7 Android Development] Killa8:
Your device may be really dead this time... Since it won't even start the handshake

Well, not your luck
[Fire HD 6 and 7 Android Development] gascomm:
you may be right but I'm hoping its more a windows driver issue as has much been described in this thread. once I master some Linux i'm confident i'll find out once and for all if it's saveable.
[Fire HD 6 and 7 Android Development] Killa8:
You don't need to master Linux, just run it as live CD or install, then follow the tutorial,

You may need to install pySerial though,

It should work, I used Linux cause I knew I'll have less problems

Hope you will find a way out
[Fire HD 6 and 7 Android Development] gascomm:
well, when I say master - I more mean gaining some competence. the tutorial is mostly for windows and I have no notion of how Linux works: basic commands, syntax etc... having never used it in any capacity.

if you know of a Linux walkthrough for the fire brick i'd love to see it. or even if Ubuntu is the best OS flavour to proceed with, as it's the only one ive heard of.
[Fire HD 6 and 7 Android Development] Killa8:
If you read the post well you'll have seen that bibi said he ran the commands from Fedora, which is a Linux distro too,

That's why I recommend switching to Linux at least for the tutorial, it's easier to use at that point

Linux ain't complicated at all, it's not what you see in movie (command prompt only OS) :o

It's just an OS, as any other

So swap to Linux and unbrick your Fire!!!
[Fire HD 6 and 7 Android Development] mohaga:
*Part Files

Could you check this file for me, please! Thank you!

View attachment Part_Files.rar