[HELP] Unable to replace a dll in ROM - Windows Mobile Development and Hacking General

Hi Experts,
I am working on modding the stock WM6.5 dialer by editing 'tapres.dll.0409.mui'. I have been successful in modding and skinning the complete dialer, but the dialer only works when this modded file ( tapres.dll.0409.mui) is cooked in the ROM. If this file is used to replace the stock one in the ROM after flashing ( using Total Commander, rename-replace), the dialer fails to load.
I am using Unsigner-> Restorator/PE Explorer-> mSigner( Privileged Developer Certificate).
Doesn't this method work on files in 'ROM' ?
The SDK certificates are also added in the ROM.
Any solution for this issue ?
cheers,
rishi2504

Hi folks,
79 views and no response... should I assume that there is no solution available for my problem ?
cheers,
rishi2504

are you using the new certificates from 2010? All previous certificates have been expired on 31/12/09.

RAMMANN said:
are you using the new certificates from 2010? All previous certificates have been expired on 31/12/09.
Click to expand...
Click to collapse
Thanks for your response. Yes, I m using the new certificates. I have also replaced other DLLs using the same signer tool. Only this mui file causes a problem if replaced on a running ROM( even if I don't modify the stock mui file, and simply unsign->sign->replace in ROM using Total Commander).

rishi2504 said:
Thanks for your response. Yes, I m using the new certificates. I have also replaced other DLLs using the same signer tool. Only this mui file causes a problem if replaced on a running ROM( even if I don't modify the stock mui file, and simply unsign->sign->replace in ROM using Total Commander).
Click to expand...
Click to collapse
the certificates are also installed on the device's certificate store? other than that I have no clue.

RAMMANN said:
the certificates are also installed on the device's certificate store? other than that I have no clue.
Click to expand...
Click to collapse
Yes, but not during cooking using provisioning xml. I have simply copied them to the device the certificate installer installs them.
thanks anyway..

rishi2504 said:
Yes, but not during cooking using provisioning xml. I have simply copied them to the device the certificate installer installs them.
thanks anyway..
Click to expand...
Click to collapse
if u want to replace..u can try resco explorer.Better build a cab file

hdubli said:
if u want to replace..u can try resco explorer.Better build a cab file
Click to expand...
Click to collapse
The replacement was never an issue, I simply rename the original file using Total Commander and replace it. But the new replaced file doesn't load. It loads only when it is cooked in the ROM. Also, had already tried the .cab option, but that will only help in replacing the file, not in loading it (which is the real issue).

Related

How To make a .cab file ??

Can somebody tell me how to make a cab file ?
Is there a special program for it ?
Thanks
Check out www.ocpsoftware.com
WinCE CAB Manager
Use WinCE CAB Manager
Re: WinCE CAB Manager
xda2jojo said:
Use WinCE CAB Manager
Click to expand...
Click to collapse
Where is it??? Could you send it to me please. My emai: [email protected] OR [email protected]
WinCE CAB Manager
WinCE CAB Manager homepage
http://www.ocpsoftware.com/
OCP CAB Manager sucks!!!
OCP CAB Manager sucks!!!
It is only good for opening other .cabs, if you want to extract something out of it... and it costs lots of MONEY for such a crap...
Use Cabwiz instead. It is free as it is part of the PocketPC SDK.
You will need to create .inf file, where you can specify, what should be copied, to which location and so on.
below is zipped version of one of my apps as a sample. )
Once you have your .inf ready, simply drag and drop it onto CabWiz icon...
Here (http://www.sundialsoft.freeserve.co.uk/cabinfo.htm) is a perfect guide, how to write .inf files for CabWiz....
)
buzz
Re: OCP CAB Manager sucks!!!
buzz_lightyear said:
OCP CAB Manager sucks!!!
It is only good for opening other .cabs, if you want to extract something out of it... and it costs lots of MONEY for such a crap...
Click to expand...
Click to collapse
I'm not sure where you got the idea that WinCE CAB Manager can't create new CAB files. It certainly can, and it's a whole lot easier than Cabwiz.
Try this new cab making utitlity. Its suppose to bypass most grueling issues of cab making... Havnt tried it out yet as I just downloaded 2 mins ago. its new from....tim kremer
sdlopez83 said:
Try this new cab making utitlity. Its suppose to bypass most grueling issues of cab making... Havnt tried it out yet as I just downloaded 2 mins ago. its new from....tim kremer
Click to expand...
Click to collapse
This was surprisingly good, definalty easier to use than cabwiz.exe.
sdlopez83 said:
Try this new cab making utitlity. Its suppose to bypass most grueling issues of cab making... Havnt tried it out yet as I just downloaded 2 mins ago. its new from....tim kremer
Click to expand...
Click to collapse
Hi!
If i just want to replace a edited file inside a cad archive, how can i do that?
I tried this but i realy don't understand what to do
ToddeSwe
ToddeSwe said:
Hi!
If i just want to replace a edited file inside a cad archive, how can i do that?
I tried this but i realy don't understand what to do
ToddeSwe
Click to expand...
Click to collapse
Use WinCE Cab Manager. It's simple as working with a ZIP/RAR archive. Drag & drop supported for file edition & replacements.
Any help
Ok guys, I downloaded the OCP Software, that is great and all, but I would actually like to know what code is used and if there is something that will allow me to learn how to write the code. I do know a little about writing in VB 6.0, I know that is not a widly used program code. So if anyone could help me please, that would be great. Thanks
Is there any other easiest technique?
davidtwhittle said:
Is there any other easiest technique?
Click to expand...
Click to collapse
Do a OEM package, it is super easy to do, and execute oem2cab. If you cant find it I can share it with you
Ye,its good if you share it with me.I ll be come at your facebook page but if you share here,then it will be good for me.
davidtwhittle said:
Ye,its good if you share it with me.I ll be come at your facebook page but if you share here,then it will be good for me.
Click to expand...
Click to collapse
http://www.4shared.com/file/6mxJ-EHQ/OEMS.html
here you go

Add Certificate in ROM???

How can I add a certificate in the ROM??
I have some programs running from HKLM\init but they wont execute automaticaly because of the certification problem.
I would realy appreciate some help
Thanks
Andrew
andrew_sh said:
How can I add a certificate in the ROM??
I have some programs running from HKLM\init but they wont execute automaticaly because of the certification problem.
I would realy appreciate some help
Thanks
Andrew
Click to expand...
Click to collapse
hi, i think you can add with xml files put into the rom
but i didnt test it.
the way i have done is add the Certificate store registry on the Default.hv
need to add 2 parts.
[HKEY_LOCAL_MACHINE\Comm\Security\SystemCertificates\Privileged Execution Trust Authorities\Certificates\<<Your Valu>>
and
[HKEY_LOCAL_MACHINE\Comm\Security\SystemCertificates\SPC\Certificates\<<Your vallu>>
This can work for me.
Those value shuold exported from the Device which installed your Certificate value. Good Luck
Asukal said:
hi, i think you can add with xml files put into the rom
but i didnt test it.
the way i have done is add the Certificate store registry on the Default.hv
need to add 2 parts.
[HKEY_LOCAL_MACHINE\Comm\Security\SystemCertificates\Privileged Execution Trust Authorities\Certificates\<<Your Valu>>
and
[HKEY_LOCAL_MACHINE\Comm\Security\SystemCertificates\SPC\Certificates\<<Your vallu>>
This can work for me.
Those value shuold exported from the Device which installed your Certificate value. Good Luck
Click to expand...
Click to collapse
Thank you very much.
I will try it your way
if you are plannning to add the SDK_Certificate in your ROM
you can copy & past my attached reg in default.hv.
(or just look at this for your refference)
this was the one i used.
<some another value in device will be douplecated, i didnt delete it coz of lazy. but it will not have any probems>
I am trying to embed TestCert_Privileged.cer (from SignCode - Smartphone 2003 Privileged Test Signing)
If I use your .reg, can you also send me your .cer so I can re-sign my apps using your .cer?
Thanks
this can not install on device or emulator,,,wait,,i am remaking
andrew_sh said:
I am trying to embed TestCert_Privileged.cer (from SignCode - Smartphone 2003 Privileged Test Signing)
If I use your .reg, can you also send me your .cer so I can re-sign my apps using your .cer?
Thanks
Click to expand...
Click to collapse
i didnt use that in my hv..
so i have took CertStore Value from TestCert_Privileged.pfx
& TestCert_Privileged.cer
And make the CAB file to able install regstries instantly.
You can install your Device(or Emulator) this cab, then
Export the 2 reg value form them.
i thihnk it gonna be OK <but i didnt tested>
thanks asukal, you are my man
IT WORKED
I made my self a .reg like yours for my .cer
still can not install to Emulator,
i will attached 2 text files which have a value should be in the REG.
andremade cab<can not install to emu>
You can get the value from 2 texts any way
andrew_sh said:
thanks asukal, you are my man
IT WORKED
I made my self a .reg like yours for my .cer
Click to expand...
Click to collapse
oh! thats good,,,,on emu,,i dont know why can not install
Any way, good luck!

cert questions

1) exe/dll's have to be all signed correct? I assume other files don't (bmp, xml, htm, etc)
2) are files in rom signed or are they assumed to be valid since they are in rom?
2a) if rom files are signed is this preserved on extract via viewimgfs?
3) Can you determine if a file is signed and which cert it was signed with?
4) I see cab's such as the recent Palm Messaging cab that don't appear to install a cert, yet the program runs fine once installed. How is this possible?
hannip said:
1) exe/dll's have to be all signed correct? I assume other files don't (bmp, xml, htm, etc)
Click to expand...
Click to collapse
.EXE, .DLL, .CPL and .CAB files must be signed.
hannip said:
2) are files in rom signed or are they assumed to be valid since they are in rom?
Click to expand...
Click to collapse
All cabs in Extended rom must be signed.
hannip said:
2a) if rom files are signed is this preserved on extract via viewimgfs?
Click to expand...
Click to collapse
Don't know... :O
hannip said:
3) Can you determine if a file is signed and which cert it was signed with?
Click to expand...
Click to collapse
Yes. If you look in the "Digital signatures" tab in the files properties you will see both who signed it and who it was signed for.
hannip said:
4) I see cab's such as the recent Palm Messaging cab that don't appear to install a cert, yet the program runs fine once installed. How is this possible?
Click to expand...
Click to collapse
On a Pocket PC running WM 5.0 a notification will appear that says that the cab comes from a untrusted source. If the user accepts this, the application will run as if it were signed.
Øystein
t0flus said:
On a Pocket PC running WM 5.0 a notification will appear that says that the cab comes from a untrusted source. If the user accepts this, the application will run as if it were signed.
Øystein
Click to expand...
Click to collapse
Thanks for the quick reply!
I'm real curious on the last point. So you are saying as long as a program is installed via a cab and the user accepted the warning that program will run without warning once installed. Correct? So is there some db that contains each file installed and whether they can be run without warning even though it's unsigned?
I must be missing something. I've created a cab file of the HTC StreamingMedia player and it runs fine as long as I have the policies set not warn. But when I change the policies back to normal I can't install the cab even though I've accepted the warning. The installation seems to be going ok, but then I get the following error.
"Installation was unsuccessful. The program or setting cannot be installed because it is not digitally signed with a trusted certificate."
Nice of it to tell me which file or setting it is bombing on. ugh
Ideas?
So the answer to 2a is yes and no. Files are extracted signed, but module-files are not.
hannip said:
So the answer to 2a is yes and no. Files are extracted signed, but module-files are not.
Click to expand...
Click to collapse
Probably they are signed with a cert you don't have on your phone??
If you have the cert, then try extracting them using TestWM5.exe or grab_it! and see if it makes any difference.
pof said:
Probably they are signed with a cert you don't have on your phone??
If you have the cert, then try extracting them using TestWM5.exe or grab_it! and see if it makes any difference.
Click to expand...
Click to collapse
All of the files in my cab are appropriately signed and the certificate is installed on my device. The cab just wont install. I even signed the cab and it still complains, but at least there is no warning at the start.
The files themselves are good. I have tested them on my device by installing them manually and importing the reg file. It's just a cab install issue of some sort.
Is there a way to turn on cab tracing?
One thing:
What device exactly is it?
I know on Smartphones (like the Tornado) even signed cabs are not allowed to install certificates unless the cab is signed by 'privileged' certificate.
The error you described is often caused by cab no being able to change registry setting or install certificates.
It's a PPC device (treo 700wx). The cab does not install a cert. The cert is already on the device. I've been able to install certs via cab before on this device however. The cab does make several reg changes. I'm thinking it's gotta be one of those settings.
Is there no trace or logging available for cab installs? This one is huge and would take some time to narrow down which setting it is having a problem with.
Unfortunately I don't know of any loggers for cab installation.
You should look for reg settings in HKEY_LOCAL_MACHINE and anything having to do with security, certifications, system settings (I know its a wide range, sorry). Those are usually restricted and can only be changed by privileged cabs.
I suppose the only solution is to comment them all and then return them one by one to see which is problematic.
you might want to check out:
http://msdn.microsoft.com/library/d...gpoliciesoncabfileinstallationprocessozup.asp
even though there is wce51 in the url, it's under softphone2003. Security on a single tier sp2003 is very simular to pocket pc 2005. I suspect most (or all) of it will applies.
I had tried to install a file in the top directory and it failed, but worked for another directory. Perhaps I made a mistake, but it made me wonder if somethings aren't allowed. (putting files in \, changing certain registry settings, etc)
hannip said:
It's a PPC device (treo 700wx). The cab does not install a cert. The cert is already on the device. I've been able to install certs via cab before on this device however. The cab does make several reg changes. I'm thinking it's gotta be one of those settings.
Click to expand...
Click to collapse
What kind of cert have you installed? Are you sure it is a application certificate and not a ROOT cert?
If you upload the cab file I can take a look at it...
Øystein

phcanOverbmp.dll

Can't get this to work. Here's what I've done:
- Extracted an already modified and working phcanOverbmp.dll from a cabfile
- changed icons with reshack
- signed DLL with msigner (with the latest 2010 certs). msigner reports: "this file is signed but not timestamped - succeeded")
- installed newSDKcerts.cab on the device
- copied file back to windows dir (with total cmd)
it seems it simply ignores the file and takes the original one instead.
What I'm doing wrong?
WWebber said:
Can't get this to work. Here's what I've done:
- Extracted an already modified and working phcanOverbmp.dll from a cabfile
- changed icons with reshack
- signed DLL with msigner (with the latest 2010 certs). msigner reports: "this file is signed but not timestamped - succeeded")
- installed newSDKcerts.cab on the device
- copied file back to windows dir (with total cmd)
it seems it simply ignores the file and takes the original one instead.
What I'm doing wrong?
Click to expand...
Click to collapse
First, I assume you did a save in reshacker and not just got out of it.
Second, I assume the reg edits are there to use the phcanOverbmp.dll
If so and you did a soft reset it should have been fine.
You could also try renaming the old one before you copy in the new one just to be sure it is out of the way.
NilsP said:
First, I assume you did a save in reshacker and not just got out of it.
Click to expand...
Click to collapse
sure
btw: i binary file compared to be sure.
Second, I assume the reg edits are there to use the phcanOverbmp.dll
Click to expand...
Click to collapse
Not sure about what you mean. The previously installed phcanOverbmp (which is an already modified version) works.
If so and you did a soft reset it should have been fine.
Click to expand...
Click to collapse
as you said "should"..
You could also try renaming the old one before you copy in the new one just to be sure it is out of the way.
Click to expand...
Click to collapse
Well it is not showing the previously installed and not showing mine but the original wm65 one. So I'm pretty sure I overwrite it and if I filecompare it is mine.
Running out of ideas. Is it still necessary to sign the file with changing the systemtime back to 2009? Is it necessary that maybe several files match together (lik resshell.192 or so)?
WWebber said:
Can't get this to work. Here's what I've done:
- Extracted an already modified and working phcanOverbmp.dll from a cabfile
- changed icons with reshack
- signed DLL with msigner (with the latest 2010 certs). msigner reports: "this file is signed but not timestamped - succeeded")
- installed newSDKcerts.cab on the device
- copied file back to windows dir (with total cmd)
it seems it simply ignores the file and takes the original one instead.
What I'm doing wrong?
Click to expand...
Click to collapse
add reg to activate phcanOverbmp.dll. i cannot see moment that you installing cab with "default" phcanOverbmp.dll before adding your one.
what NilsP said.
takes the original one instead.
Click to expand...
Click to collapse
originally phcanOverbmp.dll is not used at all.
pupakota said:
add reg to activate phcanOverbmp.dll. i cannot see moment that you installing cab with "default" phcanOverbmp.dll before adding your one.
what NilsP said.
Click to expand...
Click to collapse
Well, I forgot to mention that I already installed a modified version of phcanOverbmp.dll which is working properly btw. So i was assuming this cab from where I took the dll is setting all regs properly.
originally phcanOverbmp.dll is not used at all.
Click to expand...
Click to collapse
Can't be in my case, as when I replace the one which is installed in the windows dir, the display changes - I think back to the original one, because neither mine nor the previous modified one is shown.
After searching again, i found a newer sdkcerts.cab. Now it is working.

[Q] Extracting HTC Hotfixes

Hi, Some chefs managed to integrate HTC hotfixes into their ROMs. How do you extract the hot fix content form the HTC exe file?
thanks in advance,
aladdin1001 said:
Hi, Some chefs managed to integrate HTC hotfixes into their ROMs. How do you extract the hot fix content form the HTC exe file?
thanks in advance,
Click to expand...
Click to collapse
I use Universal Extractor. it's free and can extract from any kind of file. It appears in the right click
Thanks mate, I tried using Universal Extractor on a hotfix file, for example, Messaging fix LEO08007-07.exe and got a folder full of unknown files like "MESSAG~1.011" etc. all numbered but not really usable. I got the same thing when using 7-Zip. Can you help? Am I missing something?
Many thanks in advance
thecrater said:
Thanks mate, I tried using Universal Extractor on a hotfix file, for example, Messaging fix LEO08007-07.exe and got a folder full of unknown files like "MESSAG~1.011" etc. all numbered but not really usable. I got the same thing when using 7-Zip. Can you help? Am I missing something?
Many thanks in advance
Click to expand...
Click to collapse
there should be an xml file in there, with the correct name of the files.
Use that to work out what to rename the files manually.

Categories

Resources