yashsingh1/xdaforums huggingface dataset:
[Fire Android Development] powerpoint45:
Thanks but unfortunately it doesn't seem to be working on fire hd6 4th gen. I might have got the wrong pins though because these usb cabels go from 5 pins down to 4. May need the one that is excluded but would need to order something to check
[Fire Android Development] powerpoint45:
I took off the protector plates on the hd6 4th gen and poked around some but unfortunately did not find anything similar to what you found on the 5th gen. All I can think of now is using the JDEBUG port I found but I cannot seem to find the RX pin.
[Fire Android Development] bibikalka:
Yesterday I was able to read Fire 2015 UART output using an adapter via the USB port, but not Fire HD 2014 ... So it seems that the latter is signaling differently (if at all via USB ...)
[Fire Android Development] nockam:
Has anyone tried this on a HD10 or know if it might also work on an HD10?
[Fire Android Development] sd_shadow:
I haven't seen any reports on attempts to unbrick HD 10 or HD 8.

but this has only worked on devices with 5.1.1
[Fire Android Development] planet_sammy:
OK, I´ve got a new fire from amazon (replacement) and at the moment the firmware has 5.1.3 March 2016. I've read a lot of post here and I know that downgrade to 5.1.2 is possible. But is it also possible to install CM 12.1 on firmware 5.1.2? I only found a thread to install CM 12.1 on firmware 5.1.1 with flashfire etc.
[Fire Android Development] bibikalka:
This also works nicely for Fire HD 2014 :

http://xdaforums.com/fire-hd/development/unbrick-fire-hd-6-7-flashing-lollipop-t3405797

If you have 5.1.1, just try to handshake, and read a few addresses. See if what you read matches the expected partitions!
[Fire Android Development] DB126:
Yes - do your homework: http://xdaforums.com/amazon-fire/general/index-amazon-fire-2015-t3210485
[Fire Android Development] Shahzad.:
os 5.3.1 after downgrade bricked

stuck on

write_mmc.py 0x1460000 lk_531.bin
[Fire Android Development] bibikalka:
Did it handshake OK ?
[Fire Android Development] Shahzad.:
yes
[Fire Android Development] bibikalka:
Another question - did it write anything at all ? Or did it get stuck even before the 1st address showed up in the output ?

In any event, you won't be able to restore it since there is no way to write into BOOT1 area where the preloader sits, which needs to be upgraded back to 5.3.1 to be useful.
[Fire Android Development] Shahzad.:
[IMG="error"]https://s9.postimg.io/mj2s41z4f/screenshot.jpg[/IMG]

---------- Post added at 01:26 PM ---------- Previous post was at 01:20 PM ----------

so i need to restore preloader first? and how ?
[Fire Android Development] bibikalka:
There is no known way at present to re-write preloader on a bricked Fire ... [MENTION=3411776]zeroepoch[/MENTION] has done some work on this recently (thanks!), and tried to update AFTV2 tools for writing into BOOT1 flash area. But it did not work. So return the tablet to Amazon for a replacement.
[Fire Android Development] Silverchairmfcu:
How to unpack the lk.bin

Hi,

I tried to unpack the firmware bin files on ubuntu. But it looks like i did it wrong. So how do I extract from an downloaded Kindle firmware the lk.bin?

Thank you so much!
[Fire Android Development] bibikalka:
It's been established that on Fire HD 2014 the black screen while downgrading is also due to the version verification, with the versions stored in eFUSE :

http://xdaforums.com/showpost.php?p=68724969&postcount=281
[Fire Android Development] manhtam922004:
How to unbrick after downgrade 5.3.1 to 5.1.2? I try this solution but not ok.
[Fire Android Development] fmc000:
It doesn't work because it's impossible.
[Fire Android Development] DB126:
Did the OP say anything about rescuing devices that were foolishly downgraded from 5.3.x? Nope - and that's why it didn't work. Phew, glad we got that sorted.
[Fire Android Development] that_one_dude:
in dire need of help please!!!

