• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE][LP] How To Add Custom Carrier Label

Search This thread

charansai

Senior Member
Nov 9, 2014
249
1,015
Nizamabad
Ya! I Am Back With Another Guide How To Add Custom Carrier Label Feature In Your Rom :confused:
So, You May Think Why New Guide Already We Have Many Guides On This :confused: Ya Those Guide Will Not Work Over The LP Based Rom ;) And You May Get Smalis Error After Recompiling The Apk

What U Need To Do This :)
Apktools
Notepad ++
SystemUI.apk
Settings.apk
Some Working Brain


Process To Add Them

1. Download The Custom Carrier Lable.zip Which Is Attached Below To The Thread

2. Decompile The Settings.apk & SystemUI.apk

Things To Be Done In SystemUI


After Decompiling

Merge The Files Which Are Provided In Zip
After Merging
Go To res/layout/status_bar.xml
Now Add
Code:
<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Near
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />

Finally It Should Look Like

Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
[COLOR="Red"]<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</com.android.keyguard.AlphaOptimizedLinearLayout>
    </LinearLayout>

Now Move To res/values/styles.xml

Add Below Styles At Last

Code:
<style name="TextAppearance.StatusBar.CustomLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
        <item name="android:textSize">13.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@*android:color/holo_blue_light</item>
    </style>

Now Recompile The Apk And Again Decompile It

And Move To res/values/public.xml

Find Line

Code:
[COLOR="Red"]<public type="id" name="custom_label"[/COLOR] id="??????????" />"

Now Copy The ??????????(Value eg: <public type="id" name="custom_label" id="0x7f0e018f" />)

Move To smali/com/adi/rom/interface/customcarrierlabel

Find For 0x7f0e018f And Replace It By U R value Which U Got In res/values/public.xml <public type="id" name="custom_label" id="??????????"

Part Of SystemUI As Done :D Recompile It And U R Done

But Wait V Left One More :confused: Settings.apk

Things To Be Done In Settings

After Decompiling

Move To res/xml/display_settings.xml (Here V R Adding It Under The display_settings U Add Wherever You Want)

Add Below Line In It

Code:
<PreferenceScreen android:title="Show carrier label">
        <intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
    </PreferenceScreen>

Therefore It May Look Like

Code:
<PreferenceScreen android:title="@string/gsensor_title" android:key="gsensor">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.bird.settings.GSensorCalibrationActivity" />
    </PreferenceScreen>
    <CheckBoxPreference android:title="@string/bird_small_screen" android:key="smallscreen_on" android:defaultValue="true" />
	[COLOR="Red"]<PreferenceScreen android:title="Show carrier label">
        <intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
    </PreferenceScreen>[/COLOR]
</PreferenceScreen>

Ya Done Recompile It

Now Push SystemUI.apk ,Settings.apk & StatusbarLabel.apk To Your Rom

Credits:
All Credits Goes To Mediatek Android Art and Dev Reborn Group (Where I Got Smails :D)
I Just Made Smali To Suport Which Apktool 2.0.2 & Made Guide For Lp Base

Hit Thanks If Guide Is Use full For You


 

Attachments

  • StatusbarLabel.apk
    75.4 KB · Views: 709
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Ya! I Am Back With Another Guide How To Add Custom Carrier Label Feature In Your Rom :confused:
    So, You May Think Why New Guide Already We Have Many Guides On This :confused: Ya Those Guide Will Not Work Over The LP Based Rom ;) And You May Get Smalis Error After Recompiling The Apk

    What U Need To Do This :)
    Apktools
    Notepad ++
    SystemUI.apk
    Settings.apk
    Some Working Brain


    Process To Add Them

    1. Download The Custom Carrier Lable.zip Which Is Attached Below To The Thread

    2. Decompile The Settings.apk & SystemUI.apk

    Things To Be Done In SystemUI


    After Decompiling

    Merge The Files Which Are Provided In Zip
    After Merging
    Go To res/layout/status_bar.xml
    Now Add
    Code:
    <com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
    Near
    Code:
    <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />

    Finally It Should Look Like

    Code:
    <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
    [COLOR="Red"]<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
    </com.android.keyguard.AlphaOptimizedLinearLayout>
        </LinearLayout>

    Now Move To res/values/styles.xml

    Add Below Styles At Last

    Code:
    <style name="TextAppearance.StatusBar.CustomLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
            <item name="android:textSize">13.0dip</item>
            <item name="android:textStyle">normal</item>
            <item name="android:textColor">@*android:color/holo_blue_light</item>
        </style>

    Now Recompile The Apk And Again Decompile It

    And Move To res/values/public.xml

    Find Line

    Code:
    [COLOR="Red"]<public type="id" name="custom_label"[/COLOR] id="??????????" />"

    Now Copy The ??????????(Value eg: <public type="id" name="custom_label" id="0x7f0e018f" />)

    Move To smali/com/adi/rom/interface/customcarrierlabel

    Find For 0x7f0e018f And Replace It By U R value Which U Got In res/values/public.xml <public type="id" name="custom_label" id="??????????"

    Part Of SystemUI As Done :D Recompile It And U R Done

    But Wait V Left One More :confused: Settings.apk

    Things To Be Done In Settings

    After Decompiling

    Move To res/xml/display_settings.xml (Here V R Adding It Under The display_settings U Add Wherever You Want)

    Add Below Line In It

    Code:
    <PreferenceScreen android:title="Show carrier label">
            <intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
        </PreferenceScreen>

    Therefore It May Look Like

    Code:
    <PreferenceScreen android:title="@string/gsensor_title" android:key="gsensor">
            <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.bird.settings.GSensorCalibrationActivity" />
        </PreferenceScreen>
        <CheckBoxPreference android:title="@string/bird_small_screen" android:key="smallscreen_on" android:defaultValue="true" />
    	[COLOR="Red"]<PreferenceScreen android:title="Show carrier label">
            <intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
        </PreferenceScreen>[/COLOR]
    </PreferenceScreen>

    Ya Done Recompile It

    Now Push SystemUI.apk ,Settings.apk & StatusbarLabel.apk To Your Rom

    Credits:
    All Credits Goes To Mediatek Android Art and Dev Reborn Group (Where I Got Smails :D)
    I Just Made Smali To Suport Which Apktool 2.0.2 & Made Guide For Lp Base

    Hit Thanks If Guide Is Use full For You


    2
    2
    Nice work bro! Hoping to see more :D You should really apply for recognized contributor now :v
    1
    Nice work :good: