Get Started Modding Your Samsung Galaxy Mega GT-I9152

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

File Type: zipbattery.zip - [Click for QR Code] (736.6 KB, 30 views)
File Type: zipnavbar.zip - [Click for QR Code] (5.2 KB, 31 views)
File Type: zipquickpanel.zip - [Click for QR Code] (408.1 KB, 23 views)
File Type: zipic_lock_power_off.zip - [Click for QR Code] (512 Bytes, 17 views)


0 Response to "Get Started Modding Your Samsung Galaxy Mega GT-I9152"

Post a Comment