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
HTML Code:
@id/transport
HTML Code:
layout="@layout/keyguard_transport_control"
HTML Code:
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 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" />HTML Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
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" />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
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>
add this above </resources>
HTML Code:
<string name="accessibility_capture">Power toggle</string>
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
| battery.zip - [Click for QR Code] (736.6 KB, 30 views) | |
| navbar.zip - [Click for QR Code] (5.2 KB, 31 views) | |
| quickpanel.zip - [Click for QR Code] (408.1 KB, 23 views) | |
| ic_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