yashsingh1/xdaforums huggingface dataset:
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] nocmonkee:
Sure but it never would boot into recovery or it was booting into an unexploitable recovery. I hadn't fully downgraded it yet or something went wrong so I had no usable recovery. I couldn't use amazon's tools to fix it and I could properly install twrp, so after "Amazon Recovery" worked again I was able to boot into the rollback image and use amazon's own upgrade bin. "update-kindle-13.3.1.0_user_310079820.bin". Once it went through the Amazon upgrade process. I used the KFHDX Toolkit to root it, then I adb'd into it and then su'd to root and immediately dd'd the TWRP recovery and then did reboot recovery in adb and "TADA" I had working twrp recovery and was able to install the CM 11 and gapps.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] RiseT:
I see. Great to hear that it's working now. As you've successfully installed TWRP & CM 11 now - could you confirm the above stated behaviour regarding the black screen? Additionally to TWRP, I've just installed CM as well; interestingly, the display is showing the same behaviour with CM as with TWRP (I can only see something after the display returned from power-saving mode). With Amazon stock recovery & ROM, this isn't the case, so it shouldn't be a hardware problem.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] nocmonkee:
I am not experiencing this black screen issue. I did though start from 3.2.4 and worked my way down to 3.1.0. CM boots quickly and is super responsive. When booting it flashes the all gray "kindle fire" for about 10-20 seconds before it boots into recovery or cm. Possibly you just aren't see that screen and are seeing black instead?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] RiseT:
Thanks for the feedback!

I think I don't see the gray "Kindle Fire" for that long - so that's a possibility. Btw, I also don't see the Cyanogenmod boot logo I'm used to on mobile phones. I guess I have to investigate this further. Wondering if the fact that I started with a rather "antique" stock firmware could have something to do with it, but I would guess that this is not possible as all that old stuff is wiped away when installing TWRP & the CM rom.

Edit: The gray "Kindle Fire" logo shows up for circa 4 seconds.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] Deathcrow:
Thanks to everyone for their hard work bringing us TWRP for the Kindle HDX models.

What's the best way to downgrade a rooted/safestrapped 13.3.2.4 stock-rom to a lower version?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jimyv:
well

go back to development and start reading. To have somebody here we explain everything would just be ridiculous there is a thread or several threads on rolling back..from different versions to different versions I believe in development there is even a thread started now for exactly your question. And it was started yesterday or the day before.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] Deathcrow:
Oh yeah, I completely missed that. Thanks for pointing it out.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] latedays101:
if i install this twrp, what would happen to my safetrap recovery and can i even access it after and use the backups i saved using safetrap on twrp?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jimyv:
well

yes you will still be able to access your safestrap. And yes your safestrap backups will be compatible with your new recovery. But keep in mind that your backups from safestrap will not contain a kernel and you will have to match one up with it..
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] latedays101:
thanks, i just installed the twrp recovery successfully, how do i boot into safetrap again if i want to use it?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jimyv:
lol

it probably took you longer to ask me that question then it did for you to figure it out.

if not just simply reboot it and tap recovery on the splash screen as it boots just like always if you want access to it from your system just install the APK..personally I wouldn't mess with itother than to get into the backups from my new recovery to restore data....
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] latedays101:
yeah i tried that but seems like its just boots into twrp not safetrap and thought something weird is happening and even if i tried installing the apk and press into recovery, it just boots into the cm rom.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jimyv:
well

did you open up the app and see if the recovery is installed?. Like I said I would not mess with it personally. safestrap is a version of TRWP.. but is installed in the system and may have compatibility issues with your cm 11 etc other ROM that you may install with your new true recovery.

besides if you flash cm through your new recovery nothing you can install through safestrap at this moment would be compatible with the kernel ..besides a backup of that same rom. you would have left there. Unless you flash a renamed bin file to get compatible kernel for whatever stock backup you were trying to restore from safestrap
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] latedays101:
Hm damn i just wanted to go back into safestrap so i can delete all my rom slots that i created that are wasted space seems like i kind of screwed right now for not backing the previous safetrap recovery i guess, unless someone share a back image of safetrap that i can flash?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jimyv:
well .

