Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUT] Lockscreen - Draw pattern - less than 4 dots

OP seljachina

23rd May 2014, 07:20 PM   |  #1  
seljachina's Avatar
OP Senior Member
Thanks Meter: 121
 
243 posts
Join Date:Joined: Mar 2012
Here is tutorial how to mod Settings.apk if you want to draw pattern less than 4 dots.
I try this on GB, not tested on ICS
Click image for larger version

Name:	screenshot_2014-05-23_1913_2.png
Views:	27
Size:	42.7 KB
ID:	2759415Click image for larger version

Name:	screenshot_2014-05-23_1913_1.png
Views:	23
Size:	42.4 KB
ID:	2759414
decompile Settings.apk
go to:
Settings\smali\com\android\settings\ChooseLockPatt ern$1.smali

and change this:
Code:
    :cond_4
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x4

    if-ge v0, v1, :cond_5
to this:
Code:
    :cond_4
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x1

    if-ge v0, v1, :cond_5
recompile, push to system/app, reboot.
Last edited by seljachina; 23rd May 2014 at 07:25 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes