Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,714 Members 46,256 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][GB] How to Remove Alarm icon on Status Bar

Tip us?
 
ardelsan
Old
#1  
ardelsan's Avatar
Member - OP
Thanks Meter 21
Posts: 40
Join Date: May 2013
Location: Olongapo
Default [GUIDE][GB] How to Remove Alarm icon on Status Bar

This GUIDE was tested on my Spreadtrum GB device. So just give it a try and then feedback

So Let's start..

Requirements:

1. Apktool
2. Notepad++
3. Your SystemUI.apk
4. Little Patience

Instructions:

1. Decompile your SystemUI.apk then go to smali/com/android/systemui/statusbar
2. Open StatusBarPolicy.smali
3. Search this method:
Code:
.method public constructor <init>(Landroid/content/Context;)V
4. Delete this line:
Code:
const-string v7, "alarm_clock"
5. Now, inside of this method: .method public constructor <init>(Landroid/content/ContextV
6. Search and delete this line:
Code:
    .line 825
    iget-object v0, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;

    const-string v1, "alarm_clock"

    const v1, 0x7f020037

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

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

    const-string v1, "alarm_clock"

    invoke-virtual {v0, v7, v4}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
7. Save, Recompile your SystemUI, Push to system/app, set permission to rw-r-r and then Reboot your phone. Done!.


Screenshots
 


Press THANKS Button if it works
The Following User Says Thank You to ardelsan For This Useful Post: [ Click to Expand ]
 
Carl_47
Old
#2  
Junior Member
Thanks Meter 5
Posts: 23
Join Date: Jun 2014
Location: Ranchi
Quote:
Originally Posted by ardelsan View Post
This GUIDE was tested on my Spreadtrum GB device. So just give it a try and then feedback

So Let's start..

Requirements:

1. Apktool
2. Notepad++
3. Your SystemUI.apk
4. Little Patience

Instructions:

1. Decompile your SystemUI.apk then go to smali/com/android/systemui/statusbar
2. Open StatusBarPolicy.smali
3. Search this method:
Code:
.method public constructor <init>(Landroid/content/Context;)V
4. Delete this line:
Code:
const-string v7, "alarm_clock"
5. Now, inside of this method: .method public constructor <init>(Landroid/content/ContextV
6. Search and delete this line:
Code:
    .line 825
    iget-object v0, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;

    const-string v1, "alarm_clock"

    const v1, 0x7f020037

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

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

    const-string v1, "alarm_clock"

    invoke-virtual {v0, v7, v4}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
7. Save, Recompile your SystemUI, Push to system/app, set permission to rw-r-r and then Reboot your phone. Done!.


Screenshots
 


Press THANKS Button if it works


ThanX ... by the way .. can this be used for some other icons too on the statusbar..!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes