[How-To] Using PIN/Pattern + Lockscreen at the same time

Search This thread

erorcun

Senior Member
Oct 14, 2012
901
3,559
Hello. This feature was one of the most wanted features from GB. I found this on another phone's forum. (I don't remember now.)

Decompile your android.policy.jar and open com\android\internal\policy\impl\LockPatternKeyguardView.smali file.

Then find this:

Code:
iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z

And change with that:

Code:
iput-boolean v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z

Compile, put old signature back, move to system/framework and ta-da, done! :)
 
Last edited:

gopiraj_m

Senior Member
Oct 5, 2012
561
144
Hyderabad
Re: Xperia U only

So i made this file Android.policy.jar-decompiled and recompiled as he said.
It works perfectly on my mate's XU and should do on all XUs ONLY!
just copy to system/framework and set right permissions-reboot and its done!
:good:
Credits: erorcun
 

Attachments

  • android.policy.jar
    137.2 KB · Views: 203

XqepX

Senior Member
Feb 22, 2012
1,405
770
AW: [How-To] Using PIN/Pattern + Lockscreen at the same time

So i made this file Android.policy.jar-decompiled and recompiled as he said.
It works perfectly on my mate's XU and should do on all XUs ONLY!
just copy to system/framework and set right permissions-reboot and its done!
:good:
Credits: erorcun

Can somebody do this for XSola too? :)
 

jioleight

Senior Member
Feb 18, 2011
640
126
CEBU CITY
For XP

Got it right! for XP here is my modded android.policy.jar (or edited smali).
move to system/framework and then set right permission. :D

*BTW android.policy.jar is from Fidelity ZX 9.0. not sure if it will work with other ROMS.
*For FZX v11
 

Attachments

  • android.policy.jar
    137.5 KB · Views: 39
Last edited:

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,901
netherlands
www.youtube.com
So i made this file Android.policy.jar-decompiled and recompiled as he said.
It works perfectly on my mate's XU and should do on all XUs ONLY!
just copy to system/framework and set right permissions-reboot and its done!
:good:
Credits: erorcun

Wich fw he uses ? B1.10 or 1.54
Etc ;)


Btw @ errorcun
Inside the framework.jar ive found slidingtabmethod and waveview and multiwavevie method

Multiwaveview= ics lockscreen
Waveview = honeycomb lockscreen and
Slidingtabmethod = gingerbread lockscreen

To enable on of them
Delete or bakup uxntpxrlockscreen.apk

And then in framework-res.apk

Change com.android.internal.widget.multiwaveview.multiwavieview
To com.android.internal.widget.slidingtabmethod

Etc same with waveview

Them we bave the other lockscreen enabled

But can we make something like a toggle to switch between them ?


Sent from my ST25i using xda app-developers app
 
  • Like
Reactions: gopiraj_m

gopiraj_m

Senior Member
Oct 5, 2012
561
144
Hyderabad
Wich fw he uses ? B1.10 or 1.54
Etc ;)


Btw @ errorcun
Inside the framework.jar ive found slidingtabmethod and waveview and multiwavevie method

Multiwaveview= ics lockscreen
Waveview = honeycomb lockscreen and
Slidingtabmethod = gingerbread lockscreen

To enable on of them
Delete or bakup uxntpxrlockscreen.apk

And then in framework-res.apk

Change com.android.internal.widget.multiwaveview.multiwavieview
To com.android.internal.widget.slidingtabmethod

Etc same with waveview

Them we bave the other lockscreen enabled

But can we make something like a toggle to switch between them ?


Sent from my ST25i using xda app-developers app

Oh! Thanks for for info though.
I'll check once I'm back from work and report.

Sent from my LT26i using xda premium
 

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,901
netherlands
www.youtube.com
@Ultracity

I don't know.

@SpaceCaker

It's possible but it will take time :\ sorry. Why do you want to use them?


Because its nice :p

Because on old GB lockscreen we have the sound slider

On Waveview we can drag and unlock everywhere and well Multiwaveview is dtock ics


Also found guide to addd htc bb10 acer locksvreens etc

( not from source ) they are built and used for samsung s3
And i tried the BB lock bbut it needs resizing in the smali so i am busy with that
 

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    Hello. This feature was one of the most wanted features from GB. I found this on another phone's forum. (I don't remember now.)

    Decompile your android.policy.jar and open com\android\internal\policy\impl\LockPatternKeyguardView.smali file.

    Then find this:

    Code:
    iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z

    And change with that:

    Code:
    iput-boolean v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z

    Compile, put old signature back, move to system/framework and ta-da, done! :)
    10
    Fix for JB version

    The same procedure doesn't work in JB because the v3 register is undefined.

    ICS (ST27i, firmware build 6.1.1.B.1.54):
    Code:
        .prologue
        [COLOR="Red"]const/4 v3, 0x1[/COLOR]
    
        const/4 v2, 0x0
    
    ...
    
        .line 124
        iput-boolean [B]v2[/B], p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z
                     [COLOR="Orange"]^^ This gets changed to [B]v3[/B], which is equivalent to changing the boolean from false to true.[/COLOR]

    JB (ST27i, firmware build 6.2.A.0.400):
    Code:
        .prologue
        const/4 v2, 0x0
    
    ...
    
        .line 117
        iput-boolean [B]v2[/B], p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z
                     [COLOR="Orange"]^^ Changing this to [B]v3[/B] fails because the register has not been declared![/COLOR]

    So, how do we fix this? Here's how (the text in green should be added):
    Code:
        .prologue
        [COLOR="SeaGreen"][B]const/4 v0, 0x1[/B][/COLOR]
    
        const/4 v2, 0x0
    
    ...
    
        .line 117
        iput-boolean [COLOR="SeaGreen"][B]v0[/B][/COLOR], p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z

    Do not use anything other than v0 or it will fail.

    I've tested it and it works perfectly for me, have fun.
    9
    Re: Xperia U only

    So i made this file Android.policy.jar-decompiled and recompiled as he said.
    It works perfectly on my mate's XU and should do on all XUs ONLY!
    just copy to system/framework and set right permissions-reboot and its done!
    :good:
    Credits: erorcun
    2
    Made for xSola. Just copy and paste to system/framework.
    2
    @Ultracity

    I don't know.

    @SpaceCaker

    It's possible but it will take time :\ sorry. Why do you want to use them?