compile dll - Windows Mobile Development and Hacking General

Anybody here try to compile any dll from platform builder and copy the dll into the fon and the dll is working fine ?

Related

RIL.DLL change and replace?

I have a I-MTAE JAM.
I get a RIL.DLL by pmemdump and dumpmem and patch a RIL.DLL by IDA Pro.
I need to replace this dll to rom but i no know this work.
You can replace the DLL only if you'll find a version that contains relocations. Check different ROM builds (sometimes HTC forgets to make this DLL as XIP so it can be dumped in a working state), check extended ROMs of different Magician updates, maybe CABs there contain a working copy of RIL DLL. Or patch the ROM image so that RIL.DLL is named as RI_.DLL and insert there your own copy that would redirect all unhandled calls to RI_.DLL. Or you may patch the DLL directly in ROM image. Or you may replace RILGSM DLL, RIL.DLL uses it internally, and this DLL is always with relocs. But it is completely undocummented.
This depends on what are you doing.
Thanks for replay.
Can you describe this operation step by step?I mean I have a patched Ril.dll
now,and I want to replace it with the Ril.dll in my IMATE JAM ROM.I want the
exact steps to do this.I there any document that can help me for this?
In addition,I want to know Is there any deferent between DLLs that we see in
\Windows directory of PDA with what have been dumped by pmemdump?Because
the size of dumped file and the size of file that is shown in PDA are deferent.
sincerely yours
Read MSDN about XIP files (eXecute In Place)

dependency checker

So you extract files from a rom and you find a program or dll that you want to use, but you don't know what other files it requires. Is there a tool available to scan the file to see what symbols it references and then scan the other files for that symbol?
hannip said:
So you extract files from a rom and you find a program or dll that you want to use, but you don't know what other files it requires. Is there a tool available to scan the file to see what symbols it references and then scan the other files for that symbol?
Click to expand...
Click to collapse
Any PE viewer or disassembler will tell you the imports used by the dll or the prog. If you have VStudio, just look for dependency walker.
Cheers,
.Fred
Awesome, thanks dotfred!
The Dependency Checker tool from the Windows SDK (big Windows, not CE) will handle CE executables.

dumprom usage

Hello,
I am working on modifing a settop-box.. it is running WinCE5.0 on a MIPS based CPU.
I successfully extracted the NK.bin from flash and converted it into NK.nb0 with cvrtbin.exe from wince sdk.
dumprom works fine on the NK.nb0, but now when I try to open any of the extracted DLLs (modules) my IDA Pro reports them as ARM executable.
now I wonder if this is hardcoded in dumprom or am I missing something ?

modify nk.bin on a wince device

maybe this is off topic because this is about a wince device not a mobile device.
but may someone can help me to modify a nk.bin rom so a can flash the my device with those modifiecation.
to spacify it more; I would like just to replace explorer.exe with my program - shell.exe.
I extracted the nk.bin with dumprom - with help of Nkbintools.zip . but I cannot find any info about te create dumprom back again.
I tried binmod.exe from platform builder but it cannot find any explorer.exe while it exists. there are some threads about a patched binmod.exe but I cannot find any builded download link nor I can find any sources of it in my platform builder.

java to smali ? HELP

hi =)
I need help to compile java to smali ok dex file , to patch Android app classes.dex file
These stages of the process :
apk => apktool => classes.dex => classes.jar => classes.src.zip => i edit java files to fix problem
and now must java src files => classes.dex => patch apk file with new classes.dex
4 days ago I stopped in java to classes.dex and I couldn't fix the problem.
i test baksmali , smali.jar , dex2jar tools , DX , eclipse , Android Studio ...
Is there a way?
hicham.077 said:
hi =)
I need help to compile java to smali ok dex file , to patch Android app classes.dex file
These stages of the process :
apk => apktool => classes.dex => classes.jar => classes.src.zip => i edit java files to fix problem
and now must java src files => classes.dex => patch apk file with new classes.dex
4 days ago I stopped in java to classes.dex and I couldn't fix the problem.
i test baksmali , smali.jar , dex2jar tools , DX , eclipse , Android Studio ...
Is there a way?
Click to expand...
Click to collapse
The java code generated by java decompilers such as JD-GUI is not the original code, there are errors in it because it is impossible to get the 100% accurate and original java source out of a classes.dex file.
Therefore recompiling the code generated into a classes.dex file is not possible and will give you errors. The code generated by java decompilers should be used as a guide and for reference only.

Categories

Resources