yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] devil-kin:
I've been looking more at the problems flashing the recovery image from the app.

First extracted the image from the zip, and then tried to flash it:

# erase_image recovery
# flash_image recovery recovery.img
flashing recovery from recovery.img
mtd: write error at 0x00000000 (Out of memory)
mtd: re-read error at 0x00000000 (Out of memory)
mtd: write error at 0x00000000 (Out of memory)
mtd: re-read error at 0x00000000 (Out of memory)
mtd: skipping write block at 0x00000000
mtd: write error at 0x00020000 (Out of memory)
mtd: re-read error at 0x00020000 (Out of memory)
mtd: write error at 0x00020000 (Out of memory)
mtd: re-read error at 0x00020000 (Out of memory)
mtd: skipping write block at 0x00020000
...

I have no idea how to interprete this "out of memory" error.

Reflashed it now through fastboot, which worked from the first time.

Also, a few "questions" for updates on the recovery:

* Would it be possible to remember the last used directory when using "flash zip from sdcard"? Would make life so much easier ;)

* Maybe you could move the backups from the clockwork directory to your own? That way it'd be easier to keep them separate. And looks better :D
[Desire Android Development] Nuno Oliveira:
I can't wipe cache and dalvik without getting stuck on HTC logo on boot.

Do you think this as something to do with the recovery?

HTC Desire

MIUI 1.10.7 D2EXT

Stock Kernel

Latest version of 4ext recovery, 2.2.7rc2
[Desire Android Development] madmaxx82:
Hmmm this is strange.

Please can you downgrade to 2.2.6 rc5?

I have pulled this version from the Desire Z and Nexus one because it made a few problems there.

It's perfectly fine for the other phones though.

As the Nexus and the Desire are so similar it might be possible

Please try 2.2.6 rc5 and report back if possible.

I will remove this version from the repo for the Desire as well now.

Solution (update) is underway :)
[Desire Android Development] madmaxx82:
I'll just check the return value, so it should also work the 1st time on older phones with more problematic partitions, as your idea was very good.

Doing that with install zip is possible but needs some work :)

It's a good idea!

Moving backups into 4ext folder I don't think is a good idea, because then people cannot switch easily recovery.

Also if you'd introduce that feature in one version, you couldn't use an older one without moving the directory manually.

This would be very confusing for some and adds complexity.. I don't think it's worth it just because of one folder.. also most people also have rom manager installed where this folder exits anyway :)
[Desire Android Development] expza:
Hi All.

Every time I run "File system check" for SDCARD (FAT32), it says I have errors. I then fix them, but the next time I run it after a reboot, it says there are errors again.

Could you please shed some light onto what errors exactly it's looking for, so that I can try fix them with an external PC program.

Thanks :)
[Desire Android Development] madmaxx82:
This check is extremely sensitive, it's enough to mount/unmount the sdcard to trigger it.

I need to change the text. Its usefulness is less in indicating if there are errors, than in fixing them if you suspect anything's wrong!

Doing the same check in for example Windows most often doesn't find any errors.
[Desire Android Development] Nuno Oliveira:
Downgraded to rc5, same problem.

Wipe cache and dalvik cache, reboot, stuck on htc logo for about 20 minutes, battery off.:(

Have to restore backup to boot the damn phone.

Guess it ain't a recovery problem...
[Desire Android Development] devil-kin:
Madmaxx: is the source of your recovery available anywhere? I'm interested in digging around in the sourcecode (and perhaps helping with some patches here and there)
[Desire Android Development] madmaxx82:
Sorry, it's closed at the moment.

No.. then it is really not a recovery problem :(

Are you maybe using a cmtd and have not patched recovery?

I don't think it is the problem because then you would also have problems restoring backups, but just to make sure.
[Desire Android Development] angusc:
Madmaxx,

What version of recovery should I now use with my desire? currently using v 2.2.7 Rc2 updated yesterday.

Sent with Desire.
[Desire Android Development] madmaxx82:
Hi!

It's not sure at all if 2.2.7 rc2 really makes trouble on the Desire.

It does however on the Desire Z. But that might be a very different issue (regarding offmode charging which isn't used on the desire).

I'm fixing that since yesterday and I'm about to release the update today.

So I'd wait for the update.. to be completely safe, flash 2.2.6 rc5.
[Desire Android Development] johno168:
Hey madmaxx,

2.2,7 rc2 has been working fine witg my desire. Used it to flash cm7 aftr fully wiping and partitioning my sd card
[Desire Android Development] teorouge:
I don't have this issue here. :confused:
[Desire Android Development] Droidzone:
Fully deodexed data2ext partition. Wipe dk= loop. Not a recovery issue.

TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
[Desire Android Development] Droidzone:
It's because dexopt kicks in before busybox runparts loads..

Non geeky advice: don't wipe dk on a fully deodexed Data2sd/ext ROM if dk is on ext

TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
[Desire Android Development] madmaxx82:
Thanks for clearing that up. I'm not familiar at all with any things 2sd.

It's just strange that it didn't happen with amon ra. Although Nuno Oliveira reported also that Amon Ra didn't delete the files :D

BTW: I cannot lazily unmount /data before a reboot, because as soon as I do that the system will crash, no matter if the reboot happens the same time (it doesn't reboot then).

This might not be an issue on all configurations, but it certainly is a problem and so I cannot do that... I hope syncing is enough ;)
[Desire Android Development] Droidzone:
Thanks for testing :)

In my ROM I've replaced the shutdown binary from htc, with my own bash script which then runs a lazy unmount, followed by an e2fsck, then calls the original htc binary. No crashes here, so probably there's something happening before the shutdown call happens.

Hopefully the sync will take care of things..I'll run some tests and check for the system clean state at boot after rebooting with recovery app.. Thanks again. :)

TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
[Desire Android Development] madmaxx82:
Indeed seems to not happen on every configuration.

I tried it using sync, then lazy umount and immediately calling toolbox reboot.

The system wouldn't reboot but stay there for 5-10 seconds followed by a reset. That wouldn't boot up fully anymore, although it seemed that it remounted /data since the bootanimation was shown.

I could patch toolbox for that.. but I'm a bit afraid of doing this, since this is installed on 9 different devices and so there are a whole lot of different roms and possible configs. Don't want to risk anything.
[Desire Android Development] Droidzone:
please don't bother.. :)

TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
[Desire Android Development] madmaxx82:
:D

It's really bad you cannot trigger the usual shutdown sequence by app. For that you would need to be signed as system app for the specific device from what I gathered.

Must be like that since rom manager also uses reboot binary for that.
[Desire Android Development] Droidzone:
Maybe a silly idea..but how about simply calling a bash script for that, which already has 777 permissions?

TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
[Desire Android Development] madmaxx82:
That wouldn't make a difference since I'm writing directly to the shell..

It's like calling a shell script :)

Edit: but you could send me your script and I can try it out on my phone! So we can make sure there is no misunderstanding on how.
[Desire Android Development] madmaxx82:
Version 2.2.7 RC3 with lots of fixes and some changes online :)
[Desire Android Development] Han-Droid:
HELP

I need help, guys! I messed up.

I was trying to switch to CM7 r2 - I had CM7 hboot before.

So I entererd 4ext recovery, did a nandroid backup.

I downloaded the "new" cm7 r2 hboot (I took the PB99IMG_cm7r2.zip and renamed it to PB99IMG.zip).

Then I updated to CM7/r2 - everything fine!

Now I wanted to enter recovery, wipe and restore (as it is told on alpharev's site).

PROBLEM IS: I CANNOT ENTER 4EXT RECOVERY !!?!?

First it read: "E:/..blabla cache/log blabalbla" not found

then "Preparing Boot"

OK, so I downloaded the (PB99IMG_2.1.3_RC2.zip) variant of this recovery(older version than latest) as stated in the 1st posting of this thread - still no success - I cannot enter recovery.

So what do I need to do? Get the old CM7 hboot and try to boot old rom?

Or get a recovery to work in order to wipe and restore?

I am desperate in my own noob-loop here..... :confused:
[Desire Android Development] bmonster:
Did you wipe everything before flashing your new Hboot?

If not flash your original hoot again, you should then be able to go into recovery and wipe everything, then flash your hboot.
[Desire Android Development] Han-Droid:
I had CM7 but cannot find it anywhere to flash it back on....?!?

and no, I didn't wipe before flashing hboot cm7 r2....

I am stuck at:

"Welcome to 4EXT Recovery v2.7.7 RC3

by Madmaxx82

Preparing boot.."

update:

solved! pheeww.... so I downloaded Bravo Downgrader and the old CM7 I found on the web.

Latest Android Flasher did the rest of it.

Of course THIS time I wiped everything BEFORE flashing the new CM7 r2....

then nandroid restore and all set....

thanks for pointing me to the "wipe"thing!
[Desire Android Development] bmonster:
No problem :)
[Desire Android Development] angusc:
Madmaxx,

I updates to v2.2.7 RC3 this morning, just tried to enter recovery from the 4ext control but only got to the HBOOT screen and no "Recovery" menu option. I thought "thats strange" so i powered off and then held down vol and power to re enter FASTBOOT mode and sure enough there is no "RECOVERY" option!

Do you know about this issue and should i revert back to v2.2.6 RC5?
[Desire Android Development] madmaxx82:
Hi!

No the version is ok, it is just it didn't get flashed properly.

I need to update the app to check for that.

In such a case, flashing it 2-3x in a row helps.

This can happen sometimes when there are already some more bad blocks on the recovery partition.

This can happen with any version.. it is completely unrelated to 2.2.7 rc3.
[Desire Android Development] Sebby:
madmax

i have send you a pm yesterday
[Desire Android Development] madmaxx82:
Yes, you want that I modify a script for you, but currently I have no time to do that because I need to upgrade the app.

Once I'm finished with the update I will look at it ;)
[Desire Android Development] Sebby:
oke no hurry:D
[Desire Android Development] angusc:
Thanx madmaxx, a bit frustrating but after 4 attempts it did boot in to recovery.

Sent with Desire.
[Desire Android Development] madmaxx82:
Yes, I can imagine :(

I will update soon ;)
[Desire Android Development] devil-kin:
Would it be possible to download the recovery from the website directly? (In case I want to flash it through fastboot, should it fail to update from the app)
[Desire Android Development] TheUntouchable:
you can download it with the App without flashing it
[Desire Android Development] devil-kin:
Yesss... but if you tried flashing it through the app, it didn't stick, you reboot to find out you have no recovery, I'm too lazy to boot again, download it, and then boot again to fastboot.

It's all about efficiency.
[Desire Android Development] erklat:
+1 on making .img publicly available :)
[Desire Android Development] Andreas75k:
Why don't you just go into the app settings and set it to additionally save the recovery.img to your sd card...?
[Desire Android Development] angusc:
I don't think you are understanding the issue that some of us have faced. We Do not have any recovery to be able to flash any .zip files so it does not help to download to the sdcard.

