yashsingh1/xdaforums huggingface dataset:
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Ah OK and I feel bad because I worded that poorly, when I said that stuff about my résumé I meant I haven't gotten into college yet and I'm trying and that the job I'm applying for requires a resume, didn't expect to need one for a pre college job. Let's just say I'm trying to get into college but had issues doing so after highschool. For now I'm just trying to get a job so I can get my life going, not that college isn't in the top priorities. I still need a drivers license and a sat on record. Anyways enough about me, I'll look into fixing up my script this weekend, and I finally got my hands on the latest android SDK fr Linux so I can tinker with adb again, the version I had was to old to work with my cm build. This also allows me to have an easier time while working on the script, even though its mainly targeted at windows users, the commands are the same more or less.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] tech6:
Update On Wallpaper Script

Ok, after having to restore my Kindle HD 7 at least four times (I think or even 5) because I was trying out this script. Well, I have good news.

Stunts was pretty patient with me on this. It appears the trick to getting the script to work for me was not to install the launchers before running the Wallpaper Fix script. After I bricked my device the last time, I decided only to install the bare minimum and then run Stunt's script.

So, I used KFFirstAide (most recent update) and restored the KFHD 7 to 7.2.3 via fastboot cable. Then updated it to 7.4.3. After that I rooted it using KFFirstAide and then installed Google PlayStore, ES Explorer, FireFlash in order to install the 2ndbootloader & TWRP (which were also installed and need to be before the script will work).

I then installed some live wallpapers to test. Then ran Stunt's script. The script made the changes this time without any messages regarding memory issues. After rebooting, I installed Nova launcher, live wallpapers.apk, appwidget.apk and was able to experience having live wallpapers! My Kindle looks great!

Thanks Stunt!
[7" Kindle Fire HD Q&A, Help & Troubleshooting] sonicanomaly:
I'm attempting to get mine rooted so I can install everything and run this script. So, if you don't mind my asking, which method did you use to install the second boot loader and twrp? Heard some horror stories about trying to get them on x.4.3 devices, so I'd like to err on the side of caution and attempt a method that worked for someone else.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
he used fireflash method i believe since he mentioned installing that, that method isn't risky in particular for the flashing it self, most of the time the problem i see is that people don't read the instructions and forget to flash the x.2.1 bootloader first, causing the red screen when they reboot, thus needing a fastboot cable to fix. Even if your unsure i think its safe to check that box off first, i mean it is only reflashing what you would already have if your on an older version. Anyways what i came on here to say is anyone have some ideas for transferring a variable over from android to windows or linux using adb and bash inside adb shell? I am having issues getting android to do what i need it to do, i tried using something for one area like

./adb shell "su -c 'mv /system/framework/framework-res.apk.orig /system/framework/framework-res.apk' && 'echo $?'"

but found that doing so is pointless because after the first command fails it doesn't seem to be running the second command or it would have echoed a number on my terminal. I also tried running them seperately but that is also pointless because the error code is resetting to 0 because its a separate shell. Only thing i can do and am trying to avoif is pushing a bash script onto the device so it will be forced to run the commands for me in series. If anyone sees any other alternatives please tell me. Frankly i find it to be an annoyance having to push a bash script just to export a variable, especially because i am going to be doing this operation with multiple commands and writing out to a file that gets pulled, meaning i would need to push several different scripts, o wait maybe not if i make a shell script that accepts parameters for calling a specific function then i wouldn't need multiple files i suppose... If you can't tell I'm brainstorming as i write this.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] soupmagnet:
From my experience, you have to send the command while piping it into 'grep' to catch the error message, then catch the exit status of 'grep'.

For example: If you were to send a random shell command to see if the shell is accessible, 'adb shell echo foo; echo $?' would not work correctly. However, 'adb shell echo foo | grep "No such"; echo $?' will return the correct exit status. You just have to remember that the exit status is for whether or not 'grep' was successful, not the original command. If 'grep' is successful, then the command failed.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
That might work, my only concern is I am on cm now and I don't know offhand the stock commands that amazon os comes with, just to verify, amazon os comes with grep? On that note I wonder if I can do something similar locally... Thanks for the reply, if amazon os comes with the grep command I will try implementing this.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] soupmagnet:
No, you misunderstood. The 'grep' command is for the Linux side, not the Android side. You run the adb command, and use Linux 'grep' to test it's exit status. Whether or not the stock OS has 'grep' built-in is completely inconsequential.

If you're writing a script in BASH, that's the way to do it.

