yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] zyonee:
Compiled j_r0dd's latest 4.0.0.5 source with one change: Moved "wipe data/factory reset" to the bottom of the wipe menu to decrease the risk of an accident. :)

Download link
[Nexus S Android Development] jerrycycle:
Thanks to j_r0dd's, zyonee & CWM. This is a nice addition to the already good modded recovery. I only do this because don't have flash image script in the miui rom and don't want to do fastboot.

Download zip and extracted img file. Renamed to 4.0.0.5.img

Backup current rom

Wipe all. Factory data/cache and dalvik

Flash cm7 no gapps

Once booted open terminal and then type

su press enter

flash_image recovery /sdcard/4.0.0.5.img

reboot recovery

When back to recovery I do my restore.

All this takes me less then 3 minutes and done without computer. Really handy for me when not near a computer to do fastboot.
[Nexus S Android Development] jorim.tielemans:
Hey,

I'm trying to make my own rom using dsixda's kitchen.

Now I'm having two questions:

First of all, may i use j_r0dd's recovery?

And how can I implement It?

Thanks in advance
[Nexus S Android Development] zyonee:
Recoveries should not be included in ROMs, since if something goes wrong (depending on the device), it could be hard or even impossible to restore a non-working recovery. Just include what goes into the boot (kernel), system and possibly data/sd-ext partitions and you'll be fine.
[Nexus S Android Development] jorim.tielemans:
Ok, thnx

Here's another question: how can i extract a .img-file?

I work temporary with Ubuntu...
[Nexus S Android Development] zyonee:
To be honest, I'm not sure. I used to extract from nandroid backups (system.img and data.img which were yaffs2 partition dumps). However, I don't think it's as easy in a recovery.img, since it contains a kernel, ramdisk, etc. You'd be better off downloading the source and compiling it yourself.
[Nexus S Android Development] jorim.tielemans:
And how should I do that? It's pretty new tot me.

I don't learn this at school xp I'm just a 15 years-old kid.
[Nexus S Android Development] zyonee:
A good place to start is to learn how to compile your own CM7 kang. You can find a guide here, but make sure to replace "passion" with "crespo". The quickest way to get things working is to install Linux. I prefer Ubuntu, but the choice is up to you.

Once you get the hang of using repo, syncing, compiling, etc., you can work your way to also compiling recoveries. I'm sorry if this is not helpful, but I don't think there's any shortcut if you really want to learn.
[Nexus S Android Development] jorim.tielemans:
I don't really get It but I'll try, thnx.

I'm using Ubuntu 9.10 live on a usb-drive with persistence-mode.
[Nexus S Android Development] ptr_hamilton:
3.1.0.1 sources

Please don't hit me because I come with question here :o

@j_r0dd: Do you still have the sources of version 3.1.0.1 with you modifications? A lot of people really appreciate your work and for us Desire users and those who are using roms with sd-ext partitions this version seems to be the latest working.

But nobody has this version with you modifications :(

Well, I'm not able to compile it for Desire but I'll bet zyonee would be able to. All we need therfore are the sources...

Thank you in advance

Pete
[Nexus S Android Development] loveboatcaptain:
hey j_r0dd,

just compiled your modded recovery for the htc desire s.

awesome work... this is what i was looking for since weeks ;)

thank you very much.

i have one little question. from my days with the HTC wildfire i know a modded version from clockworkmod which has a really nice feature which is missing since beginning of CWM.

it´s an option to advanced backup where you can choose which partition you want to backup.

this is a fantastic mod for me as developer, cause sometimes i only need a backup of system or boot or data... not all together. this safes me time and sdcard space.

the mod is made by arco68 and he shared his work in the wildfire section:

[Recovery] ClockworkMod v3.1.0.2 (with offmode charging)

his version is a little older (v3.1.0.2) but he also shared his work on github:

https://github.com/arco/

wouldn´t it be awesome if you could merge those two mods?

think the advanced backup menu would be a very good "nice to have" feature for a lot of people.

hope you could do that.

regards and thank you again

stephan
[Nexus S Android Development] Maximilian Mary:
I applaud your sneakiness, but I guarantee backup & restore will take longer than 3 minutes will all the apps I have installed. xD Why not do it the easy way?
[Nexus S Android Development] zyonee:
Just throwing this out there:

I've made some more changes. Here's a list of things I've added:

17-Jun-2011 (v4.0.0.5):

Moved the "Wipe data/factory reset" to the bottom of the wipe menu to reduce the risk of accidental factory wipes.

19-Jun-2011 (v4.0.0.5):

Added "Reboot bootloader" option in advanced menu.

Added the ext4 modifications kindly supplied by roalex. Needs testing. Please make a proper nandroid backup with a proven working recovery version before trying this.

20-Jun-2011 (v4.0.0.5):

Added "Show log" in the advanced menu. This can help when reporting errors here. Use it. :)

Latest source from j_r0dd + the additions mentioned above

Please don't bother j_r0dd about my additions to his recovery. They're not his responsibility.

And to j_r0dd: If this is an inappropriate place to post my additions, let me know and I'll open my own thread. ;)
[Nexus S Android Development] Borky_16:
You should start your own thread for more clearness, but give him a BIG RED Credit ;)
[Nexus S Android Development] ZeDestructor:
Can we get a "Wipe All" option? This would ease up testing firmwares considerably for me (I can do 20+ flashes in a day when I go looking for firmwares/applying themes/swapping kernels etc)
[Nexus S Android Development] johnkim0011:
Does it supposed to do anything when I press wipe battery stats?

It asks for 'yes' or 'no' but when I press 'yes', I don't see any message.
[Nexus S Android Development] zyonee:
Fixed it in my recovery (will be included in my forthcoming builds).
[Nexus S Android Development] iceandfire:
Is it possible to flash this directly from phone.??
[Nexus S Android Development] roady85:
Yes, in Terminal with "flash_image recovery /sdcard/recovery.img or with the App Flash Image GUI.
[Nexus S Android Development] Maximilian Mary:
Yes.
[Nexus S Android Development] steve.garon:
That is a nice idea! I always remove rom manager because its useless at knowing that I'm already running CWM but a modded one.

Next Nightly I might try this and keep it for once!
[Nexus S Android Development] bnitty:
haven't used fastboot before so can someone please explain to me how to use it with the cwm 4.02? thanks
[Nexus S Android Development] johnkim0011:
When will we see this implementation? ;)
[Nexus S Android Development] zyonee:
Sorry, I forgot. Here is my latest build with battery stats wipe notification included.

http://db.tt/uTLz8hz
[Nexus S Android Development] kalico17:
does this work for the NS4G also?
[Nexus S Android Development] zyonee:
No idea. I just used j_r0dd's source code and made some small modifications on my own.
[Nexus S Android Development] chiballer20:
wow, this is awesome! I really liked how you organized it and also got rid of all the "no's". Great job, now my recovery matches my cyan theme!!! Thanks!!!

Used Terminal Emulator!
[Nexus S Android Development] mordekainen:
Is this recovery going to work well with the rom manager app? Can I schedule my backups/install roms with it?
[Nexus S Android Development] fleischbanane:
Yes, it works and you can use the options in the App.
[Nexus S Android Development] mikeyinid:
Hey mods, can we get this thread stickied??
[Nexus S Android Development] thoth77:
Green

Color option is nice
[Nexus S Android Development] :
Are your builds for the GSM NXS or for the NXS 4G?
[Nexus S Android Development] Maximilian Mary:
Yes.

(First three are for gsm models. Next three are for ns4g.)
[Nexus S Android Development] deejaylobo:
When I wipe data/factory reset, I don't get any sort of confirmation message. It just resets to the main menu after wiping cache partition.
[Nexus S Android Development] jungbum:
That is correct. If you're wary, you can reboot your system to confirm that the data is wiped to factory default. What usually happens is once the reset has been completed, the screen will turn black for few seconds and get you back to the main recovery menu.
[Nexus S Android Development] :
I don't mean the builds in the first post. I mean the builds from zyonee.
[Nexus S Android Development] zyonee:
No idea, I've only tested them on my i9023 (GSM/3G).
[Nexus S Android Development] isinisterx:
how do u install this?
[Nexus S Android Development] zephiK:
http://xdaforums.com/showthread.php?t=1162422&page=2
[Nexus S Android Development] Heeter:
Hi Guys,

I would to use the "Flash Alternate Recovery" option in Rom Manager. Which folder would I have to put 4.0.0.2 image for this option not to be greyed out?

Thanks

Heeter
[Nexus S Android Development] no_one_can:
I couldn't flash rom when it's in sub-dir.
[Nexus S Android Development] BlindWolf8:
I would love to know this too. Where do I need to put this under /sdcard/? Thanks!
[Nexus S Android Development] Maximilian Mary:
ROM Manager does not recognize this as an "official" alternate recovery, but you can flash it using this workaround.
[Nexus S Android Development] Maximilian Mary:
Mea culpa.

His build will work for the ns4g. However, the ro.build.product will incorrectly say crespo, instead of crespo4g. So anything that checks this property (such as the CyanogenMod installer) will fail (or will succeed if you attempt to install the wrong version). Koush has written a universal kernel for all SNS variants. Perhaps j_r0dd will incorporate this in future builds.
[Nexus S Android Development] brainmaster:
When can we expect new version? There is already 4.0.0.5 out.
[Nexus S Android Development] Borky_16:
he got a atrix so he is busy atm, but he will continue his work! i asked him already trough twitter! ;)
[Nexus S Android Development] hellcatt:
just what does "noconfirm" mean? i just wanna update CWM on my replacement ns4g
[Nexus S Android Development] Borky_16:
there is no no/yes page ! ao when you press format /data, the recovery will do that without to ask again!
[Nexus S Android Development] hellcatt:
yea and it didnt work i tried to flash it and i still have 3.1.0.1 with confirm
[Nexus S Android Development] j_r0dd:
That has already been included. The build.prop issue was fixed a long time ago with mine. Really any other recoveries should be in their own thread to prevent confusion. Mine are in the OP only.

I know haven't updated in a while. I will soon. Been busy working on getting the backflip (legacy lol) CM7 device/vendor going. I just got an Atrix as well. My source is buildable for every device out there so I will continue working on this. Just other priorities right now.
[Nexus S Android Development] Maximilian Mary:
I think he was asking if he could use a modded crespo build on a crespo4g. If I understand correctly, your two versions are identical, (so they should function the same) except that they are built for the different devices, so obviously the build.prop will be different. In my ignorance, I was assuming that the build.prop was specified in the source, instead of added at build time. Is this accurate?
[Nexus S Android Development] Heeter:
Posting to be subscribed to thread

Heeter
[Nexus S Android Development] j_r0dd:
Yeah it's created at build time. The only difference between the two recoveries is the build.prop.
[Nexus S Android Development] jorim.tielemans:
Already thought about the EFS-backup function?
[Nexus S Android Development] Southrice:
tried this work around, didn't work, took me to the bootloader instead. will the flash image gui work for nexus S?
[Nexus S Android Development] Southrice:
AFTER HOURS, finally on 4.0.0.2... good stuff, thanks! ;)
[Nexus S Android Development] ZeDestructor:
HOURS? What root method did you use? I used adb method and flashing recovery took 30s once I figured out that I was trying to flash it with the wrong filename XD
[Nexus S Android Development] Maximilian Mary:
Yes, it should. Rom manager never seems to correctly reboot into recovery for me. I just boot into the bootloader (volumeUp+power) and select recovery from there. Keep in mind that any custom recovery may not survive a reboot unless you rename /etc/install-recovery.sh to /etc/install-recovery.sh.bak .
[Nexus S Android Development] zyonee:
Just compiled j_r0dd's latest source with these small additions:

Added "Reboot bootloader"

Added "Advanced backup"

Moved wipe data/factory reset to bottom of wipe menu - less risk of accidental wipes

Add a new 'Show log' extended function. Could also be used to report last lines from log on error.

You can download it here.

Please note that the four additions above are NOT part of j_r0dd's repository, and you should not complain to him if any of these things aren't working. The rest is still his stuff. :)

Edit: Removed "Advanced backup", as it caused problems.
[Nexus S Android Development] Borky_16:
colour? :)
[Nexus S Android Development] zyonee:
Weird. I didn't change it, the source code (ui.c) says it's orange and when I tested it, it was something like blue/cyan. No idea why.
[Nexus S Android Development] Borky_16:
ohh mhmm but i like blue! :D to have another colour makes my phone even more custom ^^
[Nexus S Android Development] zyonee:
Whoever did download my build from few hours ago, please redownload. The "Advanced Backup" was screwing things up. It created individual md5 files for each partition and would mess up the restore process unless a single md5 file for all partitions was manually created. Because of this, I reverted that commit.
[Nexus S Android Development] brainmaster:
Is there any tutorial on compiling recovery?
[Nexus S Android Development] zyonee:
Start with finding a wiki for compiling cm7. Once you have that set up, you can compile the recovery individually.
[Nexus S Android Development] Southrice:
lol well, at first I was on 3.0.0.5 because rom manager had problems flashing 3.0.2.4, but I finally got it by fixing permissions. Then I decided to flash this but really wasn't familiar with adb or fastboot so I tried Maximiliam Mary workaround.

But all that did was kill my recovery and take me to the bootloader. Eventually after a few more tries it just got stuck on the boot screen. So I reflashed back to 3.0.2.4 and decided to use fastboot method. So I check adb devices to make sure my device is listed, and rebooted into fastboot mode, and did fastboot devices and for some reason its not listed, so I couldn't fastboot it at all. So I tried updating the google usb driver but to no avail. Eventually I successfully flashed it and still no idea how i got my device to get listed in fastboot mode. ;)
[Nexus S Android Development] simms22:
j_r0dd..

