[Android Themes] akash akya:
What it will do ??

Clock with seconds in pattern lock screen lock screen.... It will work on any android version or rom.... tested on ICS 4.0.4

What is needed ??

* apktool

* framework-res.apk

* texteditor

How ??

Step 1 :

Decompile framework-res.apk hope you know it well....

Step 2 :

open framework-res.apk\res\layout\keyguard_screen_unlock_portrait.xml

search for line com.android.internal.widget.DigitalClockdelete all starting from com.android.internal.widget.DigitalClock" to "\com.android.internal.widget.DigitalClock>

this will remove stock clock from lockscreen. now the main part, adding our clock, add this line,

DigitalClock is inbuilt inside android from the Beginning, we just referring that inbuilt clock ....

You can change size of the clock by editing android:textSize="60.0sp" , also change color by adding android:textColor="#ffffffff"

Setp 3 : Compile apk, Push / Flash , Enjoy :)

----------------------------------------------------------------------------------------------------------------------

Actually got idea about "digitalclock" by this so thanks to TickleFish

same way for sliding lock screen edit "keyguard_screen_tab_unlock.xml" in same folder....

finding a way to change font also... :) i will update thread if i found anything worthy sharing....

Hope you will hit THANKS button....

screenshot :

i made pattern lock dots invisible so its not a problem.....

-------------------------------------------------------------------------------------------------------------------------------------------------

HOW TO ADD CUSTOM TEXT TO LOCK SCREEN

open the same file "framework-res.apk\res\layout\keyguard_screen_unlock_portrait.xml"

add this line

replace YOUR_TEXT_HERE with anything....

next step : goto res/values/ids add

false

at the end before

i think its not required, you can skip this step and simply remove "android:id="@id/own_text"" from above line it must work.. but not testesd :rolleyes:

same way for sliding lock screen edit "keyguard_screen_tab_unlock.xml" in same folder....

compile and flash or push....

-----------------------------------------------------------------------------------------------------------------------------------------

BASIC CUSTOMIZATION

+ for clock color "@color/lockscreen_clock_background" with any html color code ex android:textColor="#ffffffff" for white..

+ for size android:textSize="18.0sp"

many things are self explanatory, just follow trail and error method :)

----------------------------------------------------------------------------------------------------------------------------------------

CHANGE PATTERN LOCK ICONS

open res/drawable-mdpi/hdpi

look for

+ btn_code_lock_default_holo

+ btn_code_lock_touched_holo

+ indicator_code_lock_point_area_green_holo

+ indicator_code_lock_point_area_red_holo

name may be different for HTC, xperia,samsung devices its for stock rom... just manually check...

edit these images with any editing software i use gimp cuz its OPENSOURCE :o

remember :

name should be same with same extension (.png)

use stock icons for editing rather than create new image to avoid any mistakes

decompiling is not necessary, just replace images within apk

don't delete any image if u don't want any just make it transparent

if you use winrar choose store option when you add images to zip...

-------------------------------------------------------------------------------------------------------------------------------------------------------------

HOW TO CHANGE BACKGROUND IN LOCK SCREEN

again same file

search for "GridLayout" its at the begining.... inside that tag add

android:background="@drawable/lockscreen_back"