Selasa, 05 Mei 2015

[GUIDE] Kitkat LockScreen

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
Code:

MultiWaveViewForSimulateICS

Now replace the above with this
Code:

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
copy the public id to another place
Search for

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
Code:

.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
Now Search for this line
Code:

.line 49

Below this u will find const v1, 0x10*****
change the 0x10***** with the public id
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 Klik 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\MultiWaveVi ew.smali
search for this
Code:

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

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

Now change it to this
Code:

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.
@sssomnath474 for hdpi sources
& ofc me for this guide

If u like this guide then hit thanks

XDA:DevDB Information
KK LockScreen for GB (see above for details)

Contributors
pritish sahoo, Droidbuster

Version Information
Status: Stable

SUMBER XDA

Created by : Difta Vengeance'z

0 komentar:

Posting Komentar