How to: Enable battery percentage on iPhone OS 3.0 even it’s not 3GS

Share 14 comments » June 24th, 2009 - 4:18 am

batter-percentage-before-after

iPhone 3GS can show you the battery percentage on the top right. It’s much clearer by only watching the green bar. It can be switched on and off in “Settings” > “General” > “Usage”. But, you can’t find that in iPhone 2G/3G even it’s upgraded to 3.0. I don’t understand why Apple enable it in 3GS only, is that about hardware problem again? I am pretty sure it’s not.

Thanks to the jailbreak and SSH. You can enable the option like the 3GS by editing the system file. Follow the steps after the break. It’s native and much better than using other 3rd party software like SBSettings to view the percentage. Note you should blame no one if anything goes wrong.

Step 1. You need to jailbreak iPhone first. Use redsn0w or PwnageTool 3.0.

Step 2. Install OpenSSH using Cydia or Icy. Restart after the first installation

Step 3. Use WinSCP and CyberDuck for Mac to browse the iPhone files. Connect computer and iPhone at the same Wi-Fi spot, enter the IP address of iPhone in WinSCP or Cyberduck. “root” as username. “alpine” as password.

Step 4. Browse “/System/Library/CoreServices/Springboard.app/”. Download M68AP.plist

Step 5. Use plist Editor (for Windows) to edit it. In Mac OS X, you can type “plutil -convert xml1 M68AP.plist” in Terminal. to convert it to XML.

Step 6. Look for:

“<key>capabilities</key>
<dict>”

Step 7. Add:

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

Step 8. It will turn up like this:

m68ap

Step 9. Convert the M68AP.plist to binary if you have used plutil command in Step 6. Type “plutil -convert binary1 M68AP.plist” in Mac’s Terminal. Upload the file back to the iPhone at the same place “/System/Library/CoreServices/Springboard.app/”.

Step 10. Respring or restart the iPhone. You will see the battery indicator option in the “Settings”>”General”>”Usage”.

[via Neowin]

Advertisement

14 comments

  1. Compulsivo says:

    or just install SBSettings from Cydia…

    []’s
    Compulsivo

  2. Luis says:

    Worked perfectly, although I think when I open my settings it takes a little more time than before, but it could be just a matter of appreciation…anyone?

  3. Grafix Guru says:

    Excellent, it’s working.

  4. Eduardo Trajano says:

    Great!!! Worked perfectly!!! Didn’t noticed any sign of lag or other kind of malfunction.

  5. Welcool says:

    It works great even on the Iphone 2G

  6. Lance says:

    Hey! it works flawlessly! Now, if only sombody will actually get the videocamera to work and the mms video camera…! Thanks to those who share this…

  7. Lance says:

    oh ya, can also extract the plist using a software called iFunbox,
    google it… it way better than winscp

  8. JailbreakPower says:

    You can use a cydia app called iFile and completely avoid using a computer and edit the plist right on your iphone. Trust me it works

  9. Eduardo lima says:

    To put a native precentage on your iphone is simple… open cydia go to search and search for 3gs percentage and install it… close cydia, go to winter board turn on 3G{S} battery then go to settings–> usage–> turn on battery level… It’s more accurate then sbsettings and it’s very simple!

    Enjoy!!!

  10. andrew says:

    Kudos!! simple and works great!

Leave a Reply