Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,956 Members 43,354 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Removing Battery Status From Lock Screen

Tip us?
 
Ticklefish
Old
#1  
Ticklefish's Avatar
Recognized Themer - OP
Thanks Meter 3,445
Posts: 3,887
Join Date: Oct 2011
Location: UK
Question [Q] Removing Battery Status From Lock Screen

Hi all,

does anyone know how I can remove the battery info that shows on the stock lock screen (percentage and id_lock.. images)? Now I've changed the battery info in the status bar, it's really not needed.

I've tried removing the relevant lines from keyguard_screen_lock.xml in the layout folder of my framework-res, but it hasn't changed anything and I'm too noobish to know what else to fiddle with.

I could try Widgetlocker or something similar, but that kinda defeats the point. Plus, I'm just too stubborn..

Many thanks!
 
martiii
Old
(Last edited by martiii; 8th December 2011 at 07:27 PM.) Reason: fail
#2  
martiii's Avatar
Senior Member
Thanks Meter 149
Posts: 360
Join Date: Apr 2011
Location: Zombietown
Quote:
Originally Posted by Ticklefish View Post
Hi all,

does anyone know how I can remove the battery info that shows on the stock lock screen (percentage and id_lock.. images)? Now I've changed the battery info in the status bar, it's really not needed.

I've tried removing the relevant lines from keyguard_screen_lock.xml in the layout folder of my framework-res, but it hasn't changed anything and I'm too noobish to know what else to fiddle with.

I could try Widgetlocker or something similar, but that kinda defeats the point. Plus, I'm just too stubborn..

Many thanks!
Are u using a Custom ROM like mini CM7!? when yes goto Settings / CyanogenMod settings / Lockscreen / Widget options

when NO i dont know

edit: ah im blind u use stock !!!
phone: nexus:five | kernel: franco.r34 | rom: MAHDI
tablet: nexus:seven | kernel: faux | rom: PA4+

old device: SE Xperia nAa x10mini , Nexus 4
The Following User Says Thank You to martiii For This Useful Post: [ Click to Expand ]
 
scook94
Old
#3  
scook94's Avatar
Senior Member
Thanks Meter 61
Posts: 318
Join Date: Dec 2010
Location: Stirling, UK
Quote:
Originally Posted by martiii View Post
Are u using a Custom ROM like mini CM7!? when yes goto Settings / CyanogenMod settings / Lockscreen / Widget options

when NO i dont know

edit: ah im blind u use stock !!!
Was trying to figure out how to turn it ON after installing a new ROM! Thanks!
Primary Phone - Blackberry Z30 OS10.3.0.1130

Secondary Phone - Sony Xperia S - nozomi
[ROM][4.4] CM-11.0 | OpenSEMC - BETA 3.5

Lying in a drawer Phone - SE Xperia X10 Mini Pro
ROM - MiniCM7-2.2.1 by nobodyAtall
Kernel - nAa-14
 
Ticklefish
Old
#4  
Ticklefish's Avatar
Recognized Themer - OP
Thanks Meter 3,445
Posts: 3,887
Join Date: Oct 2011
Location: UK
Yeah, I like to make things difficult for myself. lol

I think I've figured it out, but I'll have to wait until I get home to try it out. It looks like I need to edit keyguard_screen_tab_unlock.xml in the layout folder of my framework-res.apk and remove the line:
"<TextView android:textSize="18.0dip" android:textColor="#ccffffff" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:drawablePadding="8.0dip" />".
Apparently, status1 is the battery icon and percentage while status2 is the alarm icon and info.
I'll try it out and report back.
 
Ticklefish
Old
#5  
Ticklefish's Avatar
Recognized Themer - OP
Thanks Meter 3,445
Posts: 3,887
Join Date: Oct 2011
Location: UK
Quote:
Originally Posted by scook94 View Post
Was trying to figure out how to turn it ON after installing a new ROM! Thanks!
Glad to see my issue creates someone else's solution..lol

Y'know, if you're in the mood, you could add even more battery info to your lockscreen. If you fancy doing some fiddling, check out this: http://www.webyme.net/?p=254
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes