[Guide][5.1.1]How remove bugs in Sony Xperia SystemUI

Search This thread

Ambor

Senior Member
Feb 10, 2014
1,249
2,251
Warsaw
xperiathemes.com
Hi Sony Users,

Almost a year waiting for Sony Improves errors in Theme Engine, which have still not been corrected.
I decided to show how remove some bugs in SystemUI



Requirements:


- BRAIN (Moust important )
- ApkTool any
- Notepad++
- framework-res.apk
- SemcGenericUxpRes.apk
- SystemUI.apk



Navigation Button Bug:

1. Decompile SystemUI.apk

2. Copy my files to right folder

3. Open SystemUI.apk\res\values\drawables.xml


4. Replice all this lines:


Code:
    <item type="drawable" name="somc_navbar_back_btn">@drawable/ic_sysbar_back</item>
    <item type="drawable" name="somc_navbar_back_ime_btn">@drawable/ic_sysbar_back_ime</item>
    <item type="drawable" name="somc_navbar_home_btn">@drawable/ic_sysbar_home</item>
    <item type="drawable" name="somc_navbar_menu_btn">@drawable/ic_sysbar_menu</item>
    <item type="drawable" name="somc_navbar_recent_btn">@drawable/ic_sysbar_recent</item>
    <item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>
    <item type="drawable" name="somc_navbar_back_btn_land">@drawable/ic_sysbar_back_land</item>
    <item type="drawable" name="somc_navbar_back_ime_btn_land">@drawable/ic_sysbar_back_ime_land</item>
    <item type="drawable" name="somc_navbar_home_btn_land">@drawable/ic_sysbar_home_land</item>
    <item type="drawable" name="somc_navbar_menu_btn_land">@drawable/ic_sysbar_menu_land</item>
    <item type="drawable" name="somc_navbar_recent_btn_land">@drawable/ic_sysbar_recent_land</item>



This:

Code:
    <item type="drawable" name="ic_sysbar_home">@drawable/somc_navbar_home_btn</item>
    <item type="drawable" name="ic_sysbar_recent">@drawable/somc_navbar_recent_btn</item>
    <item type="drawable" name="ic_sysbar_back">@drawable/somc_navbar_back_btn</item>
    <item type="drawable" name="ic_sysbar_menu">@drawable/somc_navbar_menu_btn</item>
    <item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>


5. Save File

6. SystemUI.apk\res\layout\


In this files:

navigation_bar.xml
screen_pinning_request_buttons_land.xml
screen_pinning_request_buttons.xml

Change names ( If this names are on other xml files , also need to change it )

Code:
  this:                              to this:
ic_sysbar_back - somc_navbar_back_btn
ic_sysbar_home - somc_navbar_home_btn
ic_sysbar_recent - somc_navbar_recent_btn
ic_sysbar_recent_land - somc_navbar_recent_btn_land
ic_sysbar_home_land - somc_navbar_home_btn_land
ic_sysbar_back_land - somc_navbar_back_btn_land


Exapmple navigation_bar.xml

Code:
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="Red"]ic_sysbar_back[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
            <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_home[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
            <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_recent[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
            <FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">


Code:
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_back_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
            <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_home_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
            <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_recent_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
            <FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">



7. Save File

8. From SystemUI.apk\res\


Remowe all PNG Files

ic_sysbar_home.png
ic_sysbar_recent.png
ic_sysbar_back.png
ic_sysbar_menu.png


FROM ALL FOLDERS

/drawable-hdpi
/drawable-xhdpi
/drawable-xxhdpi
etc.



9. Done:)




Volume control Bug:


1. Open SystemUI.apk\res\layout\ status_bar_toggle_slider.xml

Change this

Code:
    <com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="red"]@drawable/ic_brightness_thumb[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />


To this:

Code:
    <com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="RoyalBlue"]@android:drawable/somc_seekbar_thumb_selector_dark[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />


2. Save and done :)

3. Compile and sign app




Creadits:

RXS MoonBreakers Team


My Ready Mod:

[Mod][5.1.1]Theme Accent SystemUI
 

Attachments

  • drawable-xxhdpi-v4.zip
    12.9 KB · Views: 697
Last edited:

Ambor

Senior Member
Feb 10, 2014
1,249
2,251
Warsaw
xperiathemes.com
Screens:



et8s1u.jpg


2s0inpl.jpg


2zyijk2.jpg
 

edi194

Senior Member
Jul 4, 2012
958
821
26
Wolbórz
Ambor, you forgot to add somc_seekbar_thumb_selector_dark file, when i've tried to do 'Volume control Bug' it misses this file when building :)
 

Tomatoparty

Member
Oct 10, 2012
14
4
Aachen
Nice Tut!

But I have some requests for further modding/fixing bugs:
Is it possible to remove the (for me annoying) status bar theme color tint that is present in apps like chrome?

Thanks in Advance!!
 

Renmazuo

Member
Feb 5, 2015
36
35
São Paulo
Sony: Simplely, this is not bugs.

And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.
 

Ambor

Senior Member
Feb 10, 2014
1,249
2,251
Warsaw
xperiathemes.com
And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.


I see that you're an expert on the subject. You say I got a reply from Sony, you do not work for them?

This is one of the absurdities of Sony Theme Engine, which is full of them. Sony piecemeal it improves (Lollipop almost a year)

I will not explain, because I would not understand. How would you like to blurt it out find another topic.
 

Rajeev

Recognized Contributor
Nov 24, 2012
16,306
26,540
Chennai , I N D I A
Xiaomi 13 Pro
I see that you're an expert on the subject. You say I got a reply from Sony, you do not work for them?

This is one of the absurdities of Sony Theme Engine, which is full of them. Sony piecemeal it improves (Lollipop almost a year)

I will not explain, because I would not understand. How would you like to blurt it out find another topic.

Hello brother

I have tried ur tutorial but not working for me. I have followed all correctly. And only Brightness slider is working as per ur tutorial. And u mean delete pngs from SystemUI/res ? Is it SystemUI/res/drawable-xxhdpi folder ?

Any help. ?

I think something is missing in ur tutorial.. ;)


EDIT
===

I have tried ur modded apk also. But still i can't find any difference in album . Only other things changed.. Pls take a look at this..


image.png


First one is ur modded apk and second one is un modded pure Z2 apk
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    Hi Sony Users,

    Almost a year waiting for Sony Improves errors in Theme Engine, which have still not been corrected.
    I decided to show how remove some bugs in SystemUI



    Requirements:


    - BRAIN (Moust important )
    - ApkTool any
    - Notepad++
    - framework-res.apk
    - SemcGenericUxpRes.apk
    - SystemUI.apk



    Navigation Button Bug:

    1. Decompile SystemUI.apk

    2. Copy my files to right folder

    3. Open SystemUI.apk\res\values\drawables.xml


    4. Replice all this lines:


    Code:
        <item type="drawable" name="somc_navbar_back_btn">@drawable/ic_sysbar_back</item>
        <item type="drawable" name="somc_navbar_back_ime_btn">@drawable/ic_sysbar_back_ime</item>
        <item type="drawable" name="somc_navbar_home_btn">@drawable/ic_sysbar_home</item>
        <item type="drawable" name="somc_navbar_menu_btn">@drawable/ic_sysbar_menu</item>
        <item type="drawable" name="somc_navbar_recent_btn">@drawable/ic_sysbar_recent</item>
        <item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>
        <item type="drawable" name="somc_navbar_back_btn_land">@drawable/ic_sysbar_back_land</item>
        <item type="drawable" name="somc_navbar_back_ime_btn_land">@drawable/ic_sysbar_back_ime_land</item>
        <item type="drawable" name="somc_navbar_home_btn_land">@drawable/ic_sysbar_home_land</item>
        <item type="drawable" name="somc_navbar_menu_btn_land">@drawable/ic_sysbar_menu_land</item>
        <item type="drawable" name="somc_navbar_recent_btn_land">@drawable/ic_sysbar_recent_land</item>



    This:

    Code:
        <item type="drawable" name="ic_sysbar_home">@drawable/somc_navbar_home_btn</item>
        <item type="drawable" name="ic_sysbar_recent">@drawable/somc_navbar_recent_btn</item>
        <item type="drawable" name="ic_sysbar_back">@drawable/somc_navbar_back_btn</item>
        <item type="drawable" name="ic_sysbar_menu">@drawable/somc_navbar_menu_btn</item>
        <item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>


    5. Save File

    6. SystemUI.apk\res\layout\


    In this files:

    navigation_bar.xml
    screen_pinning_request_buttons_land.xml
    screen_pinning_request_buttons.xml

    Change names ( If this names are on other xml files , also need to change it )

    Code:
      this:                              to this:
    ic_sysbar_back - somc_navbar_back_btn
    ic_sysbar_home - somc_navbar_home_btn
    ic_sysbar_recent - somc_navbar_recent_btn
    ic_sysbar_recent_land - somc_navbar_recent_btn_land
    ic_sysbar_home_land - somc_navbar_home_btn_land
    ic_sysbar_back_land - somc_navbar_back_btn_land


    Exapmple navigation_bar.xml

    Code:
                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="Red"]ic_sysbar_back[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
                <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_home[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
                <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_recent[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
                <FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">


    Code:
                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_back_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
                <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_home_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
                <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_recent_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
                <FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">



    7. Save File

    8. From SystemUI.apk\res\


    Remowe all PNG Files

    ic_sysbar_home.png
    ic_sysbar_recent.png
    ic_sysbar_back.png
    ic_sysbar_menu.png


    FROM ALL FOLDERS

    /drawable-hdpi
    /drawable-xhdpi
    /drawable-xxhdpi
    etc.



    9. Done:)




    Volume control Bug:


    1. Open SystemUI.apk\res\layout\ status_bar_toggle_slider.xml

    Change this

    Code:
        <com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="red"]@drawable/ic_brightness_thumb[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />


    To this:

    Code:
        <com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="RoyalBlue"]@android:drawable/somc_seekbar_thumb_selector_dark[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />


    2. Save and done :)

    3. Compile and sign app




    Creadits:

    RXS MoonBreakers Team


    My Ready Mod:

    [Mod][5.1.1]Theme Accent SystemUI
    12
    3
    Sony: Simplely, this is not bugs.

    And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.
    2
    Ambor, you forgot to add somc_seekbar_thumb_selector_dark file, when i've tried to do 'Volume control Bug' it misses this file when building :)


    You need add this:

    @android:drawable/somc_seekbar_thumb_selector_dark

    Red mean that file is in framework-res.apk
    1
    Awesome guide bro :D so easy.. I wonder why Sony dev doesn't fix it till now o_O

    Sent from my C6603 using Tapatalk