Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,791 Members 50,710 Now Online
XDA Developers Android and Mobile Development Forum

[guide][gb]how to remove battery icon on statusbar

Tip us?
 
dendenXD
Old
(Last edited by dendenXD; 1st June 2014 at 03:11 AM.)
#1  
Junior Member - OP
Thanks Meter 4
Posts: 5
Join Date: Apr 2014
Location: Rizal
Default [guide][gb]how to remove battery icon on statusbar

This Guide was tested on Spreadtrum GB phones So better to try this on yours

REQUIREMENTS

Apktool
RootExplorer
TextEditor
your own SystemUI
Patience

Here are the steps

step 1

-decompile SystemUI.apk
-navigate to SystemUI_src/smali/com/android/systemui/statusbar/StatusBarPolicy.smali

step 2

-open StatusBarPolicy.smali then find and delete these lines

-inside .method public constructor <init>(Landroid/content/ContextV

Code:
.line 731
    iget-object v0, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;

    const-string v1, "battery"

    const v2, 0x10802c6

    invoke-virtual {v0, v1, v2, v4}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
-and inside .method private final updateBattery(Landroid/content/IntentV

Code:
 .line 913
    .local v1, level:I
    iget-object v4, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;

    const-string v5, "battery"

    invoke-virtual {v4, v5, v0, v1}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
-save and close

step 3

-recompile your work
-push it system/app
-reboot


CREDITS

@Erhany for his awesome guide http://forum.xda-developers.com/show...5#post53065635
Attached Thumbnails
Click image for larger version

Name:	hiwalay na cla.png
Views:	105
Size:	132.5 KB
ID:	2773913  
The Following User Says Thank You to dendenXD For This Useful Post: [ Click to Expand ]
 
Myth2014
Old
#2  
Myth2014's Avatar
Senior Member
Thanks Meter 10
Posts: 103
Join Date: Apr 2014
Location: Linyi
Thanks..sir..

Replay by my Tapatalk pro
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes