PDA

View Full Version : Delete bitmap in nk.exe ?


fireburned
24th March 2009, 10:18 AM
Hi,

I want to delete a bitmap file present in my original device XIP.
(i know how to port a xip from new donor xip for my device, so i know how to extract and rebuild it).

When my device boot, i can see a ms splashscreen, this image is in nk.exe i think, in xip, but i don't know where is the data block to remove it (i'm a noob in hex coding).

Could someone help me in this step ?

Thanks a lot in advance.

Attached files : nk.exe (already dumped from device xip.bin), xip.bin (if you want to dump it with xipport) and an image which resembles that of the boot of my device

fireburned
25th March 2009, 06:00 PM
Any idea please ?

the-equinoxe
25th March 2009, 09:18 PM
isn't that the welcomehead96.png ??
That one isn't in the nk.exe..

fireburned
26th March 2009, 03:18 PM
isn't that the welcomehead96.png ??
That one isn't in the nk.exe..

No, it's not welcomehead96.png, this files doesn't exists on my smartphone device (Vox).

I tried to replace nk.exe (650 Ko) with another nk.exe (320 Ko) from a chinese Vox rom, and on boot, ms splashscreen dosen't exists with this file.
So, i think a data block has been removed from nk.exe, and i want to know how (maybe hex).

Any idea ?

Ather
26th March 2009, 07:27 PM
afaik, the splash screens arent in the xips :o, they are in the SYS

but hey this is smartphone, never played with them ;/

fireburned
26th March 2009, 08:11 PM
afaik, the splash screens arent in the xips :o, they are in the SYS

but hey this is smartphone, never played with them ;/

So, why when i use nk.exe from a chinese rom in my xip, ms splashscreen disappears ?

On ATOM PPC, we can see a splash screen in nk.exe, see here :
http://forum.xda-developers.com/showthread.php?t=370023

But it doesn't work for me, i can't find BM6 value.

Any idea ?

the-equinoxe
26th March 2009, 10:47 PM
Have you tried Axe hex editor?
It has a mode in which you can view binaries as a graphic file (you have to play with zoom and with though to recognize the pictures.).
(only works if the images are raw bitmaps, but this mode has revealed a lot to me).

fireburned
27th March 2009, 11:00 AM
Thanks for this answer, i'll try and tell you.

;)

fireburned
27th March 2009, 04:58 PM
Oki, i installed AXE HEX EDITOR, and tried to open nk.exe (s000 and s002 files).

But i don't know how i can see a bmp block. Could you help me on this step ?

Thanks.

the-equinoxe
28th March 2009, 12:52 AM
Uploaded a screencapture of how I can see the BMP:
S002 contains the bitmap (I was very surprised to see a bitmap in the XIP, but then again, it is smartphone version of WM).

load the S002 file
Switch to grafical mode (blue G button)
Set Width to 480 (this is trial and error, but you will learn to see structures and estimate the propper width when seeing code if you use it a lot.
(and zoom out a couple of times)..
BTW colours aren't the real colours but just colours given to hex values.
This method is also good for seeing other structures in code.

Guess you can make an exe from the module, edit it with an pe-editor and then chunk it into modules again.

fireburned
28th March 2009, 05:10 PM
Thanks a lot, i can see bitmap now.

I tried to rec nk.exe to a file, but recmod.exe can't, i obtain an error and a little nk.exe file (less than 1Ko).

Do you know another soft to register a module to a file ?

Thanks again !

fireburned
1st April 2009, 02:55 PM
After some tests, i can replace bitmap with another (with an hex editor), so, i know the data block to remove in nk.exe.

But, if i delete the bitmap data block, my device don't boot.
Maybe, because of nk.exe size is different and i must edit something in tables ?

Could someone help me on this tep ?

Thanks.

fireburned
2nd April 2009, 05:12 PM
Any idea please, i can't find a solution. :confused:

Thanks.

fireburned
5th April 2009, 07:48 PM
Always blocked, any idea please ?

the-equinoxe
6th April 2009, 12:56 PM
Tried with all tools available, but couldn't rebuild this nk.exe
Normally you can re-assemble modules to a pe-file and vice versa, but the nk.exe seems to be an exception.
Deleting the whole bitmap would shift the whole module, that is why the device won't boot.


Maybe someone who does more with relocation tables etc (eg. the creator of g'reloc) could help you better.
This is out of my league.

Regards,

EquinoXe

fireburned
6th April 2009, 02:33 PM
Maybe someone who does more with relocation tables etc (eg. the creator of g'reloc) could help you better.
This is out of my league.

Regards,

EquinoXe

Ok, thank you.

Bye.