Side note: in Windows, you could accomplish the same thing with the 'findstr' command.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Ah OK that's kinda what I was thinking when this gives me ideas of doing it locally. I misunderstood because of the apostrophe positions I think, thought the pipeline was on the android side. OK thanks I'll see what I can do. This is even more useful because I should be able to export the android error code into windows or Linux more or less, not the exact error code but more of a boolean.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] tech6:
2nd Bootload & TWRP Instructions and Tutorials

OpenSystem: http://xdaforums.com/showthread.php?t=2347170&page=2

I read this guy to get an understanding of what I was about to do to my Kindle HD 7. Instructions are easy. He also has the Fire Flash file here. If you have 7.4.3 installed on your KFHD 7 you want to download HashCode's files from his thread to flash.

HashCode: This guy is considered the authority. Very thorough thread on bootloader and TWRP. Plus he has up to date files for use. Excellent reading. http://xdaforums.com/showthread.php?t=2128848

SeoKhun: This guy also explains the process very well. http://xdaforums.com/showthread.php?t=2271909

Make sure you have the appropriate img files for the version of software for your device. Example, my KFHD 7 has the update on it 7.4.3. So, I will use HashCodes files to flash for bootloader & TWRP. If you have not updated to the latest Amzn OS, you will need to use the appropriate files for your device version.

Remember: If you are going to use Stunt's wallpaper fix do not install any launchers until after you have rooted, added 2nd bootloader & TWRP and applied the Wallpaper Fix.

I used Fire Flash to install 2n bootloader and TWRP. Very easy to use if you follow the instructions. Hascode's is very lengthy and can be overwhelming. SeoKhun is easy to understand just go to Step 3 and read his installation notes.

OpenSystem's instructions are easy to understand and helps you make sense of the other two. ;)

HTH
[7" Kindle Fire HD Q&A, Help & Troubleshooting] sonicanomaly:
Thanks so much! Unfortunately, I've got the 8.9 HD and it's far beyond my skill level to 'figure out what needs to be changed' as the thread suggests in regards to my device. So I'll have to look around for a similar guide for the 8.9. But I still wanted to thank you, because I appreciate the answer. And I'd have never thought of the waiting for a launcher etc., so this is still definitely of use to me.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] tech6:
Checkout these threads:

Seoshun's thread: http://xdaforums.com/showthread.php?t=2277105 for your KFHD 9 inch.

HashCode's thread for KFHD 9 inch: http://xdaforums.com/showthread.php?t=2128175

I have bootloader installed, but have not installed a ROM. I will have to think about that before I try it. :)

Good luck with your installation!

HTH
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
New Update 2.07!

ok so i was able to get on my pc in the daytime for once, and i was able to work on fixing it thanks to soupmagnet giving me a pointer or 2 on how to forward a error code from android to linux/windows over adb. I have now got the low space safeties in place and they should work, i still need someone to test for me though and post results so i can know for sure. I cant even really test the script out myself because i have to re-flash my amazon backup, which i believe doesn't have ota disabled, so i don't wanna risk it making me have to re-flash my bootloader and recovery. I also updated the linux script, just realized a week or so later that the last update broke the linux script, because i forgot to add ending brackets to the last 3 low space functions in it, also forgot to put the text in quotes when copying and pasting the text from the batch file and fixed it, also updated the linux adb binary to the latest version(the windows version is already at the latest version i believe). As always its on page 8, and because im not on my kindle this time il post a post link to it. Also thought i might mention once i get to version 3.0 i think i will post the utility in a more official form so people will see it, im guessing in the android development section? Seem's like the right place i think, Though i would have to post it in every android dev section unless it gets stickied or something.

http://xdaforums.com/showpost.php?p=42181794&postcount=75

Is this how you normally post a post link? i clicked it and it didn't jump to the post on the page it went to a singular post...

-Todo

-Look into adding restore function for twrp in case of brick, so it is way faster than restoring a system image.

-See if bricks go down so i can take out the debugging messages.

-Might look into pulling and temp removing launchers/widget picker/live wallpaper apk's temporarily so the fix can apply itself in case of low

disk space but this would be slightly difficult because it would be doing it based on file names, and yes i could grep it possibly using the

method soup helped me with, but i don't want it accidentally deleting system apps and bricking kindles.

-Read more manga while i wait for results! xD
[7" Kindle Fire HD Q&A, Help & Troubleshooting] tech6:
Love to help, but my KFHD 7 is working really well. If it should go down and I have to restore it, I would be happy to test your new script. Will it work with launchers installed before you apply it? Or do you still recommend no launchers before applying the fix?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] dustpop:
still can't apply wallpaper after using the latest tool in this post.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] GreyGeist:
What's the current number of bricks from your script so far? The percentage seems to be quite high. I don't want to risk my kindle.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Eh I have no statistics offhand, but the percentage wasn't too high, and this last update should fix one of the primary reasons its been bricking. I haven't had a way to test that new safety, but in theory the way I coded it should prevent the low disk space corrupted framework-res.apk error that was causing boot loops. And remember none of the bricks this could create are hard bricks so they are always recoverable. If anybody sees any ways to improve the script plz tell me, I am always open to ways to improve it.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Mikkoman:
I was able to make the mods successfully without bricking the Fire. Just needed to make sure I didnt get the OTA upgrade that's currently floating around. BUT I couldn't work out how to do the method listed a couple of days ago but went into the system file and changed the extension of the OTA file that sits there.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] dado099:
Hey, Stunts

If you also sell fastboot cable to people who bricked the kindle with your script, you would become a rich guy :good:
[7" Kindle Fire HD Q&A, Help & Troubleshooting] hungnguyenv:
what is lol here?

Hey dado099,

What are the joking hell you saying. He is the only hope in this thread, He gets his face deep into the code and try to help.

Did you see too many poor news in the kindle fire hd thread so far. Absolutely NO, we even don't get any news.

Because the senior developers who work on android platform can't live with amazon.

We're the children be abandoned, walk around a circle like the ghost and wait somebody come and kick our ass.

Don't let him go away too. We have too less the producer right now.

Go to the hell with your story.

Regards,
[7" Kindle Fire HD Q&A, Help & Troubleshooting] calkenneth:
I agree. Thanks to Stunts for all of his hard work! I used 2.06 and wasn't as lucky as the rest of you as I ended up bricking my device - but thanks to many of his OTHER educational and helpful posts and those of others on this forum, I was able to restore order in my Kindle world again. I ended up using this as an opportunity to flash the 2nd bootloader, TWRP, and CM10.1 on the device.

There is no foolproof way to root or hack your device - which is why we don't recommend that newbies do it. Get yourself a fastboot cable, make back up copies of your image files (system.img, boot.img, and recovery.img) and make sure you've taken every precaution before taking any actions, such as checking MD5 hashes to make sure files aren't corrupted and reading every instruction carefully.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] SHAX321:
Suggestion

I may be out of line and please exuse me if i am but i beleive there may be a way to resolve the walpaper problem using a different method. Possibly to "trick" the kindle into upgrading its firmware. There is a Kindle fire hd (and second gen) root method that follows this procedure and I belive it could be used here too. LINK TO ROOT METHOD: http://xdaforums.com/showthread.php?t=2075959
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Want to thank everybody for the support, it is nice to know people support me.

As to that last post, I am confused as to how that link was related to fixing the wallpaper. I only skimmed through it though. I don't see how u can trick the kindle into letting you set the wallpaper unless you use some kind of memory hack, would have to run at startup, but in truth all my fix does is basically flip a switch on the framework of the kindle so wallpaper is enabled, unfortunately it has to be decompiled and recompiled to flip this switch on, i considered option like how the disable ota script worked, but found out it works much different then I initially though. So this script is my result.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] dustpop:
in the end it shows "exec: no such file or directory" and "we just had a weird permissions error", how should i go?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] SHAX321:
Pushing "Fake" update.

What i meant wasnt what is done exactly in the link page. I meant the procedure. it may be possable to push an update from a pc to the Fire in order to update the firmware so that is supports wallpaper. Even though it would just be the same firmware, but tweaked. Although, this is just my personal hypothesis.:)
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
That's strange, if i remember right that error was a safety put in in case there's a permissions error doing something, and there shouldn't be a permissions error if you are rooted.

But because it also said something about exec I would like more details, could u run the debugger script, and post the outputted file as an attachment? The instructions for using the debugger are on the post on page 8.

I think I get what you are saying but I think it would be a pain and require me to host 3 separate files on a file host, and update them every time amazon pushes an update, and I would have to wait for people to send me the required files to do this every time there's an update, because I only have a 7 inch kindle and its running cm. Well technically I could extract the files from the Amazon update site, but they don't always post them when they release the update and I'd be doing quite a bit of stuff. My method just seems easier to me. Your method sounds really interesting though, it reminds me of what I noticed when I was messing with system files from the amazon is and I think I decompiled the amazon dcp apk, I think that was it, its the one in charge of doing ota's, found I think it was a boolean values or something that if changed would enable us to safely downgrade our kindles by putting an older kindle zip flash from Amazon in the Sdcard folder and hitting update under about. Imagine how cool this could be as a tool for us to flash 2nd bootloader and twrp if we could fake a ota package( I am assuming they are signed). Seems to me if that were the case we could just put a premade zip file into the sdcard and hit update and it wild flash the boot loader and recovery, and I think it also checks md5s in the process of flashing so it would be safer. Though I am still a bit confused about a few minor details, like the fact we normally have to apply a stack override, I don't quite understand that part, I mean I do to the extent of what its purpose was, but if it simply rewrites data for the boot loader allowing us to put our own data in, why can't we just flash a image of a backed up boot loader that already had the stack override and 2nd boot loader installed on it?

Suddenly seems like I ranted and went off topic, o well.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] SHAX321:
I see your point about the work that would need to be put in, but we could, in theory, extract the signing from the last ota update. Although, we are going off topic.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] dustpop:
when i tried it again it shows the 1st picture, and when i choose restore it shows the 2nd pic. nothing happens when i run "debug.bat".
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Wow that's a heavy error. Wow um, I have no idea what would cause that offhand. That's not a typical syntax error or something its like the command prompt crashed from something. I will look into the error as best I can, but I don't think its a problem with my script, unless you are missing some kind of dependency my script needs. Also read the instructions for the debug script, it may appear blank but that's because of how I had to set it up, to use the debugger, open it, and just press 1 like you normally do on the regular script, then wait until u get that mast error and the script will either close down or u can manually close it down. Then there should be a log with all the console output for me to use. I think it would be very helpful in determining what exactly is crashing. Oh dustpop this next paragraph may apply to you I am unsure because in the screenshots I see you are using windows, but my next paragraph would explain that weird permissions error on a Linux system, so if you previously used a Linux system read the next paragraph.

On another note, soupmagnet pointed out a typo that explains why people are getting weird permissions error on the Linux version of my script, I forgot to convert a line from windows form to Linux so it still is adb.exe instead of ./adb on the line where it mounts the system in read/write mode. He is also helping me clean it up, so I will release another version by Sunday with the fix hopefully. Sorry for the inconvenience! If you are a Linux user and know what you are doing you can attempt to fix it yourself until I release the fix, just take the .exe off the only line that has ./adb.exe.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] galearned:
Wallpaper fix not working

Stunts. Thanks> I tried last night to run the wallpaper fix on both Windows 7, Windows XP and LINUX.

All three failed for various reasons. LINUX failed with the permissions errors listed and threw an error describing SDK out of date.?

Windows 7 and Windows XP both indicated that this app was not compatible with this version of windows.

The script continues however until it says "done" but, based on the errors I saw going by, it is not really actually doing the work.

I will look up your notes on doing the recompiling manually. I will also be waiting for the new script.

Tried again with LINUX making some corrections to the script (Soupmagnet's note on adb.exe and removing ./ on the various commands. ADB will not run when preceded by ./

I manually installed starlet. sudo apt-get install xmlstarlet

Finally, i get down as far as :

xmlstarlet ed -u "/resources/bool[$l

ine]" -v false decompiling\res\values\bools.xml > bools.xml

failed to load external entity "decompilingresvaluesbools.xml"

This is as far as I can proceed. Not informed enough to know what the error refers to.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] soupmagnet:
I've already pointed that out to @stunts513 and he will be looking at it when he gets a chance. In the meantime, do you see how the script has that path using backslahes? Linux interprets the backslash as an escape character (which is why you see "decompilingresvaluesbools.xml"). Try changing the backslashes to forward slashes and run the script again. There are about four or five instances where that has happened throughout the script. Just look through it and find the ones you can. As far as I can tell, that is the only thing left to fix that would prevent the script from running as it is intended.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] stunts513:
Wow I had never considered that a possibility, it appears aapt doesn't have execute privileges, if I released the tool in tar.gz it would but that would kinda hinder the windows users, I suppose I should add a line at the beginning of the file to chmod the Linux binaries so they have execute privis. Thought I'd also mention it ran out of disk space on the device so try removing the alternate launchers and other system apps you installed. Also would love to know why that didn't through up my error about low disk space on the system partition after the cup line. I think I will release a Linux version sooner than Sunday now that I'm seeing a lot of errors. I might try to work on it tonight.

Edit: ah im a moron it didnt throw up the syslow because i put weird permission error there.