FORUMS

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising … more

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we … more

The Ultimate Showcase of dBrand Skins

In the search for ways to protect, accessorize, and personalize; a user has many options. One … more

Huawei’s Rapid Rise to Third Place in the Smartphone Race

Huawei has quickly grown to become one of the world’s biggest … more

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

2,565 posts
Thanks Meter: 4,024
 
By cstayton, Recognized Developer on 8th July 2014, 02:45 AM
Post Reply Subscribe to Thread Email Thread
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 android:textSize="0.0dip" 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">0.0dip</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.

Quote:

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 by cstayton; 1st February 2015 at 02:05 AM. Reason: Added alternate smali method
The Following 6 Users Say Thank You to cstayton For This Useful Post: [ View ]
 
 
8th July 2014, 02:45 AM |#2  
cstayton's Avatar
OP Recognized Developer
Flag Waite Park, MN.
Thanks Meter: 4,024
 
Donate to Me
More
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 by cstayton; 1st February 2015 at 02:02 AM.
9th July 2014, 10:31 PM |#3  
carlospr21's Avatar
Senior Member
Flag P.R. Levittown
Thanks Meter: 1,471
 
Donate to Me
More
Quote:
Originally Posted by cstayton

reserved

How can i get this on stock nd3 odex??

Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app
9th July 2014, 10:33 PM |#4  
cstayton's Avatar
OP Recognized Developer
Flag Waite Park, MN.
Thanks Meter: 4,024
 
Donate to Me
More
Quote:
Originally Posted by carlospr21

How can i get this on stock nd3 odex??

Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app

only for de-odexed sorry
11th July 2014, 01:55 AM |#5  
AxAtAx's Avatar
Recognized Contributor
Flag ViSiON,Texas
Thanks Meter: 19,937
 
Donate to Me
More
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...👍👍
11th July 2014, 03:20 AM |#6  
cstayton's Avatar
OP Recognized Developer
Flag Waite Park, MN.
Thanks Meter: 4,024
 
Donate to Me
More
Quote:
Originally Posted by TheAxman

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

P.P.S. I just modded the OP, think i may have fixed the statusbar label as well
Last edited by cstayton; 11th July 2014 at 03:32 AM.
The Following User Says Thank You to cstayton For This Useful Post: [ View ]
11th July 2014, 05:07 PM |#7  
AxAtAx's Avatar
Recognized Contributor
Flag ViSiON,Texas
Thanks Meter: 19,937
 
Donate to Me
More
Quote:
Originally Posted by cstayton

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

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....

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 by AxAtAx; 11th July 2014 at 05:57 PM.
11th July 2014, 09:06 PM |#8  
cstayton's Avatar
OP Recognized Developer
Flag Waite Park, MN.
Thanks Meter: 4,024
 
Donate to Me
More
Quote:
Originally Posted by TheAxman

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

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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-07-11-15-03-24.jpg
Views:	473
Size:	132.7 KB
ID:	2846228  
11th July 2014, 09:13 PM |#9  
AxAtAx's Avatar
Recognized Contributor
Flag ViSiON,Texas
Thanks Meter: 19,937
 
Donate to Me
More
Quote:
Originally Posted by cstayton

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...
11th July 2014, 09:13 PM |#10  
cstayton's Avatar
OP Recognized Developer
Flag Waite Park, MN.
Thanks Meter: 4,024
 
Donate to Me
More
Quote:
Originally Posted by TheAxman

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

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....

@TheAxman i just PM'd you an laternative way to handle it let me know if that helps
11th July 2014, 09:15 PM |#11  
cstayton's Avatar
OP Recognized Developer
Flag Waite Park, MN.
Thanks Meter: 4,024
 
Donate to Me
More
Quote:
Originally Posted by TheAxman

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

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.
The Following User Says Thank You to cstayton For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes