yashsingh1/xdaforums huggingface dataset:
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Its working

Ok tiem for the good news, we do indeed have a fix, i just got my automated script for fixing this working the kindle fire hd 7", took me a while to work out a stupid bug in my script but i finally foudn the reason behidn it. Anyways my script right now is still what i call an alpha script, it has no safety measures in it to guarentee it to work on other kindle models, nor future updates that will probably be just like this one. Also it has no fancy ui or restore option in case we start noticing any problems with the recompiled framework-res.apk, right now it is simple u clik it an dit does the process, so i need to give it some work. I am literally exhausted for today, havnt gotten hardly nay sleep and my eyes hurt from staring at my pc, im going to go lie down and ty to sleep. If you want to test out my fix for this its advised u have 2nd bootloader + twrp incase of brick, i'm currently in need of people to test this script out on their kfhd 8.9' and kf2's, so plz pm me if u can test it out. Also to those that do test it out:

DISCLAIMER: I am not responsible for any bricked devices or anything else that this might cause your kindle to do. USE AT YOUR OWN RISK!

Their really isn't any risk on a kindle fire hd 7' so far, its just the other models i'm worried about, also don't run the script more than once, it'll overwrite the backup of your original framework-res.apk, i will fix this in the refined script.

Oh and yea you need to be rooted to use this, i read somewhere some people found a way to use alternate launchers without rooting, but i don't feel like including a rooting exploit script inside of mine.

I'm not posting this on here since its incomplete, like i said pm me if you want to test it, i still need to refine it. Preferably want testers of the other kindles besides the 7 inch model, preferably with 2nd bootloader and twrp.

One last note i can confirm live wallpaper works as well if u have the livewallpaperpicker apk installed.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] pjeby:
If you use the sequence from the script in this thread: http://xdaforums.com/showthread.php?t=889963

It'll take care of not overwriting its own backup.

Also, just a heads-up to any testers: I personally was only able to set my first wallpaper by picking from a non-standard wallpaper set (specifically, the wallpapers from Espier Launcher, which I had installed as a system app). After I did that, I was always able to set any other wallpaper again.

However, I'm not 100% sure that this sequence had anything to do with the wallpaper set, or whether it's simply a matter of needing to wait a minute or two after the first reboot with the mod in place. On the first try to pick the wallpaper, there is a long wait and it would fail, and then I'd try again and it would have a somewhat shorter wait and succeed, and then from there it was usually pretty quick. So it's possible that while the system is starting the needed service is slow responding and just fails. So if you don't have any other wallpaper sets to try, you may want to try waiting a minute ore two to be sure the device has fully booted up and all the startup crap is done running, just in case the problem I experienced has nothing to do w/default vs. non-default wallpaper sets. Heck, for all I know it was a problem with the one specific (high-def) wallpaper I was trying to set.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Just thought I'd post an update, the automated wallpaper fix is pretty much done, I am going to fancify the menus tomorrow to make it look more like binaries root menus, but I have the restore function implemented, and also implemented a way to make this theoretically work on all kindles plus future updates if the bools.xml is different than mine. Still need a HD 8.9" tester, and my kf2 tester should be testing my latest revision tomorrow ( as in when I wake up because its almost 6 am). Also out of curiosity what forum should I post the wallpaper fix in when its done, the general one? Oh and I will make the Linux script when I'm done with the windows batch version. The Linux version should take all of 5 min to create because I used a few Linux commands included in windows binaries, made my life so much easier. But I learned one thing throughout this process, I hate batch file coding. After using bash for a while, you notice how much more flexible bash is than batch, took me the better part of an hour to figure out how to store a programs' output as a variable in windows... Now that I'm done ranting, Plz give me a 8.9 inch tester!
[7" Kindle Fire HD Q&A, Help & Troubleshooting] JORDANZ1998:
I would just post the file right here. Since the people are looking up a way to fix this issue will probably find this thread. I did
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Geckodudes:
Yes!

Ditto!

btw, is there any thread that shows which files change the battery indicators for the new Kindle stock ROM? I'd like to have the new battery indicators, but I don't know if/how I can get them without updated, rooting, and doing the wallpaper thing.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Its probably in the new systemui.apk you'd have to mod the old one with an image from the new I guess, probably using the same method my automation script does for this fix. On a side note I am confirming my script works on kindle fire 2.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] JORDANZ1998:
Hey, how's everything going so far. I have a few questions if you don't mind answering them!!!

1. Is it safe on the Kindle Fire HD 7? Will it brick it. From yesterday's experience I don't want it happening again.

2. Is the new framework-res overwriting the current one do I have to cut the old one out and past the new one?

3. What directory is it In can't seem to find it.

Thanks for all your help and I can't wait to try it out IF ITS SAFE :)
[7" Kindle Fire HD Q&A, Help & Troubleshooting] pjeby:
No such thing as "safe" when modding

As safe as modifying your Kindle in general is, which is to say, not very. ;)

If you mean, "does it work on the KFHD7?", the answer is yes, because that's what I used to work this out on.

I hear you. I bricked my machine more than once figuring this out, but the steps I've given should be sufficient for someone who understands what they're doing to avoid repeating my mistakes.

You should not install this by copy and paste. Not because it can't be done (my first attempt was done that way), but because if it's too much trouble to set up and use adb first, then you're not going to be in a position to recover if you make a mistake. ;) Set up adb and make darn sure you can get in. Better yet, use KFFirstAide and back everything the hell up before you start, use it to install drivers and test adb communication, etc., before you start.

The file is /system/framework/framework-res.apk. It has to be copied, decompiled, altered, recompiled, and a specific file re-merged with the original version in order to create a new version. It is not something you can edit by hand, you need apktool and a good zip utility. I believe stunts513 is including all the needed tools with his script.

There are no guarantees here, and always the possibility of *something* breaking. I've been reviewing stunts513's scripts as he works on them, identifying places where things could break (as is he), and we're trying to make it bulletproof, but there is still no such thing as 100% bulletproof, not on a hobbyist budget. No way to know if something will be different about your specific PC or Kindle, which is part of why I wouldn't upload my working modded file. The script stunts513 is writing should hopefully work even if the framework-res.apk file on your machine is 100% unique, because it pulls the file off first and then only modifies the smallest possible part that needs changing.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] JORDANZ1998:
So overall this is pretty safe for the Kindle Fire HD 7 and will give you wallpaper and live wallpaper support back???
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Yes and the live wallpaper you have to get its apk and put it in the system app folder and set the permissions yourself, mine doesn't install live wallpaper. Also i don't know if it did it before this update, but go launcher hd doesn't give me the option to choose live wallpaper, the other launchers do though, so i had to install a live wallpaper chooser app to get the pick screen to come up. I will now flash back to cm10.1 because i prefer it in almost every way over stock os.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] JORDANZ1998:
Sorry posted this on wrong thread though I was on another one.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Geckodudes:
It bricked my Kindle...7
[7" Kindle Fire HD Q&A, Help & Troubleshooting] DroidIt!:
Wrong thread, oops
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Sorry to hear it bricked your kindle, I wish I had some debugging info so I could find out why it did. I have used it on mine during testing about 10 times, back and forth between installing modded one to the backed one without problems. Strange that this happened. Personally I recommend having 2nd boot loader installed + twrp so if u get bricked it much easier to fix with a restore. Maybe I should update it to have enabled logging of the utility so if there are bricks it will record the process of the command prompt and they could send me them.

If you can get your kindle into adb mode the original framework is backed up in the same folder, my apps restore function should fix it but if u prefer doing it manually after a bad experience u need to run adb shell then mount the system as writeable and su -c 'mv /system/framework/framework-res.apk.orig /system/framework/framework-res.apk'. Like I said my script will d this for you automatically though.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Geckodudes:
? Oh well.

Luckily I have a very reliable Fastboot Cable. I have no idea why it did this. :( Oh well.

I got the Red Triangle of Death, btw.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Isriam:
I ran this, it didn't brick my kf hd 7 but it also didn't work :) any ideas?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Geckodudes:
Your kfhd7 rooted?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Isriam:
yes. else i wouldn't need this fix :)

it does say it can not find resources.resx or something along those lines.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Geckodudes:
Oh, duh *facepalm* :eek:
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Only reason I can see it not working is because of java not being installed, but I put a failsafe in to throw u a screen if you need java and don't have it. You may also need a Microsoft redist, I can find that out by running this command on my Linux is and seeing if wine works with it or not.

Edit: crap just realized msvcp60.DLL is part of Microsoft visual c++ runtime redist. You need that to run the awk command which passes a variable to XML.exe

Looks like I have a lot to learn about making things work, I wonder if attaching a copy of the DLL will suffice?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Isriam:
I've got java 7 rel 21. 32 and 64 bit. i'm on win7 64 bit. restored framework and tried again and still nothing. says it cant find resources.arsc
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
OK I'm going to update this to 2.01 include a DLL that may be needed, and I'm taking off all the 2>NUL's so I can get some decent debugging info from you guys.

Edit:Crap as it turns out it relies on like 10 dll's, sorry I didn't realize this when I released it as I already have the redist installed. I will add some notifications tonight to the script that have a link that sends you to the redist DL link. All I can say for now is if you don't have wallpaper after words, restore and then wait for my next update, it may be a few hours before I can post it because I have a hard time getting on my PC until after my moms asleep. I will have to set this to give you the respective link for your PC's architecture because I don't know if everyone out there is tech savvy enough to know whether they are on 32 or 64 bit PC's. This will take me a few min to code I did some of it from my kindle but there's only so much I can do without using my pc

Edit: didn't want to double post even though it would bump this to peoples attention but i posted the new version on the original post where i posted the dl the first time. Read the notes in the edit on te message please they explain how to generate the debug script properly. Also added links to 64 and 32 bit versions of Microsoft visual c++ redist if it detects you don't have it, and displays the link for your type of pc in case your not savvy enough to know.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] JORDANZ1998:
Ok so the new version is on the original post
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Isriam:
tested 2.01 today. Maybe you can tell me what i'm missing from this debug :)

6002 KB/s (33993723 bytes in 5.530s)

Decompiling framework-res.apk...

Error: could not open `E:\Downloads\Java\lib\amd64\jvm.cfg'

awk: cmd. line:1: fatal: cannot open file `decompiling/res/values/bools.xml' for

reading (No such file or directory)

Patching bools.xml...

failed to load external entity "decompiling/res/values/bools.xml"

bools.xml:

The system cannot find the path specified.

0 file(s) moved.

Recompiling framework-res.apk...

Error: could not open `E:\Downloads\Java\lib\amd64\jvm.cfg'

7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Error:

cannot find archive

Updating framework-res.apk

7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Scanning

resources.arsc: WARNING: The system cannot find the file specified.

Updating archive framework-res.zip

WARNINGS for files:

resources.arsc : The system cannot find the file specified.

----------------

WARNING: Cannot find 1 file

***********************************************

* Backing Up Original framework-res.apk *

* Please grant if a superuser request comes up*

***********************************************

5092 KB/s (33993723 bytes in 6.519s)

Backup Sucessful!

***********************************************

* Congratulations! *

***********************************************

* Your wallpaper should now function! *

***********************************************

* Thanks for using Stunts Wallpaper Fix! *

***********************************************

Cleaning Up...

Could Not Find E:\Downloads\Stunts_Wallpaper_Fix_v2.01\Stunts Wallpaper Fix\newf

ramework-res.apk

Could Not Find E:\Downloads\Stunts_Wallpaper_Fix_v2.01\Stunts Wallpaper Fix\reso

urces.arsc

The system cannot find the file specified.

Press any key to continue . . .
[7" Kindle Fire HD Q&A, Help & Troubleshooting] mikek69:
It worked!

Thanks. I connected the kindle fire 2, ran the RunMe.bat. The Kindle rebooted and now live wallpapers work. Great job.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] CVanB:
WOW easier soulution

Wow, i can't believe this. I just read the whole thread from the beginning today and it all could have been solved by installing fire flash and booting freedom with TWRP like seokhun's thread said. also you could have downgraded with twrp or flashed hashcode's 7.4.1 rom that stops ota updates and gives you guys your wallpaper back or you could have flashed hashcode's cm10 JB rom basicly no major bugs. His rom is like your guy's launchers but more. Lastly, root is almost 100% safe with the automated root by BIN4RY. Even if you guys didn't want to flash a rom you could use Hashcode's fix for ota updates. I gotta give it to you guys though you created your own fix even if it is the easiest or the most direct. Sorry if I offended anybody:o

If you have any questions message me.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
I have no idea why it is looking for JVM.cfg, but if I had to throw a guess I'd say the java path is messed up. That file its looking for seems to me that's its probably part of the java installation so I don't know why its looking for it there. The rest of the errors are a result of that failed step. I will look into that weird error.

Edit: yea seems your java paths are messed up from what I am seeing, you can try to fix the environment variable for it if you know how, or try just reinstalling java, that may also fix it. To tell for sure whether I'm correct opens command print and type echo %QTJAVA% and press enter and tell me wat it says.

Also I'm uploading v2.02, nothing big in differences, but I forgot to fix my visual c++ checker line to use %windir% and instead uses c:\ which in rare cases sometimes isn't correct.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] JORDANZ1998:
Anybody conform for the most part this works on kindle fire hd 7. Last guy who did it got bricked.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] hamiltonfighter:
Re: Hashcode's 7.4.1 rom

Is it confirmed that wallpapers work? Does it have any of the known issues/bugs of CM?

Thanks
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
strange i checked that if its the thread i think your referring to and i didn't see the wallpaper fix on his post, just said it came prerooted with ota disabled. And though I'd mention yes i knew when making this we could simply downgrade, i even suggested this before we had found the problem or released my fix, this is just more so for those uncomfortable with flashing or that don't want to use a older os (assuming what hashcode made didn't have the wallpaper fix of course)
[7" Kindle Fire HD Q&A, Help & Troubleshooting] CVanB:
Yep they work....

I tested the ROM two hours ago to confirm. Wallpapers work with the following launchers nova, and go launcher and ex. still testing others but will keep you posted. It wasn't the ota updated that cause the problem. it was a amazon wallpaper apk in the system app that updated after the ota update. so you could realisticly just remove the apk and replace it with go wallpaper apk. :)

---------- Post added at 05:02 PM ---------- Previous post was at 04:58 PM ----------

They do work look at my post below this one. The issues in CM are minor but will be resolved soon.

Issues: audio under setting doesn't work and cellular service is not yet avalible. :fingers-crossed:
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Um I am confused by that because of what was discussed early on, there was an option in the framework-res.apk that disabled the wallpaper, that's what this automated fix does, recompiles the framework with that option set to not disable the wallpaper.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Isriam:
thanks, when i get home i'll try that. i figured it was something with java, but console works and all browsers find it OK. I'll update with my findings.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] thekid41:
Just ran the latest one on ny kfhd7 wallpaper is working with launcher go home.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Yay more successful results!
[7" Kindle Fire HD Q&A, Help & Troubleshooting] thekid41:
Also worked on my mom's kfdh7 using go home ! Thanks again
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Isriam:
%QTJAVA% shows this path

C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

i checked on http://java.com/en/download/installed.jsp and it claims i have java 7 rel 21 installed correctly. i'll check my java path. could it be the x86?

checking env variables here they are:

PATH(only included java here) C:\Program Files (x86)\Java\jre7\bin;

QTJAVA C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

So after searching i removed QTJAVA to QTJAVA.ZIP and here are my latest results:

***********************************************

* Begginning Wallpaper Fix! *

* This will take a few minutes to complete. *

***********************************************

7082 KB/s (33993723 bytes in 4.687s)

Decompiling framework-res.apk...

Error: could not open `E:\Downloads\Java\lib\amd64\jvm.cfg'

awk: cmd. line:1: fatal: cannot open file `decompiling/res/values/bools.xml' for

reading (No such file or directory)

Patching bools.xml...

failed to load external entity "decompiling/res/values/bools.xml"

bools.xml:

The system cannot find the path specified.

0 file(s) moved.

Recompiling framework-res.apk...

Error: could not open `E:\Downloads\Java\lib\amd64\jvm.cfg'

7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Error:

cannot find archive

Updating framework-res.apk

7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Scanning

resources.arsc: WARNING: The system cannot find the file specified.

Updating archive framework-res.zip

WARNINGS for files:

resources.arsc : The system cannot find the file specified.

----------------

WARNING: Cannot find 1 file

***********************************************

* Backing Up Original framework-res.apk *

* Please grant if a superuser request comes up*

***********************************************

5018 KB/s (33993723 bytes in 6.614s)

Backup Sucessful!

***********************************************

* Congratulations! *

***********************************************

* Your wallpaper should now function! *

***********************************************

* Thanks for using Stunts Wallpaper Fix! *

***********************************************

Cleaning Up...

Could Not Find E:\Downloads\Stunts_Wallpaper_Fix_v2.02\Stunts Wallpaper Fix\newf

ramework-res.apk

Could Not Find E:\Downloads\Stunts_Wallpaper_Fix_v2.02\Stunts Wallpaper Fix\reso

urces.arsc

The system cannot find the file specified.

Press any key to continue . . .

---------- Post added at 07:44 PM ---------- Previous post was at 07:09 PM ----------

Fixed it!!

Had to add C:\Program Files (x86)\Java\jre7\bin to the CLASSPATH and it worked.

Thanks!
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Glad to see you fixed it, don't know why the paths weren't right. I don't think its something I need to add a fix for in my script though right? Seemed localized. If any one else has this problem I'll try to fix it but I think its localized.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] hamiltonfighter:
Java error...

I have current working java &the fix keeps giving me an error about needing java.

Isriam - how/where did you fix this...
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
I could tell you where he added it but I'd like him to tell you exactly what he did for a few reasons, mainly is because i'm not positive if that's the same exact error, and also i don't know if your on a 32 bit or a 64 bit PC. Please run the restore function then run the debugger like I have in my instructions for using it and post the contents of the debuglog.txt in code brackets for me to check. We can both probably help you.

Edit I may know why people are having this error, I may have left a little snippet of coding out that java will need, I'll check really quickly to make sure its not in there and if its not I'll immediately add it and release an update for you to try!
[7" Kindle Fire HD Q&A, Help & Troubleshooting] hamiltonfighter:
***********************************************

* Begginning Wallpaper Fix! *

* This will take a few minutes to complete. *

***********************************************

2519 KB/s (33993723 bytes in 13.176s)

Decompiling framework-res.apk...

'java' is not recognized as an internal or external command,

operable program or batch file.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
um hmm that's not anything to do with what i was going to fix, um either you think you have java installed an u don't (not to sound like an ass), or you have your main java environment path messed up. Do me a favor and run a command prompt and type echo %QTJAVA% and hit enter, do the same for %PATH% as well please and tell me the results. Also i posted that last update in original post its not going to help you, not sure if it helps anyone really but i just happened to remember i left a snippet of coding out when i transferred stuff from the original script to the one with the nice ui.