yashsingh1/xdaforums huggingface dataset:
[Kindle Fire Android Development] Sblood86:
Haha, reason I said cat is because it's oldschool it's actually more likely to be present (I have a habit of getting syntax wrong the first time, comes with having to work in windows all day just to play in linux in my free time)

As for the current incarnation of the scripts can you check if busybox exists and if not cancel? (should be relatively easy I just can't remember the syntax off the top of my head)

As a last option people could also move busybox into xbin manually using their root browser.
[Kindle Fire Android Development] kinfauns:
Yeah... something like this...

$ command -v foo >/dev/null 2>&1 || { echo >&2 "I require foo but it's not installed. Aborting."; exit 1; }

should work just fine. I'm leaning towards actually doing separate checks for everything I need in the script rather than just doing one check for busybox. The "cost" of doing it separately isn't going to be noticeable and it will catch things like nfx that doesn't include rev.

I'll send smirkis something tomorrow. It's getting late here.
[Kindle Fire Android Development] peters4n6:
just a data point here --

installed root browser without issue, ran script to update TWRP without issue as well. Went back in to root browser--->clicked on sdcard folder and the program hangs. Tried this like 10 times and hangs each time. Popup then asks to wait or close program. Waiting changes nothing. Will install scriptmanager later and see how that works. Just thought it was interesting that Root browser worked flawlessly...........................once!:D:(
[Kindle Fire Android Development] fraeone:
I've experienced this bug with root browser too. You can temporarily solve it by reinstalling it. I never figured out what the root cause was.
[Kindle Fire Android Development] smirkis:
as much as i hate to admit it, rootbrowser is a bit glitchy lol. a reboot or reinstalling rootbrowser does fix it tho.

scriptmanager is great at running scripts tho. so don't be afraid to use it if rootbrowser fails for you.
[Kindle Fire Android Development] fraeone:
So I have a Fire that I need to return to stock (all the way stock, not rooted or with FFF or anything).

Can I just use the scripts to flash the stock recovery & boot loader? I recall reading something a while back that said the Fire would repair itself from there, but I can't find that now, and I don't see how it could without a wifi connection.

It's sort of a catch 22--if I flash the stock recovery, I can't then flash a stock rom. If I flash a stock rom, then I can't run the scripts to flash the recovery and boot loader.

Sorry if this is covered elsewhere in the thread, I read a bunch of pages and didn't see anything.

EDIT: OK, I guess I had it backwards, it appears that flashing the stock rom will also flash the recovery and boot loader.. Everybody is so eager to ditch the stock Fire firmware this information was surprisingly hard to find :)
[Kindle Fire Android Development] smirkis:
the only thing I don't like about the stock bin is it backs up your data, flashes, then replaces data. for some, coming from any rom but stock could leave u stranded with a bootloop, and stock recovery/bootloader and no way of recovering without a fastboot cable or pokeys usbboot lol. I always thought about making a cleaner returntoOEM zip but as u said, the demand to go stock is pretty slim lol

as long as you remember to wipe data/cache after flashing the stock zip, u should be good.
[Kindle Fire Android Development] smirkis:
op updated. added the new recovery that sblood86 has been working on with drew. files are hosted with goo.im now so easily grab the flashable zip with goomanager.

thank sblood86 for his new recovery, and enjoy!
[Kindle Fire Android Development] TahrirSquare:
I am currently using TWRP 2.1, Is there any reason I should switch to the new recovery system?
[Kindle Fire Android Development] smirkis:
Its all in preference. They work the same, its just more clockworkmod like which is more familiar to most. But no benefit really, just choice!
[Kindle Fire Android Development] webdroidmt:
smirkis,

Just tried flashing the zip twice, once through GM and once manually with TWRP and I can't find the smirkit directory on my sdcard???

EDIT: Tried a few more times but it wouldn't install, so I just pushed the smirkit folder to my sdcard. And yes, I made sure to extract the folder from the first smirkit folder. :D BTW, thanks for the update.

Mike T
[Kindle Fire Android Development] smirkis:
Damn, I have no idea why it won't properly extract using twrp... cwm and the new cotr flashes and properly places the smirkit folder at /sdcard

I'm gonna look into it tomorrow. For now, you can use goo manager to download it and just extract it and move the /smirkit folder to your /sdcard. Sorry about that!

Edit: so twrp has an issue interacting with an internal sdcard. I'm looking into a way to resolve this on my end.
[Kindle Fire Android Development] smirkis:
so, just because of twrp I changed a few things. ill update the OP with all the details later. no more scriptmanager, no more self extracting. its a menu driven script ran by the terminal emulator. expect the update later today!
[Kindle Fire Android Development] iesvs:
I had the same TWRP slipup and got stuck in a recovery loop but everything's fine now. After installing COTR I must say I prefer TWRP's more contemporary interface. I never messed with ROM Manager or anything so I had no idea you could flash from the OS like that--pretty sweet. I will patiently await the update.
[Kindle Fire Android Development] webdroidmt:
Hey smirkis, thanks for the time and effort. Looking forward to the update.

Mike T
[Kindle Fire Android Development] smirkis:
ok, this should work fine with twrp/cwm/cotr

sorry for changing the instructions lol. should be easy to use tho.
[Kindle Fire Android Development] veeman:
I have TWRP 2.0, can I use this to update to 2.1.1?
[Kindle Fire Android Development] smirkis:
yup.
[Kindle Fire Android Development] webdroidmt:
Installed perfectly and the necessary smirkit files are all in the xbin folder. I brought up the menu in Terminal Emulator but didn't install anything as yet, I'm sure it will work. ;)

I would love to see some/all of the "chefs" cook this into their roms, so we don't have to flash it each time we update or change roms. For some of us, it's like changing our socks. :p

Thanks again for doing this, smirkis.

Mike T
[Kindle Fire Android Development] smirkis:
to be honest. its kind of what I was hoping for. its an extra 18mb or so but very useful. imagine, every rom would always have it. so every user could always have the option there, all of you! lol
[Kindle Fire Android Development] webdroidmt:
I'm pretty sure all the rom devs here know you, why not PM them and ask? I really think it's a neat, easy to use tool that may save quite a few bricks from happening. Also, a helluva' lot easier than wrestling with ADB drivers and such. Especially with newbies, like installing a bootloader or recovery to the wrong partition. Although it's not something you might use everyday, if you need it, it'll always be there.

Anyway, just my 2 cents.

Mike T
[Kindle Fire Android Development] Sblood86:
If you get together a github repo with all the prebuilts and a Android.mk file to be included which moves the files to the correct location I expect you could get this merged very easily as it would only require adding the repo to the manifest for the rom and including the make file in one of the already present device make files (I can't speak for everyone but I'll include it in the CM7-stockish builds if you do).

Edit: post 200...

Edit2: this would of course be separate from the goomanager hosted version which would be packaged for install/flash.

Edit3: On second thought if you package it similar to this, we could do something like just add Smirkit to the product packages ;)
[Kindle Fire Android Development] soberarmy:
Is smirkit safe to use on rooted stock Rom.
[Kindle Fire Android Development] jacewt:
Yes.
[Kindle Fire Android Development] soberarmy:
I'm trying to select a.cannibal open touch recovery and I get and md5 checksum not found. Md5 checksum is inconsistent.....skipping flash. What am I doing wrong.
[Kindle Fire Android Development] webdroidmt:
It's possible that you got a corrupt download of the smirkit zip. I just flashed Cannibal and then flashed back to TWRP and it worked perfectly. I quickly got the MD5 OK and it flashed in a couple of seconds.

