• Welcome, Guest. Please login.
 

[ADVANCED BILINGUAL GUIDE] ::Multifonts:: by LFM

Started by LFM, August 02, 2007, 08:45:13 am

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

LFM

-----ENGLISH Version-----

::Multifont Advanced Guide::
Made by LFM


Introduction


Hi people, this new was discovered by Russians (Dimka and others), who adapted some CGs to use languages as fonts, and an easy way to change between the different fonts, from Initial Config.

After a deep analysis of a patched r373_49r CG1 and an unpatched one, I invented a theory and the way to adapt the method to any Motorola phone.


Requirements


•RSA protection removed.
•Bootloader that accept CG1 changes.



Making the CG1 patch


The tutorial must be properly read and understood, print it if you consider it necessary.

In this process we will make the CG1 patch. We will need Flash&Backup 3.0.4 or better (not posted, protected software) and once the software was installed we should make a backup of our phone containing the following CGs: CG1, CG3, CG15 y CG18.

Then, we'll use SHX Codec 2.66 to Split the previous backup into the different CGs.

Look for the SHX backup into the backup folder in Flash&Backup folder (sorted by date and time) and copy it to the SHX Codec folder.

Open SHX Codec, select the superfile SHX and click the "Split source SHX file" button, then click on "Save project". Close the program .

Now download the Universal patch adapter workbook (include an empty workbook and an example one, version Office 2007 and Office 97-2003) and install Winhex 12. Open the file that ends with CG1.smg located in the SHX Codec folder using Winhex.

Look for the following hexadecimal code:
Code Select
30316B3233
or look for the following text:
Code Select
01k23

...remember the both values are the same! The hexadecimal part show a determinate coded part of the text, in the right block.



Once we had located that code (skyblue color in the animation), the program will put the cursor at the beginning of the code line, from here select (press and hold SHIFT and press the right cursor)  89 hexadecimal or 137 decimal characters (the length of the current selection is shown down-right, named "Size:"), then copy the last offset at the end of the selection (in this case 682D5C).

Open the workbook and go to "CG1 Adapter" where the entire process has been separated in different steps, each one explained in this tutorial:



The offset we had just found must be written in the 1st STEP:



After typing the offset, go to the 2nd STEP and the workbook will give us some offset. We must extract some strings chain from the CG1, use"Go to offset" in Winhex to locate the offset given and once we were in the offset select from the hexadecimal block (CTRL+SHIFT+C) a code line of, 20 hexadecimal or 32 decimal length for each offset given:



If the length of each code line is not exact the workbook will shows us an error cell. The complete process should look at this:



Now go to the 3rd STEP where the workbook ask us to search an hexadecimal code:
Code Select
2802D003282CD001282DD1012001E0122808D1012002E00E2804D0012805D1012003E008280BD1012005E004280CD101





...once we have located the string, copy the beginning offset (in this case 6515DC), and put it in the 4th STEP:



No matter if we don't see any change or if we think we are making nothing, the workbook has been programmed to adapt the codes automatically.

Now in the 5th STEP enter the phone information:



That was the last thing to enter in the process, the patch sample should shows us something like this:



... and if everything goes right, the analyzer shows us this:



Now go to "CG1 Patch":





Copy all the cells (CTRL+C) and paste (CTRL+V) them in a new document of "Notepad" (WE MUST USE THIS SOFTWARE) and save it with the name "CG1 Patch", the extension must be ".fpa" (MUST BE THAT EXTENSION).

¡The CG1 patch is ready! Continue reading to know how to patch the CG1.


Making CG4 multifont


Make another backup but only containing the CG4, we are going to adapt for use multifonts. First at all, download Moto Lang Editor 2.2 y copy the SHX backup of the CG4 in the same folder that contain Moto Lang Editor and open the program. Click on "File >> Open langpack file" and select the backup file (the program open SHX files).

Once opened go to the "Strings" part where we will see the different our CG4 has, now we must choose a default language to apply the multifont process, in this case "Español 0A", select it and save it clicking on "Save language" button with the default saving name (Spanish.mlf). Then click on "Delete iTAP". Save the language again clicking on "Save language" but with the name "template.mlf" (not necessary but recomended)

Open the template file created with Winhex (different from original language, because it doesn't have iTAP information) and replace the second hexadecimal offset with the values given in the table and save a new file with the name also given in the table:




Once we had made the new languages, we must add them into the CG4 by pressing "Add language" button, also add "Spanish.mlf", because the one we have doesn't contain iTAP information, erase it and add the original copy saved at the beginning of the process (Spanish.mlf):



You can leave some secondary languages (British English 03, for example) if you want to use a multilingual phone, but the font the rest of the languages will use will be the same that the default font selected.

Go to "Font" and here we will choose the fonts we will like to use. The Font ID 01 is the general font used by the default and by the rest of languages we may have. The others Font IDs are use by the languages we created with Winhex and the Font ID corresponding to each font is in the table.

Select Font ID 01 and mark all the symbols in the right chart (click in the first one, click and hold SHIFT and select the last one).

Now press the left button of these 3:



...and then select the font and height we like, click on "OK" button and then press the middle button of the 3 mentioned. The program will replace the entire characters by the found in the font ( if we don't like how it see or if it is not shown correctly, we must change the font or change the height of the current one).

Once we had changed the font we must click on the right button of the 3 mentioned and then click on "Font >> Save font" and save the current font.

We must save 6 different fonts with different names (recommended the original font name).

Then, we must locate others Font ID, shown in the table: 01, 02, 06, 08, 0B y 0C. Select each font and click on "Font >> Load Font" to load one of the font we have saved.

After load each saved font to each Font ID we must click in the following box specially created for multifont process, if not some Font won't appear:



Click on "File >> Save langpack" and the langpack will be saved. Now we must run SBF-Recalc 1.2.4 to compile the langpack in a flasheable file.

Once opened the program, click on "Open CG-Folder" and select the folder where the CG4, the HEADER and the RAMLOADER are located, in this case if we copied the original SHX CG4 backup into the Moto Lang Editor, the folder should be that.

Press the "ReCalc Checksum" button and then "Create SBF-File" (do not get confused with SBF and SHX):



The CG4 reflash will be created in the Moto Lang Editor folder but into a new subfolder named "SBF-FlashFile".

¡The reflash is ready! Continue reading to know how to flash the phone.


Making the CG15 patch


We also have to patch CG15 to finalize the entire multifont process.

In the workbook go to "CG15 Adapter":



Now got to the 1st STEP which ask us to search in the hexadecimal block a code:

Code Select
E1E1E1E1



...copy the beginning offset and write it into the box in the 2nd STEP:



Now copy from the hexadecimal block a string beginning in the offset found (CTRL+SHIFT+C to copy from the hexadecimal block). The length of the selection must be E0 hexadecimal or 224 decimal and the copied string must be pasted in the box of the 3rd STEP:



In the 4th STEP enter the phone information:



The patch is almost ready, the patch sample should shows something like this:



... and if everything goes right, the analyzer shows us this:



Go to "CG15 Patch":





Copy all the cells (CTRL+C) and paste (CTRL+V) them in a new document of "Notepad" (WE MUST USE THIS SOFTWARE) and save it with the name "CG15 Patch", the extension must be ".fpa" (MUST BE THAT EXTENSION).

¡The CG15 patch is ready! Continue reading to know how to patch the CG15.


Patching the both CGs


To end with the process we must apply the patches to each CG modified, so download Mini Patcher and run it.

We are going to patch the CG1 first, click on "Open CG" y look for the file that ends with CG1.smg in the SHX Codec folder. Then click on "Select Patch " y choose the corresponding patch for the CG1 we made.



Then, click on "Apply Patch " and the patched file will be automatically saved overwriting the existing one, close the program.

Reopen it and now load the file that ends with CG15.smg and the patch for the CG15. Repeat the patching process.

¡The both CG are patched and ready to flash the phone!


Remaking the CG reflash and flashing process


The last part of the tutorial. Open SHX Codec and click on "Open project", select the one we had created at the beginning of the tutorial.

Press the "Compile SHX" button and save the new reflash with the name we wanted.

Download a flasher program, RSD Lite 2.7 or a newer version or another program to flash.

Connect the phone normally to the USB and open RSD Lite. Wait until being detected:



Click on "..." and select any of both reflash we have, the SHX reflash in SHX Codec Folder or the SBF reflash in a subfolder in Moto Lang Editor folder.

First flash the SHX patched reflash, so we must select it and click on "Start" button.

The program will flash an reboot the phone. Then browse and select the SBF languages modification reflash.

The program will flash again. ¡The process is almost end!


Naming fonts and activating DNP.prf


Now we must name the different fonts to recognize them. The easier way is editing the file DNP.prf with Language Editor 1.5. Open the program and click on "Add new string" and name the fonts with any name:



Ths strings ID must be 0525 in all fonts, and the languages ID must be: 11, 12, 17, 18 y 28. The language 0A in this case is the default used to create the rest. This is the only that changes if we use another language as default.

Save the document by clicking on "File >> Save as..." and the name of the file must be "dnp.prf". Upload the file to "/a/" in the telephone, in root directory.

Now we must activate the "Dynamic Prompts" using P2K Tool, MOST, P2K Advanced Editor, etc. In this case we will use Moto SuperTrubka.

Run MOST and go to "Seem Editor", click on "Multimedia" an then on "Read", check the shown in the animation and click on "Write":



Reboot the phone and the entire process will be complete.


Sharing already made patches


If you make patches for your phone, please, feel welcome to upload them to this 4Shared folder. So other people can download them.

First be sure if they work and then upload them with this structured name:

Motorola "Phone?" "Firmware?" "Version?" "CG?" Patch.fpa

Example: Motorola V360 R4513 ACR CG1 Patch.fpa



That's all people! I hope you value this guide and enjoy multifont!


LFM

Thanks!

That's the guide I had been talking about!

There is a spanish version... for spanish spoken people...

cya! :D

motomaniacs

Wait do you mean all type of motorola phone model?
why did you post here @ L7 ??

LFM

I didn't find another place!

In theory it works in all phone models! let's try it!

Sorry :P

Exploited


endro



veronica1009

Thanks, LFM, for this wonderfull guide! Can it be made to support 6 fonts?


nishanth_r

Hi LFM,
I have a Moto E398, flashed it with Montox's symphony 46r. It already has Multifont in it. But i want iTap too (which is not included) how do i proceed to flash another LP? do i have to follow the complete tutorial? or can i just flash another LP with iTap and still have the fonts?
Please help me out... Thanx a lot in advance :)

LFM

You should open a backup containing language with iTAP information...
Save the language as explained in the guide (i.e. Spanish.mlf)
Open monto'x langpack and replace or add the new language...

More or less that should be the procedure

Cya!

nishanth_r


nishanth_r

S**t... tried it out and ended up bricking my phone. can someone please help me...
tried getting iTAP in English with the fonts, and i couldn't do it.
can someone please upload any LP's with English iTAP and multifont please?
thanx...

Exploited