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

Search This thread

seljachina

Senior Member
Mar 29, 2012
250
122
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
screenshot_2014-05-23_1913_2.pngscreenshot_2014-05-23_1913_1.png
decompile Settings.apk
go to:
Settings\smali\com\android\settings\ChooseLockPattern$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, [COLOR="Red"]0x1[/COLOR]

    if-ge v0, v1, :cond_5
recompile, push to system/app, reboot.
 
Last edited: