Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP OsamaGhareeb

8th March 2013, 04:46 PM   |  #1  
OsamaGhareeb's Avatar
OP Senior Member
Thanks Meter: 2,149
 
252 posts
Join Date:Joined: Nov 2012
Donate to Me




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

___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



Quote:
Originally Posted by Luther Blissett

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 :






After Install


Styles :
More styles here



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


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

If there are any issues, please report.
Last edited by OsamaGhareeb; 26th July 2013 at 02:15 AM.
The Following 260 Users Say Thank You to OsamaGhareeb For This Useful Post: [ View ]
8th March 2013, 09:21 PM   |  #2  
OsamaGhareeb's Avatar
OP Senior Member
Thanks Meter: 2,149
 
252 posts
Join Date:Joined: Nov 2012
Donate to Me
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)
-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 by OsamaGhareeb; 16th April 2013 at 02:40 PM.
The Following 66 Users Say Thank You to OsamaGhareeb For This Useful Post: [ View ]
8th March 2013, 11:32 PM   |  #3  
the_naturat_com's Avatar
Member
Flag Poland, Niemce
Thanks Meter: 5
 
89 posts
Join Date:Joined: Jan 2013
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.
Last edited by the_naturat_com; 4th April 2013 at 11:49 AM.
9th March 2013, 01:09 PM   |  #4  
OsamaGhareeb's Avatar
OP Senior Member
Thanks Meter: 2,149
 
252 posts
Join Date:Joined: Nov 2012
Donate to Me
Quote:
Originally Posted by the_naturat_com

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
The Following 7 Users Say Thank You to OsamaGhareeb For This Useful Post: [ View ]
9th March 2013, 03:27 PM   |  #5  
pabloltg's Avatar
Senior Member
Flag Córdoba
Thanks Meter: 201
 
267 posts
Join Date:Joined: Jan 2012
More
Amazing idea, but not work in MotoBlur system, the source code would help a lot to improve and expand compatibility...
9th March 2013, 07:37 PM   |  #6  
OsamaGhareeb's Avatar
OP Senior Member
Thanks Meter: 2,149
 
252 posts
Join Date:Joined: Nov 2012
Donate to Me
Re: [Windows][Modding App] OGBatteryMod (2013/03/09)
Quote:
Originally Posted by pabloltg

Amazing idea, but not work in MotoBlur system, the source code would help a lot to improve and expand compatibility...

Can you upload your deodexed SystemUI.apk and SecSettings.apk?
The Following 2 Users Say Thank You to OsamaGhareeb For This Useful Post: [ View ]
9th March 2013, 08:45 PM   |  #7  
pabloltg's Avatar
Senior Member
Flag Córdoba
Thanks Meter: 201
 
267 posts
Join Date:Joined: Jan 2012
More
Nice, i will look the source and try..
Last edited by pabloltg; 10th March 2013 at 05:57 AM.
9th March 2013, 09:06 PM   |  #8  
OsamaGhareeb's Avatar
OP Senior Member
Thanks Meter: 2,149
 
252 posts
Join Date:Joined: Nov 2012
Donate to Me
Source Code included
The Following 5 Users Say Thank You to OsamaGhareeb For This Useful Post: [ View ]
10th March 2013, 05:17 PM   |  #9  
Dragon7780's Avatar
Senior Member
Thanks Meter: 3,492
 
1,110 posts
Join Date:Joined: Aug 2009
Donate to Me
Quote:
Originally Posted by OsamaGhareeb

Source Code included

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
10th March 2013, 05:40 PM   |  #10  
OsamaGhareeb's Avatar
OP Senior Member
Thanks Meter: 2,149
 
252 posts
Join Date:Joined: Nov 2012
Donate to Me
Quote:
Originally Posted by Dragon7780

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

What's your device?

The Following 3 Users Say Thank You to OsamaGhareeb For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
battery, mod, style, tool
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes