Hi Developers...
For a while I was sad, because I was not able to work on patches
Because, I thought that I'm not able to apply patches to Satio/Vivaz, but I was false..
So it seems that I will not be able to save myself from patches :)
Anyway... This tutorial will give some basics of creating patches for Satio/Vivaz.
I do not know whether "google translate" will translate my sentences properly, but I will be clear as far as I can.
What do we need for it?1. An Hacked phone (do you need a tutorial for it?)
2. "ROM Patcher" installed to your phone... Because We will apply our patches by using "ROM patcher"
OK. Let's start.. First of all, we have to learn these two instructions:1. rel
2. SnR
A. What is "Rel" instruction? How to use it?"rel" instruction changes one or more than one bytes in a specific entry point.
Typical usage:rel:file path\file name:entry point:original codes:our codesLet's understand it by creating an example patch.
In my example I want to create a patch to disable opening "File Manager" from "Main Menu"
For this, let's open z:\sys\bin\FileManager.exe bu using a random Hex Editor:
As we see, there is a:
"7A" in "entry point 00000000" and
"10" in "entry point 00000003"
Now, I have decided that, if we change "7A" and "10" to "00", We reach our aim.
We can do it with two distinct ways by using "rel" instruction:
1.Код:
rel:sys\bin\FileManager.exe:00000000:7A:00
rel:sys\bin\FileManager.exe:00000003:10:00
or 2.Код:
rel:sys\bin\FileManager.exe:00000000:7A000010:00000000
I hope it is all clear..
As you see, we have changed some specific codes in a specific entry point.
Now let's check SnR instruction
B. What is "SnR" instruction? How to use it?"SnR" (Search and Replace) instruction changes all instances of a specific code in a specific file..
When we use "SnR" instruction, we do not need to define an entry point..
Typical Usage:SnR:file path\file name:original codes:Our CodesLet's understand it by checking the same example of "rel" instruction:
Now let's create the same patch by using "SnR" instruction:
Код:
SnR:sys\bin\FileManager.exe:7A000010CE390010EB841F10F6FDCA:00000000CE390010EB841F10F6FDCA
With this, we gave this order to ROM patcher:
1. Open sys\bin\FileManager.exe
2. Search ALL the instances of 7A000010CE390010EB841F10F6FDCA in that file
3. Replace ALL of them with 00000000CE390010EB841F10F6FDCA
In our example, there exists only one instance :)
This "SnR" instruction may be useful, for example, when we wish to change more than one unicode string in a file.
An example patch: Two instructions:Патч:;Satio U1 / Vivaz U5
;Change keypad shortcut functions.
;Change XX parts as you wish by checking "hex values".
;Example: if you wish to change *#06# to *#99#, change: "300036:XX00XX" to "300036:390039"
;(c) Lathander Crusader
SOME ANSWERS FOR POSSIBLE QUESTIONSA. How to make the patch?Simple.. in non-smart phones, we use "
vkp" extention for our patches. But in Satio/Vivaz phones, we use "
rmp" extention.
Save your codes with "rmp" extention. For example: "disable filemanager.rmp"
Than apply your patch by using ROm patcher and after that, Carpe Diem!..
B. I have created a patch but I can not apply it by using ROM patcher. What is wrong with it?1. Probably your patch syntax is wrong.
2. Probably your "original codes" part in your patch is wrong
3. The file you want to patch is not a ROM file... Always remember this: ROM files are contained in "Z: drive"
But not all the files in Z are ROM files. ROM patcher can only patch ROM files. Not all the files in "Z: drive"
C. Can we patch multiple files by using only one patch?As you see, it is possible:
D. Do we have a disassembler program for ROM files?This issue is complicated, at least for now.
SOME USEFUL INFORMATIONS1. There is a simple way for finding all the files, which are related with original applications.In this example, I want to find all the files that are related with "Voice recorder" application..
For this, let's go to
Z\ system \ install folder. You will see lot's of
STUB files there.
Copy all of them to your PC. OK, now let's check them:
As you see, one of those files is
VoiceRecorder_stub.SIS. Now, Let's open it by using a random Hex editor program, or by using Notpad...
As you see, this file gives us a list of all the files related with Voice Recorder application.
Actually, all the files in
Z: \ system \ install give us useful lists about original applications.
So, when we wish to change a function of an original application, we can check those
STUB files and simply find whatever we want.
I will update this thread when new events happen about this issue.
Best Regards..
Crusader..
[ Edited by LathandredCrusader в 19.2.12 04:31 ]