yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Jeffro64:
Maybe it was just an update for the Nexus... no 1.7.1 for dream yet LOL.
[G1 Android Development] Jeffro64:
Question... Is it possible to lower the size of the .png in kb but not lower the 320 x 480 size?

I'm guessing you would just have to lower the quality... but how is that done??

The reason I ask is because i've made up a bunch of .png's but a lot of them are in the 400kb in size range and I would like to get them in the 150kb size range so I can use a boot and boot1.
[G1 Android Development] Daneshm90:
U cud use a png optimzer, from my testing i found that as long as the image isnt lowered to 8-bit, it still works. So try 24-bit and that should reduce ur png size but not the res.
[G1 Android Development] Jeffro64:
Which png optimzer do you use? I found a couple of online ones but they don't seem to work right LOL.
[G1 Android Development] Daneshm90:
Em none in particular, have u tried in photoshop just saving as a 24bit png ? tht shud lower the size. Otherwise ive tried pnggauntlet, roptipng....theres a few, pick n choose :)
[G1 Android Development] Jeffro64:
Hmmm... Tried pnggauntlet and didn't have much luck. I'll have to install photoshop and try saving as 24bit...paint doesn't give that option.

Thanks for the help!
[G1 Android Development] Jeffro64:
LOL.... What I don't get is how an 80kb jpg saves as a 436kb png.:confused:
[G1 Android Development] Jeffro64:
OK... Got photoshop installed and figured out how to do them as png-24 and that seems to be the trick. Thanks again for the help!:D
[G1 Android Development] Daneshm90:
No problem. Photoshop kicks ass in every aspect it was meant for :)
[G1 Android Development] Jeffro64:
I just wish I knew how to use it to it's full potential.:D
[G1 Android Development] idroid84:
Can someone pleaseeeeee post a recovery ROM with the fish please! :) (HTC Hero G2)
[G1 Android Development] Daneshm90:
Lol, do it urself, thats the whole point ;)

Unless ur on a linux machine ?
[G1 Android Development] idroid84:
Well if people are modding the recovery systems with different images people might aswell share so people can download them. Acctually saves time if LOADS of recovery roms are been customized but thanks. :D
[G1 Android Development] Daneshm90:
Lol true, perhaps a "Post Your Recovery" thread is needed in the themes forum ;)

Im using the fish one but im on a 32a magic, so no good to u :D
[G1 Android Development] idroid84:
I think these forums need cleaning up a bit.

We need a Theme/ROM/Recovery et all main thread or somewhere to 'combine' all data that people have posted! Maybe a profiles section!
[G1 Android Development] Jeffro64:
Hey Dane, the flash_image does work now, flashed another recovery then went back to the one I had. :cool:
[G1 Android Development] Daneshm90:
Ah k cool, btw the nexus thread for this is here.
[G1 Android Development] rjmjr69:
Whats the odds this works for the evo on clockworks recovery?
[G1 Android Development] Daneshm90:
Well, the non-colormod script will work for any recovery (except for clockwork, unless things have changed since last-time where his recovery did not have a background and was plain black). The color mod however i will have to compile evo's recovery with my patches. I mainly focussed on amonra's recoveries when i made this since he made full use of the background images when flash roms/main screen. I'll try to do it 2moro.
[G1 Android Development] rjmjr69:
REALLY?> Wow your the man thank you so much.. Do you need the recovery image?
[G1 Android Development] izzy001:
How do i use this thing? I put boot.png in the right folder and the recovery.img in the old folder. But when i run it gives me errors.
[G1 Android Development] Daneshm90:
if they are ownership uid errors ignore them. The resulting image in new folder should work fine.
[G1 Android Development] floomat:
Colormod just dont work for me:

i have a GSM Hero.

i maked 2 pngs, non-inerlaced, 24bit and renamed to boot.png and boot1.png

put them into the place-image-here folder,

put the recovery.img (amonra 1.7.0.1) into the old folder.

starting the colormod type in all the values for color (for example: 51,204,0)

at the end i got following errors:

but recovery.img is now in the new folder but is unchanged.

so what im doing wrong? :D
[G1 Android Development] Daneshm90:
What version of windows are u running ?

Also try relocating the whole "recovery customizer" folder to another place on ur system (also try to remove any "spaces" in the folder name).
[G1 Android Development] floomat:
im running win xp. have no other to try on it.

i tried that before, i thought the path would be too long.

