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
Go to System/res/value/style.xml
add this line in the end of the line above "</resources>"
go to framework/res/layout
open all this xml :
find this in all that xml :
in that line you will see :
change to :
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...
go to SystemUI.apk\res\layout\status_bar.xml
find this line & delete it:
then find this :
add this below it :
Find this :
replace all that line with this :
Find this :
change 0dip android:layout_height with to :
Go to system/res/value/ids.xml
add this above </resources>
Go to system/res/value/strings
add this above </resources>
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" :
Thanks To :
- Allah SWT
- My beloved wife & childs
- @joehanh88
- @gharrington
- @Adi Aisiteru Reborn
- @barikke74
- Budi SemogaDermawan
- XDA forum
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.apkGo 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.apkgo 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
HTML:
@id/transport
HTML:
layout="@layout/keyguard_transport_control"
HTML:
layout="+@layout/keyguard_transport_control"
try to recompile systemui & framework without modifying anything.if succeed you can try to modifying...
Now,lets modifying...
1. Center Clock
Decompile systemUI.apkgo 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" />
HTML:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
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.xmlFind this :
HTML:
<ImageView android:id="@id/sim_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" />
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.xmlFind this :
HTML:
@id/quickpanel_dualsim_layout
HTML:
0.0dip
4. 1% battery & Animation charging
download attached files and copy files to corresponding folders in SystemUI5. 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>
add this above </resources>
HTML:
<string name="accessibility_capture">Power toggle</string>
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 SystemUIThanks To :
- Allah SWT
- My beloved wife & childs
- @joehanh88
- @gharrington
- @Adi Aisiteru Reborn
- @barikke74
- Budi SemogaDermawan
- XDA forum
Attachments
Last edited: