yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] paulobrien:
This morning, Koush and I have been working on / stumbling through getting recovery running on a Desire without using a PC for devices rooted with a test image. The same technique also applies to the Legend. Presenting...

fake-flash!

Fake-flash using a similar concept to the original root method, it launches a recovery image from the test image recovery, but instead of pushing the files from a PC, the files are extracted from an update.zip on the SD card. Here's how it works...

This is Recovery ROM which eliminates the need to have a PC to initiate Custom ROM loading process. Currently on a Rooted "Desire": you will need to put your phone in Recovery Mode (Power up phone while pressing Volume Down Key, then Select Recovery Option) and then Run a Batch file (eg. Recovery-windows.bat) from PC while phone is connected via USB Cable. This will put the phone on Customer ROM recovery/Loading Mode. Please check Paul's excellent methods found on MoDaCo. ClockWork eliminates this requirement of PC/Laptop.

If you have/Downloaded ClockWork ROM (Latest is 2.0.1.4), you can always copy this on you SD Card as "update.zip". While in Standard Recovery Mode (Power up phone while pressing Volume Down Key, then Select Recovery Option) Press "Up" Volume Key and Power Button. You will get Standard Android Recovery Menu. Load the update.zip. Once you do this ClockWork will show you the Custom Rom Loading Menus. From there you could load Any Customer ROM stored on your SD Card.

However, to make this simple, you should use ROM Manager Application which integrates everything together. With ROM Manager you could Select Custom ROM while the Phone is Running normally and Install them easily. To download ROM Manager and ClockWork ROM for different phones directly check:

http://www.koushikdutta.com/2010/02/clockwork-recovery-image.html

Preperation

Download the fake-flash update zip from one of the links below

Copy the update.zip to the root of your SD card (the name MUST remain as update.zip)

When you want to launch the recovery image

Turn on your device with 'volume down' pressed and select 'Recovery'

When the exclamation mark appears, press and hold 'volume up' then press 'power'

Select the second option, 'Apply sdcard:update.zip

That's it, ClockworkMod recovery should launch! :)

Neat eh?

DOWNLOADS

Just to caveat this initial release, we've yet to carry out extensive testing and you are constrained somewhat by the limitations of the stock kernel (e.g. no support for EXT4).

That's it for now... enjoy... i'll update this post as further advances are made. If you'd like to support Koush's work, consider buying 'ROM Manager Premium' from the Android Market.

P
[Desire Android Development] heartwork:
what the...? :D :D :D

awesome, guys!!!

does it work with all bootloader- versions?

Edit: works like a charm with hboot80!
[Desire Android Development] ikbentim:
That is amazing!
[Desire Android Development] darkenergy:
awesome!!!! i love xda and you guys always making my day :D:D
[Desire Android Development] MadMic:
Does this solve the USB brick issue? Would be legend if it did!!!

Excellent work tho - now can flash whilst waiting on the train :D
[Desire Android Development] fxone:
Working Great, thx alot
[Desire Android Development] darkenergy:
confirmed works great!

does nandroid backup & restore work from this recovery ?
[Desire Android Development] dread123:
tried nandroid backup but fails on md5 checksum? some error regarding partitions?- hopefully checksum not needed and should still be able to restore?

great work to all
[Desire Android Development] M4cr0s:
This is great! :)

Seems to work fine. Successfully flashed a different kernel using this. Only thing I found so far, if mounting usb, dropping a .zip onto the SD, then going back to flash, it haven't updated the SD-card file list, i.e. can't find the new file. Not exactly a major problem though. For first-timers it would be great with some explanation as to what keys to use, and that the "back"-key in fact goes back in the menu structure.

Mac
[Desire Android Development] solccp:
is it possible to make an SD-ext backup?

I just tried the nandroid backup,

but it said that it couldn't find /dev/block/mmcblk0p2...:confused:

great work!
[Desire Android Development] nbedford:
Also got the md5 checksum error on nandroid backup here, fyi: my sdcard is a single fat32 partition if that makes any difference

-Nic
[Desire Android Development] raptaqua:
dudes! great stuff, works perfectly! thank you!
[Desire Android Development] Qliratu:
Wow!!! thnx for this i rly hate the fact that i need to push files from my pc to the phone ;-)

One small step for man... one giant leap into.. ahh well i dont know

THNX
[Desire Android Development] lupin85:
paul is the man... ****in' genius:D
[Desire Android Development] snear:
Excellent news ,looking forward to updates
[Desire Android Development] JupiterDroid:
No more USB bricking;)) yayayayayayyyy

Just my luck i bricked yesterday, then brought my phone back from the dead;)))

Down with HTC

