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

Search This thread

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
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:
<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:
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:
@id/transport
in that line you will see :
HTML:
layout="@layout/keyguard_transport_control"
change to :
HTML:
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:
<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:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
add this below it :
HTML:
<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:
<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:
<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:
@id/quickpanel_dualsim_layout
change 0dip android:layout_height with to :
HTML:
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:
<item type="id" name="quick_launch">false</item>
Go to system/res/value/strings
add this above </resources>
HTML:
<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:
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
 

Attachments

  • battery.zip
    736.6 KB · Views: 484
  • navbar.zip
    5.2 KB · Views: 455
  • quickpanel.zip
    408.1 KB · Views: 352
  • ic_lock_power_off.zip
    512 bytes · Views: 279
Last edited:

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
Flymeui on gt i9152

1. Framework​
Decompile framework-res.apk
got to framework/res/value/dimens.xml
find this :
HTML:
<dimen name="status_bar_height">
change 0dip to :
HTML:
<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:
<?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... :D
 

Attachments

  • Screenshot_2014-02-14-16-11-16.jpg
    Screenshot_2014-02-14-16-11-16.jpg
    76.1 KB · Views: 2,073
  • Screenshot_2014-02-14-16-12-51.png
    Screenshot_2014-02-14-16-12-51.png
    148.7 KB · Views: 2,248
  • Screenshot_2014-02-14-16-12-12.png
    Screenshot_2014-02-14-16-12-12.png
    98.4 KB · Views: 1,931
  • Screenshot_2014-02-14-16-13-05.png
    Screenshot_2014-02-14-16-13-05.png
    152.8 KB · Views: 1,933
  • status_bar_bg_tile.zip
    223 bytes · Views: 336
Last edited:

unclefab

Senior Member
Jun 23, 2012
423
523
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!)
 

shazzl

Senior Member
Jan 24, 2013
447
229
Banting
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 ----------


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

Sent from my GT-I9205
 

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
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...

---------- 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...
 

unclefab

Senior Member
Jun 23, 2012
423
523
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:)
 

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
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://xdaforums.com/editpost.php?do=editpost&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...
 

shazzl

Senior Member
Jan 24, 2013
447
229
Banting
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...


not yet bro...any link as reference,so I can compare it?thanks...

for torchlight able follow this guidehttp://xdaforums.com/showthread.php?t=2355931
for ink effect on ripple lockscreen here
i have mode this on my rom CML1... but the torchlight is not a wake i check logcat, i should active the framework file but dont know where to fine it
 

shazzl

Senior Member
Jan 24, 2013
447
229
Banting
Mod guide

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:)

the guide work on me i9205

@sitifire see my screen short ink effect...


if you want a small ampm in status bar just add systemui:ampmSmall="true"
SystemUI/res/layout/status_bar.xml
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" systemui:ampmSmall="true" />

if you want to make date 2 line in the status bar expanded header
1. add this at SystemUI/res/values/strings.xml
Code:
    <string name="status_bar_date_format_day_month">"EEEE
d MMMM yyyy"</string>
    <string name="status_bar_date_format_month_day">"EEEE
MMMM d yyyy"</string>

2 add this at SystemUI/res/layout/status_bar_expanded_headerr.xml android:maxLines="2"
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:maxLines="2" />

Thank you
i will help you if i seat in frond my laptop if on my hp sorry to say...
i also have some mod about add 10 battry icon witch 1% incress. using og battry mod HOW TO ( folow this, is as simpele as 123 :) )
and how to add speed meter on status bar on this Galaxy Mega Themes and Apps.
 

Attachments

  • Screenshot_2013-01-01-08-59-44.png
    Screenshot_2013-01-01-08-59-44.png
    108.9 KB · Views: 289
  • Screenshot_2013-01-01-09-10-22.png
    Screenshot_2013-01-01-09-10-22.png
    85.7 KB · Views: 284
  • Screenshot_2014-01-15-19-22-12.png
    Screenshot_2014-01-15-19-22-12.png
    118.7 KB · Views: 273
