[Android Software/Hacking General [Developers Only]] pritish sahoo:
I am Pritish

again with New guide

How to port KK lockscreen TO GB using Droidbuster ICS Lockscreen source

This Should work on any GB device......

So Lets Start

Requirements:

1.Droidbuster's ics Lockscreen

2.apktool

3.Notepad++

4.Brain :p

1.First make ics lockscreen from this guide(note u dont need to change public ids in MultiWaveViewForSimulateICS.smali in that guide)

if u have did the the things from the above guide now u can continue to this guide

2.Decompile ur android.policy.jar

3.open smali\com\android\internal\policy\impl\SimulateICS_LockScreen.smali

& search for

MultiWaveViewForSimulateICS

Now replace the above with this

MultiWaveView

Replace untill all the "MultiWaveViewForSimulateICS" codes change to "MultiWaveView"[U can use Notepad++ to replace all at one time)

4.Decompile framework-res.apk & open res\vales\public.xml

Search for

id <public type="layout" name="lockscreen_greenorange"

copy the public id to another place

Search for

<public type="id" name="rl_multiWaveView"

copy the id to another place

(Note- remove 0 after 0x, eg;-if its 0x0102026d then it should be 0x102026d ,do this for all public ids)

5.Now again open smali\com\android\internal\policy\impl\SimulateICS_LockScreen.smali

Search for this line

.line 43
.local v0, mInflater:Landroid/view/LayoutInflater;

Below this u will find const v1, 0x10***** (***** are different according to ur Public ids as u have already changed that in Droidbuster guide)

Change the 0x10***** with the public id <public type="layout" name="lockscreen_greenorange" (that u have copied before)

Now Search for this line

.line 49

Below this u will find const v1, 0x10*****

change the 0x10***** with the public id <public type="id" name="rl_multiWaveView" (that u have copied before)

Now ur done ,u have succesfully Unlocked 4way Lockscreen (u can test it now on ur phone by recompiling & pushing android.policy.jar & framework-res.apk but if u directly want 3way LS then skip this step & proceed to next)

Converting the 4way Lockscreen to 3way

now its a xml part so values are varies with different Screen sizes

1.Goto decompiled framework-res folder

2.Download the sources from here & merge/replace with urs

3.Now recompile ur framework-res.apk

Again we have to change intent activity

1.So goto decompiled folder of android.policy.jar

Open smali\com\android\internal\policy\impl\MultiWaveView.smali

search for this

const-string v4, "com.android.mms"

const-string v5, "com.android.mms.ui.ConversationList"

Now change it to this

const-string v4, "com.google.android.googlequicksearchbox"

const-string v5, "com.google.android.googlequicksearchbox.SearchActivity"

U can change it ur desired app intent but i m adding google search as kitkat LS has a google search on LS

2.Now recompile ur android.policy.jar

3.Now push ur android.policy.jar & framework-res.apk to /system/framework/

It should work if u have did not any mistake.....

If it worked take a beer..... :P lol

Credits:

@Droidbuster for everything his sources,his guide etc.
[MENTION=4535816]sssomnath474[/MENTION] for hdpi sources

& ofc me for this guide :p

If u like this guide then hit thanks :p

XDA:DevDB Information

KK LockScreen for GB (see above for details)

Contributors

pritish sahoo, Droidbuster

Version Information

Status: Stable

Created 2015-01-25

Last Updated 2015-01-25​