[HTC Wildfire S] Senthamil:
[TUT][HOW TO]Make your LockScreen Clock BIGGER & ALIGN CENTER FOR ICS (tested) & JB.

I Just wanted to modify the clock display on the Lock Screen by BIGGER size and also in the CENTER of the screen. I went thru and referred various threads here (actually it's on for various issues) but couldn't get all at one thread. I got some idea to achieve this and also got it done.(See the Attaches). Hence I want to put them collectively here...

WARNING:

You should not attempt to do this on a device that does not have a recovery, because if something goes wrong you may have to reinstall your ROM (not very likely though but I'm not responsible). You should probably have back up framework-res.apk and you should also have some experience modding and some experience using Apktool & Linux.

Required tools:

1. APKTool (You may have already but use this one since I searched everywhere & finally worked with this) rename it as apktool.jar and move it to the C:\windows directory (or Root Dir)

2. Patched aapt (Copy this one also on windows root dir)

3. Zipalign (unzip and put this 2 files also on C:\Windows root, used for signing the apk)

4. apktool.bat Note : Unzip this file and move ONLY apktool.bat to C:\windows directory.

5. 7zip or File Roller and Java on PC. Just find them and have installed.

6. Any root explorer installed on your device with file mount permissions.

7. Notepad++ (not regular notepad) required to open/manipulate the xml files on PC.

How to Modify the display settings:

1. Copy framework-res.apk from /system/framework folder to your PC. Make a copy of framework-res.apk & keep it somewhere as BACKUP and will need later. Now we have to modify the apk file.

2. So we have to decompile the apk using apktool, go to cmd and change dir to where the apk file is. Now type as:

apktool if framework-res.apk

It will install the needed framework.

3. Now to decompile type as : apktool d framework-res.apk

Now the file is decompiled and stored on a folder of this file name.(framework-res)

4. Browse To "\res\values" on that folder and open dimens.xml with notepad++

5. Find those line:

<dimen name="keyguard_lockscreen_clock_font_size">80.0dip</dimen>

<dimen name="keyguard_lockscreen_status_line_font_size">14.0dip</dimen>

<dimen name="keyguard_lockscreen_status_line_font_right_margin">42.0dip</dimen>

<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen>

<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen>

<dimen name="keyguard_lockscreen_pin_margin_left">40.0dip</dimen>

6. You have to change the values as:

<dimen name="keyguard_lockscreen_clock_font_size">90.0dip</dimen> [Change: To increase font size]

<dimen name="keyguard_lockscreen_status_line_font_size">14.0dip</dimen> [No change]

<dimen name="keyguard_lockscreen_status_line_font_right_margin">50.0dip</dimen> [Set right margin to make centre]

<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">23.0dip</dimen> [set margins from Top]

<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen> [No change]

<dimen name="keyguard_lockscreen_pin_margin_left">40.0dip</dimen>

save them and exit.

7. Now this step will be different than you have seen before. To build the apk make sure you are in the terminal in the directory where framework-res exists and type:

apktool b framework-res almostdone.apk

Now it takes some time to create the output file.

8. Open the backup file (kept seperately on start) with file roller/7-zip in a window.

9. open almostdone.apk with file roller/ 7-zip On another window.

10. From inside the almostdone.apk window drag resources.arsc to the root of backup.apk window (This will replace the file)

11. From inside almostdone.apk drag the res folder into the backup.apk It's done !!.

12. Now needed to zipalign the apk. Type as:	zipalign -v 4 backup.apk done.apk

This will optimize the apk. The output is done.apk.

13. Now rename the done.apk as framework-res.apk and install it on your device (i.e on folder /system/framework ) I achieved this by ES File explorer. Enable 'file mount system' on settings of Es File explorer. Then copy modded apk, paste into /system/framework. Make sure you give it the same permissions as all the other apk's in the system/framework directory. Then reboot. Or you could make a flashable zip to install it.

IT'S DONE NOW. YOU CAN GET THE CLOCK BIGGER AND ON CENTER !!

I really thank blindndumb and powerpoint45 for their useful post which helped me a lot....