it still gives the same errors
[G1 Android Development] Daneshm90:
Hmm k, never tried it on xp but haven't heard issues from other users. Can u try right clicking the script and running as administrator and see if that yields any positive results ?
[G1 Android Development] floomat:
on XP there is no button like that :D

its allways running in administrator-mode.

i will try it at home, but there is XP too.
[G1 Android Development] Daneshm90:
I c lol. K try it on ur other machine and let me know lol, i have a xp machine lying around here somewhere, i'll try it on there if it doesn't work on ur other machine as well.
[G1 Android Development] floomat:
tried it and got the same error at home too ..^^

baaad luck.

here is the full log:

Sorry for the German at the end, its because i'm from germany.
[G1 Android Development] Daneshm90:
K. Send me the recovery + 2 images + hex values and i'll create n send one 2 u now. As for this issue, I'll get back 2 u when i get a chance to try this on a xp machine lol.

Zip it all up.
[G1 Android Development] floomat:
k thanks :) i will send you the link via PM.
[G1 Android Development] Jeffro64:
@Daneshm90

Hey bud been awhile... I'm still enjoying your recovery engine! Just wanted to stop by and say hey and see if you know there is a 1.8.0 recovery out now?:D
[G1 Android Development] BookCase:
Can't get this to work...

Running Windows 7, followed directions..keeps booting to the regular recovery, my image won't take. Tried color-mod & non-color-mod.

Maybe someone can do it for me?

boot.png

boot1.png

Was trying to make the font purple like in the pic (or close to it).

I'd be very grateful.

Update: No replies? Hmmm. Did anyone get this to work?
[G1 Android Development] ali_loly10:
it keeps giving me errors could i give you the recovery,the images, and the hex values

and if you may do it for me

i'll thank you very much for that
[G1 Android Development] amazinglarry311:
just wanted to thank daneshm90 again for this tool.

It's surprisngly useful for a number of projects, mostly revolving around adding or replacing files found the ramdisk.

As an aside, this tool will also work to unpack and repack boot.img for ramdisk manipulation as well. just rename boot.img to recovery.img and start the process with nocolor mod. disregard all errors, when the script pauses enter the other\recoverychanger folder to view/change the ramdisk. resume the script and the new image is ready to be flashed.

Very useful for manipulating recovery images to contain new scripts/functions (if you want to get further into that you can use the preinstalled commands and tweak them to do other things, fun to experiment with)

as well as building recovery images that will charge with the phone turned off. a lot of newer devices with clockwork mod have a bug in which when the phone is plugged in and off, recovery boots itself automatically.

I first manipulated these images by hand in liunx and the process took a bit of time. now it's a few clicks.

for info on different mods and functions you can perform with this tool drop me a PM

again THANKS daneshm90 - there are a few other "kitchens" online that claim to unpack and repack boot images and such, and all that i have used fail to repack the ramdisk into a cpio that is bootable. yaffs expert in the market does not work as well. awesome work and still useful now without ra recovery.
[G1 Android Development] xillius200:
XD na lol dw yep had something I came new to before and it was funny to them when I didn't know what it was XD
[G1 Android Development] domenukk:
Just checked... paint didn't support png on xp... vista and up only. :D

No problemo, dude. if you will ever stumble upon this thread again, however... you will laugh probably :P
[G1 Android Development] Jeffro64:
I hear ya... Just tried one in paint and it worked, but not sure I edited the size right cause it looks to big. I went 320 x 480 like it said in the OP.
[G1 Android Development] Jeffro64:
Yeah it does in vista... no worries, I was already laughing.:D
[G1 Android Development] xillius200:
0o lol it may look big on the computer but when it's on the phone size will look different it will look ok on the phone :)
[G1 Android Development] Jeffro64:
Just viewed on the puter..
[G1 Android Development] xillius200:
ah lol flash it should be ok :) lol no more help now XD im off
[G1 Android Development] Jeffro64:
LOL... Thanks!

Thanks to all of you that helped and laughed!:D
[G1 Android Development] Daneshm90:
Ok so it doesnt work on nexus recoveries. Their layout might be different have to look into it. Btw guys if the image is too big your recovery will NOT boot. So try to lower the quality of your png's if that happens :)
[G1 Android Development] HighRidas:
did everything step by step but there is no recovery in the recovery/new folder its empty
[G1 Android Development] cihan978:
Helpp