im trying to follow the tutorial, but i cant even seem to get my computer to handshake properly. please im a total noob when it comes to this so any info at all would be much appreciated. i downloaded everything but when i try to run the cmd "handshake.py" nothing happens. It doesnt say waiting for preloader or anything.
[Fire Android Development] nawaf518ksa:
where is video ?
[Fire Android Development] DB126:
Never produced.
[Fire Android Development] nawaf518ksa:
so when :(
[Fire Android Development] DB126:
Probably not going to happen IMO.
[Fire Android Development] ASHX12K:
I got these errors

Pedros-MacBook:aftv2-tools-master-5a6de7663bd7c20c54f59ed10b3a5cec841d6564 pedroorozco$ ./read32.py 0 1

1: 0xd1

4: 0x00 0x00 0x00 0x00

4: 0x00 0x00 0x00 0x01

Traceback (most recent call last):

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serial/serialposix.py", line 482, in read

buf = os.read(self.fd, size - len(read))

OSError: [Errno 6] Device not configured

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "./read32.py", line 69, in <module>

ret = read32(addr, size)

File "./read32.py", line 45, in read32

print_hex_byte(dev.read(2)) # status

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serial/serialposix.py", line 497, in read

raise SerialException('read failed: {}'.format(e))

serial.serialutil.SerialException: read failed: [Errno 6] Device not configured

Pedros-MacBook:aftv2-tools-master-5a6de7663bd7c20c54f59ed10b3a5cec841d6564 pedroorozco$
[Fire Android Development] fyrfterjr:
Ok, this worked for me..

I used Ubuntu and "sudo python" before each command.

Follow the instructions as stated in the first post.

I got to the "unbrick" part and kept getting "no file found".

Somewhere in this forum, I read to extract the lk.bin file so I went to the last update I tried to flash (update-37.5.5.2_552153420.bin), changed it to .zip, extracted it and found the lk.bin folder. It's in the "images" folder.

I then copied it to the "aftv2-tools-master" folder and renamed it "lk_511.bin and ran the script again.

It ran through its little shindig and I'll be damned if my totally bricked, lost forever fire booted right up!

I'm no kind of programmer and make no claims to be, so if it further ****cans your device, that's on you but maybe you'll get lucky.

I apologize if this has been covered already in this thread but I only went through the first few pages before I figured it out.
[Fire Android Development] myhellonearth:
can someone tell me the pinout for the fire 7 5th gen? i have a bricked device as well :(
[Fire Android Development] :
fire hd 5th gen came with 5.3.1 fire os and then used flashfire to write twrp to it not realising it wouldnt boot. installed a custom rom with flashfire and everything was great. wanted to try cm and used flashfire again. i made sure to put wipe at the top but for some reason it must not have. so i have no bootable stock recovery to sideload, doesnt boot to anything useful. i have the stock recovery, is there any way to use this method to return the stock recovery?
[Fire Android Development] :
tried this command with no go: write_mmc.py $((0x2560000)) recovery.img

this is the output i got: C:\Users\PizzaG\Drivers\aftv2-tools>write_mmc.py $((0x2560000)) recovery.img

Traceback (most recent call last):

File "C:\Users\PizzaG\Drivers\aftv2-tools\write_mmc.py", line 337, in <module>

addr = int(int(sys.argv[1], 0) / BLOCK_SIZE) # block addr

ValueError: invalid literal for int() with base 0: '$((0x2560000))'

Does anyone know what that means?

---------- Post added at 06:50 AM ---------- Previous post was at 05:54 AM ----------

handshake was good, i get no errors when i run this command: write_mmc.py 0x2560000 recovery.img, problem is im not sure if its doing anything. it's a 16mb file and the op says it writes slow. so im not sure if its doing anything
[Fire Android Development] :
nope, doesnt work. Another dead tablet=( Im surprised there isnt an easier way to flash stock rom back with a botched recovery. Recovery is the only thing keeping this bricked
[Fire Android Development] Kailash7:
Hello ! I followed the instructions but I am getting this ......

C:\Users\Kailash\Desktop\aftv2-tools>.\handshake.py

Waiting for preloader...

Found port = COM3

Handshake complete!

C:\Users\Kailash\Desktop\aftv2-tools>.\write_mmc.py $((0x1460000)) lk_511.bin

Usage: write_mmc.py addr file

C:\Users\Kailash\Desktop\aftv2-tools>write_mmc.py addr file

Usage: write_mmc.py addr file

C:\Users\Kailash\Desktop\aftv2-tools>.\read32.py 0 1

Usage: read32.py addr size

Please Help Guys... Again my trust is on XDA developers :D :D :D
[Fire Android Development] sinosino:
anyone can help

i need UBOOT partition HEX for new version of fire 5th ( update-kindle-global-37.5.6.0_user_560177220 )

that i can able to use (( /write_mmc.py $((??x???????)) lk.bin ))
[Fire Android Development] The_Doctor_:
Hi everybody! Need help with bricked Amazon Fire after downgrade with 5.3.2.1 to 5.1.2. Method to first post is dosent work. Stucks to write file lk.img. Device is detected in port 19 as MediaTek COM.

I'm installing the Python 3.5.0 in the official site, after running the bat file "install_pyserial.bat" then update it. Next step i running a "install_py2exe.bat". After done all, i'm created the bat file with parameters "python handshake.py" and run it and plug-in the USB connector to device.

Proceed command:

In command line i view writing:

After i'll create a batch file with line:

python write_mmc.py 0x1460000 lk.img

After running i'm no visible text into console.

Everybody, what the unbrick this device?

UPD:

I have a USB-UART Device (PL-2303 USB to Serial). I open the case a tablet and find two points to connect this cable (RX and TX).

Then i soldered connector (RX & TX) to the points. After this i'm find a scatter file MT8127_Amazon_KFFOWI_scatter.txt, firmware fire_5.3.2.1.bin (extracted to folder in SP Flash Tool) and run a program SP Flash Tool. Next, i going to options-connection-UART and select a COM21 (detected as Prolific Device). After this i select scatter + all files and go to Download button. But nothing happened, the download fails.
[Fire Android Development] ccheney:
Anyone happen to know how to do this on newer releases? I also managed to brick what I think was a 5.3.2.0 tablet and read_mmc.py and write_mmc.py do not show anything it appears to be hanging trying to disable dma on the following line in sdr_read32 called by msdc_dma_status. It appears to never return anything else after the size is checked in the previous line.

dev.write(struct.pack('>I', size))
check_int(dev.read(4), size) # echo size
check(dev.read(2), b'\x00\x00') # arg check

Maybe the value of BASE_ADDR should be different on the newer releases?
[Fire Android Development] ok digit:
I bricked my fire and I've run handshake.py and it is stuck here...

Found port = COM5

Please help.
[Fire Android Development] sd_shadow:
This method only works if working system version was 5.1.1
[Fire Android Development] mc90ma:
Bricked 5.1.1 after install new ROM

I bricked the tablet when trying to install a custom ROM using Chainfire. I tried the mentioned method but it's stuck at "Waiting for preloader...". Is it possible to solve this? Thanks.
[Fire Android Development] DB126:
Don't believe so.
[Fire Android Development] saajiidi:
Fire 5th gen 7"

bro, my terminal came up with following:

Found port = /dev/ttyACM0

Traceback (most recent call last):

File "/usr/local/lib/python3.5/dist-packages/serial/serialposix.py", line 265, in open

self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)

FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "./handshake.py", line 89, in <module>

dev = serial.Serial(port, BAUD)

File "/usr/local/lib/python3.5/dist-packages/serial/serialutil.py", line 236, in __init__

self.open()

File "/usr/local/lib/python3.5/dist-packages/serial/serialposix.py", line 268, in open

raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[Fire Android Development] hwmod:
Extra CMDS accepted by "fastboot" in older ROMS.

Just passing on this information I gathered some time ago by examining the binary of stock "lk.bin" images in versions 5.0.1/5.1.1 of the firmware.

In these older ROMS, if "fastboot" is still alive and working it will accept commands itself to write to the hidden EMMC_BOOT_1 preloader partitions:

fastboot flash boot0 preloader.img

or, if you have previously saved a backup dump of both these two hidden partitions you could restore them by:

fastboot flash boot0 mmcblk0boot0.img
fastboot flash boot1 mmcblk0boot1.img

These info are useful only if you have 5.0.1 or 5.1.1 firmware and if "fastboot" mode is still working.

These commands will not work as a method of recovering bricked tablets with firmware versions > 5.1.1.

It seems Amazon removed this functionality in newer firmware but I have

no proof of this since I don't have newer firmware to try out myself.

If you happen to have FW > 5.1.1 and your last option is to try this out please let others know about your results.

However be WARNED that the outcome of these CMDS may be another BRICKED tablet.

.:HWMOD:.
[Fire Android Development] saajiidi:
backup.part

I stuck on

root@linux:/home/me/Desktop/FireUnBri# ./read_mmc.py $((0x1460000)) $((795*512)) UBOOT_501_backup.part

now what to do??
[Fire Android Development] DB126:
Congratulations - now encountered this EXACT same post in seven different threads. Going for the record ...
[Fire Android Development] CorePrideX8:
Edit. It has already been answered.
[Fire Android Development] Danny1976:
I installed python on windows and set up the windows environment. I can open python on the Windows Command Prompt, but I cant run the .py files. I get:

D:\aftv2-tools\handshake.py

Traceback (most recent call last):

File "D:\aftv2-tools\handshake.py", line 5, in <module>

import serial

ModuleNotFoundError: No module named 'serial'

Edit Fix: I needed to update the pyserial to version 3.2.1 by typing this command on the prompt:

python -m pip install pyserial==3.2.1
[Fire Android Development] DB126:
Unfortunately, this unbrick method will only work for the conditions outlined in the OP. Unlikely to work for your device given 5.3.2 origins.
[Fire Android Development] ieatabiscuit:
Has there been any update on getting things to work with 5.3.2 origins? From what I've read even JTAG is just the same as the preloader interface with these.
[Fire Android Development] sd_shadow:
There hasn't been any update since May 2016, no one has reported success, other than bricks caused by a downgrade attempt from 5.1.1 to 5.0.1
[Fire Android Development] parvinyusubov:
help me(

Good day!

I used to have a version of Fire OS 5.3.2 but i would to like to install 5.1.1 version of it through adb sideload as its shown on the video. But after installation my phone haven't turned on. Only after i'm connecting it to the computer it gives a sound for a couple times and thats all. I'll be glad if you would help me, how can i solve this problem?

---------- Post added at 09:40 PM ---------- Previous post was at 09:36 PM ----------

Good day!

I used to have a version of Fire OS 5.3.2 but i would to like to install 5.1.1 version of it through adb sideload as its shown on the video. But after installation my phone haven't turned on. Only after i'm connecting it to the computer it gives a sound for a couple times and thats all. I'll be glad if you would help me, how can i solve this problem?
[Fire Android Development] DB126:
FireOS 5.3.2 -> 5.1.1 rollbacks are invalid; device is not recoverable (permanent brick). Contact Amazon for a courtesy exchange if still under warranty.
[Fire Android Development] Christineedadrink:
any advuce on where to find 5.1.1 version of "lk.bin" or how to extract it from an update? any help is much appreciated.
[Fire Android Development] parvinyusubov:
How can I ask that Amazon to return my money in case of I do not live in the USA?
[Fire Android Development] Im_vicky:
Giving this error

E:\aftv2-tools>handshake.py

Waiting for preloader...

Found port = COM246

Handshake complete!

E:\aftv2-tools>write_mmc.py $((0x1460000)) lk_512.bin

Traceback (most recent call last):

File "E:\aftv2-tools\write_mmc.py", line 337, in <module>

addr = int(int(sys.argv[1], 0) / BLOCK_SIZE) # block addr

ValueError: invalid literal for int() with base 0: '$((0x1460000))'
[Fire Android Development] BeeWall:
What fire os version did you have and downgrade to? This only works for 5.1.1 to 5.0.1 downgrade brick.
[Fire Android Development] DB126:
Have to discuss with Amazon. Typically they offer refunds within 30 days of purchase; otherwise exchanges during remaining warranty period.
[Fire Android Development] berganardo:
Hi. In June of 2016 I had downgraded from Fire OS 5.1.2 to 5.1.1. and my Amazon Fire died. At the time, I was informed here that there was no solution to this problem.

I wonder if they have already found a solution for this.

Thanks.
[Fire Android Development] sd_shadow:
unfortunately no updates
[Fire Android Development] rerraw:
Hi Thanks for this post

I try this code

handshake.py

Then show me this lines

C:\Users\SHWAN NAMIQ SALEEM\Desktop\aftv2-tools>handshake.py
Waiting for preloader...
Found port = COM26
Handshake complete!

Then when i try this code

read_mmc.py $((0x1460000)) $((795*512)) UBOOT_501_backup.part

show me this error

Traceback (most recent call last):
File "C:\Users\SHWAN NAMIQ SALEEM\Desktop\aftv2-tools\read_mmc.py", line 337, in <module>
addr = int(int(sys.argv[1], 0) / BLOCK_SIZE) # block addr
ValueError: invalid literal for int() with base 0: '$((0x1460000))'
[Fire Android Development] Kramar111:
[MENTION=7606862]rerraw[/MENTION]

For Windows

read_mmc.py 0x1460000 407040 UBOOT_501_backup.part
[Fire Android Development] mon0tron:
Thank you so much! This worked a charm to recover a tablet I had bricked like this, which was sat gathering dust on a shelf. Could this work theoretically for devices on newer firmware which have been rolled back?
[Fire Android Development] deepflash:
Hi guys,

im on windows and bricked my Fire because of downgrading from 5.3.1 to 5.1.2.

Now I wanted to unbrick it with the mentioned workaround.

I got the handshake completed and after running the patch_mmc.bat I get the following output:

Patching patch_058E0400.img...

rawwrite dd for windows version 0.6beta3.

Written by John....

This program is covered...

skip to 1024

512+0 records in

512+0 records out

There it freezes and nothing happens.

Any ideas?
[Fire Android Development] sd_shadow:
no one has ever posted any success unbricking,

other than 5.1.1 to 5.0.1 brick
[SuperSU] torrojaman:
Hi.

First of all I´m all new to this world, so please be patient with me.

Last night I installed TWRP and used it to flash the lattest stable zip version of SuperSU.

However, when I open it some options are in grey saying that they are not freatured in XBIN mode

Is there any way to change this?

Thank you for your time :)
[SuperSU] Supersuer:
you lost root,plase root you devices .
[G3 Q&A, Help & Troubleshooting] Phender10:
My lg g3 was giving me problems so I wanted to do a factory reset which I did after I backed up all the dates using lg pc suite and now everytime I try to restore the backup it begins saying «preparing for restoration» it boots and the loading bar it fills to 100% but when it should start the restoration a dialog box pops up and it says an error ocurred and it will boot the phone and i should try again. It never works. If somebody have a solution I will be always grateful
[T-Mobile Samsung Galaxy Note 3] ranzneo:
I downloaded Odin and an N9005 firmware( i think) is it compatible on N900T? the phone(T-mobile) is unlocked here in the PH unfortunately i didnt have the chance to see what the technician did or the software he used in his computer. since my phone was modified i wasnt able to upgrade it through the phone itself.

will my phone be able to remain unlocked if the custom OS install is successful?
[T-Mobile Samsung Galaxy Note 3] Rolatnor:
use the tmobile stock 5.0 rom on sammobile.com for the note 3/sm-900t
[P8lite Q&A, Help & Troubleshooting] HugoSilva:
Hello everybody,

A few weeks ago i update my P8 Lite from B181 to B550 but i got the Balong bug but since very people said to me that this bug don´t affect the daily use of the phone, i don´t mind with it. But a few days ago, my phone from nowhere start to install a update ( i don´t selected anything) and after the update my phone was tottaly clean, like, no apps, no files, nothing! the phone memory was completly gone!

Now i´m think is better to go back to Stock ROM, but i need help because some people said that install via local update the original firmware works ( i don´t have the option to choose local update like i have in B181 before update) and other people said that the process is a little bit more hard.

So, can someone help me please?

My Phone is locked to Vodafone Portugal (Single SIM). Like a said before update to B550 i was in B181

Thank you everybody and sorry for the bad english :good:
[P8lite Q&A, Help & Troubleshooting] VladHD:
First of all you b550 is for dual sim,you have single sim so you need b551.

Second b550/1 it's stock rom,it's just stock 6.0

Balong bug appears when you flash a firmware that is not for your country so in order to get rid of balong,just flash the file from vendor/custom folder that cames in the archive of your last firmware downloaded.

Is your bootloader unlocked?
[P8lite Q&A, Help & Troubleshooting] HugoSilva:
No is not unlocked :(

can you please explain me better what do you mean with flash the file from vendor/custom (...) ???:confused:
[Galaxy Note 3 General] thereallugo:
link to review+ installation- https://www.youtube.com/watch?v=27Wnahft0yU&feature=youtu.be
[Galaxy Note 3 General] manne48:
There is no fastes rom for the N3,for me the rom from Kamy,AryaMod V2 is the most useble and best rom!
[Galaxy Note 3 General] KennyG123:
No such thing as a fastest ROM for everyone

Thread closed
[Nexus 6P Q&A, Help & Troubleshooting] swallowingled:
I've been using Nine for my corporate exchange account for about a year and a half now with no issues except the occasional out of sync emails that can be resolved with a resync. For the last few months though I've been having issues sending emails while connected to mobile data, but no issues when on wifi. The emails just sit in the Outbox until I'm connected to my wifi again and then send. I've sent Nine support many logs and they can't seem to find the issue. They say it shows "connection timed out". I've done all the usual things such as deleting my account and uninstalling the app(multiple times). When I check the OWA website it shows everything is okay with my device. The Gmail app seems to work fine on both wifi and mobile data, but of course I prefer to use the Nine app. I work from home mostly so I'm always connected to wifi anyway but would prefer to use the Nine app when I'm off to keep up with emails. Even though I'm rooted I've done a full unroot and flashed stock images and sending still fails. The only thing I haven't done is a full factory reset, I'm not convinced this is necessary just yet since exchange through the Gmail app works fine. Any suggestions would be appreciated. Thanks!

Setup details below.

Nine app v2.2.2 w/passcode and fingerprint to unlock set up, application level security model

Stock 6.0.1 MTC19T

Systemless root with SuperSU v2.68

Franco Kernel r16

TWRP 3.0.2-0

AT&T with Nextgenphone APN settings
[Nexus 6P Q&A, Help & Troubleshooting] BlueDreamsYYY:
I have your exact same problem. Was using Moto X phone with Nine for 2 years, no problem whatsoever. Last week, got a new phone (Moto Z Droid). Installed Nine and kept loosing connection. Checked settings from old phone. Security type from old phone was SSL/TLS (Accept all certificates). New phone was just SSL/TLS. Changed it to match the old setting and been working 100% since. Hope this helps you.