In Terminal Emulator, did you get root by first typing "su" for superuser privileges and get the root (#) prompt before making a selection?

@smirkis

I noticed that you can still bring the smirkit menu up without typing "su" first to get root. Can that be coded so that the menu doesn't come up unless "su" is typed?

EDIT: Just tried it without typing "su" and you do get a permission denied. So, I guess that should be good enough. Maybe soberarmy just got a corrupt download.

Mike T
[Kindle Fire Android Development] paranoid android85:
just tried cannibal, i got "error while making a backup image of /data" i noticed i have problems with making back ups with twrp too. it says i dont have sufficient space, but i wiped my sd card so i should have enough space. what am i doing wrong? im on hash's cm9 nightlie and have the latest fff
[Kindle Fire Android Development] soberarmy:
I downloaded the zip file again and i get the same thing..i even erased the zip file in goo manager and my sdcard. Im open for suggestions. Thanks

Edit:

I did type su and got # before typing smirkit.
[Kindle Fire Android Development] webdroidmt:
With my limited knowledge, I think it's having some kind of partition problem, or it can't find something it's looking for. Hopefully, smirkis can help you with this. Might be a good idea to list what recovery you used to flash the smirkit zipfile, in case that matters.

Also, you could check your /system/xbin folder with a root explorer type of app to make sure you have a smirkit file and a smirkit folder that contains all the recovery and bootloader files.

Mike T
[Kindle Fire Android Development] smirkis:
can u try? just flash cannibal then twrp again. or whatever u use. just to see if it fails

cuz I jut installed it on my other kfire and it seems to be flashing fine. I'd say redownload from a different internet connection. it seems to be currupting some how on you and failing how its designed to if md5 is incorrect.
[Kindle Fire Android Development] smirkis:
dang I just finally read this. I think its because stock rom doesn't have busybox.

do u have play store installed? download busybox from market n try again. if that's the reason, I'll include it in the next update to be compatible with stock rom.

also, with a root capable browser, can u look in /system/xbin and see if md5sum is in there?
[Kindle Fire Android Development] jacewt:
I flashed it using CWM, I had already installed it with your previous kit. It would not flash until I toggled signature verification and it said signature check: disabled. I don't know if that's at all related to the twrp problem.
[Kindle Fire Android Development] soberarmy:
Smirkit files are in the xbin dir. I'll try to install busybox later, after work thanks
[Kindle Fire Android Development] smirkis:
smirkit-v1.2 is online in goomanager. /should/ be compatible with all/stock/ics/gb roms.
[Kindle Fire Android Development] webdroidmt:
Seems like it never ends. LOL Since I'm not on a stock rom and 1.1 works for me, do I really need to update to 1.2? Thanks.

Mike T
[Kindle Fire Android Development] smirkis:
u do not lol. it just includes the md5sum file required to check the md5. all cooked roms normally have this already, but stock/gr9 do not :( lol

im hoping this is it as far as the script files go.
[Kindle Fire Android Development] TahrirSquare:
Any chance you can make an extended boot loader(dualboot) that look like fff 1.4?
[Kindle Fire Android Development] smirkis:
someone else started to, and no one built off of it. u could ask elderitus to merge them or build off this

https://github.com/MarcT/mt_u-boot
[Kindle Fire Android Development] soberarmy:
So do I just install busybox and try again if I'm in stock rooted since you pulled 1.2 or are you going to update. Thanks.
[Kindle Fire Android Development] smirkis:
if you install busybox, it should work. can you try it and confirm please?
[Kindle Fire Android Development] soberarmy:
It works just installed cannibal .sweet. Thanks alot
[Kindle Fire Android Development] smirkis:
awesome. so all stock rooted needs is busybux from the market and md5 will work fine. im gonna update the OP
[Kindle Fire Android Development] Pkt_Lnt:
While you are at it, cannibal updated versions. I already flashed it with fastboot, but others might like the new features via smirkit.
[Kindle Fire Android Development] smirkis:
I'll add it in, and push it as 1.3

edit, 1.3 is live. grab it on goomanager and flash it in recovery.
[Kindle Fire Android Development] soberarmy:
just tried to install 1.3 it failed.

E:signature verification failed

installation aborted

im flashing with cannibal 1.1 ????????
[Kindle Fire Android Development] smirkis:
disable sig check n reflash lol
[Kindle Fire Android Development] soberarmy:
This might sound stupid but how would I do that. Hey I'm sorry for really being a pain in the a$$ .
[Kindle Fire Android Development] smirkis:
no worries. when u go to flash zip from SD, before selecting choose file, scroll down to the 3rd or 4th option and disable signature check. or, use goomanager, it should ask u while its flashing to flash anyway.
[Kindle Fire Android Development] soberarmy:
Thanks, I'm good now:D
[Kindle Fire Android Development] smirkis:
updated OP, smirkit-v1.4 is uploading and should show up in goo as soon as its done. contains twrp 2.2.0 for those who still want to use this script to install it and not fastboot.
[Kindle Fire Android Development] brizey:
hey, smirkis, I downloaded it from your dropbox (impatient, lol) and it is not finding the twrp 2.2.0 file

(actually, it looks like it is not finding the md5 checksum file)

figured it out...you call the filename in the script: recovery_twrp2_v2.2.img instead of recovery_twrp_v2.2.img (the script has an extra 2 after twrp)
[Kindle Fire Android Development] smirkis:
oops. let me double check everything n ill have it fixed in a bit.
[Kindle Fire Android Development] brizey:
The filename was definitely it. I just renamed the files in xbin and it works.
[Kindle Fire Android Development] smirkis:
indeed. good eye

updated the dropbox link. ill reupload to goo when I get home
[Kindle Fire Android Development] webdroidmt:
Hey smirkis,

Thanks for keeping this up. Got a question and a bit of info. First the question, any issue with this on JB? Now the bit of info. According to Teamwin dev eyeballer, seems like 2.2 has a bug with renaming the backup on the Touchpad version which he says will be fixed next week. Not sure if they will just release a bugfix version for the TP, or all versions. If they do, I guess you'll have to be making another smirkit version. ;) Thanks again.

Mike T
[Kindle Fire Android Development] smirkis:
I'm on jellybean and everything works fine.

my only issue was with terminal but I think it was my fault ( put term.apk in /system/app before flashing and it kept force closing lol)

n if the do update it, I'll update this as usual!
[Kindle Fire Android Development] webdroidmt:
Cool, thanks. I did the same thing with Term and also got FCs. :D All working good now, I can't believe how stable and usable this JB rom is already. As for TWRP 2.2, I'm gonna wait a while, 2.1.1 works fine and I really like my theme for it. :p

Mike T
[Kindle Fire Android Development] smirkis:
I think 2.2 is worth upgrading too. has a built in file manager and many more awesome additions. jus sayin lol
[Kindle Fire Android Development] webdroidmt:
I never used it but doesn't 2.1.1 have the built in file mgr? Plus, if they do update it in the next few days, I gotta' change it anyway, right? ;)

Mike T
[Kindle Fire Android Development] Thepooch:
thankyou Smirkis worked like a champ as always good work:D
[Kindle Fire Android Development] siera_lion:
Smirkis, maybe you would be ably to add dualboot option in new release! It would save a heck of toke.
[Kindle Fire Android Development] smirkis:
I could, the the current duel boot is outdated a bit. if someone wants to merge them into a newer version, I would. I just don't like hosting outdated software. ie outdated charge driver, and missing the option to reset boot mode. these are necessities

also duel boot requires more fastboot commands, so its almost safer to use fastboot to install anyway
[Kindle Fire Android Development] thea mohamed-toorn:
Can we update TWRP in Goomanager,when you hit the three dots on the screen you can choose for install open recovery script.
[Kindle Fire Android Development] smirkis:
Try it. I tried it regularly and it never installed twrp. Always failed saying no recovery available.
[Kindle Fire Android Development] tobiascuypers:
Can I use this to install dual boot firefirefire, because I am having troubles with adb on my pc.?
[Kindle Fire Android Development] smirkis:
unfortunately no. well technically yes, but more is required to take advantage of the dual boot boot loader. it requires you to redo your partition tables.
[Kindle Fire Android Development] Daevionne:
Whers the download link/button?!?!?!
[Kindle Fire Android Development] webdroidmt:
If you have the Goo Manager app on your Fire, follow the instructions in smirkis' OP. Otherwise, get the file here: http://goo.im/devs/smirkis/otter/smirkit

Mike T
[Kindle Fire Android Development] jacewt:
Does anyone have a temp download since this goo.im doesn't work right now?
[Kindle Fire Android Development] Sblood86:
Goo works just all devs will need to re-upload their stuff; sorry I don't have a mirror.
[Kindle Fire Android Development] smirkis:
I'll fix this soon. I'm gonna add the newest cotr and reupload
[Kindle Fire Android Development] webdroidmt:
Thanks smirkis, good to see you here. How are things going in the Nexus 7 world? :laugh: I just added COTR 2.0.2 to smirkit 1.4, worked fine but always like an "official" release.

Mike T
[Kindle Fire Android Development] smirkis:
the nexus 7 world is movin, but honestly im just running pauls stock optomized rom. its awesome out the box but leaves me bored lol. if i come across another kindle for cheap im gonna snag it just to keep the fun part alive. the nexus just works which is cool, but what fun is that ;)

the newest smirkit is live on goo.im

if anyone wants to rehost it somewhere and link it ill add it to the OP incase goo goes down again. it should work fine but i can't test it. but all the usual precautions, has all the md5s n what not so if anything, it just wont flash lol. enjoy
[Kindle Fire Android Development] Mine GO BOOM:
Took me about 20 minutes to download the file, so I figured others may not want to have to wait as long: http://android.minegoboom.com/files/smirkit-v2.0-installer.zip
[Kindle Fire Android Development] webdroidmt:
Yeah, I forgot that you can't update to JB, 'cause it's already JB. LOL I guess if I had a Nexus 7, I'd probably stay stock....at least for a while. :D You're right half the fun is flashing new stuff, seeing how many ways you can void your warranty and not pay the price. Thanks for the update, appreciate it.

Mike T
[Kindle Fire Android Development] jacewt:
I am not sure why but I can't get this version working. I install it, it's there on system/xbin I am on a jellybean rom. I go to terminal and tells me there is no such file. Hmm, of course my kindle seems to have a lot of problems, so I don't know.
[Kindle Fire Android Development] webdroidmt:
Might be an issue with busybox/su, or it just may be a bad download and/or corrupt script file. You can try the one I put together if you like, it has the current COTR and it has both TWRP 2.1.1 and 2.2.0. I like to keep TWRP 2.1.1 as a backup, as it's been a bit more reliable for me than 2.2.0.

