[MOD]Tutorial How to change LockScreen Clock Font EASY

keyler555

Member
Nov 4, 2012
25
77
0
Bogotá
Hey Guys

I discovered this :D

This time I bring a way to change the clock style from Xperia STOCK to ICS clock font

It is VERY EASY

ICS LOCK SCREEN CLOCK XPERIA STOCK LOCK SCREEN CLOCK

Screenshot_2013-03-31-22-47-09.png Screenshot_2013-03-20-18-42-47.png

REQUERIMENTS:

1. Extracted Framework.jar from your Android (/system/framework) and copy in your PC
2. smali.jar and baksmali.jar (Into a new folder on PC) See attachments Or Download Here View attachment 1849757
3. 7zip or WINRAR
4. Notepad ++ or any text editor (recomended notepad++)
5. cmd in Windows

HERE WE GO!

1. COPY framework.res into extracted folder decomjar (with smali.jar and basksmali.jar)
2. extract classes.dex from framework.jar using 7zip or Winrar

1.JPG 2.JPG

3. Is time to open the terminal... Go to the directory where the FOLDER decompjar is content.
4. Press Shift button and right-click. select open a command window here

3.jpg

5. After open the terminal Write this comand:

java -jar baksmali.jar -o classout/ classes.dex

It is for Decompile the file

4.JPG

6. find this file DigitalClock.SMALI in this directory: \decomjar\classout\com\android\internal\widget
7. open the file and edit

a. find

.field private static final SYSTEM_FONT_TIME:Ljava/lang/String; = "/system/fonts/SoMADigitLigth.ttf"

b. and change for this .

.field private static final SYSTEM_FONT_TIME:Ljava/lang/String; = "/system/fonts/AndroidClock.ttf"


8. after change

a. find:

.prologue
.line 68
const-string v0, "/system/fonts/SoMADigitLigth.ttf"

b. Change for this:

.prologue
.line 68
const-string v0, "/system/fonts/AndroidClock.ttf"

9. SAVE THE CHANGES

10. time to recompile te file Write in the terminal this command:

java -Xmx512M -jar smali.jar classout/ -o new-classes.dex


5.JPG

11. Wait a Few Moments an rename "new-classes.dex" to "classes.dex"
12. Delete classes.dex from framework.jar and Repack the Modded classes.dex
13. Flash into Recovery or replace the file.

ENJOY !!!!

---------------Press THANKS :good: if your like My contribution ;) ;) ;) ;) ;)
 

manoy_patikan

Senior Member
Feb 10, 2013
57
38
48
Font in lockscreen

Nice TUT but I need a little help.

How do you disable ALL caps in lock screen? Like the Date, Emergency call, charging, etc... I got a framework-res.apk file from FB group and modified it to disable auto-rotate in lockscreen. Was able to correct it by editing bools.xml and set

<bool name="config_enableLockScreenRotation">false</bool>

Also found, all caps tag so set it to false like the one below. (Still under bools.xml)

<bool name="config_actionMenuItemAllCaps">false</bool>

It seems to have no effect... Rotation issue is resolved but I don't like the text to be all caps.. Date, Emergency call, charging, etc... are still showing all caps.. Can someone please guide me where I can disable this ALL CAPS settings for the lockscreen?

Here's a screenshot of what I mean. Hope someone can help.

http://i43.tinypic.com/11ifypw.png
 
Last edited: