[Modding App] OGBatteryMod v2.1.0 (Android 2.3 - 4.2.2)

Search This thread

OGMods

Senior Member
Nov 5, 2012
354
5,252
ogmods.net

n1t11374785599055.png



This app change Battery Style on the StatusBar and you can choose from 15 styles without rebooting.
Works on Windows and needs .NET Framework 4.0 & Java on your PC.

Usage:
Download OGBatteryMod and extract files
Run OGBatteryMod.exe
Step 1:
In step 1 there are 3 options
Option 1 : Download & Mod Apps from connected device
________ Reading connected devices
________ Download required files
________ Deodexing
________ Modding
Option 2 : Mod an existing files
________ To mod an existing file on your computer
________ use this option if you can't see your device
________ or if you get Failed to download files
Option 3 : Add & Delete styles
________ To add your styles

Step 2:
Downloading necessary files
___ SystemUI.apk & Settings.apk & Resources & framework files for deodexing

Step 3:
Adding OGBatteryMod
___ Modding, Signing and ZipAlginning (SystemUI.apk & Settings.apk)

Step 4:
In step 4 there are 3 options
Option 1 : Apply changes & restart device (Root)
________ Copy modified SystemUI.apk & Settings.apk to '/system/app'
________ Rebooting your device
Option 2 : Copy new files to '/sdcard/og' (Root)
________ Copy modified SystemUI.apk & Settings.apk to '/sdcard/og'
________ Use this option if you Get (Failed to get ROOT access) and then copy modified files manually OR if you want to copy modified files manually
Option 3 : Create Flashable Zip (No Root)
________ Create 2 flashable Zips (Mod & Backup)
________ Works in Stock Recovery Tested on SGAce2 & SGNote)

After install:
___Click the battery icon 3 times to open OGBatteryMod Settings
n1t113747855993.png

___Or Go to Settings >> Display >> Battery Style >> Choose your style
___Enjoy ;)

Bugs:
1- Failed to decompiling SystemUI
___ The problem from apktool
___ (Exception in thread "main" brut.androlib.AndrolibException: Multiple resources)

2- SystemUI & Settings FC (Force Close) or StatusBar not shown
___ 1- Open up the command prompt
___ 2- Navigate to (folder where you extracted this app)\tools
___ 3- Type ( adb logcat -d > Logcat.txt )
___ 4- Upload Logcat.txt file

3- Failed to get ROOT access
___Copy all files that located on 'sdcard/og' to 'system/app' then reboot



Well this is mighty interesting, I tried enabling charging animations, now the icons in the floating panel are back in their correct positions. But the funny thing is, I disabled the animations again, the icons stayed in place anyway, and even after rebooting they're still where they should be. So whoever has a problem of icon spacing after applying this mod in a Jelly Bean tablet, try switching the charging animations on, you might get lucky too.


Note:

___ If you want to back to original files (because SystemUI FC)
___ You can find the original files in :
___ 1- (folder where you extracted this app)\tools
___ 2- sdcard/OG/Backup

Download:
Download links in Post 2

Tested on:
Samsung
Galaxy Ace 2
Galaxy S1
Galaxy S2 by Michael B.N.
Galaxy S3 by Dragon7780
Galaxy Ace by SpaceCaker
Galaxy Note by and2
Galaxy Note 2 by Esj618
Galaxy Note 2 CDMA by ForeverSupra
Galaxy Nexus by karankumar
Galaxy Tab 7.7 by UpInTheAir
Galaxy Tab 2 10.1 by brolee93
Galaxy Grand by hosamomr

Sony
Xperia Mini St15i by GregórioAxiaMagno
Xperia U by SpaceCaker
Xperia P by SpaceCaker
Xperia S by SpaceCaker
Xperia T by SpaceCaker
Xperia Go by SpaceCaker
Xperia Sola by SpaceCaker
Xperia J by SpaceCaker

Motorola
ATRIX 2 by oscar_pan
Razr by bg_man

Acer
Iconia Tab by Luther Blissett

HTC
Desire by Ape_D

LG
Nexus 4 by atabey



Screenshot :

n1t1137478559917.png


n1t11374785599024.png



After Install

n1t11374785598961.jpg
n1t11374785598982.jpg

Styles :
More styles here

Styles_zps21e15f98.jpg
n1t11374785599128.jpg


Source Code:
Visual Studio 2010 - VB.NET
OGBatteryMod v2.0.1 - GitHub


---------------------------------------------

If there are any issues, please report. :)
 
Last edited:

OGMods

Senior Member
Nov 5, 2012
354
5,252
ogmods.net
Change Log


OGBatteryMod v2.1.0
-Fix 'Mod an existing files' bug

OGBatteryMod v2.0.1
-Fix create Flashable Zip bug

OGBatteryMod v2.0.0
-Add option to create Flashable Zip (Works on stock recovery)
-Support odexed files in option 2 (Mod an existing files)
-Support unrooted devices (Flashable Zip) - (Tested on Unrooted SGNote)
-Support Android 2.3
-Fix bugs


OGBatteryMod v1.7.9
-Fix OGBatteryMod Force Close OGBatteryMod v1.7.8
-New interface

OGBatteryMod v1.7.7
-Fix wrong line placement in some display_settings.xml files
-Support MIUI
-Fix bugs

OGBatteryMod v1.7.6
-Fix bugs

OGBatteryMod v1.7.5
-Update aapt & adb
-Fix bugs


OGBatteryMod v1.7.2
-Options clickable now
-Fix ZipAligning bugs
-Fix bugs

OGBatteryMod v1.7.0
-Add option to (Add & Delete Styles) ;)
-Fix compatibility on android 4.2.2
-Fix ZipAligning bugs

OGBatteryMod v1.6.1
-Fix (Scanning connected devices) bug

OGBatteryMod v1.6.0
-Fix OGBatteryMod compatibility on android v4.0.4
-Fix (apply changes & restart device) bug
-Fix deodexing bug

OGBatteryMod v1.5.5
-Add option to mod an existing files

OGBatteryMod v1.5.1
-Fix 'Settings.apk not modded'

OGBatteryMod v1.5.0
-Click the battery icon (on StatusBar) 3 times to open OGBatteryMod Settings ;)
-Fix stupid bug (Selected = 1 AndAlso Selected = 2) :rolleyes:
-Set correct permissions after modding (644)
-Add option to Mod Settings.apk or not

OGBatteryMod v1.4.1
-Charge animation changed
-SystemUI crash fixed

OGBatteryMod v1.4.0
-Fix bugs
-Add 3 options to apply changes

OGBatteryMod v1.3.0
-Add select device option
-Fix wrong line placement in display_settings.xml
-Hide battery percentage

OGBatteryMod v1.2.2
- Fix charging icons

OGBatteryMod v1.2.1
- Add select Settings file option

OGBattreyMod v1.2.0
- Fix bugs

OGBattreyMod v1.1.0
- Fix bugs

OGBattreyMod v1.0.0
 
Last edited:

pabloltg

Senior Member
Jan 23, 2012
267
203
Córdoba
Amazing idea, but not work in MotoBlur system, the source code would help a lot to improve and expand compatibility... :cowboy:
 

Dragon7780

Senior Member
Aug 31, 2009
1,327
4,576
It should work on all Samsung devices that run Android 4.*

Try v1.1.. If it not work can you upload your SystemUI.apk & SecSettings.apk?

Im trying to implement this mod into my rom build from slimbean source. i have the systemui.apk and settings.apk

When using your windows app for modding the files it cant find the secsettings.apk because it doesnt exist.
So ive tried your source but can figure it out why it doesnt work
 

Dragon7780

Senior Member
Aug 31, 2009
1,327
4,576
Here are the systemui.apk and settings.apk from my rom.. hope you can figure it out.
 

Attachments

  • BattMod.zip
    7.8 MB · Views: 695

Dr01nE

Senior Member
Oct 1, 2012
1,218
791
Acquiring...
Re: [Windows][Modding App] OGBatteryMod (2013/03/10)

What language did you use for this?

Sent from my GT-I8160 using xda app-developers app
 

Dragon7780

Senior Member
Aug 31, 2009
1,327
4,576
Try out v1.2.1.. I add select settings file option

ok got the settings.apk good so far.i can choose between icon syles. but the systemui.apk is running fine but when choose a icon syle its not working. still default icon is showed. so there is something missing in the systemui.apk! How does the mod disable the rom default batterycontroller? Help please
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 265

    n1t11374785599055.png



    This app change Battery Style on the StatusBar and you can choose from 15 styles without rebooting.
    Works on Windows and needs .NET Framework 4.0 & Java on your PC.

    Usage:
    Download OGBatteryMod and extract files
    Run OGBatteryMod.exe
    Step 1:
    In step 1 there are 3 options
    Option 1 : Download & Mod Apps from connected device
    ________ Reading connected devices
    ________ Download required files
    ________ Deodexing
    ________ Modding
    Option 2 : Mod an existing files
    ________ To mod an existing file on your computer
    ________ use this option if you can't see your device
    ________ or if you get Failed to download files
    Option 3 : Add & Delete styles
    ________ To add your styles

    Step 2:
    Downloading necessary files
    ___ SystemUI.apk & Settings.apk & Resources & framework files for deodexing

    Step 3:
    Adding OGBatteryMod
    ___ Modding, Signing and ZipAlginning (SystemUI.apk & Settings.apk)

    Step 4:
    In step 4 there are 3 options
    Option 1 : Apply changes & restart device (Root)
    ________ Copy modified SystemUI.apk & Settings.apk to '/system/app'
    ________ Rebooting your device
    Option 2 : Copy new files to '/sdcard/og' (Root)
    ________ Copy modified SystemUI.apk & Settings.apk to '/sdcard/og'
    ________ Use this option if you Get (Failed to get ROOT access) and then copy modified files manually OR if you want to copy modified files manually
    Option 3 : Create Flashable Zip (No Root)
    ________ Create 2 flashable Zips (Mod & Backup)
    ________ Works in Stock Recovery Tested on SGAce2 & SGNote)

    After install:
    ___Click the battery icon 3 times to open OGBatteryMod Settings
    n1t113747855993.png

    ___Or Go to Settings >> Display >> Battery Style >> Choose your style
    ___Enjoy ;)

    Bugs:
    1- Failed to decompiling SystemUI
    ___ The problem from apktool
    ___ (Exception in thread "main" brut.androlib.AndrolibException: Multiple resources)

    2- SystemUI & Settings FC (Force Close) or StatusBar not shown
    ___ 1- Open up the command prompt
    ___ 2- Navigate to (folder where you extracted this app)\tools
    ___ 3- Type ( adb logcat -d > Logcat.txt )
    ___ 4- Upload Logcat.txt file

    3- Failed to get ROOT access
    ___Copy all files that located on 'sdcard/og' to 'system/app' then reboot



    Well this is mighty interesting, I tried enabling charging animations, now the icons in the floating panel are back in their correct positions. But the funny thing is, I disabled the animations again, the icons stayed in place anyway, and even after rebooting they're still where they should be. So whoever has a problem of icon spacing after applying this mod in a Jelly Bean tablet, try switching the charging animations on, you might get lucky too.


    Note:

    ___ If you want to back to original files (because SystemUI FC)
    ___ You can find the original files in :
    ___ 1- (folder where you extracted this app)\tools
    ___ 2- sdcard/OG/Backup

    Download:
    Download links in Post 2

    Tested on:
    Samsung
    Galaxy Ace 2
    Galaxy S1
    Galaxy S2 by Michael B.N.
    Galaxy S3 by Dragon7780
    Galaxy Ace by SpaceCaker
    Galaxy Note by and2
    Galaxy Note 2 by Esj618
    Galaxy Note 2 CDMA by ForeverSupra
    Galaxy Nexus by karankumar
    Galaxy Tab 7.7 by UpInTheAir
    Galaxy Tab 2 10.1 by brolee93
    Galaxy Grand by hosamomr

    Sony
    Xperia Mini St15i by GregórioAxiaMagno
    Xperia U by SpaceCaker
    Xperia P by SpaceCaker
    Xperia S by SpaceCaker
    Xperia T by SpaceCaker
    Xperia Go by SpaceCaker
    Xperia Sola by SpaceCaker
    Xperia J by SpaceCaker

    Motorola
    ATRIX 2 by oscar_pan
    Razr by bg_man

    Acer
    Iconia Tab by Luther Blissett

    HTC
    Desire by Ape_D

    LG
    Nexus 4 by atabey



    Screenshot :

    n1t1137478559917.png


    n1t11374785599024.png



    After Install

    n1t11374785598961.jpg
    n1t11374785598982.jpg

    Styles :
    More styles here

    Styles_zps21e15f98.jpg
    n1t11374785599128.jpg


    Source Code:
    Visual Studio 2010 - VB.NET
    OGBatteryMod v2.0.1 - GitHub


    ---------------------------------------------

    If there are any issues, please report. :)
    71
    Change Log


    OGBatteryMod v2.1.0
    -Fix 'Mod an existing files' bug

    OGBatteryMod v2.0.1
    -Fix create Flashable Zip bug

    OGBatteryMod v2.0.0
    -Add option to create Flashable Zip (Works on stock recovery)
    -Support odexed files in option 2 (Mod an existing files)
    -Support unrooted devices (Flashable Zip) - (Tested on Unrooted SGNote)
    -Support Android 2.3
    -Fix bugs


    OGBatteryMod v1.7.9
    -Fix OGBatteryMod Force Close OGBatteryMod v1.7.8
    -New interface

    OGBatteryMod v1.7.7
    -Fix wrong line placement in some display_settings.xml files
    -Support MIUI
    -Fix bugs

    OGBatteryMod v1.7.6
    -Fix bugs

    OGBatteryMod v1.7.5
    -Update aapt & adb
    -Fix bugs


    OGBatteryMod v1.7.2
    -Options clickable now
    -Fix ZipAligning bugs
    -Fix bugs

    OGBatteryMod v1.7.0
    -Add option to (Add & Delete Styles) ;)
    -Fix compatibility on android 4.2.2
    -Fix ZipAligning bugs

    OGBatteryMod v1.6.1
    -Fix (Scanning connected devices) bug

    OGBatteryMod v1.6.0
    -Fix OGBatteryMod compatibility on android v4.0.4
    -Fix (apply changes & restart device) bug
    -Fix deodexing bug

    OGBatteryMod v1.5.5
    -Add option to mod an existing files

    OGBatteryMod v1.5.1
    -Fix 'Settings.apk not modded'

    OGBatteryMod v1.5.0
    -Click the battery icon (on StatusBar) 3 times to open OGBatteryMod Settings ;)
    -Fix stupid bug (Selected = 1 AndAlso Selected = 2) :rolleyes:
    -Set correct permissions after modding (644)
    -Add option to Mod Settings.apk or not

    OGBatteryMod v1.4.1
    -Charge animation changed
    -SystemUI crash fixed

    OGBatteryMod v1.4.0
    -Fix bugs
    -Add 3 options to apply changes

    OGBatteryMod v1.3.0
    -Add select device option
    -Fix wrong line placement in display_settings.xml
    -Hide battery percentage

    OGBatteryMod v1.2.2
    - Fix charging icons

    OGBatteryMod v1.2.1
    - Add select Settings file option

    OGBattreyMod v1.2.0
    - Fix bugs

    OGBattreyMod v1.1.0
    - Fix bugs

    OGBattreyMod v1.0.0
    7
    The application works well, but it is a mistake of this modification. After the restart following error "SystemUI" and "Settings". Modification damage these applications. I have KYRILLOS v6B.

    Download this version
    5
    Source Code included ;)
    3
    Can you get the mod to work for a cm10.1 rom;)

    Trying to implement it into my upcoming rom. but i cant get it to work... Some help would be nice:good:

    What's your device?