Hmmm, I just tried flashing the one I d/l from smirkis' dropbox yesterday and it couldn't find the file in TE. Well, try the one I uploaded to my dropbox, I've used it to go from COTR to TWRP and back to COTR again with no problems. I'll leave it up for a couple of days if you want to d/l it.

Link removed, the download from smirkis' link works fine.

Mike T
[Kindle Fire Android Development] smirkis:
hmm, sorry about that. I changed version numbers in yours and gave credit for "fixing" it lol. I'll add it to goo.im and the OP if you don't mind.
[Kindle Fire Android Development] webdroidmt:
Fine with me. :laugh:

Mike T
[Kindle Fire Android Development] jacewt:
Thanks that worked!
[Kindle Fire Android Development] webdroidmt:
Great! Glad it worked for you, still can't figure out why smirkis' dropbox upload didn't work for either you or me???

Mike T
[Kindle Fire Android Development] jacewt:
I tried the goomanager one as well. Just wasn't getting anywhere, I tried two different roms.
[Kindle Fire Android Development] smirkis:
the newest in the op should work. I just haven't updated goo.im yet. when I was trying it seemed like goo was down again so I said eff it. sorry lol
[Kindle Fire Android Development] smirkis:
when someone reports the updated twrp as solid, I'll update this.
[Kindle Fire Android Development] webdroidmt:
Thanks, as you probably know, I'm using COTR right now but maybe I'll flash the new TWRP and play around with it. If I do, I'll post back here.

EDIT: Played around with it for a while, don't know if that qualifies me to say it's solid but for what I tried, had no issues.

Installed a couple of JB roms with gapps, also flashed the smirkit zip

Made a nandroid backup

Did 2 restores, 1 full and 1 data only

Did a complete wipe, cache/dalvik, system and factory reset

Rebooted from the JB OS into recovery a few times

Rebooted from recovery into the JB OS, also a few times

File Transfer with USB mount worked fine

I did not try renaming or deleting backups. Also, one other thing I noticed was that signature verification was enabled by default for me, had to uncheck it to successfully flash gapps.

Mike T
[Kindle Fire Android Development] webdroidmt:
Well, looks like another version of TWRP was just released, 2.2.2.1. In the TWRP thread, Kinfauns said he checked it out and everything seems to be working well.

Mike T
[Kindle Fire Android Development] smirkis:
kinfauns got another kindle fire! I'll be updating this today when I get off work.

thanks for the reminder webdroid, and for being involved.
[Kindle Fire Android Development] webdroidmt:
NP! If kinfauns got another KF, looks like you need to get one too...on the cheap. LOL Gotta' keep that Nexus 7 company. :D And thank you for keeping this up, appreciate it.

Mike T
[Kindle Fire Android Development] smirkis:
i plan to eventually. i just started a new job and damn its hard to find time to fiddle n play. i squeezed in this updated while i was at my desk, but sorry it took so long.

ATTENTION: new and old users, please be cautious when replacing bootloaders and recoveries. md5 checks are a must, and if anything goes wrong a fastboot/factory is your only solution for repair. small chance, but it could happen to you!

smirkit takes all precautions! i dont condone flashing recoveries from within recovery. you need a working OS, which i take as a precaution. this method has been thought thru to prevent users from accidently bricking your devices. im not saying other users can't make safe methods, im just saying be smart and choose a safe method for recovery installations.

all warnings aside, enjoy!
[Kindle Fire Android Development] webdroidmt:
Good luck with the new job! Hopefully it's mo' money so you can get another KF. LOL Just saw the kind words in your OP, thanks.

I appreciate all the people like yourself that invest their skills & time to make things fun & easy for all of us that can't do this stuff. I especially appreciate utilities like smirkit, that often get overlooked but can be essential to keeping your device up to date and healthy. So, does this make me a smirkit groupie? :laugh: Thanks again for the new release!

EDIT: Just flashed smirkit 2.1 and it's working great. Thanks again!

Mike T