Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You don't *need* any package to do it.

To enable the battery percentage toggle (iPhone 3G, OS 3.x.x)

SSH into your phone
Go to /System/Library/CoreServices/Springboard.app/
Open the M68AP.plist file, and add the following new child under capabilities:

gas-gauge-battery - Boolean - Yes

<key>gas-gauge-battery</key>
<true/>

Restart your iPhone
Go to Settings > General > Usage > Battery Percentage
 
You don't *need* any package to do it.

To enable the battery percentage toggle (iPhone 3G, OS 3.x.x)

SSH into your phone
Go to /System/Library/CoreServices/Springboard.app/
Open the M68AP.plist file, and add the following new child under capabilities:

gas-gauge-battery - Boolean - Yes

<key>gas-gauge-battery</key>
<true/>

Restart your iPhone
Go to Settings > General > Usage > Battery Percentage

how do i get to /System/Library/CoreServices/Springboard.app/?

edit: i see, i need openssh. thanks!
 
You don't *need* any package to do it.

To enable the battery percentage toggle (iPhone 3G, OS 3.x.x)

SSH into your phone
Go to /System/Library/CoreServices/Springboard.app/
Open the M68AP.plist file, and add the following new child under capabilities:

gas-gauge-battery - Boolean - Yes

<key>gas-gauge-battery</key>
<true/>

Restart your iPhone
Go to Settings > General > Usage > Battery Percentage

Thanks, it worked great and was easy.
 
SSH was the hard way and it is still on cydia you just didn't look hard enough maybe. in your settings in cydia select hacker(no filters) and maybe it will come up.
 
You don't *need* any package to do it.

To enable the battery percentage toggle (iPhone 3G, OS 3.x.x)

SSH into your phone
Go to /System/Library/CoreServices/Springboard.app/
Open the M68AP.plist file, and add the following new child under capabilities:

gas-gauge-battery - Boolean - Yes

<key>gas-gauge-battery</key>
<true/>

Restart your iPhone
Go to Settings > General > Usage > Battery Percentage

This Cydia app does this for you

1)Open Cydia and add this source ----> http://apt.iphone-storage.de
2) After repo is added, install asBattery
3) Reboot phone ..... a respring will not work !
4) Open settings/general/usage (located below "about" selection)
5) Toggle on Battery Percentage
6) Re-spring
 
How do you do that with SBS Settings?

Can't figure that out.

With sbsettings all you have to do is this:

1. Drag finger across top of phone to get menu
2. select more
3. select extra's & Options
4. select ON for Numeric battery

There you go, battery percentage on ur phone
 
Doesn't this suck the battery life a lot?

Word is the one you get from SBSettings did. Never used that one so i dont know.
I used the one i posted but i have turned it off. Not due to battery life, i just dont really like having the percentage shown. Makes me feel i need to charge the battery more often when the numbers are on as opposed to just the indicator on the battery in the corner.
 
Word is the one you get from SBSettings did. Never used that one so i dont know.
I used the one i posted but i have turned it off. Not due to battery life, i just dont really like having the percentage shown. Makes me feel i need to charge the battery more often when the numbers are on as opposed to just the indicator on the battery in the corner.

if I use the cydia app "show battery percentage" with the repo source [iphone.org.hk],

when i have that on in settings,general,usage, battery percentage, when its on, and i check sbsettings/extras & options, the numeric battery is on in sbsettings to and if i turn it off there it will turn of in show battery percentage settings too

but in the other cydia app

asBattery when its on in settings, it is off in sbsettings


Vegastouch why is the one you posted using sbsettings?
 
if I use the cydia app "show battery percentage" with the repo source [iphone.org.hk],

when i have that on in settings,general,usage, battery percentage, when its on, and i check sbsettings/extras & options, the numeric battery is on in sbsettings to and if i turn it off there it will turn of in show battery percentage settings too

but in the other cydia app

asBattery when its on in settings, it is off in sbsettings


Vegastouch why is the one you posted using sbsettings?

I dont know. I also have a 2G and dont know if asBattery will work with it or not. It says it has only been tested with a 3G.


EDIT**

Nope, didnt work on mine anyways. Wouldnt even install and it went right to a reboot.
 
You don't *need* any package to do it.

To enable the battery percentage toggle (iPhone 3G, OS 3.x.x)

SSH into your phone
Go to /System/Library/CoreServices/Springboard.app/
Open the M68AP.plist file, and add the following new child under capabilities:

gas-gauge-battery - Boolean - Yes

<key>gas-gauge-battery</key>
<true/>

Restart your iPhone
Go to Settings > General > Usage > Battery Percentage



I'm sorry I'm not following you here...do you mind copy and pasting the code here?
 
Why are you going through all the "trouble" of searching Cydia and using SSH and such when there is a built-in battery % indicator right in the settings? Go to Settings/General/Usage and it's the first option, at least on my 3.0 3GS it is. It's been there right out of the box, no jailbreak necessary.
 
Why are you going through all the "trouble" of searching Cydia and using SSH and such when there is a built-in battery % indicator right in the settings? Go to Settings/General/Usage and it's the first option, at least on my 3.0 3GS it is. It's been there right out of the box, no jailbreak necessary.
the 3g doesnt have that option only the new 3gs has it
 
Hi dZp

is it possible to send us the amended file please?
i am not sure where to insert the code myself.
Thanks
 
is it possible to send us the amended file please?
i am not sure where to insert the code myself.
Thanks
I'm assuming you don't have Xcode installed and are therefore opening the .plist file with a text editor (TextEdit), then it's as simple as editing an XML file. See picture below for the code (overlaid with red) to add under the "capabilities" key.
Code:
<key>gas-gauge-battery</key>
<true/>
 

Attachments

  • m68ap.jpg
    m68ap.jpg
    30.2 KB · Views: 88
There is a new app in Cydia called Battery Control which allows you to select any combination of battery percentage and battery icon. I mention this because many people want the percentage without the icon and this is the only way I've seen on 3.0.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.