Post Reply

[guide][GT-I9152] how to modifying systemui

OP sitifire

14th February 2014, 08:50 AM   |  #1  
OP Senior Member
Flag Tanjungpandan
Thanks Meter: 55
 
110 posts
Join Date:Joined: Apr 2013
More
Noob wanna share how to modified SystemUI on Galaxy Mega GT-I9152. For others,please compare it with yours.maybe this guide would help you...

I'd made mistake about how to remove Sim Icon on Statusbar,statusbar Expanded & enable Navigation bar. So I update the Guide...

REQUIREMENT: !!!
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else

A. HOW TO FIX ERROR WHEN RECOMPILE SYSTEMUI.APK

Decompile SystemUI.apk
Go to System/res/value/style.xml
add this line in the end of the line above "</resources>"
HTML Code:
<style name="SystemBarNotificationText">
        <item name="android:textSize">16.0sp</item>
        <item name="android:textColor">#ff999999</item>
    </style>
    <style name="SystemBarPanelSettingsRow">
        <item name="android:orientation">horizontal</item>
        <item name="android:background">?android:listChoiceBackgroundIndicator</item>
        <item name="android:paddingRight">16.0dip</item>
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">64.0dip</item>
    </style>
    <style name="SystemBarPanelSettingsIcon">
        <item name="android:layout_width">64.0dip</item>
        <item name="android:layout_height">fill_parent</item>
        <item name="android:scaleType">center</item>
    </style>
    <style name="SystemBarPanelSettingsContents">
        <item name="android:textSize">18.0sp</item>
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:layout_gravity">left|center</item>
        <item name="android:layout_width">0.0dip</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_weight">1.0</item>
    </style>
    <style name="SystemBarPanelSettingsPanelSeparator">
        <item name="android:background">@*android:drawable/divider_horizontal_dark</item>
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">1.0dip</item>
        <item name="android:layout_marginRight">0.0dip</item>
    </style>
B. HOW TO FIX ERROR WHEN RECOMPILE FRAMEWORK-RES.APK

Decompile framework-res.apk
go to framework/res/layout
open all this xml :
HTML Code:
keyguard_screen_password_landscape.xml
keyguard_screen_password_portrait.xml
keyguard_screen_tab_unlock.xml
keyguard_screen_tab_unlock_land.xml
keyguard_screen_unlock_landscape.xml
keyguard_screen_unlock_portrait.xml
find this in all that xml :
HTML Code:
@id/transport
in that line you will see :
HTML Code:
layout="@layout/keyguard_transport_control"
change to :
HTML Code:
layout="+@layout/keyguard_transport_control"
do it for all xml I'd mentioned above
try to recompile systemui & framework without modifying anything.if succeed you can try to modifying...

Now,lets modifying...

1. Center Clock
Decompile systemUI.apk
go to SystemUI.apk\res\layout\status_bar.xml

find this line & delete it:
HTML Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
then find this :
HTML Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
add this below it :
HTML Code:
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff339bc1" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" />
2. Remove Icon Sim on Status Bar

go to SystemUI.apk\res\layout\signal_cluster_view.xml
Find this :
HTML Code:
<ImageView android:id="@id/sim_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" />
replace all that line with this :
HTML Code:
<ImageView android:id="@id/sim_icon" android:layout_width="0.0dip" android:layout_height="0.0dip" />
3. Remove Icon Sim on Status Bar Expanded

go to SystemUI.apk\res\layout\status_bar_expanded.xml
Find this :
HTML Code:
@id/quickpanel_dualsim_layout
change 0dip android:layout_height with to :
HTML Code:
0.0dip
4. 1% battery & Animation charging

download attached files and copy files to corresponding folders in SystemUI

5. Enable Navigation Bar

download attached files and copy files to corresponding folders in SystemUI if folder does not exist(drawables-xhdpi) create it. then add ic_lock_power_off.png to system/res/drawable hdpi...
Go to system/res/value/ids.xml
add this above </resources>
HTML Code:
<item type="id" name="quick_launch">false</item>
Go to system/res/value/strings
add this above </resources>
HTML Code:
<string name="accessibility_capture">Power toggle</string>
YOU MUST EDIT YOUR "build.prop" in folder /system too. if not your SystemUI will fc....
ADD THIS IN THE END OF YOUR "build.prop"
:
HTML Code:
qemu.hw.mainkeys=0
Remove Text and Toggle Status :

download attached files and copy files to corresponding folders in SystemUI

Thanks To :
- Allah SWT
- My beloved wife & childs
- @joehanh88
- @gharrington
- @Adi Aisiteru Reborn
- @barikke74
- Budi SemogaDermawan
- XDA forum
Attached Files
File Type: zip battery.zip - [Click for QR Code] (736.6 KB, 145 views)
File Type: zip navbar.zip - [Click for QR Code] (5.2 KB, 104 views)
File Type: zip quickpanel.zip - [Click for QR Code] (408.1 KB, 95 views)
File Type: zip ic_lock_power_off.zip - [Click for QR Code] (512 Bytes, 72 views)
Last edited by sitifire; 15th February 2014 at 03:08 AM. Reason: editing missing guide...
The Following 6 Users Say Thank You to sitifire For This Useful Post: [ View ]
14th February 2014, 08:54 AM   |  #2  
OP Senior Member
Flag Tanjungpandan
Thanks Meter: 55
 
110 posts
Join Date:Joined: Apr 2013
More
Flymeui on gt i9152
1. Framework

Decompile framework-res.apk
got to framework/res/value/dimens.xml
find this :
HTML Code:
<dimen name="status_bar_height">
change 0dip to :
HTML Code:
<dimen name="status_bar_height">40.0dip</dimen>
Recompile

SystemUI

Decompile SystemUI.apk

1. Go to System/res/layout/statusbar.xml
Replace all with this :
HTML Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <AnalogClock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
    <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:ellipsize="marquee" android:gravity="bottom|left|center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="45.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:singleLine="true" />
    
    <ImageView android:id="@id/black_bg" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
    <ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
    
	<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="45.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="20.0dip">
        <LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/notification_icon_area_alpha">
            <TextView android:textSize="15.0dip" android:textColor="#ff339bc1" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
            <ImageView android:id="@id/operatorLogoIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" />
            <ImageView android:id="@id/operatorLogoIcon_org" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo_org" />
            <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
            <com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
            <com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="55.0dip" android:paddingRight="16.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
	</LinearLayout>
        <LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/system_icon_area_alpha">
            
	    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
            <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
                <TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
                <ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            
	    </LinearLayout>
        
	</LinearLayout>
    </LinearLayout>
    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="45.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="20.0dip">
        <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
            <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
            <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
        </ImageSwitcher>
        <com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:background="@drawable/status_bar_bg_tile" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:textColor="#ff99cc00" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:textColor="#ff99cc00" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
        </com.android.systemui.statusbar.phone.TickerView>
    </LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Recompile

Push your SystemUI first then framework after that...

PS : Fixed annoying black background after restart/reboot.just replace status_bar_bg_tile.png with mine...
here my screenshoot... a little bit different because I add custom background on statusbar & statusbar expanded header...

Sorry for my bad English...
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-02-14-16-11-16.jpg
Views:	763
Size:	76.1 KB
ID:	2578613   Click image for larger version

Name:	Screenshot_2014-02-14-16-12-51.png
Views:	796
Size:	148.7 KB
ID:	2578614   Click image for larger version

Name:	Screenshot_2014-02-14-16-12-12.png
Views:	581
Size:	98.4 KB
ID:	2578615   Click image for larger version

Name:	Screenshot_2014-02-14-16-13-05.png
Views:	608
Size:	152.8 KB
ID:	2578616  
Attached Files
File Type: zip status_bar_bg_tile.zip - [Click for QR Code] (223 Bytes, 106 views)
Last edited by sitifire; 15th February 2014 at 03:16 AM. Reason: fixed
The Following 4 Users Say Thank You to sitifire For This Useful Post: [ View ]
14th February 2014, 08:55 AM   |  #3  
OP Senior Member
Flag Tanjungpandan
Thanks Meter: 55
 
110 posts
Join Date:Joined: Apr 2013
More
reserved again...
14th February 2014, 05:14 PM   |  #4  
joehanh88's Avatar
Recognized Themer
Flag Kuala Lumpur
Thanks Meter: 1,430
 
700 posts
Join Date:Joined: Jan 2013
Donate to Me
More
keep it up :thumbup:!
The Following User Says Thank You to joehanh88 For This Useful Post: [ View ]
14th February 2014, 06:36 PM   |  #5  
@sitfire,
dear friends...
you're doing great...
nice share bro...
The Following User Says Thank You to nebixts For This Useful Post: [ View ]
20th February 2014, 12:16 PM   |  #6  
Senior Member
Thanks Meter: 291
 
323 posts
Join Date:Joined: Jun 2012
Selamat!
Aku sudah mencoba berbagai cara untuk menimbulkan navbar (mengedit SystemUi alias metode gharrington, mengedit framework-res.apk dll), tapi setiap kali gagal
Padahal aku lumayan tahu pakai apktool, dan tidak ada error waktu recompile, tapi setelah filenya dipush kembali ke dalam system dan hpnya direboot aku mendapat FC.
Kalau anda tidak keberatan mungkin anda bisa mod SystemUI.apk ku?
Linknya:
http://d-h.st/TQN
Terima kasih banyak!

(In english:
hi,
I have aready tried different ways to enable the navbar, (editing the SystemUi ala gharrington, editing framework-res.apk etc.) but everytime it fails.
I'm not too bad at using apktool, and I don't get any recompile errors, but everytime I push the file back into the system and reboot I get FC.
If you don't mind maybe you cold mod my SystemUI?
Here's the link:
http://d-h.st/TQN
Thanks a lot!)
20th February 2014, 12:35 PM   |  #7  
shazzl's Avatar
Senior Member
Flag Banting
Thanks Meter: 91
 
318 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by unclefab

Selamat!
Aku sudah mencoba berbagai cara untuk menimbulkan navbar (mengedit SystemUi alias metode gharrington, mengedit framework-res.apk dll), tapi setiap kali gagal
Padahal aku lumayan tahu pakai apktool, dan tidak ada error waktu recompile, tapi setelah filenya dipush kembali ke dalam system dan hpnya direboot aku mendapat FC.
Kalau anda tidak keberatan mungkin anda bisa mod SystemUI.apk ku?
Linknya:
http://d-h.st/TQN
Terima kasih banyak!

(In english:
hi,
I have aready tried different ways to enable the navbar, (editing the SystemUi ala gharrington, editing framework-res.apk etc.) but everytime it fails.
I'm not too bad at using apktool, and I don't get any recompile errors, but everytime I push the file back into the system and reboot I get FC.
If you don't mind maybe you cold mod my SystemUI?
Here's the link:
http://d-h.st/TQN
Thanks a lot!)

Try to decomplit and complete it back then fix the error when try to complete. ..

Sent from my GT-I9205

---------- Post added at 08:35 PM ---------- Previous post was at 08:33 PM ----------

Quote:
Originally Posted by sitifire

reserved again...

Did you fine the torchlight and rip with ink effect. ...

Sent from my GT-I9205
20th February 2014, 02:52 PM   |  #8  
OP Senior Member
Flag Tanjungpandan
Thanks Meter: 55
 
110 posts
Join Date:Joined: Apr 2013
More
Quote:
Originally Posted by unclefab

Selamat!
Aku sudah mencoba berbagai cara untuk menimbulkan navbar (mengedit SystemUi alias metode gharrington, mengedit framework-res.apk dll), tapi setiap kali gagal
Padahal aku lumayan tahu pakai apktool, dan tidak ada error waktu recompile, tapi setelah filenya dipush kembali ke dalam system dan hpnya direboot aku mendapat FC.
Kalau anda tidak keberatan mungkin anda bisa mod SystemUI.apk ku?
Linknya:
http://d-h.st/TQN
Terima kasih banyak!

(In english:
hi,
I have aready tried different ways to enable the navbar, (editing the SystemUi ala gharrington, editing framework-res.apk etc.) but everytime it fails.
I'm not too bad at using apktool, and I don't get any recompile errors, but everytime I push the file back into the system and reboot I get FC.
If you don't mind maybe you cold mod my SystemUI?
Here's the link:
http://d-h.st/TQN
Thanks a lot!)

did you edit build.prop as I said above?
I'd try with sgm 6.3 too & it works perfectly...
please read the guide slowly & carefully bro...

Quote:
Originally Posted by shazzl

---------- Post added at 08:35 PM ---------- Previous post was at 08:33 PM ----------
[/COLOR]

Did you fine the torchlight and rip with ink effect. ...

Sent from my GT-I9205

not yet bro...any link as reference,so I can compare it?thanks...
20th February 2014, 03:29 PM   |  #9  
Senior Member
Thanks Meter: 291
 
323 posts
Join Date:Joined: Jun 2012
Quote:
Originally Posted by sitifire

did you edit build.prop as I said above?
I'd try with sgm 6.3 too & it works perfectly...
please read the guide slowly & carefully bro...

Of course I've edited build.prop!
Some months ago I had followed gharrington's method to enable the navbar on my galaxy grand and it worked, and it's actually an easy mod.
But for some reasons it doesn't work on my mega 6.3.
That's why I uploaded my systemui here, I would be interested to see if you can make it work, and in case you do I'll be even more interested to see how you did it.
Believe me, I've tried different ways and I know how to use apktool, it's not my first mod but still, I couldn't make it work.
Thanks in advance for any help
20th February 2014, 04:32 PM   |  #10  
OP Senior Member
Flag Tanjungpandan
Thanks Meter: 55
 
110 posts
Join Date:Joined: Apr 2013
More
Quote:
Originally Posted by unclefab

Of course I've edited build.prop!
Some months ago I had followed gharrington's method to enable the navbar on my galaxy grand and it worked, and it's actually an easy mod.
But for some reasons it doesn't work on my mega 6.3.
That's why I uploaded my systemui here, I would be interested to see if you can make it work, and in case you do I'll be even more interested to see how you did it.
Believe me, I've tried different ways and I know how to use apktool, it's not my first mod but still, I couldn't make it work.
Thanks in advance for any help

here's a proved a made a navbar on galaxy mega 6.3.
http://forum.xda-developers.com/edit...ost&p=50488102
download systemui.apk in my post on that thread & compare it with yours.
you have posted in that thread too...and you said you delete the line "qemu.hw.mainkeys=0" and my guide add that line.
I can't download your ui because my data plan limited right now.I wanna upload a huge files now...maybe next time I help you bro...sorry & thanks...

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

Advanced Search
Display Modes


Top Threads in Galaxy Mega Themes and Apps by ThreadRank