Membuat 13 Battery Style di Semua Rom
Langsung aja ya bro ini cara membuat 13 pilihan batrre langsung disettingmu hahaha screenshot menyusul dibawah test di 4.2.2
Alat dan Bahan
- SystemUI.apk
- Setting.apk
- Apk Multi Tool / Apktool terserah selera
- Bahan dan Smali SystemUI download disini
- dan aplikasi Tambahannya download disini
SystemUI
oke kita mulai dengan SystemUI
- Decompile SystemUI.apk
- Masukan Bahan SystemUI yg didownload td ekstrak lalu letakan di tempatnya
- lalu buka Folder Res / values
Buka ids.xml lalu tambahkan :
<item type="id" name="circle_battery_carbon">false</item>
<item type="id" name="battery_stock">false</item>
<item type="id" name="battery_stock_text">false</item>
<item type="id" name="battery_cluster_view">false</item>
<item type="id" name="battery_combo">false</item>
<item type="id" name="battery_text_cm">false</item>
<item type="id" name="battery_text_center">false</item>
<item type="id" name="battery_text_only">false</item>
<item type="id" name="battery_text_only_low">false</item>
<item type="id" name="battery_text_only_plugged">false</item>
<item type="id" name="battery_cluster">false</item>
<item type="id" name="battery_stock">false</item>
<item type="id" name="battery_stock_text">false</item>
<item type="id" name="battery_cluster_view">false</item>
<item type="id" name="battery_combo">false</item>
<item type="id" name="battery_text_cm">false</item>
<item type="id" name="battery_text_center">false</item>
<item type="id" name="battery_text_only">false</item>
<item type="id" name="battery_text_only_low">false</item>
<item type="id" name="battery_text_only_plugged">false</item>
<item type="id" name="battery_cluster">false</item>
Buka strings.xml lalu tambahkan :
<string name="carbon_accessibility_battery_level">Battery %d percent.</string>
<string name="carbon_status_bar_settings_battery_meter_format">%d%%</string>
<string name="carbon_status_bar_settings_battery_meter_format">%d%%</string>
buka styles.xml lalu tambahkan :
<style name="TextAppearance.StatusBar.BatteryTextOnly" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.BatteryTextOnly_Plugged" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_green_light</item>
</style>
<style name="TextAppearance.StatusBar.BatteryTextOnly_Low" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_red_light</item>
</style>
<style name="Battery_Offset">
<item name="android:textSize">11.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_gravity">bottom|left|center</item>
<item name="android:paddingBottom">1.0dip</item>
<item name="android:layout_marginRight">4.0dip</item>
<item name="android:shadowColor">#66ffffff</item>
<item name="android:shadowDx">0.0</item>
<item name="android:shadowDy">0.0</item>
<item name="android:shadowRadius">2.5</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
<style name="Battery_CM">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:layout_gravity">bottom|left|center</item>
<item name="android:paddingBottom">1.0dip</item>
<item name="android:layout_marginRight">9.5dip</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
<style name="Battery_Center">
<item name="android:textSize">9.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_gravity">center</item>
<item name="android:layout_marginRight">0.0dip</item>
<item name="android:shadowColor">#66ffffff</item>
<item name="android:shadowDx">0.0</item>
<item name="android:shadowDy">0.0</item>
<item name="android:shadowRadius">2.5</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.BatteryTextOnly_Plugged" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_green_light</item>
</style>
<style name="TextAppearance.StatusBar.BatteryTextOnly_Low" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_red_light</item>
</style>
<style name="Battery_Offset">
<item name="android:textSize">11.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_gravity">bottom|left|center</item>
<item name="android:paddingBottom">1.0dip</item>
<item name="android:layout_marginRight">4.0dip</item>
<item name="android:shadowColor">#66ffffff</item>
<item name="android:shadowDx">0.0</item>
<item name="android:shadowDy">0.0</item>
<item name="android:shadowRadius">2.5</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
<style name="Battery_CM">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:layout_gravity">bottom|left|center</item>
<item name="android:paddingBottom">1.0dip</item>
<item name="android:layout_marginRight">9.5dip</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
<style name="Battery_Center">
<item name="android:textSize">9.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_gravity">center</item>
<item name="android:layout_marginRight">0.0dip</item>
<item name="android:shadowColor">#66ffffff</item>
<item name="android:shadowDx">0.0</item>
<item name="android:shadowDy">0.0</item>
<item name="android:shadowRadius">2.5</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
Buka folder layout / status_bar.xml atau gemini_status_bar.xml, lalu lihat line ini
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip"
android:layout_width="wrap_content" android:layout_height="wrap_content"
/>
- Lalu ubah android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" menjadi android:layout_width="0.0dip" android:layout_height="0.0dip"
<include android:id="@id/battery_cluster"
android:layout_width="wrap_content" android:layout_height="wrap_content"
layout="@layout/fiqih_battery_cluster_view" />
- Recompile SystemUI lalu Decompile lagi
- Buka public.xml
Buka CircleBattery.smali lalu cocokan id publicnya dengan id di public xml
0x7f02020c <public type="drawable" name="stat_sys_wifi_signal_4_fully"
Buka juga SbBatteryController.smali dan cocokan id publicnya dengan id di public xml
0x7f020629 <public type="drawable" name="stat_sys_battery_stock_charge"
0x7f0b012d <public type="string" name="carbon_accessibility_battery_level"
0x7f020457 <public type="drawable" name="stat_sys_battery_charge_altcircle"
0x7f0202be <public type="drawable" name="stat_sys_battery_altcircle"
0x7f02047b <public type="drawable" name="stat_sys_battery_charge_square"
0x7f020553 <public type="drawable" name="stat_sys_battery_square"
0x7f0204e2 <public type="drawable" name="stat_sys_battery_gear_charge"
0x7f02047c <public type="drawable" name="stat_sys_battery_gear"
0x7f020472 <public type="drawable" name="stat_sys_battery_charge_min"
0x7f02054a <public type="drawable" name="stat_sys_battery_min"
0x7f0203f1 <public type="drawable" name="stat_sys_battery_carbon_charge"
0x7f02038b <public type="drawable" name="stat_sys_battery_carbon"
0x7f020620 <public type="drawable" name="stat_sys_battery_stock"
0x7f0b012e <public type="string" name="carbon_status_bar_settings_battery_meter_format"
0x7f080175 <public type="id" name="battery_combo"
0x7f080172 <public type="id" name="battery_stock"
0x7f080173 <public type="id" name="battery_stock_text"
0x7f080176 <public type="id" name="battery_text_cm"
0x7f080177 <public type="id" name="battery_text_center"
0x7f080178 <public type="id" name="battery_text_only"
0x7f080179 <public type="id" name="battery_text_only_low"
0x7f08017a <public type="id" name="battery_text_only_plugged"
0x7f0b012d <public type="string" name="carbon_accessibility_battery_level"
0x7f020457 <public type="drawable" name="stat_sys_battery_charge_altcircle"
0x7f0202be <public type="drawable" name="stat_sys_battery_altcircle"
0x7f02047b <public type="drawable" name="stat_sys_battery_charge_square"
0x7f020553 <public type="drawable" name="stat_sys_battery_square"
0x7f0204e2 <public type="drawable" name="stat_sys_battery_gear_charge"
0x7f02047c <public type="drawable" name="stat_sys_battery_gear"
0x7f020472 <public type="drawable" name="stat_sys_battery_charge_min"
0x7f02054a <public type="drawable" name="stat_sys_battery_min"
0x7f0203f1 <public type="drawable" name="stat_sys_battery_carbon_charge"
0x7f02038b <public type="drawable" name="stat_sys_battery_carbon"
0x7f020620 <public type="drawable" name="stat_sys_battery_stock"
0x7f0b012e <public type="string" name="carbon_status_bar_settings_battery_meter_format"
0x7f080175 <public type="id" name="battery_combo"
0x7f080172 <public type="id" name="battery_stock"
0x7f080173 <public type="id" name="battery_stock_text"
0x7f080176 <public type="id" name="battery_text_cm"
0x7f080177 <public type="id" name="battery_text_center"
0x7f080178 <public type="id" name="battery_text_only"
0x7f080179 <public type="id" name="battery_text_only_low"
0x7f08017a <public type="id" name="battery_text_only_plugged"
Done Recompile
Okeh berhubung aplikasi tambahan sudah saya modifikasi sehingga tidak muncul dimenu maka kita akan membuat menu tambahan disetting untuk memangil aplikasi tersebut oke langsung saja
Sebelumnya aplikasi tmabahan yg sudah didownload sebelumnya silahkan push ke System / App
lanjut menambahkan menu di setting.apk ;
Alat dan Bahan
- Setting.apk
- Apk Multi Tool / Apktool terserah selera
- dan siapkan gambar format png bebas ukuran 48 x 48
<header android:icon="@drawable/ic_batrestyle" android:title="@string/batre_kamu">
<intent android:targetPackage="com.ficeto.customsettings" android:action="android.intent.action.MAIN" android:targetClass="com.ficeto.customsettings.RandomActivity" />
</header>
<intent android:targetPackage="com.ficeto.customsettings" android:action="android.intent.action.MAIN" android:targetClass="com.ficeto.customsettings.RandomActivity" />
</header>
dimana @drawable/ic_batrestyle nama yg digunakan untuk gambar png yg akan digunakan dan letakan pada folder Res / drawable-hdpi ,
lalu buka Folder Res / Values buka Strings.xml Tambahkan line ini
<string name="batre_kamu">Style Battery</string>
Done Recompile ^_^ Happy mooding Screenshot dibawah ini test on Advan S5e 4.2.2
Sumber Tutor Archiveandroid