PDA

View Full Version : mission impossible - editing nk.exe


decebal
7th August 2007, 05:44 PM
cross posting from universal upgrading ... can someone kill the other thread ?

can someone assist me in changing the nk.exe in a way that allows me to change the deviceid from PU10 to HERM100

i succeded in hexediting the hk.nba from PU10 to HERM with the confirmation that Getdevice data recognize it as HERM
http://wiki.xda-developers.com/index...=GetDeviceData

there are 2 places in the nk.nba where the device type is found
00007074h: 48 00 45 00 52 00 4D ; H.E.R.M
00316c74h: 48 00 45 00 52 00 4D ; H.E.R.M

i need to get H.E.R.M.1.0.0 instead (6 bytes to insert)

00007050h: 2C 00 25 00 64 00 2C 00 20 00 4E 00 61 00 6D 00 ; ,.%.d.,. .N.a.m.
00007060h: 65 00 20 00 69 00 73 00 20 00 25 00 73 00 0D 00 ; e. .i.s. .%.s...
00007070h: 0A 00 00 00 48 00 45 00 52 00 4D 00 00 00 00 00 ; ....H.E.R.M.....
00007080h: 4F 45 4D 47 65 74 43 50 4C 44 5F 47 50 49 4F 28 ; OEMGetCPLD_GPIO(


after dumping the rom including the boot XIP i found that the nk.exe contains this data.

the reason to do it is to "help" bbconnect to recognize it as a hermes
anyone can assist me ?

StevePritchard
8th August 2007, 01:44 AM
Hi,

Just a thought - wouldn't it be easier to patch BB Connect to recognise the PU10. I would have thought it tricky to "insert" any bytes, and for nk.exe to work, but to shorten a string in a file might work by either terminating the shorter string with a 00 null byte, leaving it's full length intact, or if it's got a preceeding length attribute, then simply amend that to the shorter value, i.e. from 7 to 4?

Cheers,

Steve.