Hi guys, im new to this so can you help, i did everything correctly ( i got the new recovery image) but i cant flash it, like how do i do it. plz help:confused:
[G1 Android Development] xaueious:
Thanks for this script :)
[G1 Android Development] Daneshm90:
Np ;) Glad you got it working
[G1 Android Development] philosophics:
followed steps. nothing resides in the recovery/new folder.

boot.img is indexed 320x480

recovery renamed to recovery.img

running batch file with admin rights.

What do I do wrong?
[G1 Android Development] Daneshm90:
It should be boot.png not boot.img
[G1 Android Development] philosophics:
That's what I meant. My bad.

boot.png

recovery.img

Not working...

Any ideas as to why???
[G1 Android Development] Daneshm90:
Hmm can you open command prompt, then drag my bat file and run it ? you can then see whats causing the errors. let me know
[G1 Android Development] philosophics:
Subroutine Cwd::cwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 407

.

Subroutine Cwd::fastcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::getcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::abs_path redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm lin

e 812.

Extracting ramdisk ...

Subroutine Cwd::cwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 407

.

Subroutine Cwd::fastcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::getcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::abs_path redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm lin

e 812.

10231 blocks

scripts/ensure_boot_extracted: line 25: syntax error near unexpected token `fi'

scripts/ensure_boot_extracted: line 25: `fi'

/../recoverychanger/menu: line 8: scripts/prompt_build_boot: No such file or dir

ectory

Found BOOT-EXTRACTED folder, checking contents ...

Found boot.img-ramdisk

Found boot.img-ramdisk.cpio.gz

Found boot.img-kernel

Found mkbootfs.exe

Found mkbootimg.exe

Building ramdisk-boot ...

Working folder found

Attempting to determine kernel base address ...

Using base address of 0x19200000

Building newBoot.img ...

newBoot.img created

Copying as boot.img to working folder

total 4624

-rwxr-xr-x+ 1 Intrigue ???????? 4732928 2010-05-09 00:54 boot.img

Removing BOOT-EXTRACTED folder ...

C:\Users\Intrigue\Desktop\Android\Dream\Amon Ra\Cygwin\other\bin>copy C:\Users\I

ntrigue\Desktop\Android\Dream\Amon Ra\Cygwin\\other\recoverychanger\WORKING_0508

10_015232\boot.img C:\Users\Intrigue\Desktop\Android\Dream\Amon Ra\Cygwin\\recov

ery\new\recovery.img

The system cannot find the file specified.

C:\Users\Intrigue\Desktop\Android\Dream\Amon Ra\Cygwin\other\bin>

Well why not?
[G1 Android Development] Daneshm90:
Hmm k gotta update my script a little. For now however, if you go inside other/recoverychanger/working you'll find a boot.img. just flash it as you would do a recovery image. So try one of the commands on first page.
[G1 Android Development] philosophics:
Ya, now my device won't go past the g1 screen...

Luckily, I was able to fastboot my original back and now device boots again...
[G1 Android Development] Daneshm90:
Its just named boot.img. Itll still flash only recovery.
[G1 Android Development] Daneshm90:
Hey do me a favor download this new batch file and replace the old one. It should fix some problems.

http://tinyurl.com/3xb88ms
[G1 Android Development] philosophics:
Subroutine Cwd::cwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 407

.

Subroutine Cwd::fastcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::getcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::abs_path redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm lin

e 812.

Extracting ramdisk ...

Subroutine Cwd::cwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 407

.

Subroutine Cwd::fastcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::getcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line

812.

Subroutine Cwd::abs_path redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm lin

e 812.

10231 blocks

scripts/ensure_boot_extracted: line 25: syntax error near unexpected token `fi'

scripts/ensure_boot_extracted: line 25: `fi'

/../recoverychanger/menu: line 8: scripts/prompt_build_boot: No such file or dir

ectory

Found BOOT-EXTRACTED folder, checking contents ...

Found boot.img-ramdisk

Found boot.img-ramdisk.cpio.gz

Found boot.img-kernel

Found mkbootfs.exe

Found mkbootimg.exe

Building ramdisk-boot ...

Working folder found

Attempting to determine kernel base address ...

Using base address of 0x19200000

Building newBoot.img ...

newBoot.img created

Copying as boot.img to working folder

total 4624

-rwxr-xr-x+ 1 Intrigue ???????? 4732928 2010-05-09 01:26 boot.img

Removing BOOT-EXTRACTED folder ...

C:\Users\Intrigue\Desktop\Android\Dream\Amon Ra\Cygwin\other\bin>move C:\Users\I

ntrigue\Desktop\Android\Dream\Amon Ra\Cygwin\\other\recoverychanger\WORKING_0508

10_015232\boot.img C:\Users\Intrigue\Desktop\Android\Dream\Amon Ra\Cygwin\\recov

ery\new\recovery.img

The syntax of the command is incorrect.

C:\Users\Intrigue\Desktop\Android\Dream\Amon Ra\Cygwin\other\bin>
[G1 Android Development] philosophics:
Double post. I apologize...
[G1 Android Development] Daneshm90:
I got it. Here

Try
[G1 Android Development] Daneshm90:
Honestly i dont know then, because it works flawlessly here. Maybe try deleting the whole folder and re-exract the 7z. And then copy the updated file you downloaded.
[G1 Android Development] philosophics:
I will try that out and let you know mang.

thanks for the help.

I would like to do this on my own cause that's just how I am.

Here is the pic I want to use...
[G1 Android Development] Jeffro64:
I got it to work on my Win 7 Laptop... but it did something wierd at first. I followed all the steps and it put a .img in the recovery/old folder, and my .png in the place-image-here folder and ran the .bat.

Then I flashed it to my phone and booted into recovery, but instead of the .png I thought I was loading it was the sample boot.png (that has a white background and says Try) from the other/recoverychanger/place-pic-here folder.

So I deleted the sample .png and copied my .png to that folder naming it boot.png like the other one was named. After I did that I ran the .bat again and flashed the new recovery.img and it was the .png I wanted.

Did I do something wrong or miss a step the first time?
[G1 Android Development] Daneshm90:
Yea theres a mishap in my script. It works sometimes though, ill upload a new one by early tomorrow. As for the guy above can you please link me to the recovery you use ? thanks
[G1 Android Development] philosophics:
I replaced that .png as well.

At least you can get something to appear the recovery/new cause that don't happen for me...
[G1 Android Development] Jeffro64:
Me or the guy above me? If me then I use the amon-ra 1.6.2 recovery.
[G1 Android Development] Daneshm90:
K i g2g guys, just wait till 2moro, ill update the script and things should be tidied up :) Cya
[G1 Android Development] Jeffro64:
I couldn't get it to work on my vista desktop for some reason... but it does work on my laptop running Windows 7.
[G1 Android Development] philosophics:
Vista is a joke. No offense to you or any loyal users.

I have a win7 desktop and laptop but neither worked so I would assume the OS you use (REFERRING TO VISTA AND 7) wouldn't cause a difference.

Don't Vista and 7 share the same command prompt/input commands?

Off topic

Anyway, I tried to delete everything and re download, didn't work. Got some new batch files, deleted old and replaced, didn't work.

Deleted everything but the new batch file, re downloaded, didn't work.

I've tried everything I can think of but to no avail...

The link to my recovery is in my sig...
[G1 Android Development] Daneshm90:
Ok i have put up the updated script. Please try and let me know, i will later try it on different OS to see where the problems are occuring.
[G1 Android Development] philosophics:
Ok, a lot more happens with the batch file when it works, but still not 100%

The recovery it makes can boot but it gives this...

Any ideas?
[G1 Android Development] Daneshm90:
K that happens when your boot.png is not 320x480. Please make sure it is. For trying purposes try the one i posted in the OP.
[G1 Android Development] Z҉A҉L҉G҉O̚̕̚:
I use WINdows 7 and I didn't have any problems using the tool.
[G1 Android Development] Daneshm90:
Yea im starting to think it only works on windows 7. Gotta try it out on xp now. Dont understand why xp is having problems :(
[G1 Android Development] themapleboy:
shame this doesn't work on mac, guess i gotta buy a netbook (event the bootscreen creator is for pc)
[G1 Android Development] philosophics:
I have verified the boot.png is 320x480 many times. Its less than 150kb as well.

I have win7 and that os alone...
[G1 Android Development] Daneshm90:
Can you pm me the output u get when u run command prompt, drag the batch inside it and run it ? thnx
[G1 Android Development] Ohsaka:
I'll look through the script and try to help.

For starters, it might be better to just use *.png and *.img for the initial filenames in the batch file. I had copied in "recovery-RA-dream-v1.6.2-blue.img" which made the script fail. I know I know...read directions... but theres always room for being user friendly...:)

move %~dp0place-image-here\*.png %~dp0other\recoverychanger\PlacePicHere\
move %~dp0recovery\old\*.img %~dp0other\recoverychanger\WORKING_050810_015232\boot.img

I will keep testing this on XP and try to work out the bugs if any.
[G1 Android Development] Ohsaka:
The perl script to extract the kernel isnt working. The file it extracts is only 68 bytes. I'm not a big fan of debugging Perl.. hopefully someone else can pitch in here.

Osaka@Hornets /recoverychanger/BOOT-EXTRACTED
# ./extract-kernel.pl boot.img
Subroutine Cwd::cwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 407.
Subroutine Cwd::fastcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 812.
Subroutine Cwd::getcwd redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 812.
Subroutine Cwd::abs_path redefined at /usr/lib/perl5/5.10/i686-cygwin/Cwd.pm line 812.

Osaka@Hornets /recoverychanger/BOOT-EXTRACTED
# ls -l boot.img-kernel
-rw-r--r--+ 1 Osaka root 68 2010-05-09 22:37 boot.img-kernel

Perl script:

#!/usr/bin/perl -W
use strict;
use bytes;
use File::Path;
die "did not specify boot img file\n" unless $ARGV[0];
my $bootimgfile = $ARGV[0];

my $slurpvar = $/;
undef $/;
open (BOOTIMGFILE, "$bootimgfile") or die "could not open boot img file: $bootimgfile\n";
binmode(BOOTIMGFILE);
my $bootimg = <BOOTIMGFILE>;
close BOOTIMGFILE;
$/ = $slurpvar;

my($bootMagic, $kernelSize, $kernelLoadAddr, $ram1Size, $ram1LoadAddr, $ram2Size, $ram2LoadAddr, $tagsAddr, $pageSize, $unused1, $unused2, $bootName, $cmdLine, $id) =
unpack('a8 L L L L L L L L L L a16 a512 a8', $bootimg);
my($kernel) = substr($bootimg, $pageSize, $kernelSize);

open (KERNELFILE, ">$ARGV[0]-kernel");
binmode(KERNELFILE);
print KERNELFILE $kernel or die;
close KERNELFILE;
[G1 Android Development] philosophics:
SOLVED

Alright so I remote accessed my desktop. Why? Because a power surge destroyed my monitor.

With the help of Comodo stopping everything in it's tracks until I can veiw whats trying to do what and either say yes you can or no you can't, I was able to slow EVERYTHING down so I could read everything that was going on.

I first noticed that the menu called for the WORKING folder to be empty as well as the placepichere folder.

In other words, don't do anything with /other cause it's just there to make things work.

Second, I noticed that your recovery.img has to be re-named to just that.

recovery.img

Finally, and in my opinion, most importantly, your image not only has to be 320x480, but it has to be a flattened. NOT INDEXED. DON'T INTERLACE YOUR .PNG EITHER!

Make it RGB and right-click on the layer to flatten the image.

This was the problem I was having. But if it were correct from the beginning, I would not of wrote this Solution for EVERYONE... I hope

Thank you for the good work. For all who want what I have, you can find this pic is in the thread. Look...
[G1 Android Development] Jeffro64:
Glad you got it working!

Mine is 320 x 480 but not sure what you mean by RGB and Flattened?
[G1 Android Development] Z҉A҉L҉G҉O̚̕̚:
Why buy an entirely new computer when you can use Boot Camp or Virtual Box?
[G1 Android Development] philosophics:
That is a pretty good point mang. You could get it for free too if you looked hard enough, and like to be a pirate...
[G1 Android Development] philosophics:
Photoshop, Image/mode/rgb

right click on the layer/flatten image

save-as .png/non-interlaced
[G1 Android Development] Jeffro64:
Ahhh ok... I don't have photoshop installed yet but I will soon as we just bought it.
[G1 Android Development] Z҉A҉L҉G҉O̚̕̚:
Yes,

like

a

pirate

...:rolleyes:
[G1 Android Development] Jeffro64:
Here is one that I did on my laptop with Windows 7 just for a test...
[G1 Android Development] Ohsaka:
I cant get it to work on XP. Would you be so kind as to share a copy of this recovery image?
[G1 Android Development] Jeffro64:
Sure...here ya go. Putting it on the recovery made it darker as you can see but it still looks good.

To anyone that uses this recovery... I am not responsible for anything that may go wrong when flashing this.
[G1 Android Development] philosophics:
Wow, not only did I forget like 7 words after watching that, but I lost the game as well.

I want the last 5 minutes of my life back, can I get a refund?