Post Reply Subscribe to Thread Email Thread

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

1st June 2014, 03:04 AM   |  #1  
OP Junior Member
Flag Rizal
Thanks Meter: 14
11 posts
Join Date:Joined: Apr 2014
This Guide was tested on Spreadtrum GB phones So better to try this on yours


your own SystemUI

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

.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

 .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


@Erhany for his awesome guide
Attached Thumbnails
Click image for larger version

Name:	hiwalay na cla.png
Views:	299
Size:	132.5 KB
ID:	2773913  
Last edited by dendenXD; 1st June 2014 at 03:11 AM.
The Following User Says Thank You to dendenXD For This Useful Post: [ View ]
3rd June 2014, 07:44 AM   |  #2  
Myth2014's Avatar
Senior Member
Flag Linyi
Thanks Meter: 13
115 posts
Join Date:Joined: Apr 2014

Replay by my Tapatalk pro
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes