Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,814 Members 44,244 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Hide Lockscreen Statusbar

Tip us?
 
Dwyan3Wad3
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Dec 2013
Default [Q] Hide Lockscreen Statusbar

I tried to follow this guide: http://forum.xda-developers.com/show....php?t=2384892

But resulted on a bootloop, restored back to the og android.policy.jar

Could anyone find what code to mod or make a mod to hide it. And nope I'm not using WIdgetLocker because I want the Ripple/Watercolor effects on my Note. Any help or ideas would be welcome thanks!
 
dwitherell
Old
#2  
dwitherell's Avatar
Recognized Contributor
Thanks Meter 7,998
Posts: 3,819
Join Date: May 2011

 
DONATE TO ME
Quote:
Originally Posted by Dwyan3Wad3 View Post
I tried to follow this guide: http://forum.xda-developers.com/show....php?t=2384892

But resulted on a bootloop, restored back to the og android.policy.jar

Could anyone find what code to mod or make a mod to hide it. And nope I'm not using WIdgetLocker because I want the Ripple/Watercolor effects on my Note. Any help or ideas would be welcome thanks!
Looks like a bit has changed since that source post.

I haven't tested this, but you could try this:

In android.policy -

go to com/android/internal/policy/impl/keyguard/KeyguardViewManager.smali

and look for
Code:
.method public declared-synchronized show(Landroid/os/Bundle;)V
within that method you should find a line that looks like this:
Code:
    invoke-virtual {v4, v3}, Landroid/widget/FrameLayout;->setSystemUiVisibility(I)V
I think if you add const/4 v3, 0x4 right above it you should have a fullscreen lockscreen... not sure, but I think so

so it should look like:
Code:
    const/4 v3, 0x4

    invoke-virtual {v4, v3}, Landroid/widget/FrameLayout;->setSystemUiVisibility(I)V
Let me know if that works, and apologies if it doesn't (keep that backup android.policy handy!)
If you like what I've done... I like sammiches so feel free to buy me one!
The Following User Says Thank You to dwitherell For This Useful Post: [ Click to Expand ]
 
AxAtAx
Old
#3  
AxAtAx's Avatar
Recognized Contributor
Thanks Meter 12,850
Posts: 10,658
Join Date: Mar 2011
Location: ViSiONViLLE

 
DONATE TO ME
Great info here, thanks for tip....I will give it a try...been wondering the same thing, how to remove the status bar on the lockscreen.

 
dwitherell
Old
#4  
dwitherell's Avatar
Recognized Contributor
Thanks Meter 7,998
Posts: 3,819
Join Date: May 2011

 
DONATE TO ME
Quote:
Originally Posted by TheAxman View Post
Great info here, thanks for tip....I will give it a try...been wondering the same thing, how to remove the status bar on the lockscreen.
No prob - let me know if it works!
If you like what I've done... I like sammiches so feel free to buy me one!
 
Dwyan3Wad3
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Dec 2013
Quote:
Originally Posted by dwitherell View Post
No prob - let me know if it works!
Will try later, Imma see what happens.

Quote:
Originally Posted by TheAxman View Post
Great info here, thanks for tip....I will give it a try...been wondering the same thing, how to remove the status bar on the lockscreen.
If it work lmk too
 
Rudjgaard
Old
#6  
Senior Member
Thanks Meter 531
Posts: 829
Join Date: Jun 2012
Hi guys, sorry if I hop in but I was curious did above method work?
Xperia Active ST17i
Rom: ParanoidAndroid
Kernel: LupusJB

LG Optimus 4X HD
Rom: PACman
Kernel: MoKee
__________________________________________________

 
tdunham
Old
(Last edited by tdunham; 16th March 2014 at 01:00 PM.)
#7  
tdunham's Avatar
Recognized Contributor
Thanks Meter 17,964
Posts: 8,164
Join Date: Jun 2008
Location: TampaBay

 
DONATE TO ME
Quote:
Originally Posted by dwitherell View Post
Looks like a bit has changed since that source post.

I haven't tested this, but you could try this:

In android.policy -

go to com/android/internal/policy/impl/keyguard/KeyguardViewManager.smali

and look for
Code:
.method public declared-synchronized show(Landroid/os/Bundle;)V
within that method you should find a line that looks like this:
Code:
    invoke-virtual {v4, v3}, Landroid/widget/FrameLayout;->setSystemUiVisibility(I)V
I think if you add const/4 v3, 0x4 right above it you should have a fullscreen lockscreen... not sure, but I think so

so it should look like:
Code:
    const/4 v3, 0x4

    invoke-virtual {v4, v3}, Landroid/widget/FrameLayout;->setSystemUiVisibility(I)V
Let me know if that works, and apologies if it doesn't (keep that backup android.policy handy!)
@dwitherell
This method looked promising however it did not work for our build.
It didn't seem to make any difference.
Anyone get this working properly to remove lockscreen statusbar?
 
dwitherell
Old
(Last edited by dwitherell; 17th March 2014 at 03:59 AM.)
#8  
dwitherell's Avatar
Recognized Contributor
Thanks Meter 7,998
Posts: 3,819
Join Date: May 2011

 
DONATE TO ME
Quote:
Originally Posted by tdunham View Post
@dwitherell
This method looked promising however it did not work for our build.
It didn't seem to make any difference.
Anyone get this working properly to remove lockscreen statusbar?
Out of curiosity - did the edit do anything, or was there no change? I assume this was a 4.3 build yes? If it didn't break anything but elicited no change, perhaps the rabbit hole runs a bit deeper then... or we gotta poke that method with a different forced entry (even though given this it sure seems like 0x4 was the right value).
If you like what I've done... I like sammiches so feel free to buy me one!
 
tdunham
Old
#9  
tdunham's Avatar
Recognized Contributor
Thanks Meter 17,964
Posts: 8,164
Join Date: Jun 2008
Location: TampaBay

 
DONATE TO ME
Quote:
Originally Posted by dwitherell View Post
Out of curiosity - did the edit do anything, or was their no change? I assume this was a 4.3 build yes? If it didn't break anything but elicited no change, perhaps the rabbit hole runs a bit deeper than... or we gotta poke that method with a different forced entry (even though given this it sure seems like 0x4 was the right value).
Yes, this is for 4.3. I'm not as proficient at smali as others but I don't see anything obvious either.
It didn't seem to have any affect at all. I even tried 0x0 thru 0x4 just for the sake of it to go through some other registers as well.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes