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

Search This thread

ardelsan

Member
May 12, 2013
40
35
Olongapo
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/Context;)V
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!. :good:


Screenshots
h6jwt5i7fb2cg69fg.jpg


Press THANKS Button if it works :cowboy:
 

.::AIMAN::.

Senior Member
Jun 2, 2014
96
15
Ranchi
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/Context;)V
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!. :good:


Screenshots
h6jwt5i7fb2cg69fg.jpg


Press THANKS Button if it works :cowboy:



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

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    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/Context;)V
    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!. :good:


    Screenshots
    h6jwt5i7fb2cg69fg.jpg


    Press THANKS Button if it works :cowboy: