[MOD][XML]Remove Carrier Label from Status bar and notification panel[MOD][XML]

Search This thread

cstayton

Inactive Recognized Developer
Mar 5, 2011
2,591
4,089
Waite Park, MN.
Guide How to remove Carrier Label from Status Bar and Notification Panel

Edits required to XML in /system/priv-app/SystemUI.apk
Locate your SystemUI.apk
adb pull /system/priv-app/SystemUI.apk
Extract from Stock unmodded S5 ROM

Decompile the apk
Using either Virtuous Ten Studio or Apk-Multitool
decompile the apk.

In the decompiled folder browse to /res/layout
Open res/layout/status_bar.xml
Open res/values/dimens.xml

Step 1:
Open res/layout/status_bar.xml with notepad++ or compatible text editor (Not notepad or wordpad) and make the change below
1. Search for "carrier"
2. Change the default value to match the Blue highlighted value
Code:
<TextView [COLOR="blue"]android:textSize="0.0dip"[/COLOR] android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
3. Save and close the file.

Step 2:
Open res/values/dimens.xml with notepad++ or compatible text editor.
1. Search for "carrier_label_height"
2. Change the default value to match the Blue highlighted value
Code:
<dimen name="carrier_label_height">[COLOR="Blue"]0.0dip[/COLOR]</dimen>
3. Save and close the file.

Recompile the APK DO NOT RESIGN THE APK
Reboot to SS recovery and adb push to /system/priv-app/SystemUI.apk
Delete Cache and Dalvik-Cache and reboot.

NOTICE
This MOD has been around for years and is constantly being modded or adjusted for each OS version,
each device and each devs own needs. DEVS are free to use this mod no need to ask for permissions.
All I ask is recognition as to where you got it from.

See post #2 for an alternate method
 
Last edited:

cstayton

Inactive Recognized Developer
Mar 5, 2011
2,591
4,089
Waite Park, MN.
Alternate Method [smali edit]

Alternate method for removing carrier branding using smali edits

Pull /system/priv-app/SystemUI.apk - either from device or from ROM zip file.

Decompile using available tools - I recomend Virtuous Ten Studio

Locate /smali/con/android/systemui/statusbar/phone/PhoneStatusBar.smali

Search for this method .method setCarrierLabelVisibility(ZI)V

Replace the entire contents of the method with the one below:

Code:
.method setCarrierLabelVisibility(ZI)V
    .locals 0

    return-void
.end method

Re-compile the apk and adb push to your device or add back into ROM zip and flash.

NOTE:
This method has the advantage of not interfering with the statusbar layout or ticker display as previous mods would occasionally cause
the statusbar icons to "jump" as tho some ticker display or carrier logo was attempting to display.

The other advantage is that this method should work for android lollipop as well (untested)
 
Last edited:
  • Like
Reactions: Mako0

AxAtAx

Senior Member
Mar 14, 2011
13,116
20,412
ViSiON,Texas
nice...I completely didnt look for this when I did the att rom...good job...will come in handy for the next build...thanks sir for the guide...??
 

cstayton

Inactive Recognized Developer
Mar 5, 2011
2,591
4,089
Waite Park, MN.
nice...I completely didnt look for this when I did the att rom...good job...will come in handy for the next build...thanks sir for the guide...??

as a note @TheAxman the statusbar is still a little flaky it comes and goes of its own accord but the notification panel one is completely gone,

P.S.
Think I'm gonna have to check out your complete vissix rom when you get it done :good::good:

P.P.S. I just modded the OP, think i may have fixed the statusbar label as well
 
Last edited:
  • Like
Reactions: AxAtAx

AxAtAx

Senior Member
Mar 14, 2011
13,116
20,412
ViSiON,Texas
as a note @TheAxman the statusbar is still a little flaky it comes and goes of its own accord but the notification panel one is completely gone,

P.S.
Think I'm gonna have to check out your complete vissix rom when you get it done :good::good:

P.P.S. I just modded the OP, think i may have fixed the statusbar label as well

We are doing this mod now, I will let you know the result....:good::good:

EDIT: Ok, I tried everything, checked each line character by character, logo still visible, what am I missing? Something else must be located somewhere else....
 
Last edited:

cstayton

Inactive Recognized Developer
Mar 5, 2011
2,591
4,089
Waite Park, MN.
We are doing this mod now, I will let you know the result....:good::good:

EDIT: Ok, I tried everything, checked each line character by character, logo still visible, what am I missing? Something else must be located somewhere else....

logo still visible on the statusbar expaneded it should look like the screenshot attached (with the exception that i have a custom background)

if you want the logo off of the lockscreen thats a different mod

and the normal status bar one is still flaky
 

Attachments

  • Screenshot_2014-07-11-15-03-24.jpg
    Screenshot_2014-07-11-15-03-24.jpg
    132.7 KB · Views: 883

AxAtAx

Senior Member
Mar 14, 2011
13,116
20,412
ViSiON,Texas
logo still visible on the statusbar expaneded it should look like the screenshot attached (with the exception that i have a custom background)

if you want the logo off of the lockscreen thats a different mod

and the normal status bar one is still flaky

I figured that out after, sorry, you are correct, it does work for the pulldown, I did not read, my apologies...:good:
 

cstayton

Inactive Recognized Developer
Mar 5, 2011
2,591
4,089
Waite Park, MN.
I'll be posting a revised mod this evening that will correctly remove all instances of the carrier labeling.

Sent from my SAMSUNG-SM-G900A using XDA Free mobile app
 
  • Like
Reactions: AxAtAx

AxAtAx

Senior Member
Mar 14, 2011
13,116
20,412
ViSiON,Texas
[OP] has been revised, this will correctly remove the carrier label from the notification pull down as well as from the status bar

Yep, tested and working, great job @cstayton, not one issue. Thanks for your work on this one......:good::good::good:
Been looking for this fix for the Note3 when it was released for the att device, best guide for the carrier removal is right here hands down, easy and quick! And I have tried most all others...
 
Last edited:
  • Like
Reactions: cstayton

LeftyGR

Senior Member
Oct 18, 2011
2,120
1,712
Bloomington, IL
Is there a way to revert this to restore back the carrier label
Do you still have the systemui.apk before it was modified? If yes, two ways.
Safer way: make a flashable zip that replaces your current one with it.
Quicker way: copy/paste the original apk in system, fix permissions, reboot. This way will cause systemui.apk to fc until you reboot.
 
  • Like
Reactions: 12MaNy

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Guide How to remove Carrier Label from Status Bar and Notification Panel

    Edits required to XML in /system/priv-app/SystemUI.apk
    Locate your SystemUI.apk
    adb pull /system/priv-app/SystemUI.apk
    Extract from Stock unmodded S5 ROM

    Decompile the apk
    Using either Virtuous Ten Studio or Apk-Multitool
    decompile the apk.

    In the decompiled folder browse to /res/layout
    Open res/layout/status_bar.xml
    Open res/values/dimens.xml

    Step 1:
    Open res/layout/status_bar.xml with notepad++ or compatible text editor (Not notepad or wordpad) and make the change below
    1. Search for "carrier"
    2. Change the default value to match the Blue highlighted value
    Code:
    <TextView [COLOR="blue"]android:textSize="0.0dip"[/COLOR] android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
    3. Save and close the file.

    Step 2:
    Open res/values/dimens.xml with notepad++ or compatible text editor.
    1. Search for "carrier_label_height"
    2. Change the default value to match the Blue highlighted value
    Code:
    <dimen name="carrier_label_height">[COLOR="Blue"]0.0dip[/COLOR]</dimen>
    3. Save and close the file.

    Recompile the APK DO NOT RESIGN THE APK
    Reboot to SS recovery and adb push to /system/priv-app/SystemUI.apk
    Delete Cache and Dalvik-Cache and reboot.

    NOTICE
    This MOD has been around for years and is constantly being modded or adjusted for each OS version,
    each device and each devs own needs. DEVS are free to use this mod no need to ask for permissions.
    All I ask is recognition as to where you got it from.

    See post #2 for an alternate method
    2
    [OP] has been revised, this will correctly remove the carrier label from the notification pull down as well as from the status bar
    1
    Alternate Method [smali edit]

    Alternate method for removing carrier branding using smali edits

    Pull /system/priv-app/SystemUI.apk - either from device or from ROM zip file.

    Decompile using available tools - I recomend Virtuous Ten Studio

    Locate /smali/con/android/systemui/statusbar/phone/PhoneStatusBar.smali

    Search for this method .method setCarrierLabelVisibility(ZI)V

    Replace the entire contents of the method with the one below:

    Code:
    .method setCarrierLabelVisibility(ZI)V
        .locals 0
    
        return-void
    .end method

    Re-compile the apk and adb push to your device or add back into ROM zip and flash.

    NOTE:
    This method has the advantage of not interfering with the statusbar layout or ticker display as previous mods would occasionally cause
    the statusbar icons to "jump" as tho some ticker display or carrier logo was attempting to display.

    The other advantage is that this method should work for android lollipop as well (untested)
    1
    nice...I completely didnt look for this when I did the att rom...good job...will come in handy for the next build...thanks sir for the guide...??

    as a note @TheAxman the statusbar is still a little flaky it comes and goes of its own accord but the notification panel one is completely gone,

    P.S.
    Think I'm gonna have to check out your complete vissix rom when you get it done :good::good:

    P.P.S. I just modded the OP, think i may have fixed the statusbar label as well
    1
    I figured that out after, sorry, you are correct, it does work for the pulldown, I did not read, my apologies...:good:

    lol i think our replies crossed paths whew glad it worked, i think the status bar label is a smali edit i just havent found it yet.