yashsingh1/xdaforums huggingface dataset:
[Bada Software and Hacking General] adfree:
What we know about *.img

Resolution is 480 x 800 Pixel (S8500/S8530).

"Level 1" :)

Find *.img with 1 Color...

I found black.

Then I replaced all files by same black Image...

"Level 2"

I need second Color... I think I know where to find... I think it will be white...

Best Regards
[Bada Software and Hacking General] adfree:
So I have now 2 Colors. Black and white, both are 480 x 800 Pixel.

If you compare both files you see around 391 Differences... hmm most Value:

F8/F0

:confused:

Please. I wish to find more 1 Color *.img files.

Maybe then users with more brain can find algo, or Tool exists to create these Pictures...

Best Regards
[Bada Software and Hacking General] adfree:
I think I know what it could be... maybe.

TIFF compressed Bitmap *.tif ... LZW Compression. :)

Maybe some Header changes...

Edit...

Several Compressions for TIFF exists... depend on Grafik Tool... :o

PowerOnOff.ini is 3 times in Wave... if different depend on Branding:

\Registry\

\Settings\Default\Registry

\SystemFS\Settings\PreConfiguration\Default\Registry

:cool: :D

All 3 files are not writeprotected. You could:

(A) Delete PowerOnOff.ini

Silence + no Animation :)

(B) Edit PowerOnOff.ini with other path to folder... maybe:

PowerOnAniImage0=/Mount/Mmc/PowerOnOff/Image/poweron_00.img

instead writeprotected folder

PowerOnAniImage0=/SystemFS/PowerOnOff/Image/poweron_00.img

Best Regards

Edited again. :)

Tested, yes it works. :cool:

I've changed path to Memory Card. Now I can play faster...

Very simple.

1.

Copy PowerOnOff folder to card.

Attention, if you choose subfolder, my path is only for Root... check exact folder or edit PowerOnOff.ini again.

2.

Copy my example to folder:

\Registry\
[Bada Software and Hacking General] lasentenza:
Nice how do you extract the bmp files?

Edit: look this video you will love ;)

http://www.youtube.com/watch?v=Er9fhJWNL70
[Bada Software and Hacking General] adfree:
http://www.megaupload.com/?d=Y65D7LR1

Here are 3 different Animations:

DREI

T-Mobile

PRT Poland

In combination with my modified PowerOnOff.ini you can easily switch between them. :)

@ lasentenza

BMP files taken from Language packs from bada SDK...

*.img but in this time Images and ready for open with WinImage... ;)

Best Regards
[Bada Software and Hacking General] psycoy:
... ... Friends IMG to edit the files and use them in the device I found this program that uses the QT ... thank by psycoy

http://www.4shared.com/file/weq4iPSk/Alcis_IMg_editor.html
[Bada Software and Hacking General] adfree:
@ psycoy

Please, can you upload 1 selfmade *.img as example?

I'm not smart enough to use your Tool.

*.img not open :confused:

And if I import an *.bmp and save... the result is not the same like valid *.img.

Please enlight my little brain. :D

Thanx in advance.

Best Regards
[Bada Software and Hacking General] adfree:
I've reduced PowerOnOff.ini to only poweron_00.img and poweroff_00.img.

So I can faster Brute force... :)

And I see better result...

Attention!

Once I made an mistake in PowerOnOff.ini and result was Bootcycle. :o

So please only try at your own risk.

Best Regards
[Bada Software and Hacking General] lasentenza:
Thanks a lot adfree, you find 3 animation boot ;)

Just try it changes from bada animation :rolleyes:

You are making great job ;)
[Bada Software and Hacking General] adfree:
http://www.megaupload.com/?d=T5YF5620

I've "fixed" T-Mobile Animation, as they "forgot" 4 Pics from bada Animation... :rolleyes:

Maybe this was the reason, why second folder only used.

I've added Orange Poland Animation...

So I have 5 Animations (second T-Mobile not included).

Maybe someone know more Animations?

Eplus?

O2?

There are many Operator... i hope.

S8530 also possible, as same Resolution.

Best Regards

Edit 1.

Found more Animation(s)

Found third Color... Now I have black, white and red.

But red is complete different and double in size... strange...
[Bada Software and Hacking General] adfree:
New attempt.

Created 480x800 black and white Pic and converted into QMG (Theme).

As I thought Idle_Background.qmg converted into IdleWallpaper.cbm could help.

But, QMG is to small... only 1 KB

CBM is tooo big... 1,5 MB :eek:

My black or white *.img only 51 KB...

Best Regards
[Bada Software and Hacking General] KrazyKong:
adfree this is cool. I've been wanting to get to the bottom of the .IMG file mystery for awhile now.

The Alci's IMG Editor program is a mod tool for the GTA San Andreas game. I tried opening a .IMG file and it didn't work for me either. It's possible theres no connection with the QMG .IMG files at all. I'm not sure what the QT reference is in relation to.
[Bada Software and Hacking General] adfree:
Found 2 new Animations from American Firmware:

Entel and ViVo

Found 4. color... blue

Hmmmm... maybe Algo is in amss.bin.

CP could mean Call Processor...

Maybe this is Qualcomm Compression... :confused:

Best Regards
[Bada Software and Hacking General] mylove90:
hi adfree

can you please give me instructions on how to use these animations???

i've stune, samsung wave , no sd card

is it possible without the card???

thanks in advance
[Bada Software and Hacking General] mylove90:
ok i understood what i needed

i changed the 3 ini files with \Media\Poweronoff and added the files in the phone's internal memory

so yes i did it without a memory card and used t-mobile files

now i want vodafone's files because my network is vodafone

can someone upload them for me????
[Bada Software and Hacking General] luciferps:
please do something for small wave phones

i.e wave s5250 etc thanx~
[Bada Software and Hacking General] mylove90:
sure i will do anything you want just i can't use trix as it is not working on my laptop

also i donot have a wave s5250 to do some expermints on it

sorry man if i can i will
[Bada Software and Hacking General] lasentenza:
Yes, thanks :D

Adit: no, it was not this one :(

This one is very nice tool but only can use gif file, I don't know how to convert jpg file to gif without lost quality :(
[Bada Software and Hacking General] psycoy:
for test use my CSC http://www.multiupload.com/CLKER00QNK only on GT-S8500 with Bada 2.01109

this is my example animation ... by psycoy

[YOUTUBE]http://www.youtube.com/watch?v=FleD5izIhRA[/YOUTUBE]
[Bada Software and Hacking General] DevilM:
polaris lose office? hub? rec?
[Bada Software and Hacking General] psycoy:
Polaris inside in the shp file ...
[Bada Software and Hacking General] lasentenza:
Don't know why, I used tool for making animation but it is distorted :(

I use gif animated 480*800 what is the size we have to use?

if someone can help, thanks in advance ;)

Edit: I found it's 160*480, thanks ;)
[Bada Software and Hacking General] DevilM:
psycoy ma dove sei finito... qui aspettiamo la tua rel full con le news XD

psycoy but where you end up here looking forward to your full rel with news XD

sull' ultimo firmware di lasentenza/ Fosamobi ho problemi su hub premium attivo e push ... perche' ? ultimo vodafone ... ( dice scaduto )

on 'last firmware I lasentenza/ Fosamobi problems of active hub and push ... why '? Vodafone last ...

consigli ?

advice?
[Bada Software and Hacking General] lasentenza:
What is the problem with the socialhub? it works, but you do not have Gtalk, Yahoo messenger and MSN.
[Bada Software and Hacking General] DevilM:
PREMIUM, PUSH ... :p Italy

Hub premium activation expired
[Bada Software and Hacking General] lasentenza:
You sure it's premium and not basicplus?

You have MSN, gtalk and yahho messenger?
[Bada Software and Hacking General] DevilM:
YES ,

...

http://innovator.samsungmobile.com/...il.view.do?platformId=13&cntsId=10084&nacode=
[Bada Software and Hacking General] adfree:
http://www.imgtec.com/

IMG :)

http://www.imgtec.com/factsheets/powervr/POWERVR_Insider_SDK.pdf

I think this is the Inventor for *.img files...

Best Regards
[Bada Software and Hacking General] ho1od:
.img is LZ16 (16 bpp BMP) compressed file, i think :)
[Bada Software and Hacking General] KrazyKong:
Adfree, did you ever get a chance to extract the poweron img's from XXJB6?

Also since Dokugogagoji deleted most of his posts in here, does that mean we won't be getting a full 400x800 img converter? It's a shame we still can't view the IMG file format yet.

Finally Adfree, how did you manage to extract files from the JB6 .CSC? I've tried using Trix, Wave Remaker etc., and can't get anywhere on this file. I'd love to crack it open to see what themes and wallpapers I can get, as well as the poweron/off images, battery images and .wav files.
[Bada Software and Hacking General] mylove90:
He used Hex-editior :D

It is so crazy to extract about 52 files using hex-editior but i think he did it for us :)

Also it took a lot of his time

Best Regards
[Bada Software and Hacking General] adfree:
Big step forward. :cool:

b.kubica thanx :cool:

http://xdaforums.com/showpost.php?p=20553876&postcount=386

Implemented in Wave Remaker:

http://xdaforums.com/showpost.php?p=20607381&postcount=393

:cool:

Thank you.

So only full compression left. :)

Best Regards
[Bada Software and Hacking General] KrazyKong:
Haha you beat me to it adfree. Yes this is massive as finally we can at least view .IMG files. Hopefully we'll be able to export them, import them and view them outside of firmware container files. Fingers crossed on that part.
[Bada Software and Hacking General] adfree:
Now we can make our own Animation. :cool:

http://xdaforums.com/showpost.php?p=20852473&postcount=407

Big thanx. ho1od

Happy New Year.
[Bada Software and Hacking General] oSandmaNo:
worked once (currently on bada 2.0)

after that bootcycle :P
[Bada Software and Hacking General] KrazyKong:
ho1od is pumping out new updates to Wave Remaker. adfree, I found that really nice boot animation from JB6 in the S8500XXJDB rom for both the poweron and poweroff sequence :). I still think this looks better than the Bada boot animation.
[Bada Software and Hacking General] Vloriani:
pleas help me only ,i try with bada 2.01 but only apps ERROR, and in finally say: UPLOAD DATA TO PC. i try with this pfs. , but repeated UPLOAD DATA TO PC? can u help mee

---------- Post added at 02:38 AM ---------- Previous post was at 02:32 AM ----------

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

i have a same problem ,i try with bada 2.01 ,but only apps error. and repeated UPLOAD DATA TO PC. can u help me
[Bada Software and Hacking General] adfree:
Sorry. Not tested yet in bada 2.0... :o

Maybe now also higher protection against *.pfs files...

Maybe only CSC Edit work...

Best Regards
[Bada Software and Hacking General] chetto106:
After transforming the bmp to img everything seems perfect, but WaveRemaker cannot show the image and gives an error. Why is this happening?

[EDIT] Forget it! The important thing is that it works
[Bada Software and Hacking General] hero355:
I have same problem with you .

How you resolved this problem ?
[Bada Software and Hacking General] r_22009:
How to extract files from RC1? its not possible via fs_shell in trix
[Bada Software and Hacking General] hero355:
Wave Remaker 0.2.7 version, this version,you can see .rbm files :D
[Bada Software and Hacking General] r_22009:
The latest version is 0.2.2 here http://xdaforums.com/showthread.php?t=1028714

would you mind uploading this version?
[Bada Software and Hacking General] st0rmi:
@r_22009

You can find version 0.2.7 here: http://xdaforums.com/showpost.php?p=21512019&postcount=436 ;)
[Bada Software and Hacking General] k8500:
Is there any chance that anyone has Dokugogagoji's original source code and is willing to share with us? Or, maybe some other source code doing the same? Conversion to IMG in Wave Remaker is buggy and leads to problems.
[Bada Software and Hacking General] adfree:
I have no idea what exact happens with Dokugogagoji and why he left XDA... :o

And also no idea, why he removed all his posts... :o :(

Also no idea what exact not work with Wave_Remaker...

Only idea I have.

Upload source Pics...

Write your model you are trying for ?..

Or write Resolution... 480 x 800 Pixel for instance...

Then we could try. :D

For me. I have removed Animation, as I saw that maybe RAM/Memory decreased...

Best Regards
[Bada Software and Hacking General] k8500:
Alright, thank you! See the attached archive, there are 2 BMP files included which would make nice stills for the boot animation. Now, if just use Wave Remaker to convert to IMG, I get faulty IMGs. This is the case for all images converted to IMG in Wave Remaker.

These faulty IMGs cannot be viewed in Wave Remaker FW View - you'll get a error message about access to protected memory. They can be used as boot/shutdown logo, but there are display errors. You might have to look very closely, but the the pixel in the upper-left corner is always of a very wrong color, and the surrounding pixels are also affected, the degree of which might even vary with each boot/shutdown. It gets pretty bad with complex images.

Now, this should be very easy to solve. I'm pretty sure there's just something wrong with how the first few pixels are processed by Wave Remaker, or there is something wrong in the way the first few bytes are written. Just an idea for now, though. Ho1od seems to be MIA, so we can't ask him.

Additional info: I'm trying to properly convert these images for S8500, 480x800.
[Bada Software and Hacking General] adfree:
Give me 24 hours... I will try my best...

Resolution seems okay... 480 x 800 Pixel.

Will do some tests... report later...

Best Regards
[Bada Software and Hacking General] simonwil:
@K8500

Are you trying to change the initial splash screen or the animation?

I have used your BMPs to do both with no problems.

I have attached the two bitmaps as .img files and the converttowave.exe command line file used to create the animation images.

For the splash screen I used waveremaker V 2.9.5.2. Drag rc2 file into waveremaker rc2 view tab, click on Image->load image and select your bmp. Then select the image you want to change in the left hand panel and click on image->change image. Then save the rc2 file and flash it.

Edit: BTW - I didn't get any errors and don't see any image problems.
[Bada Software and Hacking General] ho1od:
I will be looking for this problem.
[Bada Software and Hacking General] k8500:
Thank you, I'll also do some of my own.

Thank you! But, the two IMGs attached also cause protected memory errors in Wave Remakers FW view. Have you tried booting up and shuting down multiple times? The gravity of the error varies with every boot/shutdown. I do think that I now know what causes it.

Big thanks to you! I think the cause of the problem is in the LZ compression, where the first or the first few LZ codes point to some area in memory outside of the actual image. That would also explain why the gravity of the error is varying, and it would explain the protected memory error.
[Bada Software and Hacking General] adfree:
Sorry for later answer...

I have tried to use Windows Paint to convert...

into PNG, then into 24 bit BMP...

Result is nearly 1 :1, only few Bytes in Header...

Then I take again Wave_Remaker_NEW_2_0_7_1.exe...

Pic 1 and 1a is 1:1 same..

2 and 2a little difference in header... but same result if I want few...

Newer/Latest Wave_Remaker not tested yet...

Maybe again test with latest Version... later...

Best Regards

Edit 1.

Wave_Remaker_NEW_2_0_9_3.exe create same...

I use way over Utils tab---> File Encode...
[Bada Software and Hacking General] k8500:
I tried with v0.2.6, v0.2.7 and v 0.2.6.5 - same result with each. With ConvertForWave I get IMGs that can't be viewed in Wave Remaker, but don't generate any errors when used as PowerOnOff still. ConvertForWave degrades quality a lot, though, the result is pixelated.
[Bada Software and Hacking General] k8500:
Tried some more, results up till now:

Wave Remakers output leads to display errors, sometimes worse (crashes)

ConvertForWave works, but generates pixelated low res results

ConvertForWaveLite (f.e. included in BadaStudio X) does not work

RAW 5-6-5 works, but only for the two 480x800 images included in RSRC2

Especially the last one is strange - why does it only accept these two images and nothing else? :-/

BTW, I could write a small command line converter app myself, but first I'd have to understand how the IMG format works. B. Kubicas assembler code (for decoding) does not help because I don't understand assembler.
[Bada Software and Hacking General] ho1od:
unsigned int IMG_decompress(unsigned char* src, unsigned char* pWrite){

unsigned int count_in1=0, count_in2=0, count_write=0;
unsigned char *src1, *src2, *pRead;
unsigned int data=0, count=0;

unsigned int offset = (GET_HALF(src, 0)<<0x8 | GET_HALF(src, 0)>>0x8) & 0xFFFF;
src2 = src + 2 + offset;
src1 = src+2;

if(offset & 1 != 0){ //Если установлен младший бит, т.е. офсет нечетное число

offset = (offset & 0xFFFE) | ( GET_BYTE(src, 2) << 15 ) | ( GET_BYTE(src, 3) << 23);
src2 = src + 4 + offset;
src1 = src + 4;
}

do{
data = GET_HALF(src2, (count_in2<<1));
SET_HALF( pWrite, (count_write<<1), data );
count_write++; count_in2++;

}while((data & 0x20) == 0);

SET_HALF( pWrite, (count_write - 1)<<1, (data&~0x20) );

if(offset > 0){ // Если старший бит не установлен

do{

unsigned short a = BYTE(src1, count_in1);
unsigned short b = BYTE(src1, (count_in1+1));

pRead = pWrite + ((count_write - ((a & 7)<<8 | b))<<1);

count = 0;

do{
SET_HALF( pWrite, (count_write)<<1,	GET_HALF(pRead, count<<1));
SET_HALF( pWrite, (count_write+1)<<1, GET_HALF(pRead, (count+1)<<1));
count_write+=2; count+=2;
}while(count < (a>>4)-2);

while(count < (a>>4)){
SET_HALF( pWrite, count_write<<1,	GET_HALF(pRead, count<<1));
count_write++; count++;

}

if((a & 8) != 0){ // если 4й бит не установлен

do{
data = GET_HALF(src2, (count_in2<<1));
SET_HALF( pWrite, (count_write<<1), data );
count_write++; count_in2++;

}while((data & 0x20) == 0);

SET_HALF( pWrite, (count_write - 1)<<1, (data&~0x20) );
}

count_in1+=2;

}while(count_in1 < offset);

}
if(offset & 1 != 0){
data = GET_HALF(src2, (count_in2<<1));
SET_HALF( pWrite, (count_write<<1), data );
count_write++; count_in2++;
}
return count_write;
}
[Bada Software and Hacking General] k8500:
Thank you! Could you add the defines for SET_HALF, GET_HALF and BYTE?
[Bada Software and Hacking General] adfree:
Maybe this depend on Format... as other Users are able to create valid Animation...

Few Custom Firmware have own Animation...

Created with Wave_Remaker. :good:

So we should find best Source/Input Format...

PNG and JPG is also supported...

Sorry I have not enough time and only 1 brain... :o

Best Regards
[Bada Software and Hacking General] ho1od:
#define BYTEPOS(val,pos) ( ( ( val ) >> ( ( pos ) << 3 ) ) &0xFF )
#define BYTE( data, pos ) (*(unsigned char *)((data)+(pos)))
#define HALF( data, pos ) (*(unsigned short *)((data)+(pos)))
#define WORD( data, pos ) (*(unsigned int *)((data)+(pos)))

#define GET_BYTE( data, pos ) ( ( (unsigned char *)( data ) )[pos] )
#define GET_HALF( data, pos ) ( ( GET_BYTE ( data, ( ( pos ) + 1 ) ) << 8 ) | GET_BYTE ( data, ( pos ) ) )
#define GET_WORD( data, pos ) ( ( GET_HALF ( data, ( ( pos ) + 2 ) ) << 16 ) | GET_HALF ( data, ( pos ) ) )
#define SET_BYTE( data, pos, val ) do { ( (unsigned char *)( data ) )[pos] = val; } while ( 0 )
#define SET_HALF( data, pos, val ) do { SET_BYTE ( data, ( pos ) + 1, ( ( val ) >> 8 ) & 0xFF ); SET_BYTE ( data, ( pos ), ( val ) & 0xFF ); } while ( 0 )
#define SET_WORD( data, pos, val ) do { SET_HALF ( data, ( pos ) + 2, ( ( val ) >> 16 ) & 0xFFFF ); SET_HALF ( data, ( pos ), ( val ) & 0xFFFF ); } while ( 0 )
[Bada Software and Hacking General] k8500:
Alright, thanks to ho1od I do now understand the IMG format. Proof of concept is attached.

The application converts 24 bit RAW images (RGB, interleaved) to valid IMG files. Valid means: Can be viewed in Wave Remaker without any problems and do not cause any errors when used as boot animation either. There's still a catch: Resulting IMGs will be uncompressed and therefore quite large (~750kB per image). This will lead to trouble when making a long boot animation with many frames.

Usage of RAW24toIMGu (command line):

raw24toIMGu < (name of raw file) > (name of img file)

You may use IrfanView to convert any image to RAW (24 bit, RGB, interleaved).

Although this would do as a solution for me, I will now work on the compression. Just give me a thanks so that I know that my work is appreciated :).

EDIT: I also know why the RAW images in RSRC2 work as replacement. I think the source code is easy enough to figure out for anyone interested.

EDIT2: ... and there was a small bug that lead to display errors when using in the phone. It's fixed now, but if you downloaded it before you might want to redownload it (attachment is replaced with newer version).
[Bada Software and Hacking General] k8500:
Valid IMG converter with compression!

Alright, this one was a hell of a mess, but somehow also fun. The attached application converts 24 bit RAW images (RGB, interleaved) to valid IMG files. Valid means: Can be viewed in Wave Remaker without any problems and do not cause any errors when used as boot animation either. Other than the last one it will also apply compression to the converted IMGs. Converted IMGs are smaller than those created by Wave Remaker and - more important - will not cause errors.

Usage of RAW24toIMGc (command line):

raw24toIMGc < (name of raw file) > (name of img file)

... or just use the included batch file batch_raw24toimgc.bat to convert all RAW files in the current directory.

You may use IrfanView to convert any image to RAW (24 bit, RGB, interleaved).

Ho1od, you may use my code to replace the existing routines in Wave Remaker - it should be pretty easy to fit it into the current structure. Also, ho1od, you were working on RBM image compression. If you should need a hand with that, I'll offer to help.
[Bada Software and Hacking General] ho1od:
I can not keep Wave Remarker. I do not have Bada phone. I can give you all the source code of the program for its further development.
[Bada Software and Hacking General] k8500:
H010d, you got PM. I'll also write it for everyone else: I'd be honoured to have the Wave Remaker source code, but keeping up the development, being the maintainer of the code, is a task too big for me right now. I'd only need the source code to write some more command line utilities of my own (which I'd share, of course).

On the other hand, stopping the development of Wave Remaker would be pretty sad. It's such a great tool. I'd even say that, without it, I wouldn't have ever taken up CFW development for Samsung Bada. So, I'd suggest an open source release, and, at the same time, the search for a new maintainer here on XDA. I'd contribute, of course, but maintaining is too much.

Anyways, however ho1od will decide: Big thanks for all you did for the community! Also, I'm very sad to see you leave the community, but live goes on.
[Bada Software and Hacking General] ho1od:
http://xdaforums.com/showpost.php?p=30415145&postcount=652
[Bada Software and Hacking General] rafaelvasconcelos:
OHHH thanks bro, this work fine in my wave y. i create many animationss. :D

this like droid http://www.mediafire.com/?3tit5h5cc11t4km

this like galaxy S http://www.mediafire.com/download/qbszqtp3se8gbmu/animation5380K_Galaxy+S.app
[Bada Software and Hacking General] mylove90:
i got my hands on a vodafone firmware and extracted its boot animation files

here are the files for anyone want them
[Bada Software and Hacking General] adfree:
U700 use also this Format.

Will try if compatible...

Best Regards
[Bada Software and Hacking General] adfree:
Taken from U700.

Only Resolution differ. 240 x 320 only...

But you can see the Pictures.

So this Algo is not new... maybe other Samsung handsets use this too.

And maybe for one model solution exists?

I saw in Flash Decompiler somewhere Zlib compressed...

Maybe this is an Picture compression Format from Adobe? :confused:

Best Regards
[Bada Software and Hacking General] KrazyKong:
Yeah it's an annoying mystery that's for sure. Surely someone, somewhere has worked out how to view these images. Even if we can't edit them, at least viewing them would be a good step forward.