LONG LIVE XDA!!!!!

JD
[Desire Android Development] bananapie:
thx works perfectly:D
[Desire Android Development] Epedemic:
+1 on that
[Desire Android Development] AdamG:
any chance on getting the source so we can make a customized recovery?
[Desire Android Development] fxone:
I don´t know if its useful.

http://pastebin.com/JiX0gSHh
[Desire Android Development] milkybarkid:
Thanks for this :)
[Desire Android Development] sucramco:
I take it if I wanted to update the radio (of which I am still on the stock), I would just put it to the root of the sd and just hit update zip?

To some this may be a silly question, but to me obviously it is not.

Oh would this be same if I wanted to update the kernel?
[Desire Android Development] maxermaxer:
I got this message after pressing "volume up" and "power", and then choose "Apply sdcard:update.zip

Finding update package...

Opening update package...

Verifying update package...

E: Failed to open sdcard/update.zip (No such file or directory)

E: signature verification failed

Installation aborted

Can anyone help to see what the problem is? Thanks!!!
[Desire Android Development] Koush:
The zip isn't there.
[Desire Android Development] Ireas:
Just noticed that there is a v1.8.1.9 recovery update using the ROM Manager. Any special changed? :o
[Desire Android Development] oawalker:
got a question does this replace your other recovery, because you using it from you sd card??

Also can you fully preform a nandroid back up and restore properly on this???
[Desire Android Development] Ireas:
by "other recovery" do you mean the modaco one? no it does not replace it

and about nandoroid, backing-up the sd-ext partition seems to fail now, but the rest works fine.
[Desire Android Development] oawalker:
Thanks yea i am still using modaco one

yea i won't be using any partitions so everything should be fine

Thanks
[Desire Android Development] Rudolfje:
You might be better of using fake-flash now.

It's a lot easier (you don't need a computer) and with the modaco one you might end up USB-Bricked.
[Desire Android Development] Nekromantik:
yeah this is much easier.

Just need the ext fix and then it will be perfect.

I used this recovery to backup and flash froyo rom and then restore my Pays 2.1 ROM.

Worked like a charm altho the restore has got a few bugs like this morning after my alarm went off (alarm kloc app) and I pressed back to go back to home screen, it kept on showin the internet browser over and over no matter how many times I pressed back, then I had to press home and it reset itself back to home screen.
[Desire Android Development] The Professor:
Does anybody know how to format the SD card into ext and FAT partitions in this recovery? The options in the partitioning menu are not very helpful on that point. Do I have to do this manually on a Linux machine now?
[Desire Android Development] kimlindo:
I managed to re-flash yesterday, everything went well. It's just the partitioning of the SD Card that doesn't work. And I have no idea of which option to choose in recovery. :P

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

Sent via the XDA Tapatalk App
[Desire Android Development] Koush:
You can format the sd-ext partition by using the partitions menu in recovery. There is no FAT formatting though.
[Desire Android Development] Koush:
You can partition your SD card using ROM Manager. It is not built into the recovery for technical reasons.
[Desire Android Development] neoKushan:
Any word on when full ext backupping will be added to nandroid?
[Desire Android Development] Koush:
It works in the latest version of the recovery! I added ext3 support to 1.8.1.9!
[Desire Android Development] neoKushan:
Ohh fantastic! Sorry, didn't see it in any of the changelogs =)

I've noticed there's also a 1.8.2.0, anything nice in there?
[Desire Android Development] Koush:
Can you check if it works in 1.8.1.9? It might have been in 1.8.2.0 which is unreleased (only available in the experimental section so far). I can't remember at the moment!

Koush
[Desire Android Development] neoKushan:
Just tried it and got "Could not mount sd-ext. sd-ext backup may not be supported on this device. Skipping backup of sd" so I guess it is a 1.8.2.0 feature =)

FYI: My SD card is partitioned as 1gb ext3 then 3gb (remainder of the 4Gb card) as FAT.
[Desire Android Development] Koush:
Does desire have ext3 support built in? Can you try with the experimental 1.8.2.0?
[Desire Android Development] neoKushan:
I don't think the desire has built in ext3 support, but apps2sd is working fine for me. Anyhoo, I'm doing a 1.8.2.0 backup now, I'll let you know how it goes in a min (although I should point out that ROM manager claims I've got 1.8.2.0 yet when I reboot into it, it still shows up as 1.8.1.9, not sure if that's right or not?)
[Desire Android Development] sam.guppy:
No luck with 1.8.2.0 for me. Do I need to do anything apart from update in Rom manager.

Congratulations on this breakthrough, hope you can get it fully functional.
[Desire Android Development] neoKushan:
Same result here, no change. Not convinced I was actually using 1.8.2.0 though.
[Desire Android Development] Koush:
Hm, the version number would be on the bottom of the screen in recovery.
[Desire Android Development] neoKushan:
Yup and it definitely said 1.8.1.9 when rebooting into recovery, but ROM Manager shows 1.8.2.0.

I'll try an experiment.

EDIT: Ok, so I don't know if this is relevant or not, but when I switch between 1.8.1.9 and 1.8.2.0 using ROM manager, the update.zip on the SD card doesn't appear to change (checked the MD5 hashes on both files).
[Desire Android Development] squrl:
1.8.2.0 does not work at all. It just shows a phone icon with a red question mark an after few seconds the phone reboots.
[Desire Android Development] neoKushan:
It's experimental for a reason, I'm guessing =)

slightly off-topic, but I notice that when nandroid makes a backup or whatever, the images applied to the SD card seem to be off by about 1 hour (The phone's clock is definitely set correctly). Probably something to do with BST. Anything relating to the recovery or is it a bigger "issue" (Because it's not that big a deal, really) with the Desire itself?
[Desire Android Development] Koush:
K :) I'll figure out what's up. I don't even know if the experimental recovery button works properly on Desire at the moment... the recovery mechanism is completely different from what the other phones use, so there will be stuff broken here and there while I work out the details.
[Desire Android Development] neoKushan:
Well if you need any volunteers, I'm sure there's plenty of people here who are happy to test it for you, myself included =)
[Desire Android Development] scotch whisky:
ROM Manager 1.8.2.0 works as it should on my Desire running MoDaCo r3.1

apart from not seeing the ext partition.

"Could not mount SD-ext" when backing up.

version 1.8.1.9 cannot backup the ext partition either. Gives the same error message.
[Desire Android Development] Koush:
Alright, thanks. I'll see what the other recovery does and try to make it work.
[Desire Android Development] squrl:
Hmm that's weird, running MCR r3.1 too... Are you sure you're running 1.8.2.0?
[Desire Android Development] scotch whisky:
Yup certain. Just checked.
[Desire Android Development] neoKushan:
Does it definitely say 1.8.2.0 when you reboot into recovery or are you looking at Rom Manager?
[Desire Android Development] The Asgard:
Same problem here with the ext partition.
[Desire Android Development] sucramco:
Mine didn't update to 1.8.2.0, untill I selected it from the all clockwork recoveries and updated it. However rom manager does state it is using 1.8.2.0, but underneath it says the latest recovery is 1.8.1.9. Very odd.

Backup definitely does not backup any ext on the sd card.
[Desire Android Development] scotch whisky:
Yes. Mine is exactly the same.
[Desire Android Development] JonesWTF:
Yep, mine will only boot into 1.8.1.9 even though I've quite clearly flashed 1.8.2.0. Strange huh?
[Desire Android Development] qubz:
The install guide says -

"Copy the update.zip to the root of your SD card (the name MUST remain as update.zip)"

but the file I downloaded is named - recovery-clockwork-bravo.zip

Should I rename it as update.zip ?
[Desire Android Development] JonesWTF:
Yeah, just rename it to update.zip. Or go to the market and download ROM Manager. It's far easier to just use that.
[Desire Android Development] ieftm:
I've modified this recovery (1.8.20) to include ext4 support,

which will auto-load (along with the sd-ext automounting changes in fstab)

You can find my updated .zip here: http://www.shadowchild.nl/update.zip

@Koush: It's a rather ugly hack, but it works :) Maybe you'd like to incorporate these changes in your .zip.
[Desire Android Development] brianius:
unbelievable!!! Thanks so much guys - this is f*ckin awesome! :D
[Desire Android Development] globalm:
Hi

I have had no luck with this. I renamed update.zip in the root of my SD Card then copied in this modified update.zip. When I boot into recovery using ROM Manager, the recovery screen still says 1.8.1.9 and EXT is not recognised. Looking into the zip on the phone, I can see the EXT4 changes to MKFSTAB.SH though.

I notice that this enables EXT4 support. The clockwork recovery partitioning process creates an EXT2 partition. Does this matter? Do I need to upgrade this to EXT4? HOW?

What n00b error have I made?

Thanks.
[Desire Android Development] Koush:
Oh, I see. I didn't have the kernel modules. I thought ext4 was built into the recovery kernel. I guess not! I don't actually have this phone :) I'll put these changes into the next release.
[Desire Android Development] squrl:
The recovery itself wasn't the issue, it was the ROM Manager. I reverted from 1.8.8.7 back to 1.8.8.1 and it's working flawlessly. Still no EXT backup though.
[Desire Android Development] hanserson1:
with the patched update.zip above I could mount and wipe my ext partition in recovery which made my day!

Thanks a lot!
[Desire Android Development] globalm:
...and can you do a Nandroid backup which includes your EXT partition? I would love to know what I am doing wrong.
[Desire Android Development] ph0rce:
Replaced the update.zip & recovery-update.zip on my SD card with the file posted above, worked like a charm.

:)

Many thanks.
[Desire Android Development] Nekromantik:
do you just put the modified file in the root of the SD or in the clockworkmod folder?
[Desire Android Development] ieftm:
Just put it in the root of your SDcard.

I have to admit I do not use ROM manager. So I just boot the phone with

1. 'Volume-Down + Power' -> Recovery

2. 'Volume-Up + Power' -> Apply sdcard:update.zip

3. Tada. Clockworkmod recovery 1.8.2.0 with EXT4 support (and ext-backup works fine for me)
[Desire Android Development] Koush:
Hi all, I put a version 1.8.2.1 in the experimental section of ROM Manager. I think it has ext4 support now. Please check and let me know. I do not have a phone, so I can't test :)
[Desire Android Development] neoKushan:
Not seeing a 1.8.2.1 in my list, only goes up to 1.8.2.0. Is there a way of refreshing said list?
[Desire Android Development] nikosrs4:
does the latest version support ext4 only? or all others too? ext2?
[Desire Android Development] neoKushan:
Oh yeah, I noticed a small bug in Rom manager.

Under settings, the text for "Quick Backup and Restore" are reversed. So when it's ticked, it says "Progress bars are enabled" and vice versa, but the opposite is actually true.
[Desire Android Development] ph0rce:
Both, just to be safe!
[Desire Android Development] Nekromantik:
I put it in root of SD and tried wipe of EXT2 and it gave no errors so I assume its working.

Thanks.
[Desire Android Development] ph0rce:
It didn't work for me I'm afraid. :(
[Desire Android Development] ehrgeizz:
works fine but i can't parition sd card?!
[Desire Android Development] ieftm:
One more thing, koush, I included a reboot binary in my update.zip.

Could you add an option to the recovery binary to power off the phone? :)

I use that a lot. 'reboot -p'

Thanks! you rock. :D
[Desire Android Development] amjad_2020:
Thank you so much ^_^
[Desire Android Development] murdoch1:
where?

I have switched on advanced and still I cannot see 1.8.2.1 only see 1.8.2.0. I have purchased the premium version and still no joy. How do I get the latest?
[Desire Android Development] Koush:
It was under the experimental section of both free and premium. Since it is working properly, I have made it the stable recovery.
[Desire Android Development] globalm:
Hello Koush

I cannot understand how you are receiving reports that this version is working. It is NOT backing up the EXT2 partition. It reports 'Unable to mount.. this device may not support EXT2'.

It may well be working partially as some seem to report that EXT formatting is working but it is definitely NOT backing up.

In case this post may sound churlish - I would like to say a big thanks for all the efforts. It can't be easy without the phone!
[Desire Android Development] ph0rce:
I can also confirm that the latest update is not working, just downloaded it now & the nandroid backup fails on the ext partition.
[Desire Android Development] cemmel:
Thank you Koush

I just download latest 1.8.2.1 and ext backup working
[Desire Android Development] The Asgard:
Hi there,

I'm still having a problem although it could be because I created the ext partition with 1.8.2.0. Was this the issue with previous versions?

I'm getting the same issue with the latest when I try to mount the sd-ext, it says

E:Can't mount /dev/block/mmcblkOp2

(Invalid argument)

Error mounting SDEXT:!

I am trying to get A2SD working. I'm assuming I can use the Rom Manager to create and format this partition to the right type?
[Desire Android Development] globalm:
OK - we need to find out why some are working and some not. Here are some details of my phone for comparison. Perhaps you could post differences so we can determine the reason for the different behaviour.

My phone:

HTC Desire

Bootloader 0.75

Firmware 2.1-update1

Radio 32.30.00.28U_4.05.00.11

Kernel 2.6.29-bravo-mck-r1 paul@Paul-OBrians-iMac #2

Build Number 1.21.MCR.2 CLxxxxxx release-keys

Software Number MoDaCo Custom ROM r3.1 for the HTC Desire

Browser Version Webkit 3.1

ROM Manager Premium 1.8.8.7

Clockwork recovery 1.8.2.1

Can anyone for whom backup is working correctly please post the differences they find?

Could it be the MoDaCo ROM?

Thanks.
[Desire Android Development] neoKushan:
I just did a full backup with 1.8.2.1 quite successfully. It backed up the ext3 partition on my SD card with no issues. I'm a bit scared to try wiping and restoring but it seems to work.

I created the ext3 partition ages ago using a different recovery (I believe it was the one Paul released when he first rooted the desire), not sure how that factors into things. None the less, it all seems to work for me =)

Just need a bigger SD card, now!

EDIT: I'm currently running MCR3.1. Can't see it being the ROM itself (but I'm no expert). What way have you all partitioned the SD cards? Mine is 1GN ext3, then remainder (of a 4GB card) is FAT32. I know a lot of people have the opposite (FAT32 first, ext last) and such, to avoid a different issue with early APPS2SD.
[Desire Android Development] The Asgard:
Exactly same build except using Amer_bravox_V3_Exclusive
[Desire Android Development] The Asgard:
May be it's just not creating the partition correctly. I'm using Rom Manager to create the partition.
[Desire Android Development] globalm:
I believe ROM Manager creates an EXT2 partition and we have a report of success with EXT3. Could this be the issue? If the partition is created with ROM Manager (EXT2) it doesn't work but if created as EXT3 (or 4?) it does.

Can people please report success or failure along with their EXT type?

Thanks
[Desire Android Development] The Asgard:
How do you specify the type?

Not seen anything that refers to setting this up. I just assumed ROM Manager took care of this automatically after setting the partition up.

Or are you saying it just creates EXT2 and it up to you to convert it using another recovery method?
[Desire Android Development] cemmel:
I have a ext3 and i did backup successfully.

My phone:

HTC Desire

Bootloader 0.75

Firmware 2.1-update1

Radio 32.30.00.28U_4.05.00.11

Kernel 2.6.29-bravo-mck-r1 paul@Paul-OBrians-iMac #2

Build Number 1.21.MCR.2 CLxxxxxx release-keys

Software Number MoDaCo Custom ROM r3.1 for the HTC Desire

Browser Version Webkit 3.1

ROM Manager Free 1.8.8.7

Clockwork recovery 1.8.2.1
[Desire Android Development] globalm:
If you 'adb shell' and then issue 'mount', you will see the following report for the EXT partiton on the SD card.

/dev/block/mmcblk0p2 on /system/sd type ext2 (rw,noatime,nodiratime,errors=continue)

As you will see , it's EXT2 and this is created by Clockwork recovery by default with no way, as far as I can see, to change it or upgrade the partition.

I'm suggesting, while hoping someone more knowledgeable than I will confirm or deny, that the code change in the latest clockwork recovery enables EXT3 and possibly EXT4 but cannot manipulate EXT2.

I would like to get parted running to update the partition and test it but I don't know enough to do this :(

Any views?
[Desire Android Development] The Asgard:
Makes sense now.

Maybe the new version creates an EXT3 partition? So I would need to repartition my SD card for this to work.

Don't mind trying this again if this is the fix in the new versions?
[Desire Android Development] squrl:
EXT3, successfully backed up :) Thanks Koush!

Bootloader 0.75

Firmware 2.1-update1

Radio 32.30.00.28U_4.05.00.11

Kernel 2.6.29-bravo-mck-r1 paul@Paul-OBriens-iMac #2

Build Number 1.21.MCR.2 CLxxxxxx release-keys

Software Number MoDaCo Custom ROM r3.1 for the HTC Desire

ROM Manager Free 1.8.8.7

Clockwork recovery 1.8.2.1
[Desire Android Development] globalm:
Squrl

How was your EXT3 partition originally created?

Thanks.
[Desire Android Development] The Asgard:
OK. Just recreated the partitions with the latest version and still got the same issue. So it looks like it's just creating a EXT2 partition and not converting it.
[Desire Android Development] scotch whisky:
Absolutely fantastic.

Using the latest version of ROM Manager/Recovery I did the following this morning all from within ROM Manager

Backed up modaco r3.1 with A2SD +. (ext3)

Downloaded and Installed "IEF ShadowFrost" (FroYo implementation). Works very well by the way.

Backed up "IEF Shadowfrost"

Restored modaco r3.1 with A2SD +. Working perfectly.

All this without needing access to a PC or manually booting into recovery. What I haven't tried is creating an "ext" partition from ROM Recovery.

I AM MOST IMPRESSED. I CAN NOW EASILY SWITCH BETWEEN A STABLE MODACO ROM AND A NOT QUITE SO STABLE FROYO IMPLEMENTATION ALL IN A COUPLE OF MINUTES AND WITHOUT A PC.

YES - I AM SHOUTING.

Buy the premium version of "ROM Manager". You will not regret it.

Well done!