FORUMS

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

40 posts
Thanks Meter: 33
 
Post Reply Subscribe to Thread Email Thread
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: [ View ]
 
 
20th June 2014, 08:58 AM |#2  
Member
Flag Ranchi
Thanks Meter: 5
 
More
Quote:
Originally Posted by ardelsan

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..!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes