[HOWTO][MOD] Create Battery % MOD on Any ROM - One (M7) Android Development

Enable % Battery and Icons
Tools Required :
1. apktool (For Decompile/Compile)
2. Notepad++ (Windows) Or Text Editor (OSX)
3. 7zip (Windows)
4. Java Runtime
Steps -
1. Extract all files for apktool into a folder (Lets say /apktool for this example)
2. Extract files from your phone and copy into apktool folder :
/system/framework/framework-res.apk
/system/framework/com.htc.resources.apk
/system/app/SystemUI.apk
3. Open a command/terminal prompt at /apktool
4. Run following commands :
apktool if framework-res.apk (OSX - ./apktool if framework-res.apk)
apktool com.htc.resources.apk (OSX - ./apktool if com.htc.resources.apk)
apktool d SystemUI.apk (OSX - ./apktool d SystemUI.apk)
5. This should decompile the SystemUI apk successfully and create folder SystemUI in /apktool
6. Change into SystemUI folder. Edit file - res/drawable/stat_sys_battery.xml
7. Remove all lines between following lines :
xmlns:android="http://schemas.android.com/apk/res/android">
....
</level-list>
8. Copy and paste the following lines in place
Code:
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
<item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="2" />
<item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="3" />
<item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="5" />
<item android:drawable="@drawable/stat_sys_battery_6" android:maxLevel="6" />
<item android:drawable="@drawable/stat_sys_battery_7" android:maxLevel="7" />
<item android:drawable="@drawable/stat_sys_battery_8" android:maxLevel="8" />
<item android:drawable="@drawable/stat_sys_battery_9" android:maxLevel="9" />
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
<item android:drawable="@drawable/stat_sys_battery_11" android:maxLevel="11" />
<item android:drawable="@drawable/stat_sys_battery_12" android:maxLevel="12" />
<item android:drawable="@drawable/stat_sys_battery_13" android:maxLevel="13" />
<item android:drawable="@drawable/stat_sys_battery_14" android:maxLevel="14" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_16" android:maxLevel="16" />
<item android:drawable="@drawable/stat_sys_battery_17" android:maxLevel="17" />
<item android:drawable="@drawable/stat_sys_battery_18" android:maxLevel="18" />
<item android:drawable="@drawable/stat_sys_battery_19" android:maxLevel="19" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="20" />
<item android:drawable="@drawable/stat_sys_battery_21" android:maxLevel="21" />
<item android:drawable="@drawable/stat_sys_battery_22" android:maxLevel="22" />
<item android:drawable="@drawable/stat_sys_battery_23" android:maxLevel="23" />
<item android:drawable="@drawable/stat_sys_battery_24" android:maxLevel="24" />
<item android:drawable="@drawable/stat_sys_battery_25" android:maxLevel="25" />
<item android:drawable="@drawable/stat_sys_battery_26" android:maxLevel="26" />
<item android:drawable="@drawable/stat_sys_battery_27" android:maxLevel="27" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="28" />
<item android:drawable="@drawable/stat_sys_battery_29" android:maxLevel="29" />
<item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="30" />
<item android:drawable="@drawable/stat_sys_battery_31" android:maxLevel="31" />
<item android:drawable="@drawable/stat_sys_battery_32" android:maxLevel="32" />
<item android:drawable="@drawable/stat_sys_battery_33" android:maxLevel="33" />
<item android:drawable="@drawable/stat_sys_battery_34" android:maxLevel="34" />
<item android:drawable="@drawable/stat_sys_battery_35" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_36" android:maxLevel="36" />
<item android:drawable="@drawable/stat_sys_battery_37" android:maxLevel="37" />
<item android:drawable="@drawable/stat_sys_battery_38" android:maxLevel="38" />
<item android:drawable="@drawable/stat_sys_battery_39" android:maxLevel="39" />
<item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="40" />
<item android:drawable="@drawable/stat_sys_battery_41" android:maxLevel="41" />
<item android:drawable="@drawable/stat_sys_battery_42" android:maxLevel="42" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="43" />
<item android:drawable="@drawable/stat_sys_battery_44" android:maxLevel="44" />
<item android:drawable="@drawable/stat_sys_battery_45" android:maxLevel="45" />
<item android:drawable="@drawable/stat_sys_battery_46" android:maxLevel="46" />
<item android:drawable="@drawable/stat_sys_battery_47" android:maxLevel="47" />
<item android:drawable="@drawable/stat_sys_battery_48" android:maxLevel="48" />
<item android:drawable="@drawable/stat_sys_battery_49" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_50" android:maxLevel="50" />
<item android:drawable="@drawable/stat_sys_battery_51" android:maxLevel="51" />
<item android:drawable="@drawable/stat_sys_battery_52" android:maxLevel="52" />
<item android:drawable="@drawable/stat_sys_battery_53" android:maxLevel="53" />
<item android:drawable="@drawable/stat_sys_battery_54" android:maxLevel="54" />
<item android:drawable="@drawable/stat_sys_battery_55" android:maxLevel="55" />
<item android:drawable="@drawable/stat_sys_battery_56" android:maxLevel="56" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="57" />
<item android:drawable="@drawable/stat_sys_battery_58" android:maxLevel="58" />
<item android:drawable="@drawable/stat_sys_battery_59" android:maxLevel="59" />
<item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_61" android:maxLevel="61" />
<item android:drawable="@drawable/stat_sys_battery_62" android:maxLevel="62" />
<item android:drawable="@drawable/stat_sys_battery_63" android:maxLevel="63" />
<item android:drawable="@drawable/stat_sys_battery_64" android:maxLevel="64" />
<item android:drawable="@drawable/stat_sys_battery_65" android:maxLevel="65" />
<item android:drawable="@drawable/stat_sys_battery_66" android:maxLevel="66" />
<item android:drawable="@drawable/stat_sys_battery_67" android:maxLevel="67" />
<item android:drawable="@drawable/stat_sys_battery_68" android:maxLevel="68" />
<item android:drawable="@drawable/stat_sys_battery_69" android:maxLevel="69" />
<item android:drawable="@drawable/stat_sys_battery_70" android:maxLevel="70" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="71" />
<item android:drawable="@drawable/stat_sys_battery_72" android:maxLevel="72" />
<item android:drawable="@drawable/stat_sys_battery_73" android:maxLevel="73" />
<item android:drawable="@drawable/stat_sys_battery_74" android:maxLevel="74" />
<item android:drawable="@drawable/stat_sys_battery_75" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_76" android:maxLevel="76" />
<item android:drawable="@drawable/stat_sys_battery_77" android:maxLevel="77" />
<item android:drawable="@drawable/stat_sys_battery_78" android:maxLevel="78" />
<item android:drawable="@drawable/stat_sys_battery_79" android:maxLevel="79" />
<item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="80" />
<item android:drawable="@drawable/stat_sys_battery_81" android:maxLevel="81" />
<item android:drawable="@drawable/stat_sys_battery_82" android:maxLevel="82" />
<item android:drawable="@drawable/stat_sys_battery_83" android:maxLevel="83" />
<item android:drawable="@drawable/stat_sys_battery_84" android:maxLevel="84" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="85" />
<item android:drawable="@drawable/stat_sys_battery_86" android:maxLevel="86" />
<item android:drawable="@drawable/stat_sys_battery_87" android:maxLevel="87" />
<item android:drawable="@drawable/stat_sys_battery_88" android:maxLevel="88" />
<item android:drawable="@drawable/stat_sys_battery_89" android:maxLevel="89" />
<item android:drawable="@drawable/stat_sys_battery_90" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_91" android:maxLevel="91" />
<item android:drawable="@drawable/stat_sys_battery_92" android:maxLevel="92" />
<item android:drawable="@drawable/stat_sys_battery_93" android:maxLevel="93" />
<item android:drawable="@drawable/stat_sys_battery_94" android:maxLevel="94" />
<item android:drawable="@drawable/stat_sys_battery_95" android:maxLevel="95" />
<item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="96" />
<item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="97" />
<item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="98" />
<item android:drawable="@drawable/stat_sys_battery_99" android:maxLevel="99" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="101" />
9. Save and exit the file
10. Now to explain the other file "stat_sys_battery_charge.xml"
Each percent of battery has its own set of animation list going from current battery to 100% with given amount of millisecond gap on each icon. This forms the Animation part.
Example -
Code:
<item android:maxLevel="95">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="300" android:drawable="@drawable/stat_sys_battery_charge_anim95" />
<item android:duration="300" android:drawable="@drawable/stat_sys_battery_charge_anim96" />
<item android:duration="300" android:drawable="@drawable/stat_sys_battery_charge_anim97" />
<item android:duration="300" android:drawable="@drawable/stat_sys_battery_charge_anim98" />
<item android:duration="300" android:drawable="@drawable/stat_sys_battery_charge_anim99" />
<item android:duration="300" android:drawable="@drawable/stat_sys_battery_charge_anim100" />
</animation-list>
</item>
Each icon is shown for 300ms and goes in a loop. So we need 101 such <item> tags to complete the xml. 101 indicates battery full and can have code as follows :
Code:
<item android:maxLevel="101">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="3000" android:drawable="@drawable/stat_sys_battery_charge_animfull" />
</animation-list>
</item>
This basically stops any animation on battery full (Same icon is refreshed every 3 seconds) and shows a special icon (animfull). Note that all this is upto your icon naming convention. The examples given here are what is mostly stock and used.
As you must have gathered by now that creating such XML manually is a really tedious job. So I will be attaching a Windows program and script for OSX which will generate such XML based on your inputs.
Also note that if you do not want animation, you can copy over the lines from the non-charging xml given above and use same list for the charging xml. The names can be changed from normal to _anim to reflect the charging icons.
11. Save and exit the charging xml file
12. Copy over your set of 1% icons to res/drawable-xhdpi (Replace existing)
13. Remove all such named icons from res/drawable-hdpi
14. Recompile the apk using command prompt :
apktool b SystemUI (OSX - ./apktool b SystemUI)
15. New compiled apk will be available in /apktool/SystemUI/dist
16. You can use attached template zip and open (DO NOT EXTRACT) using 7z
17. Change into system/app folder in 7z and drag the new compiled SystemUI.apk into it. Answer YES if you get prompt in 7z
18. Similarly use the template to create an original zip for your untouched SystemUI.apk for reverting back to original
19. Flash away in Recovery and Enjoy!
Click to expand...
Click to collapse
TOOLS
Windows
Download here
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Fields :
1. Animation Duration : Number of milliseconds to wait at each icon
2. Filename Prefix : Filename prefix to be used for animation icons (Part of filename before the 01-100 numbers)
3. Animation Flag : Y for animated charging icons, N for standard animated icons without animation xml
Extract the exe from WIN_xmlgen_battperc in attachment and copy to apktool folder. Run the tool and click Generate after selecting options. It will prompt when done and the xml will be created in the same folder as the exe file.
NOTE - Existing stat_sys_battery_charge.xml will be overwritten without warning.
Click to expand...
Click to collapse
OSX/Linux
Download here
Fields :
1. Animation Duration : Number of milliseconds to wait at each icon
2. Filename Prefix : Filename prefix to be used for animation icons (Part of filename before the 01-100 numbers)
3. Animation Flag : Y for animated charging icons, N for standard animated icons without animation xml
Copy the script from within the OSX_xmlgen_battperc in attachment and copy over to apktool folder.
Set execute permission on the script using GUI or terminal (chmod +x xmlgen_battperc.sh)
Change to apktool folder in Terminal and Run the script (sh xmlgen_battperc.sh or ./xmlgen_battperc)
It will create the charging xml in same folder as the script.
NOTE - Existing stat_sys_battery_charge.xml will be overwritten without warning.
Click to expand...
Click to collapse

