[GUIDE][ICS] Custom Carrier Label for Stock / Stock Based ROM

iiandskater

Senior Member
Jan 25, 2012
522
2,865
0
Jogjakarta Hardcore
I just found the trick to manipulate carrier label on notification bar when I'm exploring decompiled stock based SystemUI.apk few hours ago..

Wanna know how to do that ??
Check this out : :)

Here I'm using lidroid's modified SystemUI (from RealICS ROM), should work on other stock based SystemUI

  1. First you need to decompile your SystemUI.apk
  2. Open res/layout/status_bar_tracking.xml with any good xml editor (here I'm using NP++)
  3. Find this line:
    Code:
            <com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
    and change to:
    Code:
            <textView android:text="@string/carrier_label" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
  4. Save
  5. Now open res/values/strings.xml
  6. Add this line above </resources> :
    Code:
        <string name="carrier_label">ENTER_YOUR_COOLEST_TEXT_HERE</string>
    so it'll be looked a like this:
    Code:
        <string name="carrier_label">ENTER_YOUR_COOLEST_TEXT_HERE</string>
    </resources>
    p.s. : change the ENTER_YOUR_COOLEST_TEXT_HERE with your desired label
  7. Now save
  8. Recompile (build) your SystemUI.apk
  9. Push to your phone and you are.......
  10. Done !! :cool:

The result will be looked like this :


Mine : :p



Remember to
ALWAYS MAKE BACKUP !!
before doing anything above..
I don't responsible of any negative things like bootloop, bricked device, burned SD card, you late to go to school, or the third world war caused by the guide above..
You have been warned !!
Good luck.. ;)
 

Attachments

Ticklefish

Recognized Themer
Oct 27, 2011
6,742
8,533
263
Hampshire, UK
that would be cool, also possible to place the desired text :good:

Ticklefish perhaps can help us :)
Yup, easy. Very easy. I've just been experimenting with the date on the left, the carrier label in the center and the clock on the right. It works but it looks really messy!

The carrier label on the left is simple but the tricky bit is working out a good-looking place to put the notification icons. I can do it though.
 

iiandskater

Senior Member
Jan 25, 2012
522
2,865
0
Jogjakarta Hardcore
@iiandskater : Can you upload your SystemUI.apk please ?
I like your icons very much..:D
You got it my friend.. :laugh:
My SystemUI.apk

Yup, easy. Very easy. I've just been experimenting with the date on the left, the carrier label in the center and the clock on the right. It works but it looks really messy!

The carrier label on the left is simple but the tricky bit is working out a good-looking place to put the notification icons. I can do it though.
Great Ticklefish !!
Show us your magic.. :D
 

Attachments

  • Like
Reactions: Ryan_Dhika

whalesplaho

Senior Member
Feb 1, 2012
10,649
2,655
253
Treasure Island
i get dis error when i try to decompile... am using Apk_Manager_5.02_ICS_APKTool!!!

--------------------------------------------------------------------------
|qua 11/07/2012 -- 17:48:07,82|
--------------------------------------------------------------------------
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
--------------------------------------------------------------------------
|22/07/2012 -- 5:45:25.67|
--------------------------------------------------------------------------
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
Could Not Find C:\Users\LaLa\Downloads\Compressed\Apk_Manager_5.0 .2_ICS_APKTool\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\LaLa\Downloads\Compressed\Apk_Manager_5.0 .2_ICS_APKTool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\LaLa\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x01040421
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302ee
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010806ff
W: Could not decode attr value, using undecoded value instead: ns=android, name=opacity, value=0xfffffffd
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=animateLayoutChanges, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=animateLayoutChanges, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x010e0001
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108073f
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=opacity, value=0xfffffffd
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x010e0001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x010301ea
W: Could not decode attr value, using undecoded value instead: ns=android, name=interpolator, value=0x010c0008
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3ecccccd
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9
at brut.androlib.res.data.ResPackage.getResSpec(ResPa ckage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:51)
at brut.androlib.res.data.value.ResReferenceValue.get Referent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.enc odeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encode AsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.data.value.ResStyleValue.seriali zeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValues File(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(Androli bResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androli b.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98 )
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
 

Gustavo RD78

Senior Member
May 19, 2011
1,723
2,400
153
Maringá - PR

after editing i get 20kb & tha initial size was 999kb... what do we have to do now buddy?
the Keep folder to delete only the files modified

---------- Post added at 05:16 PM ---------- Previous post was at 05:14 PM ----------

Here is my code stock
did not work with this mod

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
        <com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
    </FrameLayout>
    <com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
    </com.android.systemui.statusbar.phone.CloseDragHandle>
</com.android.systemui.statusbar.phone.TrackingView>