[MOD][HOW TO] AOSP Signal layout on touchwiz

Search This thread

Danvdh

Senior Member
Sep 5, 2012
6,146
19,875
Toronto, Canada
This will guide will show you how to replace the touchwiz signal style with that of standard android AOSP style.

Preview

signalcluster.jpg



I assume the reader has basic knowledge of de-compiling and recompiling APK files, if you do not know how to do this use the search feature on XDA as this is covered in a ton of post's and really isn't that hard to do with some patience.

Step 1) Decompile systemui.apk

Step 2) Navigate to
HTML:
res/layout/tw_signal_cluster_view.xml

Step 3) Delete everything here and replace it with this

HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-6.0dip">
        <ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        <ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    </FrameLayout>
    <View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
            <View android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
            <FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
                <ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </FrameLayout>
        </FrameLayout>
        <FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-18.0dip">
            <ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </FrameLayout>
        <ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    </LinearLayout>
    <ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    <ImageView android:layout_gravity="bottom|center" android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-23.0dip" />
</com.android.systemui.statusbar.SignalClusterView>

4) Replace desired icon's in
HTML:
res/drawable-xhdpi
this is my standard AOSP signal icon's that I use in my ROM Dandroid, get it here

5) Recompile with apktool

6) Open up the old systemui and new systemui with 7zip and copy over the meta-inf folder and androidmanifest.xml to the new systemUI

7) Push to system and enjoy

cheers

Dan
 
Last edited:
  • Like
Reactions: scotteb and saj222

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    This will guide will show you how to replace the touchwiz signal style with that of standard android AOSP style.

    Preview

    signalcluster.jpg



    I assume the reader has basic knowledge of de-compiling and recompiling APK files, if you do not know how to do this use the search feature on XDA as this is covered in a ton of post's and really isn't that hard to do with some patience.

    Step 1) Decompile systemui.apk

    Step 2) Navigate to
    HTML:
    res/layout/tw_signal_cluster_view.xml

    Step 3) Delete everything here and replace it with this

    HTML:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-6.0dip">
            <ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            <ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </FrameLayout>
        <View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
        <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
            <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
                <View android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
                <FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
                    <ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                    <ImageView android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                    <ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                </FrameLayout>
            </FrameLayout>
            <FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-18.0dip">
                <ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </FrameLayout>
            <ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </LinearLayout>
        <ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        <ImageView android:layout_gravity="bottom|center" android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-23.0dip" />
    </com.android.systemui.statusbar.SignalClusterView>

    4) Replace desired icon's in
    HTML:
    res/drawable-xhdpi
    this is my standard AOSP signal icon's that I use in my ROM Dandroid, get it here

    5) Recompile with apktool

    6) Open up the old systemui and new systemui with 7zip and copy over the meta-inf folder and androidmanifest.xml to the new systemUI

    7) Push to system and enjoy

    cheers

    Dan