Jump to content

[mod] Display battery percentage in battery icon


Recommended Posts

Guest simoneser
Posted

Can you make a version with percentage from 0 to 99?

100% is messed up and it's shown as

10

0

Or can you let me know what do you use to do those modifications? I tried to baksmali the services.jar's classes.dex but it's not the same and I can't understand anything

Guest azuwis
Posted (edited)
The one you mentioned that only changes the framework-res.apk is just a workaround. They just included 100 PNGs with number.

It sounds like a workaround, but this way is easier to implement, especially for themers.

Any news on the mod for white stock theme?

news on the white version? please :-)

Sorry for the big delay, I was so busy last week. I'll try to work on it today.

I have the same "10 <CR> 0" problem on vanilla 1.100.39

I'll try to do some investigation and test for the 100% problem.

Can you make a version with percentage from 0 to 99?

100% is messed up and it's shown as

10

0

Or can you let me know what do you use to do those modifications? I tried to baksmali the services.jar's classes.dex but it's not the same and I can't understand anything

The patch I'm using is in the OP, for both Eclair and Froyo. The services.jar for 1.100.39 is made for your Galaxyquid theme, It should not show many differences in the baksmali-ed code. The changed files are:

com/android/server/status/IconData.smali

com/android/server/status/StatusBarIcon.smali

com/android/server/status/StatusBarPolicy.smali

Edited by azuwis
Guest azuwis
Posted

Update with mod for white-themed ROMs, and workaround 100% problem. See OP.

Guest elban
Posted
Update with mod for white-themed ROMs, and workaround 100% problem. See OP.

tried it right now!

wonderful, perfect! thanks a lot! :-)

Guest giobooo
Posted (edited)

Hi...

i've tried the white mod on the 1.100.39 with xian v1 and right after the boot the process com.google.process.gapps keeps force closing! The popup appears even after i close it. Anyway the percentage indicator is there.

Is there any way to solve this problem?

Thanks

PS. Does this mod drain battery faster?

Edited by giobooo
Guest BlackMagician
Posted

My phone running LCR1.8 is just not booting after installing it. Is there a way I can put back the services.jar which I pulled out from it before installing?

Guest simoneser
Posted

WTF?

My phone with LCR1.8 + my black&blue theme runs perfectly with this mod.

Thank you Azuwis :)

Guest azuwis
Posted
My phone running LCR1.8 is just not booting after installing it. Is there a way I can put back the services.jar which I pulled out from it before installing?

First boot after replacing services.jar will take longer time.

Even the whole booting is not finished, as long as kernel booted, you can use adb to put services.jar back.

Guest BlackMagician
Posted

Phew! Tried connecting it with ADB while it was stuck and pushed the the old file. The boot sequence then continued as if nothing ever happened! Thanks azuwis!

Guest azuwis
Posted
Hi...

i've tried the white mod on the 1.100.39 with xian v1 and right after the boot the process com.google.process.gapps keeps force closing! The popup appears even after i close it. Anyway the percentage indicator is there.

Is there any way to solve this problem?

Thanks

PS. Does this mod drain battery faster?

I don't have this problem. Try clearing dalvik-cache and see how is it going?

I don't think this will make noticeable changes to battery life.

Guest azuwis
Posted
Phew! Tried connecting it with ADB while it was stuck and pushed the the old file. The boot sequence then continued as if nothing ever happened! Thanks azuwis!

Did you use the wrong command to push the services.jar? The command in README.txt of the white version is wrong, should be:

adb push services-1.100.39-mod-white.jar /system/framework/services.jar

Guest BlackMagician
Posted

LOL!! Worse than that, actually.. I installed the version intended for FRF91. :)

Did you use the wrong command to push the services.jar? The command in README.txt of the white version is wrong, should be:

adb push services-1.100.39-mod-white.jar /system/framework/services.jar

Guest Yuking
Posted
I don't have this problem. Try clearing dalvik-cache and see how is it going?

I don't think this will make noticeable changes to battery life.

I meet the same problem with LCR 1.8 (update3, the old one was OK)

Guest giobooo
Posted
I meet the same problem with LCR 1.8 (update3, the old one was OK)

I don't know if it was it but i changed the permissions to services modded file so that it would match the others in the framework folder.

That worked for me!

Guest Yuking
Posted
I don't know if it was it but i changed the permissions to services modded file so that it would match the others in the framework folder.

That worked for me!

I have flashed the FRF91, the mod works fine. Is there a mod for black theme?

Guest azuwis
Posted
I have flashed the FRF91, the mod works fine. Is there a mod for black theme?

Give me the services.jar of the theme(or point me the link), I'll try to mod it.

Posted

can make a version to flash with malez? I don't know how it works the android sdk

Guest HustlinDaily
Posted

Follow those instructions to set up ADB. Put the file into the tools folder of the AndroidSDK.

The ADB commands you need are listed on the first post

  • 3 weeks later...
Guest HustlinDaily
Posted

Hey can somebody please do this for the FroYo leak?

Guest shineallstar
Posted
Hey can somebody please do this for the FroYo leak?

I test -> not run.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.