Related

1% battery steps

The trick actually comes from Defy devs and I tested it before on Milestone, but unsuccessfully at that time.
normal battery capacity reading is done using
/sys/class/power_supply/battery/capacity - which is in 10% steps
On some Motorola phones, there's also
/sys/class/power_supply/battery/charge_counter - that is in 1% steps.
But on Milestone, the charge_counter is always 0.
Unless you use /system/bin/battd from Milestone 2 or Droid 2 (or possibly other phone as well)
See (origin - Defy)
https://github.com/Quarx2k/android_...ni/com_android_server_BatteryService.cpp#L301
Btw., in CM7 I've decided to use battd from the leaked Droid2 gingerbread firmware, as that is the most recent (and the only 2.3) motorola's build for phone with similar HW as Milestone that I'm aware of.
Current implementation in CM7 for Milestone (optional, using persist.sys.one_percent_batt property):
https://github.com/nadlabak/android_frameworks_base/commit/b912685321b67b4d2b145e6f17fd6bc3cedf4e45
https://github.com/nadlabak/android...mmit/113eb4200fd3c9237ce5d9c4aa9df2778aa55e97
https://github.com/nadlabak/android...mmit/32efe6e51ea1666222cf082075d6683d2b6fc791
https://github.com/nadlabak/android...mmit/b709ad1e344959529db158d48cf10b8faaa8955a
Please note that Droid 2 / Milestone 2 is more strict when it comes to third party batteries.
So this feature may cause issues when third party batteries are used.
There may also be problems with some third party AC adapters that are not able to provide stable 5V when charging.
sounds good btw, any tut how to do it on any 2.3 rom?
or just replace battd from mileston2 rom (or your last cm7) and it will work? or...?
It's certainly not limited to 2.3 ROMs.
But frameworks/base/services/jni/com_android_server_BatteryService.cpp needs the above mentioned change.
kabaldan said:
It's certainly not limited to 2.3 ROMs.
Click to expand...
Click to collapse
Again, brilliant work Kabaldan!
The only feature I'm looking for now is the ability to use a SWAP partition in the micro SD.
@kab
I have compiled the framework using that commit, then used the battd and libbattd.so from CM7, but I still have 10% steps!
Any other changes I have to do?
salisbury_steak said:
Again, brilliant work Kabaldan!
The only feature I'm looking for now is the ability to use a SWAP partition in the micro SD.
Click to expand...
Click to collapse
I totally second that, but I don't think that that is ever going to happen though we should never underestimate the power of kabaldan
please can you finalise froyo kabaldan? so much good work going on since the last version. ive found your froyo to be the best on battery and performance/snappiness
deleted....
how can i make the rom i use right now showing one by one the battery percentage?? thank you.
I decompiled framework-res.apk, edit file stat_sys_battery lik this:
Code:
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="1" />
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="2" />
<item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="3" />
<item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="5" />
<item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="6" />
<item android:drawable="@drawable/stat_sys_battery_6" android:maxLevel="7" />
<item android:drawable="@drawable/stat_sys_battery_7" android:maxLevel="8" />
<item android:drawable="@drawable/stat_sys_battery_8" android:maxLevel="9" />
<item android:drawable="@drawable/stat_sys_battery_9" android:maxLevel="10" />
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="11" />
<item android:drawable="@drawable/stat_sys_battery_11" android:maxLevel="12" />
<item android:drawable="@drawable/stat_sys_battery_12" android:maxLevel="13" />
<item android:drawable="@drawable/stat_sys_battery_13" android:maxLevel="14" />
<item android:drawable="@drawable/stat_sys_battery_14" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="16" />
<item android:drawable="@drawable/stat_sys_battery_16" android:maxLevel="17" />
<item android:drawable="@drawable/stat_sys_battery_17" android:maxLevel="18" />
<item android:drawable="@drawable/stat_sys_battery_18" android:maxLevel="19" />
<item android:drawable="@drawable/stat_sys_battery_19" android:maxLevel="20" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="21" />
<item android:drawable="@drawable/stat_sys_battery_21" android:maxLevel="22" />
<item android:drawable="@drawable/stat_sys_battery_22" android:maxLevel="23" />
<item android:drawable="@drawable/stat_sys_battery_23" android:maxLevel="24" />
<item android:drawable="@drawable/stat_sys_battery_24" android:maxLevel="25" />
<item android:drawable="@drawable/stat_sys_battery_25" android:maxLevel="26" />
<item android:drawable="@drawable/stat_sys_battery_26" android:maxLevel="27" />
<item android:drawable="@drawable/stat_sys_battery_27" android:maxLevel="28" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="29" />
<item android:drawable="@drawable/stat_sys_battery_29" android:maxLevel="30" />
<item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="31" />
<item android:drawable="@drawable/stat_sys_battery_31" android:maxLevel="32" />
<item android:drawable="@drawable/stat_sys_battery_32" android:maxLevel="33" />
<item android:drawable="@drawable/stat_sys_battery_33" android:maxLevel="34" />
<item android:drawable="@drawable/stat_sys_battery_34" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_35" android:maxLevel="36" />
<item android:drawable="@drawable/stat_sys_battery_36" android:maxLevel="37" />
<item android:drawable="@drawable/stat_sys_battery_37" android:maxLevel="38" />
<item android:drawable="@drawable/stat_sys_battery_38" android:maxLevel="39" />
<item android:drawable="@drawable/stat_sys_battery_39" android:maxLevel="40" />
<item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="41" />
<item android:drawable="@drawable/stat_sys_battery_41" android:maxLevel="42" />
<item android:drawable="@drawable/stat_sys_battery_42" android:maxLevel="43" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="44" />
<item android:drawable="@drawable/stat_sys_battery_44" android:maxLevel="45" />
<item android:drawable="@drawable/stat_sys_battery_45" android:maxLevel="46" />
<item android:drawable="@drawable/stat_sys_battery_46" android:maxLevel="47" />
<item android:drawable="@drawable/stat_sys_battery_47" android:maxLevel="48" />
<item android:drawable="@drawable/stat_sys_battery_48" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_49" android:maxLevel="50" />
<item android:drawable="@drawable/stat_sys_battery_50" android:maxLevel="51" />
<item android:drawable="@drawable/stat_sys_battery_51" android:maxLevel="52" />
<item android:drawable="@drawable/stat_sys_battery_52" android:maxLevel="53" />
<item android:drawable="@drawable/stat_sys_battery_53" android:maxLevel="54" />
<item android:drawable="@drawable/stat_sys_battery_54" android:maxLevel="55" />
<item android:drawable="@drawable/stat_sys_battery_55" android:maxLevel="56" />
<item android:drawable="@drawable/stat_sys_battery_56" android:maxLevel="57" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="58" />
<item android:drawable="@drawable/stat_sys_battery_58" android:maxLevel="59" />
<item android:drawable="@drawable/stat_sys_battery_59" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="61" />
<item android:drawable="@drawable/stat_sys_battery_61" android:maxLevel="62" />
<item android:drawable="@drawable/stat_sys_battery_62" android:maxLevel="63" />
<item android:drawable="@drawable/stat_sys_battery_63" android:maxLevel="64" />
<item android:drawable="@drawable/stat_sys_battery_64" android:maxLevel="65" />
<item android:drawable="@drawable/stat_sys_battery_65" android:maxLevel="66" />
<item android:drawable="@drawable/stat_sys_battery_66" android:maxLevel="67" />
<item android:drawable="@drawable/stat_sys_battery_67" android:maxLevel="68" />
<item android:drawable="@drawable/stat_sys_battery_68" android:maxLevel="69" />
<item android:drawable="@drawable/stat_sys_battery_69" android:maxLevel="70" />
<item android:drawable="@drawable/stat_sys_battery_70" android:maxLevel="71" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="72" />
<item android:drawable="@drawable/stat_sys_battery_72" android:maxLevel="73" />
<item android:drawable="@drawable/stat_sys_battery_73" android:maxLevel="74" />
<item android:drawable="@drawable/stat_sys_battery_74" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_75" android:maxLevel="76" />
<item android:drawable="@drawable/stat_sys_battery_76" android:maxLevel="77" />
<item android:drawable="@drawable/stat_sys_battery_77" android:maxLevel="78" />
<item android:drawable="@drawable/stat_sys_battery_78" android:maxLevel="79" />
<item android:drawable="@drawable/stat_sys_battery_79" android:maxLevel="80" />
<item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="81" />
<item android:drawable="@drawable/stat_sys_battery_81" android:maxLevel="82" />
<item android:drawable="@drawable/stat_sys_battery_82" android:maxLevel="83" />
<item android:drawable="@drawable/stat_sys_battery_83" android:maxLevel="84" />
<item android:drawable="@drawable/stat_sys_battery_84" android:maxLevel="85" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="86" />
<item android:drawable="@drawable/stat_sys_battery_86" android:maxLevel="87" />
<item android:drawable="@drawable/stat_sys_battery_87" android:maxLevel="88" />
<item android:drawable="@drawable/stat_sys_battery_88" android:maxLevel="89" />
<item android:drawable="@drawable/stat_sys_battery_89" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_90" android:maxLevel="91" />
<item android:drawable="@drawable/stat_sys_battery_91" android:maxLevel="92" />
<item android:drawable="@drawable/stat_sys_battery_92" android:maxLevel="93" />
<item android:drawable="@drawable/stat_sys_battery_93" android:maxLevel="94" />
<item android:drawable="@drawable/stat_sys_battery_94" android:maxLevel="95" />
<item android:drawable="@drawable/stat_sys_battery_95" android:maxLevel="96" />
<item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="97" />
<item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="98" />
<item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="99" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
Then added png files battery level with % number into drawable-hdpi, rebuilt, reflashed, rebooted, when the fall started, it showed new battery icon with % number on statusbar, but a lot of app FC...
Did i do anything wrong?
keunhuvac said:
I decompiled framework-res.apk, edit file stat_sys_battery lik this:
Then added png files battery level with % number into drawable-hdpi, rebuilt, reflashed, rebooted, when the fall started, it showed new battery icon with % number on statusbar, but a lot of app FC...
Did i do anything wrong?
Click to expand...
Click to collapse
it's not that easy, dude.
as kabaldan wrote: you have to build frameworks/base/services/jni/com_android_server_BatteryService.cpp from sources!!! with the changes you find in github-link he posted + using the battd in /system/bin/ he used (from Droid2 od MS2)
eybee1970 said:
it's not that easy, dude.
as kabaldan wrote: you have to build frameworks/base/services/jni/com_android_server_BatteryService.cpp from sources!!! with the changes you find in github-link he posted + using the battd in /system/bin/ he used (from Droid2 od MS2)
Click to expand...
Click to collapse
So the method to display battery in step 1% is only available if i choose display % battery in statatusbar tweak (in cyanogenmod settings)?
Nope sileshn got it working on my Froyomod with all 100 battery icons!!
Ask him
keunhuvac said:
So the method to display battery in step 1% is only available if i choose display % battery in statatusbar tweak (in cyanogenmod settings)?
Click to expand...
Click to collapse
You need to change the resource ID's for all of the PNG's you are adding. Silesh said it was something like 89 extra PNG's for all 100 icons.
Where can I find him? I port MIUI to the droid from the Milestone build each week. I would like to port this to Droid as well.
TreyMotes said:
Where can I find him? I port MIUI to the droid from the Milestone build each week. I would like to port this to Droid as well.
Click to expand...
Click to collapse
You can send him a PM. He is always around here though, so he might also reply to this thread soon.
I just realized that it won't really matter. MIUI is closed source so building framework from source is impossible. I have passed this info to the Chinese developers in hopes that they will add this to the Milestone MIUI builds.
TreyMotes said:
I just realized that it won't really matter. MIUI is closed source so building framework from source is impossible. I have passed this info to the Chinese developers in hopes that they will add this to the Milestone MIUI builds.
Click to expand...
Click to collapse
Very true my friend. You will need to wait till miui cn include it in their releases. Then you can mod it to use extra png's.
It works perfectly on Froyomod.
Sent from my Milestone using Tapatalk
This saddens me. I really wanted to surprise the users of my port this morning. Oh well. We patiently wait I guess...
keunhuvac said:
So the method to display battery in step 1% is only available if i choose display % battery in statatusbar tweak (in cyanogenmod settings)?
Click to expand...
Click to collapse
Hey buddy, I can add the pngs to the framework of cm7 if you want me to. Just link me up to the icons you want to use.
Sent from my Milestone using Tapatalk

(01-17-13)Batch Themer V1.5RLS

This is a two-part thread. First part will cover my Batch Theme script I created for the Galaxy S III. The second part is a guide of where all major png's are located and what Png's still need to be found.
Batch Theme script
It copies one png and renames the copy to every PNG within framework-res.apk that has the same dimensions. So far it can create about 60 png's in about a second. As simple as it is, this script will save any themer at least an hour of work if not more. My goal will be to batch theme framework-res.apk in a couple seconds. Here's a quick video of what the script is capable of:
You can download the script here:
RLS1.5
Changelog:
*Batch theme folder added(Just modify the PNG's in test folder then copy those to the primary folder, run batch...enjoy
*Added more png's to main script. (currently up to 134 PNG's on batch theme)
Media Link: http://www.mediafire.com/?jc3d41eu63gdbcn
Changelog-Batch Theme Script
Primary PNG's/9.png's needed to run batch script (Currently 13 below will generate 115 png's)
ab_stacked_solid_dark_holo.9.png
btn_default_normal_holo.9.png
btn_default_normal_holo_dark.9.png
btn_radio_off.png
btn_radio_on.png
dialog_full_holo_dark.9.png
dialog_full_holo_light.9.png
dialog_middle_holo.9.png
switch_thumb_activated_holo_dark.9.png
toast_frame_holo.9.png
tw_dialog_bottom_holo_dark.9.png
tw_dialog_bottom_medium_holo_dark.9.png
tw_menu_hardkey_panel_holo_dark.9.png
PNG location's for Galaxy SIII
With the help of other themers, I'm hoping we can get some coordination going so themes can be completed in a much quicker time-frame.
I'll do the best I can to post tutorials, screen-shots and whatever else I can to aid in them development.
Credits:
jonathanphx1-))
)))))))))))))))))))))-Huge Thanks to both these devs for putting together a nice hack to allow for three NEW png's we can use in our themes. Make sure you hit them up with some thanks.
Gunthermic's-))
PNG's That need to be located.
Menu popup press png
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PNG that have been located and their location(These PNG's took hours to find)
status_bar_item_background_normal (Seen here when pressing on the dropdown menu) Found!-Huge thanks to jonathanphx1& Gunthermic's for the hack. Without them, THIS WOULD NOT BE POSSIBLE
Instructions for modifying XML:
jonathanphx1-
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile
SystemUI->values->drawable.xml
Click to expand...
Click to collapse
Code:
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff11111 1</item>
[COLOR="Magenta"][B]<drawable name="notification_item_background_color_pressed"> @drawable/status_bar_item_background_normal</drawable>[/B][/COLOR]
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
[COLOR="Magenta"][B]<drawable name="status_bar_background">@drawable/statusbar_background</drawable>[/B][/COLOR]
<item type="drawable" name="status_bar_recents_background_solid">#b30000 00</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background" >#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color ">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color"># ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
[COLOR="Magenta"][B]<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>[/B][/COLOR]
All png's that follow are located in framework-res.apk
Menu Popup. (When pressing hard menu)
Location: framework-res.apk/xdpi/tw_menu_hardkey_panel_holo_dark.9.png
Power Menu: (Found when holding down power. This is the bottom part of that menu)
tw_dialog_bottom_holo_dark.9.png
Screenshot:
Small Toaster Popup (The box that pop's up when the phone boots to homescreen. This usually says, Super User has been granted Root access in very small font)
toast_frame_holo.9.png
Screenshot:
Popup Top Menu ( Found when the screen loads and a popup menu is displayed. This is the top portion )
dialog_top_holo_dark.9.png
Screenshot:
Pop up Bottom Rest Toaster Box (Found in wifi Explorer as the popup box)
dialog_button_bottom_holo_dark.9.png
Popup Bottom Toaster Box ( The bottom PNG you see when the phone initially boots up )
tw_menu_dropdown_panel_holo_dark.9.png
Pop up Bottom png rest for restart menu ( Found when selecting Power Menu,Restart
tw_dialog_bottom_medium_holo_dark.9.png
Great post Thanks.
Nice job!
what I would like to know, is people who are successfully decompiling, recompiling and then using a systemui.apk, what apktools they are using.
I can decompile, recompile, and use framework-res.apk and twframework-res.apk but cannot do the same with systemui.apk
nosympathy said:
what I would like to know, is people who are successfully decompiling, recompiling and then using a systemui.apk, what apktools they are using.
I can decompile, recompile, and use framework-res.apk and twframework-res.apk but cannot do the same with systemui.apk
Click to expand...
Click to collapse
No problem bud. Prddog1 hooked me up with the latest apktool.
Good bye HTC Rezound, hello Galaxy S3!
I look forward to giving this a shot.
Sent from my SCH-I535 using Xparent ICS Tapatalk 2
AndroidGraphix said:
No problem bud. Prddog1 hooked me up with the latest apktool.
Good bye HTC Rezound, hello Galaxy S3!
Click to expand...
Click to collapse
Yeah I thank you again for your help. Having one of those blonde moments haha.
Sent from my SCH-I535 using xda app-developers app
PNG's That need to be located.
Dropdown Menu Press.png
I'm looking for the press.png found for the drop down menu. I've been told it's in drawable.xml under SystemUI.apk but I've modified it to no end with zero results. Please advise.
Raider found it with Gunthermic's help. Other treasures in that xml too.
SystemUI,->values->drawables.xml...
jonathanphx1 said:
PNG's That need to be located.
Dropdown Menu Press.png
I'm looking for the press.png found for the drop down menu. I've been told it's in drawable.xml under SystemUI.apk but I've modified it to no end with zero results. Please advise.
Raider found it with Gunthermic's help. Other treasures in that xml too.
SystemUI,->values->drawables.xml...
Click to expand...
Click to collapse
Thanks buddy. Can you paste and bold the line of code I need to edit? I've honestly changed it at least three times with no luck. I was trying to redirect the xml to a png by inserting @drawable/status_bar_background but it didn't work. Any ideas?
Good bye HTC Rezound, hello Galaxy S3!
AndroidGraphix said:
Thanks buddy. Can you paste and bold the line of code I need to edit? I've honestly changed it at least three times with no luck. I was trying to redirect the xml to a png by inserting @drawable/status_bar_background but it didn't work. Any ideas?
Good bye HTC Rezound, hello Galaxy S3!
Click to expand...
Click to collapse
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
Sure here.... this is in the SystemUI->values->drawable.xml
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>]
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile.
---------- Post added at 03:14 AM ---------- Previous post was at 03:01 AM ----------
Raider reread my post above about the status bar background. was editting it when you were reading it
jonathanphx1 said:
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
Sure here.... this is in the SystemUI->values->drawable.xml
#ffffffff
#ff111111
@drawable/status_bar_item_background_normal
#ff1d1d1d
@drawable/statusbar_background
#b3000000
#88000000
#ff090909
#ff000000
#d8000000
#99ffffff
#ffaaaaaa
#00000000
@drawable/status_bar_item_background_normal]
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile.
---------- Post added at 03:14 AM ---------- Previous post was at 03:01 AM ----------
Raider reread my post above about the status bar background. was editting it when you were reading it
Click to expand...
Click to collapse
Awesome bro. Thanks a million for posting you and Gunthermic's hack. I'll post this in the op in an hour.
Now all we need is to insert xml code to allow for a status_bar_background_rest
Good bye HTC Rezound, hello Galaxy S3!
EDIT
If anyone can help. I tried the above mod in drawable.xml but when I flash the zip, nothing happens.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="APKTOOL_DUMMY_0065">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0066">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0083">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0084">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0085">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0086">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0087">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0088">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0089">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ab">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fb">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fc">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ff">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0100">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0105">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0106">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0118">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0119">false</item>
<item type="drawable" name="APKTOOL_DUMMY_016a">false</item>
</resources>
I've inserted the png's into drawable-XDPI folder.
I also don't know if the first code posted was correct or if my modifed xml below is how it should be written:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<item type="drawable" drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<item type="drawable" drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<item type="drawable" drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="APKTOOL_DUMMY_0065">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0066">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0083">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0084">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0085">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0086">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0087">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0088">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0089">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ab">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fb">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fc">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ff">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0100">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0105">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0106">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0118">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0119">false</item>
<item type="drawable" name="APKTOOL_DUMMY_016a">false</item>
</resources>
looking forward to using this!
Having issues recompiling SystemUI.apk. Any help?
I have been themeing my own stuff for awhile but did each file individually and have never ran scripts so I was wondering if anyone has a few minutes if you would mind explaining how to get this to work.
thanks
jdpeck said:
I have been themeing my own stuff for awhile but did each file individually and have never ran scripts so I was wondering if anyone has a few minutes if you would mind explaining how to get this to work.
thanks
Click to expand...
Click to collapse
Best thing to do is match the PNG's used in the script then add those png's to the main folder followed by running the script. You only need to match the first png.
Sent from my SCH-I535 using xda premium
Batch Themer updated to RLS 1.5. :laugh: OP has been updated.
Raider rocks
Glad to see you back in the game homie and sharing your knowledge. Thanks also to all those that have shared with you so that you can share with us. (ie: jonathanphx1 and team Average Joe's) :good:
jonathanphx1 said:
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
Sure here.... this is in the SystemUI->values->drawable.xml
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>]
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile.
---------- Post added at 03:14 AM ---------- Previous post was at 03:01 AM ----------
Raider reread my post above about the status bar background. was editting it when you were reading it
Click to expand...
Click to collapse
nice work guys. thanks for all your help. i would be totally clueless without you knowledge. gonna see if i can get the nano dialer over to the dark horse rises therme for my phone. gonna be tough on a noob to this...
pop up
hi there awsome work!! just wondering if u cud plz tell me name of this popup, i cant seem to find it , plz
litlnicky said:
hi there awsome work!! just wondering if u cud plz tell me name of this popup, i cant seem to find it , plz
Click to expand...
Click to collapse
Its in framework-res.apk.... I can't remember off hand but is something like... search dropdown... It's a 9 file
HAHA...I bet you thought there was gonna be something awesome here, but it's just a regular old signature
GalaxyMOD spilled ink on my MulitiWindows

Changing Status Bar Color - ICS

Hi,
I'm trying to change the status bar clock color in the Glide ICS leak. I decompile SystemUI.apk, navigate to /res/values/styles.xml and change to:
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff33b5e5</item>
</style>
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff33b5e5</item>
Recompiling, deleting resources.arsc in keep folder and replacing the the resources from the new apk to the old apk, I flash the systemui.apk and the status bar clock stays the same color...The strange thing is before this the lines of code above were already like android_holo_blue or whatever.
Help? Thanks!
Aquethys said:
Hi,
I'm trying to change the status bar clock color in the Glide ICS leak. I decompile SystemUI.apk, navigate to /res/values/styles.xml and change to:
!
Click to expand...
Click to collapse
Buddy. Do not make the changes in styles.xml. Open Status_bar.xml from res/drawable-hdpi/layout. In that search for "com.android.systemui.statusbar.Clock". In that line, at the end add
Code:
android:textColor="#ff33b5e5"
.
Similarly do it for date too by searching for the line "com.android.systemui.statusbar.DateView" and add the same line at the end of that code.
Recompile and follow the rest of procedure.
Didn't do anything: Here's what the line of code is
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:textColor="#ff33b5e5" />
Do I need to change date too? Where is that?
bump
Aquethys said:
Didn't do anything: Here's what the line of code is
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:textColor="#ff33b5e5" />
Do I need to change date too? Where is that?
Click to expand...
Click to collapse
Sorry for late reply buddy. Yeah..tats right. Do that for date too. Find "com.android.systemui.statusbar.DateView" and make a similar change in that.
Hm date doesn't seem to be in there. Our statusbar xml is in res\layout...
Uploaded here
bump

[GUIDE][JB][4.1.2][TW]How to get AOSP theme on TW Rom

Ok this guide it's different from guide made by @BOOTMGR, i follow him guide but i've a few trouble (FC) on some option in settings and now i found my own way how to get AOSP theme for TW based rom (for Jellybean 4.1.2 with Touchwiz version) without any trouble like FC.
actually, this guide its for Galaxy Young GT-S6310 but i hope it will work on all JB 4.1.2 with Touchwiz Based Rom
so let's start now
How to:
1. decompile your framework-res.apk
2. go to styles.xml
3. search for <style name="Theme.DeviceDefault" parent="@style/Theme.Holo">
4. now, we need to modified all content inside <style name="Theme.DeviceDefault" parent="@style/Theme.Holo">
5. replace all line inside <style name="Theme.DeviceDefault" parent="@style/Theme.Holo"> with this
Code:
<style name="Theme.DeviceDefault" parent="@style/Theme.Holo">
<item name="textAppearance">@style/TextAppearance.Holo</item>
<item name="textAppearanceInverse">@style/TextAppearance.Holo.Inverse</item>
<item name="textAppearanceLarge">@style/TextAppearance.Holo.Large</item>
<item name="textAppearanceMedium">@style/TextAppearance.Holo.Medium</item>
<item name="textAppearanceSmall">@style/TextAppearance.Holo.Small</item>
<item name="textAppearanceLargeInverse">@style/TextAppearance.Holo.Large.Inverse</item>
<item name="textAppearanceMediumInverse">@style/TextAppearance.Holo.Medium.Inverse</item>
<item name="textAppearanceSmallInverse">@style/TextAppearance.Holo.Small.Inverse</item>
<item name="buttonStyle">@style/Widget.Holo.Button</item>
<item name="buttonStyleSmall">@style/Widget.Holo.Button.Small</item>
<item name="buttonStyleInset">@style/Widget.Holo.Button.Inset</item>
<item name="buttonStyleToggle">@style/Widget.Holo.Button.Toggle</item>
<item name="windowBackground">@drawable/tw_background_holo_dark</item>
<item name="windowTitleStyle">@style/WindowTitle.Holo</item>
<item name="windowTitleBackgroundStyle">@style/WindowTitleBackground.Holo</item>
<item name="alertDialogStyle">@style/AlertDialog.Holo</item>
<item name="panelBackground">@drawable/tw_menu_hardkey_panel_holo_dark</item>
<item name="absListViewStyle">@style/Widget.Holo.AbsListView</item>
<item name="autoCompleteTextViewStyle">@style/Widget.Holo.AutoCompleteTextView</item>
<item name="checkboxStyle">@style/Widget.Holo.CompoundButton.CheckBox</item>
<item name="dropDownListViewStyle">@style/Widget.Holo.ListView.DropDown</item>
<item name="editTextStyle">@style/Widget.Holo.EditText</item>
<item name="expandableListViewStyle">@style/Widget.Holo.ExpandableListView</item>
<item name="galleryStyle">@style/Widget.Holo.Gallery</item>
<item name="gridViewStyle">@style/Widget.Holo.GridView</item>
<item name="imageButtonStyle">@style/Widget.Holo.ImageButton</item>
<item name="imageWellStyle">@style/Widget.Holo.ImageWell</item>
<item name="listViewStyle">@style/Widget.Holo.ListView</item>
<item name="listViewWhiteStyle">@style/Widget.Holo.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.Holo.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.Holo.ProgressBar</item>
<item name="progressBarStyleHorizontal">@style/Widget.Holo.ProgressBar.Horizontal</item>
<item name="progressBarStyleSmall">@style/Widget.Holo.ProgressBar.Small</item>
<item name="progressBarStyleLarge">@style/Widget.Holo.ProgressBar.Large</item>
<item name="seekBarStyle">@style/Widget.Holo.SeekBar</item>
<item name="ratingBarStyle">@style/Widget.Holo.RatingBar</item>
<item name="ratingBarStyleSmall">@style/Widget.Holo.RatingBar.Small</item>
<item name="radioButtonStyle">@style/Widget.Holo.CompoundButton.RadioButton</item>
<item name="scrollViewStyle">@style/Widget.Holo.ScrollView</item>
<item name="spinnerStyle">?dropDownSpinnerStyle</item>
<item name="starStyle">@style/Widget.Holo.CompoundButton.Star</item>
<item name="tabWidgetStyle">@style/Widget.Holo.TabWidget</item>
<item name="textViewStyle">@style/Widget.Holo.TextView</item>
<item name="webViewStyle">@style/Widget.Holo.WebView</item>
<item name="dropDownItemStyle">@style/Widget.Holo.DropDownItem</item>
<item name="spinnerDropDownItemStyle">@style/Widget.Holo.DropDownItem.Spinner</item>
<item name="dropDownHintAppearance">@style/TextAppearance.Holo.Widget.DropDownHint</item>
<item name="spinnerItemStyle">@style/Widget.Holo.TextView.SpinnerItem</item>
<item name="preferenceScreenStyle">@style/Preference.Holo.PreferenceScreen</item>
<item name="preferenceCategoryStyle">@style/Preference.Holo.Category</item>
<item name="preferenceInformationStyle">@style/Preference.Holo.Information</item>
<item name="preferenceStyle">@style/Preference.Holo</item>
<item name="checkBoxPreferenceStyle">@style/Preference.Holo.CheckBoxPreference</item>
<item name="yesNoPreferenceStyle">@style/Preference.Holo.DialogPreference.YesNoPreference</item>
<item name="dialogPreferenceStyle">@style/Preference.Holo.DialogPreference</item>
<item name="editTextPreferenceStyle">@style/Preference.Holo.DialogPreference.EditTextPreference</item>
<item name="ringtonePreferenceStyle">@style/Preference.Holo.RingtonePreference</item>
<item name="preferenceLayoutChild">@layout/preference_child_holo</item>
<item name="windowAnimationStyle">@style/Animation.DeviceDefault.Activity</item>
<item name="textAppearanceButton">@style/TextAppearance.Holo.Widget.Button</item>
<item name="listSeparatorTextViewStyle">@style/Widget.Holo.TextView.ListSeparator</item>
<item name="progressBarStyleSmallTitle">@style/Widget.Holo.ProgressBar.Small.Title</item>
<item name="ratingBarStyleIndicator">@style/Widget.DeviceDefault.RatingBar.Indicator</item>
<item name="listDivider">@drawable/tw_list_divider_holo_dark</item>
<item name="listChoiceIndicatorSingle">@drawable/tw_btn_radio_holo_dark</item>
<item name="listChoiceIndicatorMultiple">@drawable/tw_btn_check_holo_dark</item>
<item name="progressBarStyleInverse">@style/Widget.Holo.ProgressBar.Inverse</item>
<item name="progressBarStyleSmallInverse">@style/Widget.Holo.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLargeInverse">@style/Widget.Holo.ProgressBar.Large.Inverse</item>
<item name="textAppearanceSearchResultSubtitle">@style/TextAppearance.DeviceDefault.SearchResult.Subtitle</item>
<item name="textAppearanceSearchResultTitle">@style/TextAppearance.DeviceDefault.SearchResult.Title</item>
<item name="scrollbarFadeDuration">@integer/scrollbar_fade_duration</item>
<item name="quickContactBadgeStyleWindowSmall">@style/Widget.DeviceDefault.QuickContactBadge.WindowSmall</item>
<item name="quickContactBadgeStyleWindowMedium">@style/Widget.DeviceDefault.QuickContactBadge.WindowMedium</item>
<item name="quickContactBadgeStyleWindowLarge">@style/Widget.DeviceDefault.QuickContactBadge.WindowLarge</item>
<item name="quickContactBadgeStyleSmallWindowSmall">@style/Widget.DeviceDefault.QuickContactBadgeSmall.WindowSmall</item>
<item name="quickContactBadgeStyleSmallWindowMedium">@style/Widget.DeviceDefault.QuickContactBadgeSmall.WindowMedium</item>
<item name="quickContactBadgeStyleSmallWindowLarge">@style/Widget.DeviceDefault.QuickContactBadgeSmall.WindowLarge</item>
<item name="expandableListViewWhiteStyle">@style/Widget.DeviceDefault.ExpandableListView.White</item>
<item name="webTextViewStyle">@style/Widget.DeviceDefault.WebTextView</item>
<item name="textSelectHandleLeft">@drawable/text_select_handle_left</item>
<item name="textSelectHandleRight">@drawable/text_select_handle_right</item>
<item name="textSelectHandle">@drawable/text_select_handle_middle</item>
<item name="textSelectHandleWindowStyle">@style/Widget.DeviceDefault.TextSelectHandle</item>
<item name="actionBarStyle">@style/Widget.DeviceDefault.ActionBar</item>
<item name="dropDownSpinnerStyle">@style/Widget.Holo.Spinner.DropDown</item>
<item name="actionDropDownStyle">@style/Widget.Holo.Spinner.DropDown.ActionBar</item>
<item name="actionButtonStyle">@style/Widget.Holo.ActionButton</item>
<item name="actionModeBackground">@drawable/top_header_octo</item>
<item name="actionModeCloseDrawable">@drawable/ic_cab_done_holo_dark</item>
<item name="listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>
<item name="actionBarTabStyle">@style/Widget.Holo.ActionBar.TabView</item>
<item name="actionBarTabBarStyle">@style/Widget.Holo.ActionBar.TabBar</item>
<item name="actionBarTabTextStyle">@style/Widget.Holo.ActionBar.TabText</item>
<item name="actionOverflowButtonStyle">@style/Widget.Holo.ActionButton.Overflow</item>
<item name="actionModeCloseButtonStyle">@style/Widget.Holo.ActionButton.CloseMode</item>
<item name="listPopupWindowStyle">@style/Widget.Holo.ListPopupWindow</item>
<item name="popupMenuStyle">@style/Widget.Holo.PopupMenu</item>
<item name="textAppearanceLargePopupMenu">@style/TextAppearance.Holo.Widget.PopupMenu.Large</item>
<item name="textAppearanceSmallPopupMenu">@style/TextAppearance.Holo.Widget.PopupMenu.Small</item>
<item name="textColorAlertDialogListItem">@color/tw_popup_primary_text_holo_dark</item>
<item name="dialogTheme">@style/Theme.Holo.Dialog</item>
<item name="alertDialogTheme">@style/Theme.Holo.Dialog.Alert</item>
<item name="homeAsUpIndicator">@drawable/tw_ic_ab_back_holo_dark</item>
<item name="actionModeCutDrawable">@drawable/ic_menu_cut_holo_dark</item>
<item name="actionModeCopyDrawable">@drawable/ic_menu_copy_holo_dark</item>
<item name="actionModePasteDrawable">@drawable/ic_menu_paste_holo_dark</item>
<item name="borderlessButtonStyle">@style/Widget.DeviceDefault.Button.Borderless</item>
<item name="buttonBarStyle">@style/Holo.ButtonBar</item>
<item name="buttonBarButtonStyle">?borderlessButtonStyle</item>
<item name="segmentedButtonStyle">@style/DeviceDefault.SegmentedButton</item>
<item name="editTextBackground">@drawable/edit_text_holo_dark</item>
<item name="horizontalScrollViewStyle">@style/Widget.Holo.HorizontalScrollView</item>
<item name="alertDialogIcon">@drawable/ic_dialog_alert_holo_dark</item>
<item name="datePickerStyle">@style/Widget.Holo.DatePicker</item>
<item name="calendarViewStyle">@style/Widget.Holo.CalendarView</item>
<item name="actionMenuTextAppearance">@style/TextAppearance.Holo.Widget.ActionBar.Menu</item>
<item name="actionMenuTextColor">@color/tw_action_bar_menu_text_holo_dark</item>
<item name="switchPreferenceStyle">@style/Preference.Holo.SwitchPreference</item>
<item name="textSuggestionsWindowStyle">@style/Widget.Holo.TextSuggestionsPopupWindow</item>
<item name="actionModeSelectAllDrawable">@drawable/ic_menu_selectall_holo_dark</item>
<item name="actionModeStyle">@style/Widget.Holo.ActionMode</item>
<item name="actionBarDivider">@drawable/divider_vertical_holo_dark</item>
<item name="actionBarItemBackground">@drawable/tw_action_item_background_holo_dark</item>
<item name="actionModeSplitBackground">@drawable/top_header_octo</item>
<item name="listPreferredItemPaddingLeft">17.0dip</item>
<item name="listPreferredItemPaddingRight">17.0dip</item>
<item name="actionBarNonEmbeded">false</item>
<item name="panelMenuListWidth">@dimen/tw_compactmenu_width</item>
<item name="panelMenuListTheme">@style/Theme.DeviceDefault.CompactMenu</item>
<item name="gestureOverlayViewStyle">@style/Widget.DeviceDefault.GestureOverlayView</item>
<item name="quickContactBadgeOverlay">@drawable/tw_quickcontact_badge_overlay_dark</item>
<item name="stackViewStyle">@style/Widget.DeviceDefault.StackView</item>
<item name="checkBoxCheckMark">@drawable/tw_btn_checkmark_holo_dark</item>
<item name="checkBoxCheckContainer">@drawable/tw_btn_checkcontainer_holo_dark</item>
<item name="numberPickerStyle">@style/Widget.DeviceDefault.NumberPicker</item>
<item name="timePickerStyle">@style/Widget.DeviceDefault.TimePicker</item>
<item name="actionBarTitleShadowColor">@color/tw_action_bar_title_shadow_color_holo_dark</item>
<item name="actionBarTitleShadowDx">@dimen/tw_action_bar_title_shadow_dx_holo_dark</item>
<item name="actionMultiWindowButtonDrawable">@drawable/tw_ic_menu_cascade_holo_dark</item>
<item name="actionMultiWindowButtonBackground">@drawable/tw_btn_ab_mw_holo_dark</item>
<item name="actionBarTitleShadowDy">@dimen/tw_action_bar_title_shadow_dy_holo_dark</item>
<item name="actionModeShareDrawable">@drawable/tw_ic_menu_share_holo_dark</item>
<item name="actionModeFindDrawable">@drawable/tw_ic_menu_find_holo_dark</item>
<item name="actionModeWebSearchDrawable">@drawable/tw_ic_menu_search_holo_dark</item>
<item name="actionModePopupWindowStyle">@style/Widget.DeviceDefault.PopupWindow.ActionMode</item>
<item name="preferenceFragmentStyle">@style/PreferenceFragment</item>
<item name="preferenceActivityLayout">@layout/preference_list_content</item>
<item name="preferenceHeaderItemLayout">@layout/preference_header_item</item>
<item name="fragmentBreadCrumbItemLayout">@layout/fragment_bread_crumb_item</item>
<item name="dialogTitleIconsDecorLayout">@layout/dialog_title_icons_holo</item>
<item name="actionModeClipboardDrawable">@drawable/tw_ic_menu_clipboard_holo_dark</item>
<item name="textSelectHandleLeftTop">@drawable/text_select_handle_left</item>
<item name="textSelectHandleRightTop">@drawable/text_select_handle_right</item>
<item name="searchViewCloseIcon">@drawable/tw_ic_clear</item>
<item name="searchViewGoIcon">@drawable/ic_go</item>
<item name="searchViewSearchIcon">@drawable/ic_search</item>
<item name="searchViewVoiceIcon">@drawable/ic_voice_search</item>
<item name="searchViewEditQuery">@drawable/ic_commit_search_api_holo_dark</item>
<item name="searchViewEditQueryBackground">@drawable/tw_item_background_holo_dark</item>
<item name="searchViewTextField">@drawable/tw_textfield_searchview_holo_dark</item>
<item name="searchViewTextFieldRight">@drawable/tw_textfield_searchview_right_holo_dark</item>
<item name="searchViewTextColor">@color/tw_textfield_searchview_text_holo_dark</item>
<item name="twTextColorPrimary">@color/primary_text_holo_dark</item>
<item name="twTextColorSecondary">@color/secondary_text_holo_dark</item>
<item name="twTextSizePrimary">22.0sp</item>
<item name="twTextSizeSecondary">@dimen/tw_secondary_text_size</item>
<item name="dialogTitleDecorLayout">@layout/dialog_title_holo</item>
<item name="toastFrameBackground">@drawable/tw_toast_frame_holo_dark</item>
<item name="toastTextColor">@color/tw_toast_text_holo_dark</item>
<item name="toastTextShadowColor">@color/tw_toast_text_shadow_holo_dark</item>
<item name="searchDropdownBackground">@drawable/tw_spinner_dropdown_background</item>
<item name="searchViewSearchFieldIcon">@drawable/tw_ic_searchfield</item>
<item name="searchDialogTheme">@style/Theme.Holo.SearchBar</item>
<item name="preferenceFrameLayoutStyle">@style/Widget.DeviceDefault.PreferenceFrameLayout</item>
<item name="switchStyle">@style/Widget.Holo.CompoundButton.Switch</item>
<item name="ProgressDialogStyle">@style/AlertDialog.DeviceDefault.ProgressDialog</item>
<item name="parentIsDeviceDefault">true</item>
<item name="keyboardViewStyle">@style/Widget.DeviceDefault.KeyboardView</item>
</style>
6. now, save your styles.xml and compile your framework-res.apk
NB:
1. Still do with your own risk
2. Backup your original framework-res.apk
3. If you get a error, post the log here. without log, i can't help you
Press Thanks if this guide usefull
Nice guide sir, :good:
thank you for this guide, i will try it
dugeriss said:
Nice guide sir, :good:
Click to expand...
Click to collapse
thanks master :cyclops:
crazy_user said:
thank you for this guide, i will try it
Click to expand...
Click to collapse
thankyou and goodluck bro :good:
huge thanks to you & to BOOTMGR working like a charm on s6312
check attchments
adding on my project you saved my time
vlc07 said:
huge thanks to you & to BOOTMGR working like a charm on s6312
check attchments
adding on my project you saved my time
Click to expand...
Click to collapse
good one bro
Sent from my Google Nexus 5 using Tapatalk
ocoot said:
thanks master :cyclops:
thankyou and goodluck bro :good:
Click to expand...
Click to collapse
this guide work for my device thanks bro
crazy_user said:
this guide work for my device thanks bro
Click to expand...
Click to collapse
thanks man
nice guide master
dikulbahrian said:
nice guide master
Click to expand...
Click to collapse
thankyou master
Sent from my Google Nexus 5 using Tapatalk
no one try? huh :/
ocoot said:
no one try? huh :/
Click to expand...
Click to collapse
i already try it master? haha
B|
ocoot said:
Ok this guide it's different from guide made by @BOOTMGR, i follow him guide but i've a few trouble (FC) on some option in settings and now i found my own way how to get AOSP theme for TW based rom (actually for Jellybean 4.1.2 with Touchwiz version) without any trouble like FC.
And may it will work on all JB 4.1.2 Touchwiz Rom
so let's start now
How to:
1. decompile your framework-res.apk
2. go to styles.xml
3. search for <style name="Theme.DeviceDefault" parent="@style/Theme.Holo">
4. now, we need to modified all content inside <style name="Theme.DeviceDefault" parent="@style/Theme.Holo">
5. replace all line inside <style name="Theme.DeviceDefault" parent="@style/Theme.Holo"> with this
Code:
<style name="Theme.DeviceDefault" p:eek::eek::eek:arent="@style/Theme.Holo">
<item name="textAppearance">@style/TextAppearance.Holo</item>
<item name="textAppearanceInverse">@style/TextAppearance.Holo.Inverse</item>
<item name="textAppearanceLarge">@style/TextAppearance.Holo.Large</item>
<item name="textAppearanceMedium">@style/TextAppearance.Holo.Medium</item>
<item name="textAppearanceSmall">@style/TextAppearance.Holo.Small</item>
<item name="textAppearanceLargeInverse">@style/TextAppearance.Holo.Large.Inverse</item>
<item name="textAppearanceMediumInverse">@style/TextAppearance.Holo.Medium.Inverse</item>
<item name="textAppearanceSmallInverse">@style/TextAppearance.Holo.Small.Inverse</item>
<item name="buttonStyle">@style/Widget.Holo.Button</item>
<item name="buttonStyleSmall">@style/Widget.Holo.Button.Small</item>
<item name="buttonStyleInset">@style/Widget.Holo.Button.Inset</item>
<item name="buttonStyleToggle">@style/Widget.Holo.Button.Toggle</item>
<item name="windowBackground">@drawable/tw_background_holo_dark</item>
<item name="windowTitleStyle">@style/WindowTitle.Holo</item>
<item name="windowTitleBackgroundStyle">@style/WindowTitleBackground.Holo</item>
<item name="alertDialogStyle">@style/AlertDialog.Holo</item>
<item name="panelBackground">@drawable/tw_menu_hardkey_panel_holo_dark</item>
<item name="absListViewStyle">@style/Widget.Holo.AbsListView</item>
<item name="autoCompleteTextViewStyle">@style/Widget.Holo.AutoCompleteTextView</item>
<item name="checkboxStyle">@style/Widget.Holo.CompoundButton.CheckBox</item>
<item name="dropDownListViewStyle">@style/Widget.Holo.ListView.DropDown</item>
<item name="editTextStyle">@style/Widget.Holo.EditText</item>
<item name="expandableListViewStyle">@style/Widget.Holo.ExpandableListView</item>
<item name="galleryStyle">@style/Widget.Holo.Gallery</item>
<item name="gridViewStyle">@style/Widget.Holo.GridView</item>
<item name="imageButtonStyle">@style/Widget.Holo.ImageButton</item>
<item name="imageWellStyle">@style/Widget.Holo.ImageWell</item>
<item name="listViewStyle">@style/Widget.Holo.ListView</item>
<item name="listViewWhiteStyle">@style/Widget.Holo.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.Holo.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.Holo.ProgressBar</item>
<item name="progressBarStyleHorizontal">@style/Widget.Holo.ProgressBar.Horizontal</item>
<item name="progressBarStyleSmall">@style/Widget.Holo.ProgressBar.Small</item>
<item name="progressBarStyleLarge">@style/Widget.Holo.ProgressBar.Large</item>
<item name="seekBarStyle">@style/Widget.Holo.SeekBar</item>
<item name="ratingBarStyle">@style/Widget.Holo.RatingBar</item>
<item name="ratingBarStyleSmall">@style/Widget.Holo.RatingBar.Small</item>
<item name="radioButtonStyle">@style/Widget.Holo.CompoundButton.RadioButton</item>
<item name="scrollViewStyle">@style/Widget.Holo.ScrollView</item>
<item name="spinnerStyle">?dropDownSpinnerStyle</item>
<item name="starStyle">@style/Widget.Holo.CompoundButton.Star</item>
<item name="tabWidgetStyle">@style/Widget.Holo.TabWidget</item>
<item name="textViewStyle">@style/Widget.Holo.TextView</item>
<item name="webViewStyle">@style/Widget.Holo.WebView</item>
<item name="dropDownItemStyle">@style/Widget.Holo.DropDownItem</item>
<item name="spinnerDropDownItemStyle">@style/Widget.Holo.DropDownItem.Spinner</item>
<item name="dropDownHintAppearance">@style/TextAppearance.Holo.Widget.DropDownHint</item>
<item name="spinnerItemStyle">@style/Widget.Holo.TextView.SpinnerItem</item>
<item name="preferenceScreenStyle">@style/Preference.Holo.PreferenceScreen</item>
<item name="preferenceCategoryStyle">@style/Preference.Holo.Category</item>
<item name="preferenceInformationStyle">@style/Preference.Holo.Information</item>
<item name="preferenceStyle">@style/Preference.Holo</item>
<item name="checkBoxPreferenceStyle">@style/Preference.Holo.CheckBoxPreference</item>
<item name="yesNoPreferenceStyle">@style/Preference.Holo.DialogPreference.YesNoPreference</item>
<item name="dialogPreferenceStyle">@style/Preference.Holo.DialogPreference</item>
<item name="editTextPreferenceStyle">@style/Preference.Holo.DialogPreference.EditTextPreference</item>
<item name="ringtonePreferenceStyle">@style/Preference.Holo.RingtonePreference</item>
<item name="preferenceLayoutChild">@layout/preference_child_holo</item>
<item name="windowAnimationStyle">@style/Animation.DeviceDefault.Activity</item>
<item name="textAppearanceButton">@style/TextAppearance.Holo.Widget.Button</item>
<item name="listSeparatorTextViewStyle">@style/Widget.Holo.TextView.ListSeparator</item>
<item name="progressBarStyleSmallTitle">@style/Widget.Holo.ProgressBar.Small.Title</item>
<item name="ratingBarStyleIndicator">@style/Widget.DeviceDefault.RatingBar.Indicator</item>
<item name="listDivider">@drawable/tw_list_divider_holo_dark</item>
<item name="listChoiceIndicatorSingle">@drawable/tw_btn_radio_holo_dark</item>
<item name="listChoiceIndicatorMultiple">@drawable/tw_btn_check_holo_dark</item>
<item name="progressBarStyleInverse">@style/Widget.Holo.ProgressBar.Inverse</item>
<item name="progressBarStyleSmallInverse">@style/Widget.Holo.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLargeInverse">@style/Widget.Holo.ProgressBar.Large.Inverse</item>
<item name="textAppearanceSearchResultSubtitle">@style/TextAppearance.DeviceDefault.SearchResult.Subtitle</item>
<item name="textAppearanceSearchResultTitle">@style/TextAppearance.DeviceDefault.SearchResult.Title</item>
<item name="scrollbarFadeDuration">@integer/scrollbar_fade_duration</item>
<item name="quickContactBadgeStyleWindowSmall">@style/Widget.DeviceDefault.QuickContactBadge.WindowSmall</item>
<item name="quickContactBadgeStyleWindowMedium">@style/Widget.DeviceDefault.QuickContactBadge.WindowMedium</item>
<item name="quickContactBadgeStyleWindowLarge">@style/Widget.DeviceDefault.QuickContactBadge.WindowLarge</item>
<item name="quickContactBadgeStyleSmallWindowSmall">@style/Widget.DeviceDefault.QuickContactBadgeSmall.WindowSmall</item>
<item name="quickContactBadgeStyleSmallWindowMedium">@style/Widget.DeviceDefault.QuickContactBadgeSmall.WindowMedium</item>
<item name="quickContactBadgeStyleSmallWindowLarge">@style/Widget.DeviceDefault.QuickContactBadgeSmall.WindowLarge</item>
<item name="expandableListViewWhiteStyle">@style/Widget.DeviceDefault.ExpandableListView.White</item>
<item name="webTextViewStyle">@style/Widget.DeviceDefault.WebTextView</item>
<item name="textSelectHandleLeft">@drawable/text_select_handle_left</item>
<item name="textSelectHandleRight">@drawable/text_select_handle_right</item>
<item name="textSelectHandle">@drawable/text_select_handle_middle</item>
<item name="textSelectHandleWindowStyle">@style/Widget.DeviceDefault.TextSelectHandle</item>
<item name="actionBarStyle">@style/Widget.DeviceDefault.ActionBar</item>
<item name="dropDownSpinnerStyle">@style/Widget.Holo.Spinner.DropDown</item>
<item name="actionDropDownStyle">@style/Widget.Holo.Spinner.DropDown.ActionBar</item>
<item name="actionButtonStyle">@style/Widget.Holo.ActionButton</item>
<item name="actionModeBackground">@drawable/top_header_octo</item>
<item name="actionModeCloseDrawable">@drawable/ic_cab_done_holo_dark</item>
<item name="listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>
<item name="actionBarTabStyle">@style/Widget.Holo.ActionBar.TabView</item>
<item name="actionBarTabBarStyle">@style/Widget.Holo.ActionBar.TabBar</item>
<item name="actionBarTabTextStyle">@style/Widget.Holo.ActionBar.TabText</item>
<item name="actionOverflowButtonStyle">@style/Widget.Holo.ActionButton.Overflow</item>
<item name="actionModeCloseButtonStyle">@style/Widget.Holo.ActionButton.CloseMode</item>
<item name="listPopupWindowStyle">@style/Widget.Holo.ListPopupWindow</item>
<item name="popupMenuStyle">@style/Widget.Holo.PopupMenu</item>
<item name="textAppearanceLargePopupMenu">@style/TextAppearance.Holo.Widget.PopupMenu.Large</item>
<item name="textAppearanceSmallPopupMenu">@style/TextAppearance.Holo.Widget.PopupMenu.Small</item>
<item name="textColorAlertDialogListItem">@color/tw_popup_primary_text_holo_dark</item>
<item name="dialogTheme">@style/Theme.Holo.Dialog</item>
<item name="alertDialogTheme">@style/Theme.Holo.Dialog.Alert</item>
<item name="homeAsUpIndicator">@drawable/tw_ic_ab_back_holo_dark</item>
<item name="actionModeCutDrawable">@drawable/ic_menu_cut_holo_dark</item>
<item name="actionModeCopyDrawable">@drawable/ic_menu_copy_holo_dark</item>
<item name="actionModePasteDrawable">@drawable/ic_menu_paste_holo_dark</item>
<item name="borderlessButtonStyle">@style/Widget.DeviceDefault.Button.Borderless</item>
<item name="buttonBarStyle">@style/Holo.ButtonBar</item>
<item name="buttonBarButtonStyle">?borderlessButtonStyle</item>
<item name="segmentedButtonStyle">@style/DeviceDefault.SegmentedButton</item>
<item name="editTextBackground">@drawable/edit_text_holo_dark</item>
<item name="horizontalScrollViewStyle">@style/Widget.Holo.HorizontalScrollView</item>
<item name="alertDialogIcon">@drawable/ic_dialog_alert_holo_dark</item>
<item name="datePickerStyle">@style/Widget.Holo.DatePicker</item>
<item name="calendarViewStyle">@style/Widget.Holo.CalendarView</item>
<item name="actionMenuTextAppearance">@style/TextAppearance.Holo.Widget.ActionBar.Menu</item>
<item name="actionMenuTextColor">@color/tw_action_bar_menu_text_holo_dark</item>
<item name="switchPreferenceStyle">@style/Preference.Holo.SwitchPreference</item>
<item name="textSuggestionsWindowStyle">@style/Widget.Holo.TextSuggestionsPopupWindow</item>
<item name="actionModeSelectAllDrawable">@drawable/ic_menu_selectall_holo_dark</item>
<item name="actionModeStyle">@style/Widget.Holo.ActionMode</item>
<item name="actionBarDivider">@drawable/divider_vertical_holo_dark</item>
<item name="actionBarItemBackground">@drawable/tw_action_item_background_holo_dark</item>
<item name="actionModeSplitBackground">@drawable/top_header_octo</item>
<item name="listPreferredItemPaddingLeft">17.0dip</item>
<item name="listPreferredItemPaddingRight">17.0dip</item>
<item name="actionBarNonEmbeded">false</item>
<item name="panelMenuListWidth">@dimen/tw_compactmenu_width</item>
<item name="panelMenuListTheme">@style/Theme.DeviceDefault.CompactMenu</item>
<item name="gestureOverlayViewStyle">@style/Widget.DeviceDefault.GestureOverlayView</item>
<item name="quickContactBadgeOverlay">@drawable/tw_quickcontact_badge_overlay_dark</item>
<item name="stackViewStyle">@style/Widget.DeviceDefault.StackView</item>
<item name="checkBoxCheckMark">@drawable/tw_btn_checkmark_holo_dark</item>
<item name="checkBoxCheckContainer">@drawable/tw_btn_checkcontainer_holo_dark</item>
<item name="numberPickerStyle">@style/Widget.DeviceDefault.NumberPicker</item>
<item name="timePickerStyle">@style/Widget.DeviceDefault.TimePicker</item>
<item name="actionBarTitleShadowColor">@color/tw_action_bar_title_shadow_color_holo_dark</item>
<item name="actionBarTitleShadowDx">@dimen/tw_action_bar_title_shadow_dx_holo_dark</item>
<item name="actionMultiWindowButtonDrawable">@drawable/tw_ic_menu_cascade_holo_dark</item>
<item name="actionMultiWindowButtonBackground">@drawable/tw_btn_ab_mw_holo_dark</item>
<item name="actionBarTitleShadowDy">@dimen/tw_action_bar_title_shadow_dy_holo_dark</item>
<item name="actionModeShareDrawable">@drawable/tw_ic_menu_share_holo_dark</item>
<item name="actionModeFindDrawable">@drawable/tw_ic_menu_find_holo_dark</item>
<item name="actionModeWebSearchDrawable">@drawable/tw_ic_menu_search_holo_dark</item>
<item name="actionModePopupWindowStyle">@style/Widget.DeviceDefault.PopupWindow.ActionMode</item>
<item name="preferenceFragmentStyle">@style/PreferenceFragment</item>
<item name="preferenceActivityLayout">@layout/preference_list_content</item>
<item name="preferenceHeaderItemLayout">@layout/preference_header_item</item>
<item name="fragmentBreadCrumbItemLayout">@layout/fragment_bread_crumb_item</item>
<item name="dialogTitleIconsDecorLayout">@layout/dialog_title_icons_holo</item>
<item name="actionModeClipboardDrawable">@drawable/tw_ic_menu_clipboard_holo_dark</item>
<item name="textSelectHandleLeftTop">@drawable/text_select_handle_left</item>
<item name="textSelectHandleRightTop">@drawable/text_select_handle_right</item>
<item name="searchViewCloseIcon">@drawable/tw_ic_clear</item>
<item name="searchViewGoIcon">@drawable/ic_go</item>
<item name="searchViewSearchIcon">@drawable/ic_search</item>
<item name="searchViewVoiceIcon">@drawable/ic_voice_search</item>
<item name="searchViewEditQuery">@drawable/ic_commit_search_api_holo_dark</item>
<item name="searchViewEditQueryBackground">@drawable/tw_item_background_holo_dark</item>
<item name="searchViewTextField">@drawable/tw_textfield_searchview_holo_dark</item>
<item name="searchViewTextFieldRight">@drawable/tw_textfield_searchview_right_holo_dark</item>
<item name="searchViewTextColor">@color/tw_textfield_searchview_text_holo_dark</item>
<item name="twTextColorPrimary">@color/primary_text_holo_dark</item>
<item name="twTextColorSecondary">@color/secondary_text_holo_dark</item>
<item name="twTextSizePrimary">22.0sp</item>
<item name="twTextSizeSecondary">@dimen/tw_secondary_text_size</item>
<item name="dialogTitleDecorLayout">@layout/dialog_title_holo</item>
<item name="toastFrameBackground">@drawable/tw_toast_frame_holo_dark</item>
<item name="toastTextColor">@color/tw_toast_text_holo_dark</item>
<item name="toastTextShadowColor">@color/tw_toast_text_shadow_holo_dark</item>
<item name="searchDropdownBackground">@drawable/tw_spinner_dropdown_background</item>
<item name="searchViewSearchFieldIcon">@drawable/tw_ic_searchfield</item>
<item name="searchDialogTheme">@style/Theme.Holo.SearchBar</item>
<item name="preferenceFrameLayoutStyle">@style/Widget.DeviceDefault.PreferenceFrameLayout</item>
<item name="switchStyle">@style/Widget.Holo.CompoundButton.Switch</item>
<item name="ProgressDialogStyle">@style/AlertDialog.DeviceDefault.ProgressDialog</item>
<item name="parentIsDeviceDefault">true</item>
<item name="keyboardViewStyle">@style/Widget.DeviceDefault.KeyboardView</item>
</style>
6. now, save your styles.xml and compile your framework-res.apk
NB:
1. Still do with your own risk
2. Backup your original framework-res.apk
3. If you get a error, post the log here. without log, i can't help you
Press Thanks if this guide usefull
Click to expand...
Click to collapse
woooowwww...!!!
@rekjezt Why you quoted the whole OP just to say woowww :S
Just a question does anyone tried it on KK 4.4.2 ?
Sent from my SGH-I337 using Tapatalk 4
Netuser said:
@rekjezt Why you quoted the whole OP just to say woowww :S
Just a question does anyone tried it on KK 4.4.2 ?
Sent from my SGH-I337 using Tapatalk 4
Click to expand...
Click to collapse
it not work on kitkat bro. it based on jb tw 4.1.2
Sent from my Google Nexus 5 using Tapatalk
i'm not find styles.xml mastah. how?
arifxrahman said:
i'm not find styles.xml mastah. how?
Click to expand...
Click to collapse
decompile your framework-res and then go to res/values folder and you'll see styles.xml
Sent from my Google Nexus 5 using Tapatalk
ocoot said:
decompile your framework-res and then go to res/values folder and you'll see styles.xml
Sent from my Google Nexus 5 using Tapatalk
Click to expand...
Click to collapse
aah, i see. thank's mastah
Thanks for the guide.
I have a GS2. Your XML contains 179 rows (item name I mean), while the Original contains 178.
Then, recompiling the framework, APKTool give me an error.
Which is the string "more"? Thank you.
glowerita said:
Thanks for the guide.
I have a GS2. Your XML contains 179 rows (item name I mean), while the Original contains 178.
Then, recompiling the framework, APKTool give me an error.
Which is the string "more"? Thank you.
Click to expand...
Click to collapse
Can you post the error on recompile?

Guide/Tut - 1 % battery change & charge with customised icons - Any ROM Any DEVICE

Guide/Tut - 1 % battery change & charge with customised icons - Any ROM Any DEVICE
This guide helps you is achieving 1 % battery change in icons; normal and charging . All you need to do is extract the 2 xml files provided in the zip file below in your LGSystemUI.apk after you decompile it and then add 101 battery icons of your choice and 101 charging icons. Recompile and you will have 1% battery change in your statusbar. This works fine on JB and on KK.
For incorporating the mod you need to de-odex your Systemui. There are lots of de-odexers available on xda...Try searching and your will find. Once you deodex your systemui you can either once again odex it before using on your phone or you can also use the de-odexed version,but for which you need to delete the respective odex file before applying the mod by flashing or moving it manually.
JB- You will find Systemui file in "/system/app" folder.
KK-You will find Systemui file in "/system/priv-app" folder.
Since this thread is in G2 section, I mention the mod files for LGSystemUI.apk. For other devices you have to locate your SystemUI as per your phone and modify the code accordingly. The code herein below works for the G2, G-FLEX & G3.
How to do it? Here we go:--
--Deodex your LGSystemUI.apk (if you run a odexed ROM). For de-odexed ROM this isn't required.
--Decompile LGSystemUI.apk
--Go to the "/res/drawable" directory and edit "stat_sys_battery.xml" & stat_sys_battery_charge.xml with notepad++
--Just copy the "stat_sys_battery.xml" & stat_sys_battery_charge.xml attached herewith in the zip file and replace the file existing in that folder
-- FYI. the entire code reads as follows:
1. stat_sys_battery.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_00" android:maxLevel="0" />
<item android:maxLevel="2">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="400" android:drawable="@drawable/stat_sys_battery_00" />
<item android:duration="400" android:drawable="@drawable/stat_sys_battery_blank" />
</animation-list>
</item>
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
<item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="2" />
<item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="3" />
<item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="5" />
<item android:drawable="@drawable/stat_sys_battery_6" android:maxLevel="6" />
<item android:drawable="@drawable/stat_sys_battery_7" android:maxLevel="7" />
<item android:drawable="@drawable/stat_sys_battery_8" android:maxLevel="8" />
<item android:drawable="@drawable/stat_sys_battery_9" android:maxLevel="9" />
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
<item android:drawable="@drawable/stat_sys_battery_11" android:maxLevel="11" />
<item android:drawable="@drawable/stat_sys_battery_12" android:maxLevel="12" />
<item android:drawable="@drawable/stat_sys_battery_13" android:maxLevel="13" />
<item android:drawable="@drawable/stat_sys_battery_14" android:maxLevel="14" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_16" android:maxLevel="16" />
<item android:drawable="@drawable/stat_sys_battery_17" android:maxLevel="17" />
<item android:drawable="@drawable/stat_sys_battery_18" android:maxLevel="18" />
<item android:drawable="@drawable/stat_sys_battery_19" android:maxLevel="19" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="20" />
<item android:drawable="@drawable/stat_sys_battery_21" android:maxLevel="21" />
<item android:drawable="@drawable/stat_sys_battery_22" android:maxLevel="22" />
<item android:drawable="@drawable/stat_sys_battery_23" android:maxLevel="23" />
<item android:drawable="@drawable/stat_sys_battery_24" android:maxLevel="24" />
<item android:drawable="@drawable/stat_sys_battery_25" android:maxLevel="25" />
<item android:drawable="@drawable/stat_sys_battery_26" android:maxLevel="26" />
<item android:drawable="@drawable/stat_sys_battery_27" android:maxLevel="27" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="28" />
<item android:drawable="@drawable/stat_sys_battery_29" android:maxLevel="29" />
<item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="30" />
<item android:drawable="@drawable/stat_sys_battery_31" android:maxLevel="31" />
<item android:drawable="@drawable/stat_sys_battery_32" android:maxLevel="32" />
<item android:drawable="@drawable/stat_sys_battery_33" android:maxLevel="33" />
<item android:drawable="@drawable/stat_sys_battery_34" android:maxLevel="34" />
<item android:drawable="@drawable/stat_sys_battery_35" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_36" android:maxLevel="36" />
<item android:drawable="@drawable/stat_sys_battery_37" android:maxLevel="37" />
<item android:drawable="@drawable/stat_sys_battery_38" android:maxLevel="38" />
<item android:drawable="@drawable/stat_sys_battery_39" android:maxLevel="39" />
<item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="40" />
<item android:drawable="@drawable/stat_sys_battery_41" android:maxLevel="41" />
<item android:drawable="@drawable/stat_sys_battery_42" android:maxLevel="42" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="43" />
<item android:drawable="@drawable/stat_sys_battery_44" android:maxLevel="44" />
<item android:drawable="@drawable/stat_sys_battery_45" android:maxLevel="45" />
<item android:drawable="@drawable/stat_sys_battery_46" android:maxLevel="46" />
<item android:drawable="@drawable/stat_sys_battery_47" android:maxLevel="47" />
<item android:drawable="@drawable/stat_sys_battery_48" android:maxLevel="48" />
<item android:drawable="@drawable/stat_sys_battery_49" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_50" android:maxLevel="50" />
<item android:drawable="@drawable/stat_sys_battery_51" android:maxLevel="51" />
<item android:drawable="@drawable/stat_sys_battery_52" android:maxLevel="52" />
<item android:drawable="@drawable/stat_sys_battery_53" android:maxLevel="53" />
<item android:drawable="@drawable/stat_sys_battery_54" android:maxLevel="54" />
<item android:drawable="@drawable/stat_sys_battery_55" android:maxLevel="55" />
<item android:drawable="@drawable/stat_sys_battery_56" android:maxLevel="56" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="57" />
<item android:drawable="@drawable/stat_sys_battery_58" android:maxLevel="58" />
<item android:drawable="@drawable/stat_sys_battery_59" android:maxLevel="59" />
<item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_61" android:maxLevel="61" />
<item android:drawable="@drawable/stat_sys_battery_62" android:maxLevel="62" />
<item android:drawable="@drawable/stat_sys_battery_63" android:maxLevel="63" />
<item android:drawable="@drawable/stat_sys_battery_64" android:maxLevel="64" />
<item android:drawable="@drawable/stat_sys_battery_65" android:maxLevel="65" />
<item android:drawable="@drawable/stat_sys_battery_66" android:maxLevel="66" />
<item android:drawable="@drawable/stat_sys_battery_67" android:maxLevel="67" />
<item android:drawable="@drawable/stat_sys_battery_68" android:maxLevel="68" />
<item android:drawable="@drawable/stat_sys_battery_69" android:maxLevel="69" />
<item android:drawable="@drawable/stat_sys_battery_70" android:maxLevel="70" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="71" />
<item android:drawable="@drawable/stat_sys_battery_72" android:maxLevel="72" />
<item android:drawable="@drawable/stat_sys_battery_73" android:maxLevel="73" />
<item android:drawable="@drawable/stat_sys_battery_74" android:maxLevel="74" />
<item android:drawable="@drawable/stat_sys_battery_75" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_76" android:maxLevel="76" />
<item android:drawable="@drawable/stat_sys_battery_77" android:maxLevel="77" />
<item android:drawable="@drawable/stat_sys_battery_78" android:maxLevel="78" />
<item android:drawable="@drawable/stat_sys_battery_79" android:maxLevel="79" />
<item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="80" />
<item android:drawable="@drawable/stat_sys_battery_81" android:maxLevel="81" />
<item android:drawable="@drawable/stat_sys_battery_82" android:maxLevel="82" />
<item android:drawable="@drawable/stat_sys_battery_83" android:maxLevel="83" />
<item android:drawable="@drawable/stat_sys_battery_84" android:maxLevel="84" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="85" />
<item android:drawable="@drawable/stat_sys_battery_86" android:maxLevel="86" />
<item android:drawable="@drawable/stat_sys_battery_87" android:maxLevel="87" />
<item android:drawable="@drawable/stat_sys_battery_88" android:maxLevel="88" />
<item android:drawable="@drawable/stat_sys_battery_89" android:maxLevel="89" />
<item android:drawable="@drawable/stat_sys_battery_90" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_91" android:maxLevel="91" />
<item android:drawable="@drawable/stat_sys_battery_92" android:maxLevel="92" />
<item android:drawable="@drawable/stat_sys_battery_93" android:maxLevel="93" />
<item android:drawable="@drawable/stat_sys_battery_94" android:maxLevel="94" />
<item android:drawable="@drawable/stat_sys_battery_95" android:maxLevel="95" />
<item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="96" />
<item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="97" />
<item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="98" />
<item android:drawable="@drawable/stat_sys_battery_99" android:maxLevel="99" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>
2. stat_sys_battery_charge.xml
Havent reproduced the code here as it is very very long. The file is in the zip attached herewith
--Make/obtain 101 battery icons with %nos & charging icons or your choice of icons and copy them to "res/drawable-xxhdpi" folder replacing any file that you may be asked to. I have made the stock G2 icons with battery % inscribed on them which is attached herewith for those who prefer stock icons and don't want to look any further. In my set of icons fully charged reflects "F" on battery. Please make sure you retain the name of the battery icon in the series of
>>>Battery icons: "stat_sys_battery_0; stat_sys_battery_1......stat_sys_battery_100".
>>>Battery Charging icons: "stat_sys_battery_charging_ani_0; stat_sys_battery_charging_ani_1......stat_sys_battery_charging_ani_100".
--Recompile the LGSystemUI.apk
--V-Imp: Drag the "meta_inf" folder from original LGSystemUI.apk to the recompiled Systemui file using 7zip.
--Rename your recompiled file to "LGSystemUI.apk" and move to the appropriate folder in your phone with 644 / -rw-r--r-- permissions i.e
JB- in "/system/app" folder.
KK- in "/system/priv-app" folder.
--Reboot and Enjoy the 1% battery change in normal and in charging icons.
TIP: Make sure the icons you select are xxhdpi for G2, xxxhdpi for G3 and xhdpi for Flex and files are put in respective folders
Press thanks button if this was useful to you....promotes development.. Its nice to give a little credit for this guide/tutorial.... feels nice that your efforts went appreciated
Due credit to @Erhany from whom I learnt a lot of things while I had my Xperia Sola
good work very useful information.
screen please? thanks
There you go
Nice guide rastigo :good:
But had previously shared
http://forum.xda-developers.com/showthread.php?p=50536498#post50536498
pendroz said:
Nice guide rastigo :good:
But had previously shared
http://forum.xda-developers.com/showthread.php?p=50536498#post50536498
Click to expand...
Click to collapse
oops...hadnt seen yours @pendroz.....Yesterday @XxZombiePikachu asked for the files as he wants to include in his mods...thats why I made this. I thought this might help others who wanna take up dev of mods.
rastigo said:
oops...hadnt seen yours @pendroz.....Yesterday @XxZombiePikachu asked for the files as he wants to include in his mods...thats why I made this. I thought this might help others who wanna take up dev of mods.
Click to expand...
Click to collapse
No problem mate
rastigo said:
--Deodex your LGSystemUI.apk (if you run a odexed ROM). For de-odexed ROM this isn't required.
Click to expand...
Click to collapse
This isn't required period, regardless of your ROM.
Also, only apktool built with code after 9/May is capable of handling LGSystemUI.apk, it's newer than 2.0.0b9 and not widely available unless you compile yourself.
My custom icons
As required by some I am uploading another set of battery icons made by me for G2. It is a wider batter icon showing battery percentage inside it and animations for charging as well.
You need to incorporate the status bar battery in Post 1 and these icons in the respective folder and voila....
Dont forget the thanks button if you liked the icons...:laugh:
For Lg G Pro 2 too..
Hi, please make for Lg G Pro 2 too..
Or help me to make it by my self ...
Tnx
A nice guide...but not quite accurate.
If you're on 4.3 or below, you don't need to have a deodexed apk to be able to change the battery icon.
If you're on 4.4 or above, you do need to have a deodexed apk as you need to do a lot of smali editing before you can even think about changing the battery icon.
And I really don't suggest moving your modded apk to your phone's memory and rebooting. LGSystemUI.apk is a system app and you'll be replacing it while it's running.
This is a bit like changing your car's gearbox while you're driving it. You might get away with it but you're asking for trouble.
Personally I always recommend using a flashable zip to change files in the system partition.
Otherwise, a very neat tutorial. :highfive:
rastigo said:
oops...hadnt seen yours @pendroz.....Yesterday @XxZombiePikachu asked for the files as he wants to include in his mods...thats why I made this. I thought this might help others who wanna take up dev of mods.
Click to expand...
Click to collapse
yep I had been looking all over and for some reason the term I did not try for my search was 1% battery mod(I tried all sorts of stuff to no luck), thanks @rastigo for the great easy to follow guide will soon be working it into some mods; yo @pendroz it seems like there is a step missing in your guide?
I do have a quick question what if I also want to apply it for the charging animation would it be the same as here(add 100 separate battery charging images and call out to them in the xml?) or is there something else involved for the charging animation?
I am uploading that xml too
rastigo said:
I am uploading that xml too
Click to expand...
Click to collapse
Op updated with xharging xml also. Now you can also have 1% battery mod on charging
XxZombiePikachu said:
yep I had been looking all over and for some reason the term I did not try for my search was 1% battery mod(I tried all sorts of stuff to no luck), thanks @rastigo for the great easy to follow guide will soon be working it into some mods; yo @pendroz it seems like there is a step missing in your guide?
I do have a quick question what if I also want to apply it for the charging animation would it be the same as here(add 100 separate battery charging images and call out to them in the xml?) or is there something else involved for the charging animation?
Click to expand...
Click to collapse
The great thing about the charging animation is that it actually is an animation.
If you're feeling creative, you can change the timing of the animation, change which icons are shown..you can even create a nice-looking animation for when the battery's fully-charged.
Everytime I create a new battery icon, I always put some sort of looping animation for when it's charged to 100%. Just because it looks cool.
And it's very easy to do, if you understand what the xml code is actually saying...
Code:
<item android:maxLevel="100">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_0" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_1" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_2" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_3" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_4" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_5" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_6" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_7" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_8" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_9" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_10" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_11" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_12" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_13" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_14" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_15" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_16" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_17" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_18" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_19" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_20" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_21" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_22" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_23" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_24" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_25" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_26" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_27" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_28" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_29" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_30" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_31" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_32" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_33" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_34" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_35" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_36" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_37" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_38" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_39" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_40" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_41" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_42" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_43" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_44" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_45" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_46" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_47" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_48" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_49" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_50" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_51" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_52" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_53" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_54" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_55" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_56" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_57" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_58" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_59" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_60" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_61" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_62" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_63" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_64" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_65" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_66" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_67" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_68" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_69" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_70" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_71" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_72" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_73" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_74" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_75" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_76" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_77" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_78" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_79" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_80" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_81" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_82" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_83" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_84" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_85" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_86" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_87" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_88" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_89" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_90" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_91" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_92" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_93" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_94" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_95" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_96" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_97" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_98" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_99" />
<item android:duration="100" android:drawable="@drawable/stat_sys_battery_100" />
</animation-list>
</item>
rastigo said:
--Decompile LGSystemUI.apk
Click to expand...
Click to collapse
which apktool are you using for Kitkat? I got systemUI has stoped after recompiling..
Did you copy metainf folder and androidmanifestxml from orig file to the recompiled app. I use 1.5.2.
@rastigothanks for sharing!
Can you point me how to deodex and odex back the LGSystemUI.apk? I´m on D80220f stock rom.
Thanks in advance
vladmir said:
@rastigothanks for sharing!
Can you point me how to deodex and odex back the LGSystemUI.apk? I´m on D80220f stock rom.
Thanks in advance
Click to expand...
Click to collapse
I use the auto-odexer utility for reodexing. Works flawlessly. If u search on xda, you will find it. Here is the link http://forum.xda-developers.com/showthread.php?p=31360029
Can you please explain how to use the app to deodex, am a noob, sorry

Categories

Resources