thank you for the carebear version. i was missing it from my nexus one days :D
[Nexus S Android Development] jorim.tielemans:
Where did you get that? And you're running version 4.0.0.8?? :eek:
[Nexus S Android Development] Ok_Kaleidoscope5109:
does anyone run into a bug occasionally in j_rodd's custom version where the power button does nothing and leads to a blank screen with the cogs for clockwork? I end up having to do a battery pull -_-
[Nexus S Android Development] SA-07:
Yeah but it lasts a second ;)
[Nexus S Android Development] Southrice:
i want this! :d
[Nexus S Android Development] fleischbanane:
How can I change the picture in the recovery?
[Nexus S Android Development] zephiK:
thats good to hear :) deleting the files was starting to become annoying
[Nexus S Android Development] morfic:
Thanks.

Sent from my Nexus S
[Nexus S Android Development] fizzle101:
This also happens on my one.
[Nexus S Android Development] irishrally:
It's still much better than before. It's only annoying when yo do things like wipe dalvik cache and you don't get returned to the "reboot system now" screen. Clicking up once to get to "go back" works and still ends up being much less clicks.
[Nexus S Android Development] j_r0dd:
I will see what caused it to stop. Weird since i didn't even mess with the key codes. I am so used to using the physical buttons I never noticed.
[Nexus S Android Development] j_r0dd:
UPDATE:

back button now works properly as well as toggle recovery menu with menu & home. v2 available in OP.
[Nexus S Android Development] mazodude:
The new link goes straight to the mediafire homepage

or is it just me?
[Nexus S Android Development] j_r0dd:
link should be working
[Nexus S Android Development] fosdos4790:
Does this work with all phones or just the ns.
[Nexus S Android Development] j_r0dd:
NexusS only
[Nexus S Android Development] brmayhem:
Works perfectly. Thank you!
[Nexus S Android Development] Gilg@mesh:
the first one worked, but second don't work, I only get black screen when trying to enter recovery... I have tried flashed several times now..
[Nexus S Android Development] j_r0dd:
Works fine here. You might wanna check the md5 of your download.
[Nexus S Android Development] simms22:
press the home button when you are in recovery, the menu will appear.
[Nexus S Android Development] Gilg@mesh:
did not work :)
[Nexus S Android Development] j_r0dd:
did you use flash_image of fastboot to flash this? have you double checked md5 of your download?
[Nexus S Android Development] Gilg@mesh:
I did as I always do, flash it through fastboot, never been a problem but now black screen :)

how can I check the md5, never done it before.
[Nexus S Android Development] j_r0dd:
on linux i use jacksum to check or generate md5 hashes. if you are using windows try http://www.softpedia.com/get/System/File-Management/MD5-Check.shtml
[Nexus S Android Development] Gilg@mesh:
I got 0B8283C91C4BC2D5E4F649285B4845CC, how does it help me? :D
[Nexus S Android Development] j_r0dd:
if it matches the md5 in the op it verifies your download is not corrupt. i do not understand why your phone only goes to a black screen. have you tried flashing back any of the older recoveries since you tried this?
[Nexus S Android Development] reddv1:
You can do that by splitting the recovery.img into a zimage and ramdisk by using disxda's android kitchen or something similar. The pictures would be under the Res folder in the ramdisk.
[Nexus S Android Development] droidance:
I'm interested as well. Please release :D
[Nexus S Android Development] TheBassman369:
Eh, My Little Pony is better.
[Nexus S Android Development] snandlal:
Would love for the OP to create a tutorial specific for the nexus s
[Nexus S Android Development] 265ada:
an easier way worked for me?

1. You simply find your cw download folder and find the rec img file copy its name by attempting to rename it then copy

2. then navigate to your modded cwr and change its name to the name you copied.

3. navigate to the cwm download folder and paste the newly renamed file no need to do any SU permissions stuff just leave cw as is in su

4. then open cw

5. flash the recovery from the top it will say what ever version you already have and the file name you copied

I SUGGEST USING ROOT EXPLORER FOR COPYING AND ECT.....

HOORAY NEW CLOCKWORK INSTALLED ENJOY

I just did this on my nexus s 4g just fine

Don't forget the thanks button!
[Nexus S Android Development] ShadowVlican:
worked nicely! except i didn't have to fiddle with the superuser stuff
[Nexus S Android Development] ancilary:
can some one help me to install this permanently on my phone?
[Nexus S Android Development] mntbkr:
The post above yours describes several different ways to do it, just pick one method. Also post #7 has a method of doing it from the terminal emulator on the phone, so you don't even

need a PC to do it. http://xdaforums.com/showpost.php?p=12009049&postcount=7

Good luck.
[Nexus S Android Development] snandlal:
Will this be updated to latest clockwork source?
[Nexus S Android Development] Ok_Kaleidoscope5109:
+1 to this.

BTW, where is the official non modded CWM? Is that even up to date? ROM Manager reports a 3.x.x.24 version or something
[Nexus S Android Development] :
I don't suppose it would be possible to have an option to backup the /efs folder?
[Nexus S Android Development] Spittal:
Works great!
[Nexus S Android Development] Ok_Kaleidoscope5109:
how do we get the latest version?
[Nexus S Android Development] bryan_hk:
Dearest,

You have done a great job!

Do you have the stock RECOVERY.img for undo the CWR so that it will not void my warranty?

Regards,

Bryan
[Nexus S Android Development] j_r0dd:
I have had zero time to add that and with all of koush's nandroid changes it is on hold and it might not happen from me since I am selling my NS. Just use root explorer and tar it up. No Rom should EVER be touching this. The only reason why one would and an example of this is VibrantMTD cm7 rom and the other galaxy rims because they changing the Samsung BML layout to MTD. The NS uses MTD already. If a rom screws up efs it is because he copied an updater-script that's not for the NS.
[Nexus S Android Development] j_r0dd:
There are other threads with the stock images. RomManager even has them.
[Nexus S Android Development] j_r0dd:
Wait till I compile it lol. Seriously though I will have them up later tonight. I have been neglecting this thread.
[Nexus S Android Development] bringonblink:
awwwww yeaaahhhhh
[Nexus S Android Development] bringonblink:
!

You know you can just zip it from /system/efs then store it in dropbox or something.

Safe as can be!
[Nexus S Android Development] Ok_Kaleidoscope5109:
thanks a bunch!
[Nexus S Android Development] Heeter:
High 5's all around!!!!!

Let's crack open a bud for this.

Thanks j_r0dd

Heeter
[Nexus S Android Development] j_r0dd:
alright 4.0.1.4 is now up. enjoy
[Nexus S Android Development] bringonblink:
cheers 10 char

EDIT

didnt realize but with MIUI you cant use the flash_image command in terminal.... just had to set up fastboot (which i was not lookign forward to because i had a horrible experience with it when i first tried to get it working...) to flash it.

everything went better than expected :D
[Nexus S Android Development] brainmaster:
You can use flash_image commands with my MIUI ROM.
[Nexus S Android Development] bringonblink:
Interesting,ishall be checking that out cheers

Sent from my Nexus S
[Nexus S Android Development] TheBurgh:
Running perfect on my NS4G. Thank you
[Nexus S Android Development] snandlal:
Thanks so much for this. Glad to see you keeping up with updated code. Keep it up!
[Nexus S Android Development] j_r0dd:
I trust fastboot so much more than flash_image. I know MIUI doesn't include the flash_image binary but you can very easily push it too the phone.
[Nexus S Android Development] Jwtiyar:
flashablle image exist ?

thanks.
[Nexus S Android Development] Maximilian Mary:
The nandroid status bar seems to have quit working.
[Nexus S Android Development] Southrice:
How convenient, good thing I flashed your ROM then :D
[Nexus S Android Development] bringonblink:
I noticed this too

Sent from my Nexus S
[Nexus S Android Development] j_r0dd:
I assume you are talking about the progress bar. It's not doing anything, in the stock clockwork 4.0.1.4 for the sensation either, when making a nandroid. Nothing I am worried about though.
[Nexus S Android Development] snandlal:
Works fine for me.......as long as .hideandroidprogress is NOT on the root of your sdcard.

Thanks again J_r0dd
[Nexus S Android Development] josehu:
Can I put it anywhere?
[Nexus S Android Development] dario3040:
It probably won't be read unless it's at the root of the SD card.
[Nexus S Android Development] josehu:
Oh, ok. Thanks for quick reply.
[Nexus S Android Development] NYYFan325:
Just flashed on my 4g. Thanks for the update, much appreciated!
[Nexus S Android Development] rejanmanis:
wow... incredible... i can explore my recovery with the capacitive button, rather than destroying my volume rocker button and power button anymore ^_^

Thx a lot dude...
[Nexus S Android Development] lvnatic:
I flashed the recovery via fastboot from a PC but when I select it from hboot the phone reboots and boots normally in the OS. I cannot acces the recovery anymore.