Stock battery indicator in the status bar was bugging me, since it was constantly showing more charge than all other battery apps (widgets, Spare Parts...).
After looking in /system/framework/framework-res.apk/res/drawable/stat_sys_battery.xml, I could see that Samsung changed battery level thresholds compared to other Android releases (sources found on net):
I have made a mod which changes the levels to the ones in the right column (source). Tested only on this 1.6 firmware: Baseband version I7500XXJB2, Build number Donut.XXJB6. Do not change /system/framework/framework-res.apk directly, the phone might not boot if it is not signed again after changing!Make all necessary backups!
You will need Metamorph to apply it, but since we have only 1.21 MB available on /system partition with this firmware, we will have to move Maps.apk to /data/app.
The procedure (if you are not sure what each step does, do not proceed):
1. root the phone
2. copy busybox to /data/local/bin and give it execute permissions
3. install Metamorph from the Market
4. mount /system as RW (via "Root explorer", for example)
5. Run Metamorph. It will check for necessary files, and copy zip to /system/bin/zip. You can move it to /data/local/bin/zip to save some space on /system, and create symlink with this: ln -s /data/local/bin/zip /system/bin/zip 6. copy attached Galaxy-BatteryFix-v1.0.zip to /sdcard/AndroidThemes
7. move /system/app/Maps.apk to /data/app. It seems that Maps work fine from that location, after reboot.
8. apply theme from Metamorph
9. reboot
If you have problems with Metamorph and copying zip app, run this command: ln -s /data/local/bin/busybox /system/bin/cp (after renaming /system/bin/cp to cp.old).
To restore the original, use Galaxy-BatteryFixRestore-v1.0.zip.
Last edited by bluemax; March 3rd, 2010 at 06:34 AM.
The Following 7 Users Say Thank You to bluemax For This Useful Post:
Stock battery indicator in the status bar was bugging me, since it was constantly showing more charge than all other battery apps (widgets, Spare Parts...).
After looking in /system/framework/framework-res.apk/res/drawable/stat_sys_battery.xml, I could see that Samsung changed battery level thresholds compared to other Android releases (sources found on net):
I have made a mod which changes the levels to the ones in the right column (source). Tested only on this 1.6 firmware: Baseband version I7500XXJB2, Build number Donut.XXJB6. Do not change /system/framework/framework-res.apk directly, the phone might not boot if it is not signed again after changing!Make all necessary backups!
You will need Metamorph to apply it, but since we have only 1.21 MB available on /system partition with this firmware, we will have to move Maps.apk to /data/app.
The procedure (if you are not sure what each step does, do not proceed):
1. root the phone
2. copy busybox to /data/local/bin and give it execute permissions
3. install Metamorph from the Market
4. mount /system as RW (via "Root explorer", for example)
5. Run Metamorph. It will check for necessary files, and copy zip to /system/bin/zip. You can move it to /data/local/bin/zip to save some space on /system, and create symlink with this: ln -s /data/local/bin/zip /system/bin/zip 6. copy attached Galaxy-BatteryFix-v1.0.zip to /sdcard/AndroidThemes
7. move /system/app/Maps.apk to /data/app. It seems that Maps work fine from that location, after reboot.
8. apply theme from Metamorph
9. reboot
If you have problems with Metamorph and copying zip app, run this command: ln -s /data/local/bin/busybox /system/bin/cp (after renaming /system/bin/cp to cp.old).
To restore the original, use Galaxy-BatteryFixRestore-v1.0.zip.
Sounds amazing! That would be really helpful... but isn't there an easier way to do this? I currently use fastboot and adb, I can flash a recovery and a custom Rom, but I don't know what busybox or Metamorph are...
Is there any chance you could have some time for writing a simplier guide?
Sounds amazing! That would be really helpful... but isn't there an easier way to do this? I currently use fastboot and adb, I can flash a recovery and a custom Rom, but I don't know what busybox or Metamorph are...
Is there any chance you could have some time for writing a simplier guide?
Thanks, anyway!
Busybox comes built in with Galaxo 1.6.1. So figure out how to install that if you don't have it installed yet and then you can download Metamorph from the Market. This was the simplest way I could figure. I couldn't find Busybox anywhere for download.
To install busybox on a firmware on the phone, there are a few ways. Easiest is to either use the rooted recovery v3 image or a rooted kernel.
If using the recovery, you'll need to boot up in recovery mode and connect your phone to your computer. For rooted kernel, just connect the phone when it's running normally and make sure adb is enabled in settings.
1. Run "adb remount"
2. Next push busybox with "adb push busybox /system/bin/busybox"
3. Create the symlinks with "adb shell /system/bin/busybox --install -s /system/bin" (you can skip this part if you do not foresee using the rest of the commands that busybox provides)
4. Modify cp's symlink to allow file managers to copy files "adb shell rm /system/bin/cp"
"adb shell ln -s /system/bin/busybox /system/bin/cp"
The problem with Samsung's battery icon tresholds (in various firmwares I tested, from H to J) is that it is showing more charge than actually left, especially in the lower range.
The change in ADC reported levels mentioned above was a step in the right direction, but I feel that Samsung's tresholds were still not tweaked correctly.
On JB2/6, my battery still drains much faster in 40-0 % range than in 100-40 one, so ADC levels still need additional tweaking...
Last edited by bluemax; March 4th, 2010 at 05:10 AM.
Yeah yeah yeah, and years ago we had ChaDis for the Psion:
Only problem is -- for that kind of accuracy you need to monitor the amperage, and that's the one battery reading you don't get from Android!
What Michael said, Samsun is lowering actual readings because they are trying to warn you that the battery is going to die much before than what original readings are. Original readings are suggesting that the battery at 30% will provide more 30% usage time, but it translates to maybe 5%.
Andronix, maybe I'm misunderstanding you, but I read it the other way around: that Samsung is displaying a full battery for levels as low as 71%, and a half-full battery when it's actually as low as 30%...?
Yeah, Samsung are actually playing psychological games with the
battery indicator.
If a user sees orange, he might think "What?? Already? But I charged it yesterday!". If
a user sees green right up to the moment the phone dies, the user is happier about the
battery life.
hmm, if this mod makes the notification go yellow before samsung settings, i'm fine with it the graph is confusing a bit.
does this thing change only how icon changes states, or changing values of battery percentage readings? i'm used to ignoring the icon and watching only what is the percentage via "systray monitor" app.
This is awesome! I vote to have this integrated in the next Galaxo. Hopefully drakaz will find it interesting.
I 100% agree with you. it is ****ing annoying as **** seeing your battery meeter at 80% green when in fact it is only about 30-20%. I thought it was my phone but it apears it is samsung flaw! now how could you **** this up so badly???
I am still using 1.5 II5, I need this patch badly because it drives me nuts. will it work with my version? also would you be able to provide a more noob freidnly tutorial?
I already rooted my phone to galaxo many times so I am not a complete noob, I just went back to 1.5 because I feel it is much faster and bug free.
Device(s): Samsung Galaxy i7500 running Galaxo 1.6.3.4 on baseband JC6
Thanks: 3
Thanked 9 Times in 8 Posts
Can this method (or something similar) be used to have the Battery Indicator display more intervals with the Super Circle battery indicator??? (perhaps in increments of 5% or 10%, instead of just 0%, 20%, 40%, 60%, 80%, 100%)
The super circle battery with galaxo 1.6.3.4 is displaying 0%, 10%, 20%, 40%, 60%, 80%, 100%.
I don't quite understand how it can display in increments of 10% for the lowest three, but then 20% for the rest. It also doesn't display the value to the nearest "20%" anyway, so in my opinion it's even worse than before.
Is there anyway to revert the super circle battery back to the old one?
Displaying the WRONG percentage is just useless, i prefer the green meter (the original one), especially since im using 'battery indicator' app.
OK, thanks, I took it from the 1.6.3.2 zip file (from /system/framework) and i copied it (using root explorer) to system/framework on the phone , BUT , now my phone doesn't boot (stuck at the animation).
I guess i did something wrong, I just don't know what it is.
Im gonna go back to my nandroid backup for now, inFECT, do you have any other suggestions?
Hi,
I have modded the framework-res.apk from the Galaxo, in order to have a more detailed battery indicator.
Stock battery icon pack has 7 steps. My icon pack has 18 steps.
But does it display all 18 states? Drakaz added the Super Circle battery meter in 1.6.3.4 but it also only displays 7 states (0, 10, 20, 40, 60, 80,100).
He stated it was a limitation with Samsung's donut implementation.
Yes, it displays all the 18 states.
At least it seems so to my eyes
The trick is to modify the file "stat_sys_battery.xml", adding the new levels.
you might want to tell that to Drakaz, perhaps he missed that tiny little thing with all the other hard work.
__________________ Samsung Galaxy GT-i7500 Firmware Central P.S. I am annoyed by people asking without searching first and people asking if they should do a backup Nothing personal.
Last edited by informale; August 25th, 2010 at 12:03 PM.
I just missed the time to do it..i thought it will not be a problem to have 7 level, but seems it is. Will post a new frameworks-res with circle and whole level..
The Following 5 Users Say Thank You to drakaz For This Useful Post:
Thank you for signing up to receive updates for the 4
An email has been dispatched to confirm your signup. Please click the link in the email.
Buy the Samsung i7500
Sign up for instant notification when the Samsung i7500 goes on sale!
When Samsung joined the Open Handset Alliance, excitement and anticipation engulfed the mobile world. With industry leading mobile phones such as the Samsung Instinct and Samsung Omnia already on the market, expectations soared. The speculation can f... Read More