[Guide] full lockscreen/hide statusbar on lockscreen

syaeful

Senior Member
Jul 31, 2013
130
87
0
Purbalingga
Hai XDA. I just want share little guide and very simple :D
How to full lockscreen/ hide statusbar on lockscreen,
Lets go to guide

Requirement
Apktool
Notepad
android.policy.jar

Decompile your android.policy.jar
Go to : smali\com\android\internal\policy\impl\KeyguardViewManager.smali
find .method public declared-synchronized show()V
and scrool down, find line similiar like this
Code:
const/4 v5, 0x0

    invoke-direct {v1, v2, v3, v5}, Lcom/android/internal/policy/impl/KeyguardViewManager$KeyguardViewHost;-><init>(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardViewManager$1;)V

    iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;

    .line 119
    const/4 v9, -0x1

    .line 120
    .local v9, stretch:I
    const v4, [COLOR="Red"]0x100800[/COLOR]

    .line 125
    .local v4, flags:I
    iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z

    if-nez v1, :cond_2

    .line 126
    const/high16 v1, 0x2

    or-int/2addr v4, v1
see the code I marked in red : 0x100800 and change it to 0x10000504
Save, recompile your android.policy.jar and DONE!!
Happy Modding :highfive:
 

Attachments

kulphat

New member
Apr 14, 2014
4
0
0
I lock the screen while listening to music with headphones , the music I was lag
I often listen to music and it makes me feel very uncomfortable ... you can not fix it
 

veneetsingh

Senior Member
Jul 6, 2014
89
18
0
22
Badarpur
Hai XDA. I just want share little guide and very simple :D
How to full lockscreen/ hide statusbar on lockscreen,
Lets go to guide

Requirement
Apktool
Notepad
android.policy.jar

Decompile your android.policy.jar
Go to : smali\com\android\internal\policy\impl\KeyguardViewManager.smali
find .method public declared-synchronized show()V
and scrool down, find line similiar like this
Code:
const/4 v5, 0x0

    invoke-direct {v1, v2, v3, v5}, Lcom/android/internal/policy/impl/KeyguardViewManager$KeyguardViewHost;-><init>(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardViewManager$1;)V

    iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;

    .line 119
    const/4 v9, -0x1

    .line 120
    .local v9, stretch:I
    const v4, [COLOR="Red"]0x100800[/COLOR]

    .line 125
    .local v4, flags:I
    iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z

    if-nez v1, :cond_2

    .line 126
    const/high16 v1, 0x2

    or-int/2addr v4, v1
see the code I marked in red : 0x100800 and change it to 0x10000504
Save, recompile your android.policy.jar and DONE!!
Happy Modding :highfive:
nice guide can you make a guide for4.0+ How to create lollipop lockscreen.??:good:
 

boszjhiee22

New member
Jul 2, 2015
2
1
0
inquiry

Hai XDA. I just want share little guide and very simple :D
How to full lockscreen/ hide statusbar on lockscreen,
Lets go to guide

Requirement
Apktool
Notepad
android.policy.jar

Decompile your android.policy.jar
Go to : smali\com\android\internal\policy\impl\KeyguardViewManager.smali
find .method public declared-synchronized show()V
and scrool down, find line similiar like this
Code:
const/4 v5, 0x0

    invoke-direct {v1, v2, v3, v5}, Lcom/android/internal/policy/impl/KeyguardViewManager$KeyguardViewHost;-><init>(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardViewManager$1;)V

    iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;

    .line 119
    const/4 v9, -0x1

    .line 120
    .local v9, stretch:I
    const v4, [COLOR="Red"]0x100800[/COLOR]

    .line 125
    .local v4, flags:I
    iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z

    if-nez v1, :cond_2

    .line 126
    const/high16 v1, 0x2

    or-int/2addr v4, v1
see the code I marked in red : 0x100800 and change it to 0x10000504
Save, recompile your android.policy.jar and DONE!!
Happy Modding :highfive:
will this work on kitkat firmware?
 
  • Like
Reactions: mj villm

nor0

New member
Aug 31, 2015
1
0
0
apktool

I would like to do it but i dont know how to install apktool i did step by step, but i dont kn0ow how to write the code in cmd
 

muhasin

Senior Member
Jan 4, 2016
122
69
28
KERALA
how to hide status bar in lollipop 5.1.1 lockscreen

Dear friend,

can u help me to edit android policy.jar to remove the status bar in lock screen?
thanks in advance