FORUMS
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
 
More
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:	315
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
 
More
Thanks..sir..

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