Symbian-Developers

Symbian^3, Anna, Belle Forum => Symbian^3 Firmware Discussion => Topic started by: Wunder Wungiel on May 14, 2021, 05:13:30 pm

Title: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Wunder Wungiel on May 14, 2021, 05:13:30 pm
Hello
How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: matthew on May 14, 2021, 08:52:13 pm
You'll need an unpacker, then you edit with a hex editor.
When i get home i'll see if i have that software
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Wunder Wungiel on May 14, 2021, 09:12:24 pm
You'll need an unpacker, then you edit with a hex editor.
When i get home i'll see if i have that software
Thank you a lot for help. Can I use GHex on Linux or HxD for Windows? I have Arch dualboot with Windows 7
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: matthew on May 14, 2021, 11:02:11 pm
Yes; i use GHex, too (i dual boot two distros  :P )
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Wunder Wungiel on May 14, 2021, 11:56:26 pm
:) So how to edit MIF, and extract exe and dll?
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Max << Crazy | Doctor on May 16, 2021, 02:55:18 am
Quote from: Wunder Wungiel
How to edit avkon2.mif?
Easily :D
SISContents does the job well. If it is already a modded avkon, just edit it directly. Or if you want to edit the original avkon, you might need to convert it to the older version first. SISContents can also help you with it, just specify 102827CF.dll as an intermediate so that the conversion is done properly.

Quote from: Wunder Wungiel
How to edit sysap.exe and qmltouchinput.dll?
The primary step would be unpacking them, as matthew mentioned. Only one packer exists for Symbian, which is called Petran. Luckily, Petran supports unpacking too. Newcooller made a top-up on Pertan namely Petran GUI, get it to make things simpler.
Then you need to disassemble these binaries. If you know assembler for ARM processor, I can give you a bit of further information. Otherwise stop here because you will not succeed.

Quote from: matthew
then you edit with a hex editor.
Maybe as a sporty challenge - yes, if you know by heart common hex patterns of the main functions :)
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: matthew on May 16, 2021, 04:54:20 am
Anything else you require, just ask and i'll see if i have it.
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Wunder Wungiel on May 16, 2021, 11:48:36 am
Thank you very much. So let's start with qmltouchiput.dll (Belle FP2 Keyboard). Which tools should I use to edit this file? Hex editor (GHex)? Or extract it first (but if, so how)?
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Wunder Wungiel on May 16, 2021, 11:54:06 am
Easily :D
SISContents does the job well. If it is already a modded avkon, just edit it directly. Or if you want to edit the original avkon, you might need to convert it to the older version first. SISContents can also help you with it, just specify 102827CF.dll as an intermediate so that the conversion is done properly.
The primary step would be unpacking them, as matthew mentioned. Only one packer exists for Symbian, which is called Petran. Luckily, Petran supports unpacking too. Newcooller made a top-up on Pertan namely Petran GUI, get it to make things simpler.
Then you need to disassemble these binaries. If you know assembler for ARM processor, I can give you a bit of further information. Otherwise stop here because you will not succeed.
Maybe as a sporty challenge - yes, if you know by heart common hex patterns of the main functions :)
Now I see, that it is't as easy as I thought. I will try, but I don't have much hope...
Title: Re: How to edit avkon2.mif, sysap.exe and qmltouchinput.dll?
Post by: Max << Crazy | Doctor on May 16, 2021, 02:08:01 pm
So let's start with qmltouchiput.dll (Belle FP2 Keyboard). Which tools should I use to edit this file? Hex editor (GHex)? Or extract it first (but if, so how)?

1) Unpack with Pertan
2) Disassemble (with IDA, Ghidra, maybe something else) and study the file
3) Apply patch according to your needs

If you want to edit text strings inside these binaries, then your steps №2 and 3 would be finding and modifying the string. For this purpose, any hex editor will suffice.