Last edited:
  • Like
Reactions: sitifire

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
the guide work on me i9205

@sitifire see my screen short ink effect...


if you want a small ampm in status bar just add systemui:ampmSmall="true"
SystemUI/res/layout/status_bar.xml
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" systemui:ampmSmall="true" />

if you want to make date 2 line in the status bar expanded header
1. add this at SystemUI/res/values/strings.xml
Code:
    <string name="status_bar_date_format_day_month">"EEEE
d MMMM yyyy"</string>
    <string name="status_bar_date_format_month_day">"EEEE
MMMM d yyyy"</string>

2 add this at SystemUI/res/layout/status_bar_expanded_headerr.xml android:maxLines="2"
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:maxLines="2" />

Thank you
i will help you if i seat in frond my laptop if on my hp sorry to say...
i also have some mod about add 10 battry icon witch 1% incress. using og battry mod HOW TO ( folow this, is as simpele as 123 :) )
and how to add speed meter on status bar on this Galaxy Mega Themes and Apps.
greats...thanks bro...I'll try it,hope get lucky following ink effect's guide... :D
 

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
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 bro... http://www.mediafire.com/?xxmaqxo26rsdjka
Don't forget to add
qemu.hw.mainkeys=0
in the end of your build.prop
report back it works or not.thanks...
 
  • Like
Reactions: unclefab

shazzl

Senior Member
Jan 24, 2013
447
229
Banting
For your phone I much I easy the are a repo aready u shuld set up you pc to ubuntu 12.04lts and set up android environment...

Sent from my GT-I9205 using xda app-developers app
 

sitifire

Senior Member
Apr 4, 2013
114
62
Tanjungpandan
For your phone I much I easy the are a repo aready u shuld set up you pc to ubuntu 12.04lts and set up android environment...

Sent from my GT-I9205 using xda app-developers app
I don't know anything about linux and ubuntu bro...even in windows I just know office only... :(
could you make custom kernel for my device please... :D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    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:
    <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:
    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:
    @id/transport
    in that line you will see :
    HTML:
    layout="@layout/keyguard_transport_control"
    change to :
    HTML:
    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:
    <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:
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    add this below it :
    HTML:
    <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:
    <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:
    <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:
    @id/quickpanel_dualsim_layout
    change 0dip android:layout_height with to :
    HTML:
    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:
    <item type="id" name="quick_launch">false</item>
    Go to system/res/value/strings
    add this above </resources>
    HTML:
    <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:
    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
    4
    Flymeui on gt i9152

    1. Framework​
    Decompile framework-res.apk
    got to framework/res/value/dimens.xml
    find this :
    HTML:
    <dimen name="status_bar_height">
    change 0dip to :
    HTML:
    <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:
    <?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... :D
    1
    keep it up :thumbup:!
    1
    @sitfire,
    dear friends...
    you're doing great...
    nice share bro...
    :good::good::good:
    1
    Mod guide

    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:)

    the guide work on me i9205

    @sitifire see my screen short ink effect...


    if you want a small ampm in status bar just add systemui:ampmSmall="true"
    SystemUI/res/layout/status_bar.xml
    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" systemui:ampmSmall="true" />

    if you want to make date 2 line in the status bar expanded header
    1. add this at SystemUI/res/values/strings.xml
    Code:
        <string name="status_bar_date_format_day_month">"EEEE
    d MMMM yyyy"</string>
        <string name="status_bar_date_format_month_day">"EEEE
    MMMM d yyyy"</string>

    2 add this at SystemUI/res/layout/status_bar_expanded_headerr.xml android:maxLines="2"
    Code:
    <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:maxLines="2" />

    Thank you
    i will help you if i seat in frond my laptop if on my hp sorry to say...
    i also have some mod about add 10 battry icon witch 1% incress. using og battry mod HOW TO ( folow this, is as simpele as 123 :) )
    and how to add speed meter on status bar on this Galaxy Mega Themes and Apps.