Sent with Desire.
[Desire Android Development] madmaxx82:
Yes, but with that setting enabled you always get the recovery.img on your sdcard, everytime you flash a version.

So if you ever installed 4ext recovery, you will have your latest recovery.img on your sdcard (not a zip file, the plain recovery.img)

If you never did it, then there is always the PB99IMG.zips on the 1st post.

Which will be updated, but in the meanwhile isn't it enough to be able to get a stable, earlier version if you don't have any recovery flashed and need one now?
[Desire Android Development] bmonster:
it should save the recovery.img on the root of your sd card if you select the option, then move it to your pc and use android flasher.

If its zipped, unzip it.
[Desire Android Development] ZeGuitarist:
Hey max! Quick question: 4EXT makes aligned partitions, I know this, but does it also create ext4 partitions with journaling disabled by default?

I think someone asked this before some time ago, but he was never answered. I'm just curious as to whether or not I need to recommend people 4EXTRecovery and a no-journaling script, or just 4EXTRecovery. :p

Cheers!
[Desire Android Development] Droidzone:
@madmaxx82, I was testing my Safe shutdown script before sending it to you...But it seems that the unmount of /data at shutdown fails...an unmount and lazy unmount too.. :)
[Desire Android Development] Teisemanden:
I'm having problems flashing this recovery. Installing through the app seems successfull, but when i reboot into recovery I'm still on clockworkmod. I tried extrating the .img file and flash it through terminal emulator, but it doesn't recognize the command "Flash_image", this could be because im S-ON?

Any ideas how to get this working? :)

Please excuse any obvious noob mistakes, I'm still learning!

Regards
[Desire Android Development] madmaxx82:
Hi, 4ext formats with journaling by default. I have yet to add an option to turn it off.

I can't use unsafe optimizations by default..

There is so extremely much todo, I hope to be able to integrate this feature very soon :)

Too bad there is no real init tab, thanks for trying though :)

Any system really should umount by itself automatically when going down.

Yes :( you need to be s-off for flashing to work.

You can only use fake flash that way..

Any chance you getting s-off?
[Desire Android Development] Droidzone:
Yup, Sense does auto umount by itself..But I was trying to do it just before system does it, so that I can quickly do an e2fsck at shutdown..Unfortunately it wont allow me to.. Bad, bad Htc binary :D
[Desire Android Development] Teisemanden:
It might be the time to get S-OFF now i guess :p i never really wanted it, mostly because my computer is hella instable with USB-connections, but i guess i'll use some other computer to S-OFF. Crossing my fingers for no brick :b
[Desire Android Development] madmaxx82:
Hehe this bad thing is killing you.

why didn't you put it into runlevel 6 in the first place :D

Everything coming from htc is bad nowadays :D

You will make it :)

*fingers crossed* :)
[Desire Android Development] blindndumb:
New metro style theme with retouched metro icons..

NEW METRO STYLE THEME WITH RETOUCHED METRO ICONS..

Best 4EXT Theme..LOOKS AWESOME

Black Rounded Header and ICONS for each option..

You will fall in love :):) Get Here
[Desire Android Development] madmaxx82:
Thank you very much (again :D )

Is anyone there with a more problematic device where flashing recovery previously failed sometimes?

I need to release the new apk shortly, but it would be great if someone could test it.

If noone where this previously failed is there at the moment, then it would be great if someone else with a Desire could test it once.

Thank you!
[Desire Android Development] Droidzone:
Sure. I can do that. I don't mind if it corrupts something either. Just shoot me a link. :)

TouchPal-d from my Desire running Starburst Classic Rom - 450 apps and counting. .
[Desire Android Development] madmaxx82:
Thank you VERY much!

I have sent you a pm :)
[Desire Android Development] Droidzone:
Works fine :)

TouchPal-d from my Desire running Starburst Classic Rom - 450 apps and counting. .
[Desire Android Development] madmaxx82:
Great! Thanks again! Update will be online then in an hour or so :)
[Desire Android Development] freak69ize:
Yeaaaaa the freak is back!! :D Hey Max.. been using my fone like im supposed to ( like a fone ) so havent had any reason to go into recovery but im still subscribed.. ;) :D

I see its been awhile by my sig.. 3 months i believe... hmmm better change that! lol
[Desire Android Development] bmonster:
Goto alpharev.nl ,its very easy to s-off your desire.

Just make sure you read everything 1st.

Good luck :)
[Desire Android Development] freak69ize:
Alparevx is really easy.. and im not computer savy at all. :D
[Desire Android Development] madmaxx82:
Yehaaa!! Freak's back :)

Long long time has passed :D

Biggest possible welcome :D
[Desire Android Development] madmaxx82:
New update: RC4 is online.

Disable progress indicators for tar backup/restore for a bit more speed.

Api extension for md5sum checks inside the app..

Please see changelogs inside the app for a complete changelog :)

New App features too: Check md5sums inside the app instead of in recovery (preventing reboots into recovery only to find out that the backup fails the md5sum check.)

This also prevents situations where you might have wiped before a restore and are now left without a working system (because the backup you wanted to restore fails the check).

Themes: You can now set the colour for the selection bar and also apply transparency to all colours used.

Feature for theme creators: setup all colours until they are how you want them to be and then export those settings to be used in your theme zip.
[Desire Android Development] Teisemanden:
Got it working after i S-OFF'd :)

Is it safe to restore a backup made with Clockwork and vice versa?
[Desire Android Development] freak69ize:
Sure! :) i have done it before
[Desire Android Development] Droidxda:
Nice work as always.

Thank you max

HTC Desire with Leedroid HD Port's inside. Sent by XDA App
[Desire Android Development] Macklegrey:
I finally decided to S-OFF my Desire just so I could use 4EXTRecovery ... because it looks so awesome!! :D Thank you Max!
[Desire Android Development] madmaxx82:
Thank you very much! :)

Sorry I had to release RC5, which -for the Nexus One, Inspire 4G, Desire HD, Desire and Sensation- is exactly the same as RC4.

In RC4 -on the myTouch 4G, Desire Z / G2 and Incredible S / 2- I had missed to include icons those devices display when being charged offmode.

It is exactly the same as RC4, but includes those icons for those devices.

For your device, this version doesn't change anything and is no real update.

Just if anyone wonders why there is an RC5.
[Desire Android Development] blindndumb:
New Token_Style_Smiling_Love_Theme OUT..

Check It Out :)
[Desire Android Development] Droidzone:
Hi again..a couple of suggestion for an already perfect app and recovery:

Scheduled backups-schedule daily, or on certain days per week,

Backup history count per ROM for scheduled backups, so that older backups are auto deleted when the count is exceeded,

Locale/tasker plugins, for backups.

Just suggestions for the ?Near future? :) Your app already gets a suggested name for backup, boots to recovery, does a backup and boot the phone again. Schedules should be not too tough? Don't know, I haven't done programming with api yet ;)

TouchPal-d from my Desire running Starburst Classic Rom - 450 apps and counting. .
[Desire Android Development] angusc:
Madmaxx,

I have a reoccurring issue with 4ext recovery.its been present for sometime but I was not 100% sure but now it has happened over 4 attempts I made to restore my NANDROID backup. I probably think it is more to do with the combination of my ROM and its delvik to sd. Maybe you can advise what info I can give you to help you review it.

Basically when I try to restore a backup from either within control console or directly from recovery the result is the backup restores but sound is not present so it affects my alarms and weather sound animations. Also music So probably media seems to be broken. The only way to fix it is to flash over the original ROM file then sounds are all back.

Any ideas? My ROM type is cool ace bravo v3.

Sent with Desire.
[Desire Android Development] madmaxx82:
Hey ;)

Really great suggestions! Also for interoperability with tasker et.c.

Put it onto my todo list for sure :D

Thank you!

Sorry for the late reply.

Please try wiping dalvik (if that works for your setup and rom without causing a bootloop) the next time you do that if this helps although I doubt that.

Then please try fixing permissions and see if that helps and tell me :)
[Desire Android Development] MajorTom_:
how can I uninstall this?

EDIT:

nevermind got it done.
[Desire Android Development] Droidzone:
Hey, wonder whether I can pass on a command to your app to install a particular zip (automatically) from another app/script :)
[Desire Android Development] madmaxx82:
Definitely :)

Will send you a pm!
[Desire Android Development] madmaxx82:
For future updates:

I'd also like to ask you and others about what you would like best for recovery:

Define your own parameters for ext4 formatting and tune2fs which could be set inside 4ext.prop and the app and could also be imported/exported and handed around..

Or let you define a configurable setting pointing to an own script recovery will run automatically instead of formatting on its own?

This second option might be a little bit riskier though (problem with sdcard where the script might reside et.c.)
[Desire Android Development] Droidzone:
A setting file for defining own parameters would be a great idea. Already I run my own mke2fs script within my updater script to format ext 4 if it's a new installation.. even over and above 4ext's format process.

Maybe this is a bad idea, but the config file can be moved around. If you make it reside in sdcard/4ext/, and if the user attempts to format /sdcard or repartition within recovery, you could move it to /tmp and move it back when the operation is complete.

Another suggestion to add an option within recovery menu to backup the current theme and to restore it. Even better, 4ext itself could backup the theme to/sdcard or /tmp when user attempts to wipe everything.

Last suggestion is radical, and I don't expect for a second that you implement it. :) I'm suggesting adding an option to create a new command within edify code to allow the Dev to change color of ui_print at will. Might involve a great amount of coding..just throwing it out there since you asked. You might implement something like setcolor("a","b"); where a is the foreground and b is background from an array of about 16 colors

ui_print would then print in defined or default foreground color

ui_cprint(""a","string"); would then implement an additional variable before the string, which takes the foreground color for the particular line

Of course, just a wild suggestion! Would be difficult, and would mean, we would have to use a special update binary compiled by you. ;)

TouchPal-d from my Desire running Starburst Classic Rom - 450 apps and counting. .