Where can I download a package on cydia to show battery %?

Discussion in 'Jailbreaks and iOS Hacks' started by havenhamilton, Aug 7, 2009.

  1. havenhamilton thread starter macrumors 6502

    Joined:
    Mar 1, 2005
    #3
    it doesn't seem to be on cydia any more
     
  2. dZp macrumors 6502a

    dZp

    Joined:
    Mar 29, 2006
    #4
    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
     
  3. havenhamilton thread starter macrumors 6502

    Joined:
    Mar 1, 2005
    #5
    how do i get to /System/Library/CoreServices/Springboard.app/?

    edit: i see, i need openssh. thanks!
     
  4. SpaceKitty macrumors 68040

    SpaceKitty

    Joined:
    Nov 9, 2008
    Location:
    Fort Collins Colorado
    #6
    You're not looking hard enough. Search for SBSettings then tap the s listing on the right and it will be right there. Much easier to download this than edit the plist mentioned above.
     
  5. havenhamilton thread starter macrumors 6502

    Joined:
    Mar 1, 2005
    #7
    Thanks, it worked great and was easy.
     
  6. tctuner7 macrumors member

    Joined:
    Aug 5, 2009
    #8
    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.
     
  7. dZp macrumors 6502a

    dZp

    Joined:
    Mar 29, 2006
    #9
    Glad I could help! ;)
     
  8. iphonehk macrumors member

    Joined:
    Mar 10, 2009
    #10
    How do you do that with SBS Settings?

    Can't figure that out.
     
  9. dhlizard macrumors G4

    dhlizard

    Joined:
    Mar 16, 2009
    Location:
    The Jailbreak Community
    #11
    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
     
  10. tctuner7 macrumors member

    Joined:
    Aug 5, 2009
    #12
    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
     
  11. Vegastouch macrumors 603

    Vegastouch

    Joined:
    Jul 12, 2008
    Location:
    Las Vegas, NV
    #13
    http://IPHONE.ORG.HK/APT

    then go to 'show battery percentage'

    Thats it!

    No rebooting, the toggle will be in setting>general>usage
     
  12. vivithemage macrumors 6502a

    vivithemage

    Joined:
    Jul 12, 2008
  13. Vegastouch macrumors 603

    Vegastouch

    Joined:
    Jul 12, 2008
    Location:
    Las Vegas, NV
    #15
    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.
     
  14. Che Castro macrumors 603

    Joined:
    May 21, 2009
    #16
    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?
     
  15. Vegastouch macrumors 603

    Vegastouch

    Joined:
    Jul 12, 2008
    Location:
    Las Vegas, NV
    #17
    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.
     
  16. IBradMac macrumors 68000

    IBradMac

    Joined:
    Jun 27, 2008
    Location:
    Ohio
    #18


    I'm sorry I'm not following you here...do you mind copy and pasting the code here?
     
  17. Agent 21 macrumors regular

    Joined:
    Jun 27, 2009
    #19
    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.
     
  18. Che Castro macrumors 603

    Joined:
    May 21, 2009
    #20
    the 3g doesnt have that option only the new 3gs has it
     
  19. Agent 21 macrumors regular

    Joined:
    Jun 27, 2009
    #21
    Ah OK, I thought it was a 3.0 feature, didn't know it was 3GS-specific. Carry on, lol.
     
  20. Tony Earl macrumors member

    Joined:
    Jun 14, 2009
    #22
    Hi dZp

    is it possible to send us the amended file please?
    i am not sure where to insert the code myself.
    Thanks
     
  21. dZp macrumors 6502a

    dZp

    Joined:
    Mar 29, 2006
    #23
    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/>
     

    Attached Files:

  22. foob macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #24
    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.
     

Share This Page