you were supposed to do that somewhere in the rolling back effort just before you do your new recovery. You were supposed to do it through a stock system and stock recovery to completely wipe the device.

you can still do it in your new recovery after you back your stuff up to your PC just go into wipe options and choose the option on the right wipe complete data.but that location of that folder is someplace I'm trying to find it for you

---------- Post added at 09:31 PM ---------- Previous post was at 09:23 PM ----------

Try \mnt\shell\emulated\ then delete that folder named safestrap. That is where it is on my Apollo anyway
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] disTractoR:
Thanx, that saved a few GB, but shouldn't there be a few more GB than 26 in total from a 32 GB device?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] RiseT:
Update:

I've flashed Amazon's stock firmware from 13.3.0.5 to 13.3.2.3.2 and reflashed CM & GAPPS using the short procedure detailed here:

http://xdaforums.com/showpost.php?p=57925383&postcount=81

Now everything is working as expected. So it *does* matter from which stock firmware one is starting from (as subsequently some other threads have found out as well).

I guess I was getting different problems than others here as my stock firmware had been the oldest of all.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] skyliner99:
Edit: Did some more reading. I still have the original stock FW the device shipped with about a year ago. When upgrading to a new FW that can be used with TWRP and various roms, should this be done on the stock FW on safestrap or on the ROM slot that I use for custom ROMs?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] Constructivist:
kindle_13.3.2.4_stock_recovery.img

/dev/block/platform/msm_sdcc.1/by-name/recovery from my Stock 13.3.2.4:

ht tp://ww w.file-upload.net/download-10096847/kindle_13.3.2.4_stock_recovery.img.html
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jeryll:
You can check here: where ggow already answered similar questions, or here some usefull info from r3pwn and ggow but yes - you need to do it on stock slot/ROM.

Since you did not provided which FW you have, you will be either upgrading or downgrading (rollback) your FW to required xx.3.1.0 - xx.3.2.3 for new TWRP recovery - you need to choose wisely depending on device you have and on what do you want to achieve - think/ask before you do something that you will be later regreting :good:
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] skyliner99:
Is the best way to check what FW my stock rom slot is on by flashing an OTA update disabler and booting to the stock slot? I've never done anything to the stock slot so I assume it will try and update automatically if I boot to it.

My end goal is to get TWRP, remove safestrap, and flash the newest Nexus rom.

Thanks for the Help!
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jimyv:
.

if it is a virgin system simply do not set wifi up and skip setup go directly to settings and check your firmware or disable your WiFi at the suorce or you can just do a standard factory wipe in safestrap before you boot stock that way you know the wifi will have been forgotten and you are safe just skip setup

but I'm not sure Nexus ROM is compatible with the new recovery because it is based on the. .2.4 . kernel it may be possible but it will be a little tricky because you cannot be on that firmware to flash the recovery. You will have to flash the Nexus along with that kernel once in the new recovery.. I would ask the developer of Nexus ROM about possible compatibility issues.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] draxie:
Downgrade from 3.2.6 to 3.2.3.2 is possible

I've just done this the other day on Apollo, loosely following the scripts I found near the bottom of

this post.

You could just use those scripts right away to roll back all the way to 3.1.0, and flash TWRP from there.

Once you have a useful recovery, you can flash whatever you like (including 3.2.3.2).

BUT: be aware that Amazon's stock updates also modify aboot (where the cuber-friendly bootloader should be kept)

and recovery (where TWRP lives); so, proceed with caution!
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] nignug:
TWRP is telling "skip modem" when I try to flash 3.2.3.2, and I do not know, if that is something bad :confused:
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] draxie:
not a problem

That shouldn't be a problem.

Based on the following snippet from the updater-script (kindle-14.3.2.3.2_user_323001720/META-INF/com/google/android/updater-script),

the modem update appears to be skipped if the device doesn't have a modem, or the modem has been updated already (possibly by another update).

if ( (file_getstring("/proc/product_features/wan")=="") || is_substring("done", file_getstring("/cache/modem_update")) || is_substring("done", file_getstring("/cache/modem_bypass")))
then
ui_print("Skip modem update");
show_progress(0.600000, 30);
else

At least, that's how I'm reading the script... :o

---------- Post added at 21:54 ---------- Previous post was at 21:48 ----------

Based on the differences between the original update and your TWRP version,

it seems fairly straightforward to reproduce this for Apollo (I'm using the latest update update-kindle-14.4.5.2_user_452004220.bin for base).

Nevertheless, I'd like to understand and not just mindlessly copy what you had done.

I understand the changes made to the updater-script, how certain firmware partitions are skipped, and blowing the anti-rollback fuse omitted.

Files kindle-13.4.5.2_user_452004120/META-INF/com/google/android/updater-script and kindle-13.4.5.2_user_452004120-TWRP/META-INF/com/google/android/updater-script differ
Files kindle-13.4.5.2_user_452004120/boot.img and kindle-13.4.5.2_user_452004120-TWRP/boot.img differ
Only in kindle-13.4.5.2_user_452004120/images: emmc_appsboot.mbn
Only in kindle-13.4.5.2_user_452004120/images: rpm.mbn
Only in kindle-13.4.5.2_user_452004120/images: sbl1.mbn
Only in kindle-13.4.5.2_user_452004120/images: sdi.mbn
Only in kindle-13.4.5.2_user_452004120/images: tz.mbn
Only in kindle-13.4.5.2_user_452004120: recovery
Only in kindle-13.4.5.2_user_452004120-TWRP/system/etc/security: otacerts.old
Only in kindle-13.4.5.2_user_452004120/system/etc/security: otacerts.zip
Only in kindle-13.4.5.2_user_452004120/tools: provision_anti_rollback.sh

What isn't quite clear is

why the rpm, sbl1, sdi, and tz partitions should stay untouched (aboot and recovery is fairly clear) .

why the boot.img needed changing (other than re-signing with cuber, of course; but, that's not the only difference).

I split both the original boot.img and your version and the kernels are also different.

Could you quickly explain what you changed and why?

Thanks in advance!
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] nignug:
Typo in script?

Thanks. Afaik modem is for wifi, but not sure. I had 13.3.2.4 installed before, maybe this is the reason for skipping.

But:

is_s@ubstring("done", file_getstring("/cache/modem_bypass")))

Typo imho. The "@" should not be there :confused:

*edit*

Nevermind. Script is fine. And all is working very well, so I have no worry :)
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] draxie:
You're right the '@' is superflous. (It's a "line-wrap" symbol from my editor that I happened to copy&paste; sorry!)

Removed it from my earlier post...
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] draxie:
Alright... so, I found the answer to my second question regarding boot.img and the kernel in this thread over in the development section. In short, the new kernels do not seem to boot on the old firmware right away, but cpasjuste managed to get the Thor version to work by appending a device-tree from the boot image to the kernel. The same procedure does not seem to work for Apollo... The device does boot and can be accessed via adb, but the screen never lights up.

Looking more closely at the Android boot process, at least some (if not all) of the firmware partitions changed by the stock update (and skipped in the TWRP version) contain code that runs __BEFORE__ aboot, hence there's a clear possibility that the modified aboot -housing TWRP- may get blacklisted and modified devices unable to boot.... BUT, the latter is just speculation from my part. Given that I also tried all the DTB entries with the Apollo kernel (with different header mods) to no avail, *and* that ggow's findings point to a possible firmware issue, I'm seriously considering flashing even the firmware on my Kindle... I'll wait a few days before I bite the bullet, just in case a better idea/method comes up.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] Jojojoxx:
Hi!

I currently have TWRP Recovery installed on my HDX 7" (with Cyanogenmod). Now, I want to restore it completely back to stock, i.e., stock recovery and stock Firmware, because I have to return my device to Amazon.

I couldn't find an instruction to restore devices with TWRP installed back to stock. How can I achieve that?

Thx!
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] draxie:
Really simple...

Follow the instructions to roll back your firmware to 3.1.0 (this will replace your recovery as well),

and let your Kindle auto-update to the latest firmware over the air.

Do a Factory Reset for good measure.

That should do it; although I haven't actually tested this for fairly obvious reasons...
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] cgregoryou:
Running 13.3.2.3.2 here with Safestrap 3.75 and Nexus 2.0.2 installed. These are the steps I took to get CM11 installed and it's working great so far.

Booted back into stock image

Uninstalled safestrap

Rebooted

Installed Rashr

Flashed TWRP

Booted into TWRP

Backed up stock ROM again using TWRP method

Wiped

Installed CM11 zip

Installed Gapps 4.4.4 pico edition zip

Rebooted into system

Voila

I did restore my data from the Nexus backup after verifying installation so I could keep apps/settings.

Only issue I've had in doing that has been Google calendar and mail sync service error upon boot. I'm sure that's just from overwriting the 4.2.2 Gapps. They still load and sync fine.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] Jojojoxx:
Thanks guys! My Kindle is now fully stock :)
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] tdwandroid:
twrp kindle fire grey screen

I can't seem to get twrp recovery to start up with my kindle hdx thor. When I try to boot up into recovery using volume up + power button, my device hangs forever at the grey Kindle Fire screen.

I originally started with 13.3.2.4 and also had Nexus ROM 2.0.2 installed via safestrap 3.75 (TWRP v2.7.1.0). I used ggow's instructions (I believe successfully) to roll back my device and now my version is "13.3.0.9_user_300079820". I then downloaded and tried to flash "twrp-recovery-hdx-thor-2.8.4.0.img" using both Rashr or Flashify. When I try to reboot into recovery, this is where I get locked grey screen. Otherwise, my device boots into stock rom and nexus 2.0.2 without problems. safestrap also works fine.

I've looked around at the forum and haven't been able to find any solution posted to my problem. If I missed it, please point me to the posted solution. Thank you in advance for your help.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jeryll:
Read carefully and think what you did or did not:

From 8 steps required to succesfully rollback your kindle you actually did only first two, or? You are still on 3.2.4 FW which is patched and not vulnerable (it was modified by ggow to imitate FW 3.0.9, so you can later install FW 3.1.0 over it), therefore any attempt to install TWRP 2.8.4.0 will fail. So you need to repeat rollback procedure and actually finish it (for point 7. you need this stock update file).

Rollback file needs to be flashed on stock rom (activate stock rom in safestrap).
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] tdwandroid:
Thank you very much jeryll. My error was at step #7 as you pointed out. I was able to get TWRP installed.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] cgregoryou:
TWRP removal

Hello, great job on getting TWRP and CM11 working!

Let me start by stating that I had Safestrap installed and was running Nexus 2.0.2. Was running perfectly fine but saw TWRP was available with CM11 and 4.4.4 so I thought I'd give it a go. CM 11 seems to be running fine other than the Kindle app not working and battery life is getting zapped (losing 30-40% in 2 hours after 0 use and the screen and WiFi off).

So I would like the option of going back to Safestrap or running Nexus 2.0.2 with TWRP.

These are the methods that I've tried:

Restoring the stock backup I created after loading into TWRP. Loaded black screen after grey Kindle Fire logo.

Restore the stock Safestrap backup I created.

Install the Nexus 2.0.2 zip

Install Safestrap app inside CM11 (said installed) and reboot to Safestrap. Rebooted to CM11.

So a few questions.

Can I run Nexus with TWRP?

Will the above-mentioned method get rid of TWRP?

What are the differences between 13.3.1.0 and 13.3.2.3.2?

Is there a workaround to getting the kindle app to open books?

Thanks in advance!
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] jeryll:
You can flash Nexus 2.0.4 with TWRP 2.8.4.0. You should really try it, its a great piece of software, continuosly developed by ggow.

Why would you want to get rid of TWRP 2.8.4.0?! With this recovery you can use custom kernels, custom roms... with safestrap only untouched amazon kernel are allowed + you lose a lot of space on internal memory by using extra slots.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] cgregoryou:
Thanks!

I forgot about the different installs for Nexus! I was mostly wanting to get the kindle app working and couldn't get 2.0.2 installed so I was thinking that I had to go back to Safestrap to install it. The battery issue with CM11 worked itself out.

I got Nexus 2.0.4 installed, restored my data, then reflashed the Gapps. Working like a charm and battery is lasting all day with average use.

Thanks again for the help!
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] cgregoryou:
Incorrect time?

I don't see an option to change the time inside of TWRP other than the time zone. It's going back to July 29th, 1970 at 9am every reboot. Is there a terminal command to fix this as I see not gui options?

Thanks
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] gtfothx:
Need stock recovery from 13.3.2.3.2 (made one with flashify but can't find it...). Thanks
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] alexbonch:
kindle hdx 8.9 problem

kindle hdx 8.9 problem

Hi! i have a problem with my kindle fire hdx 8.9! i have 14.3.2.3.2

i have flashed TWRP 2.8.5.0 (dd of=/dev/block/platform/msm_sdcc.1/by-name/recovery if=/sdcard/twrp.img) and after reset to recovery i saw - a left part of the screen was black and a right was black/white dots!

after reset to recovery again (power + volume up) :

Kindle fire system recovery

Your kindle doesn't seem to be able to boot.

Reseting your device to Factory defaults may help you to fix this issue.

----

Reboot your kindle

Reset to Factory Defaults

Then i boot to ROM and can't to unlock screen - cant't swipe left to unlock!

What can i do now?

Thanks
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] futzmaster:
first thing i see -> twrp 2.8.5.0 -> this is the version for thor 7"...

HDX 8.9" is Apollo, and that TWRP is not updated yet....

http://xdaforums.com/kindle-fire-hdx/development/recovery-twrp-recovery-2-8-1-0-apollo-t2991155

but it looks like it did't install anyway because it's still the amazon recovery on it..?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] candiflan:
Hi I have unlock bootloader on my 13.4.5.2 not rooted do you think is possible to install twrp thru fastboot and then flash root
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] rubinho:
[MENTION=6282323]candiflan[/MENTION]

yes is possible !

you don't need root for flash via fastboot, you need only a unlocked bootloader
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] candiflan:
did not work fastboot -i 0x1949 flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (8300 KB)...

OKAY [ 0.345s]

writing 'recovery'...

FAILED (remote: flashing not allowed for locked hw)

finished. total time: 0.397s

fastboot -i 0x1949 oem device-info

...

(bootloader)	Device tampered: false

(bootloader)	Device unlocked: true

(bootloader)	Charger screen enabled: false

(bootloader)	Display panel:

OKAY [ 0.086s]

finished. total time: 0.086s
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] yg1210:
More details

Could you explain how to roll back to stock?

I am in need of rollback as well :D
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] DB126:
See "view original" in yg1210's post.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] yg1210:
I have CM11 on hdx7 with TWRP and hope to roll back stock rom.

I hope to know how to go back to stock step by step because the discussion thread has not mentioned for rolling back from custom rom(like CM11, Nexus rom)
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] Stephen7522:
Do we have uninstall safestrap

do we have uninstall safestap before flashing the recovery
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] kongbang:
I can't download file from the link. Anyone have mirror link for latest version?
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] ja49902:
custom recovery

do i have to unlock the bootloader on 13.3.2.1 to install twrp or can i just use flashify to install it with root access
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] DB126:
You do not need to unlock the bootloader prior to installing TWRP.
[Kindle Fire HDX 7" & 8.9" Q&A, Help & Troubleshoot] pinksummer17:
needs to unlock my bootloader 13.3.2.8

Hi, I'm New at this installing custom ROM on my kindle. I tried searching for ways to do it. I have 13.3.2.8 kindle HDX 7". A nice guy is helping me on the process. But we are stock on the safestrap not rebooting on recovery. So far I did downgrade my kindle to 13.3.2.8. Rooted it using towelroot. I have supersu installed and safestrap 3.72. (For some reasons all 3.75 safestrap apk is not working on my kindle). Recovery installed. I tried rebooting it to recovery mode but always not going through. It will flash a little bit white screen and will reboot normally. As I search online, I think it's because of bootloader locked. I'm not sure if I'm doing the right process. I need some help from smart guys out there to help me do it Before I continue. Thank you in advance. :)