yashsingh1/xdaforums huggingface dataset:
[Android Software Development] sabikhan:
cant run your mod

hi there can you describe your mod instruction coz i cant do that as your describe in forum

here is the log file says

C:\Users\user\Desktop\OGBatteryMod v1.7.5\Tools>adb kill-server

---------- Post added at 07:44 PM ---------- Previous post was at 07:35 PM ----------

hi there sorry for commenting like this but i can work this out your ogbattery exe wont do anything here is the log fie says

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

Index was outside the bounds of the array.

at OGBatteryMod.FrmMain.GetConnectedDevices()

at OGBatteryMod.FrmMain.Step1_2()

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

An error occurred, please send Log.txt to me

XDA : OsamaGhareeb : OK

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\user\Desktop\OGBatteryMod v1.7.5\Tools>adb start-server
[Android Software Development] cas239:
FC issue solved, as well as the overlay issue. Only issue im experiencing now is when I apply the you battery mod and choose a new style, i.e. the Android bot, it will display in the status bar with no issues, after about 30 seconds or if I plug/unplug the phone from power source, it reverts the the system stock battery. Here is the log
[Android Software Development] XivilidMohamed:
Yeah! Finaly it worked in my phone, Pantech Sky IM-A770K. Tks bro so much!:laugh: Rate it 5*
[Android Software Development] Grondinm:
Alrigth so 1.7.9 does work and install on MIUI but the battery icon does not change. no matter what i select in your app.
[Android Software Development] underskyzx:
Best battery mod in the world...many thanks

Working on Xperia U, Unlocked Bootloader, CM9 FXP212.
[Android Software Development] Ruliindrapraja:
Status bar and setting menu not showing

I using Stock ROM

SONY Xperia U

Android version 4.0.4

locked bootloader

before i instal this mod, i using mod seting at xdaforums.com/showthread.php?t=2197585

this is log.txt
[Android Software Development] said_abush3leh:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/23/03)

Many thanks
[Android Software Development] ugoff:
I'm finally able to get this to install! But, there's a functional issue I'm running into. I can pick a battery icon set and it will stay, unless I plug in or unplug a cable to the phone, then it reverts to the default one. So, I thought maybe setting the icon set with the option being present in Display would help, but I'm getting an error adding the option.

The icon selection not staying may not be part of this issue, but I thought I'd bring it up anyway.
[Android Software Development] jordanchow725:
razr 4.12

download failed:confused::confused::confused:

View attachment Log.txt

View attachment Log2.txt
[Android Software Development] oscar_pan:
Hi OG

today tried the new version, still setting FC, here upload the logcat, thank you!
[Android Software Development] OGMods:
Try in another PC

You have 2 BatteryController in your SystemUI

How to solve this :

1.Decompile Modified SystemUI

2.Find the second SystemUI (not com.ghareeb.BatteryMod.BatteryController)

3.Open the second BatteryController.smali and search for setImageDrawable and delete the line (from .line to .line)

4.Save & recompile

The mod mot installed correctly or the same cas239 issue's

Upload Logcat

You have 2 BatteryController in your SystemUI

How to solve this :

1.Decompile Modified SystemUI

2.Find the second SystemUI (not com.ghareeb.BatteryMod.BatteryController)

3.Open the second BatteryController.smali and search for setImageDrawable and delete the line (from .line to .line)

4.Save & recompile

Install JRE

Are you sure that the last version of OGBatteryMod installed?
[Android Software Development] HarmfulMushroom:
Just wanted to leave my experiences. Tried this on my stock rom rooted kindle fire 2. Everything installed correctly, along with most recent version of OGbatteryMod.apk, with the settings showing up to change battery style but it didn't actually change the style. I kind of figured it wouldn't work due to Amazons device, (not your programming as it's quite obvious your application works beautifully), but just wanted to let you know. Went ahead and uploaded the log.

I'm sure it would work on the custom rom for the kindle fire 2 but I've had issues with the stand by battery life, so for the time being I'm leaving the stock rom on. Not many complaints as I only use it for reading usually. But keep up the good work!
[Android Software Development] OGMods:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/23/03)

Can you please upload your SystemUI
[Android Software Development] ugoff:
So, the part of my BatteryController.smali that has that text looks like this:

.line 117

:goto_3

invoke-virtual {v6, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

If I remove all of that or even just the 'invoke' and 'goto' lines, apktool will not recompile and throws an error complaining about 'goto'. So, I tried just removing the 'invoke-virtual' line and it will compile, but I get no statusbar at all...
[Android Software Development] HarmfulMushroom:
Here it is:
[Android Software Development] DaSuperGrover:
Thanks for keeping updating your tool! My ACE 2 now also has the charging symbol, which was missing with 1.7.2 (couldn't install due to some error).

Whenever the official JB will arrive for ACE2, this is the first mod which will be applied after rooting ;)
[Android Software Development] Grondinm:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/23/03)

i will try again from scratch but this was in a fresh install with no apps installed and a full wipe before. will restore filea from backup and try again. will report.
[Android Software Development] Ruliindrapraja:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/23/03)
[Android Software Development] Michael B.N.:
If anybody wants to download more battery styles there's a lot here: xdaforums.com/showthread.php?t=1434061. I've succeeded adding a few...
[Android Software Development] SpaceCaker:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/23/03)

Works on Xperia 2012 ICS devices ;)

Tried it on 6 devices

Also works on CM9

Galaxy ace
[Android Software Development] cas239:
Any update with this?? Wish this were easier than having to decompile the systemui.apk file
[Android Software Development] bountygiver:
ParanoidAndroid per app colors will crash systemui
[Android Software Development] OGMods:
Can you upload your BatteryController... or oyur SystemUI

Please upload your Deodexed SystemUI... you can find it in my app folder
[Android Software Development] SpaceCaker:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/23/03)
[Android Software Development] Michael B.N.:
I have a question about adding my own styles. If I start your programme in Windows, choose option number 3, add a few styles and then click ok, before I start to mod my phone, then I always get an error when your programme reaches the step where it tries to copy the styles.

But if I run the programme without adding new styles, it works fine. Or if I add some new styles and only select them in option number 3 and deselect all the default styles, it also works fine, but then I only get my own battery styles on the phone. I would like to have the default styles and also my own. Isn't that possible?
[Android Software Development] OGMods:
What's the error you get?

It should work.. default styles and your own styles :confused:
[Android Software Development] Michael B.N.:
When the programme reaches step 3 "Adding OGBatteryMod - Copying Styles..." it stops and says "An error occured".

As I said before - if I start with option number 3 and only select the 15 default styles or my 2 own styles, everything works fine. But any combination with default and own styles, the programme gives me the error as mentioned above.

I've attached the two log files.
[Android Software Development] OGMods:
Sorry the bug from my app... I'll solve it ASAP

You can solve it now by changing 'Circle' Style name...
[Android Software Development] bountygiver:
SystemUI.apk (before modification) of paranoidandroid with per app color is attached:

If modded with your custom battery icons, systemUI will crash every time the colors are changed.
[Android Software Development] hosamomr:
Thank you very much for your efforts

Worked well in samsung grand duos-i9082

i hope to make full mod status bar same Transparency Amendment on the clock and towers

I wish you success
[Android Software Development] Michael B.N.:
Yes, it works. Thank you :good:
[Android Software Development] Vincent8111:
I have an error decompilation of SystemUI (GNote N7000 - Asylum CM10.1) .

Attached zip with systemUI & log

I can not (when working with an another systemUI) has added other styles (attached in zip)
[Android Software Development] Vincent8111:
I solved my problem using this apktool: http://xdaforums.com/showthread.php?t=2195680

And by replacing the - with _ in the name of the image file of my styles.
[Android Software Development] Rasoar:
Great work! I have searched for a mod like this for so long!

But I have a problem: as soon as I lock the phone the the battery style changes to the standart one. As I apply a slight change in the OG Mod menu battery icon (like the loading style) changes to the modded one but this problem occures everytime i lock the phone.

I own the O2X or P990 (I don't know the perfectly right international term for the phone), its running on the latest "Let´s play P.A.C-Man" rom

(http://xdaforums.com/showthread.php?t=2148394). Since it ran perfectly on other roms I think it might be a problem of this particular one.

P.S.: Since I'm a german noob :D excuse the not so perfect English and tell me if you need more information to fix the problem.
[Android Software Development] rozyid:
Work On Galaxy ACE ll

hi Osama Ghareeb

OGBatteryMod v1.7.9 Work on Galaxy Ace ll

thanks
[Android Software Development] bg_man:
First, thanks for good work.

Report:

Works partially on Motorola Razr.

Settings menu from display force closing.

But three clicks on battery icon opens settings and I can apply the desired style. There is a huge space between network indicator and wireless indicator (where H indicator stays when no wireless).

Battery percentage is in steps of ten, 10, 20, 30 etc.

Fixing this requires changes to services.odex:

http://xdaforums.com/showpost.php?p=29499961&postcount=2
[Android Software Development] Rasoar:
Did you use the "Mod an existing files" as you where installing the mod on your phone? That might be the problem because your phone is odexed.

Correct me if I'm wrong.
[Android Software Development] bg_man:
Nope. Option 1 - Download from connected phone.
[Android Software Development] kingofjail:
please help me to use this tool..i send my systemUI & setting . i try this for many times it not work always.. im on s2
[Android Software Development] Michael B.N.:
I've updated CyanogenMod to the latest nightly and now I get a SystemIU FC when I start my phone. I've attached logcat.txt but it's created after I restored the original SystemIU. I don't know if I should have created the log file when SystemIU crashed?
[Android Software Development] droido101:
i get an error when trying to flash the files here is the logs.
[Android Software Development] OGMods:
Decompile your Modded SystemUI.apk open (smali/com/android/systemui/statusbar/policy/BatteryController) file

Add this lines at the end of the file

.method public setColor(Landroid/util/ColorUtils$ColorSettingInfo;)V
.locals 0
.parameter "colorInfo"

.prologue
.line 1234
return-void
.end method

This happen because you have another BatteryController in your SystemUI on your Rom...

Are you sure that OGBatteryMod.apk installed in your phone?

Please attach Logs files

Try to deodexing your files manually then use option 2 in my app
[Android Software Development] Michael B.N.:
How do I check that? Your programme on my computer was running normal like the other times I've modded my phone so everything seemed ok until I restarted my phone and kept getting 'System UI force close'.
[Android Software Development] OGMods:
Check out if my app (OGBatteryMod.apk) is located in /system/app/

If you see it.. check out if you use the last version or not
[Android Software Development] Michael B.N.:
Yes, your app is installed. I've just tried again but with the same result. And if I keep pressing okay to the force close box I can get into settings and screen, and I can see your mod has been applied and I can change battery style. But the force close keeps appearing and also the status bar is not shown.
[Android Software Development] OGMods:
Update OGBatteryMod you can see the last version in ( (my app folder)\Tools\dist\ )
[Android Software Development] Michael B.N.:
You mean update the apk file on my phone or...? Can I just copy the file from \tools\dist\ to the battery mod directory on the phone and then run the programme from the computer again?
[Android Software Development] OGMods:
Just copy '\tools\dist\OGBatteryMod.apk' file to '/system/app/' folder in your phone and restart your phone
[Android Software Development] Michael B.N.:
Unfortunately it makes no difference... I've tried to copy the three files one by one. OGBatteryMod.apk and Settings.apk is okay but as soon I copy SystemUI.apk and restart the phone, I get the same error again. With OGBatteryMod.apk and Settings.apk in the /system/app/ folder I can see your mod in settings/screen, but of course it doesn't work without SystemUI.apk.
[Android Software Development] OGMods:
Upload Logcat again after FC dialog appears
[Android Software Development] Michael B.N.:
I can't create a new log file :( adb.exe can't establish a connection to my phone as the FC keeps appearing...
[Android Software Development] droido101:
i got my rom deodexed and everything seemed to go ok until the end where it was putting the files on the phone and reboot. it got stuck on that for more than 2 hours so i uplugged the phone and tried doing a fresh install , now it gives me an error as soon as i select option 1 in step 1. could you explain what to do in option 2 in step 1. here are the logs. thanks in advance.
[Android Software Development] osiedacz:
You know I had the same thing happen on my Note 2 and I think it was because the app was looking for a directory path on the phone that started out "sdcard", but on my phone the only two options would be "sdcard0" and "extSdCard". In the end I had to completely delete the working folder from my PC and start over. This time instead of allowing the windows app to push the files back to my phone i installed them using a zip in recovery.
[Android Software Development] ugoff:
Attached is the modified SystemUI, which is from JellyBam 7.4.0.
[Android Software Development] droido101:
that sounds exactly like what's going on with my note2. i'd be really greatful if you could give more details about clearing it from pc and pushing the files back to the phone. thanks in advance.
[Android Software Development] OGMods:
I'll fix the bug in v2

Open 'SystemUI\res\layout\status_bar.xml' file

Remove '' line

Save & recompile
[Android Software Development] OGMods:
Add support to Android 2.3

Coming Soon v2 :D
​
[Android Software Development] ugoff:
Umm... I think the board ate your text... In this reply dialog, I can see SIZE=1 and /SIZE with brackets around each. These tags don't exist in the file like this, but I can't be sure that was what you intended to write on your post.
[Android Software Development] OGMods:
Sorry something ate it :confused:

<com.android.systemui.statusbar.policy.BatteryBarController android:layout_width="fill_parent" android:layout_height="1.0dip" systemui:viewLocation="1" />
[Android Software Development] OGMods:
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) - (not tested yet)

-Support Android 2.3

-Fix bugs

Enjoy ^_^
​
[Android Software Development] droido101:
i tried version 2.0 and still getting errors, here are the logs.
[Android Software Development] OGMods:
Try in another PC
[Android Software Development] droido101:
those results are from my second computer, i did notice that before i got the errors it said did not zip align (or something to that effect) i can't run 2.0 or any other version on my first computer it won't find my phone.
[Android Software Development] OGMods:
Copy your files to PC & use option 2
[Android Software Development] ugoff:
It doesn't appear to be changing the behavior.

I just realized, I have an cm10 theme installed. This is probably overwriting the graphic. I don't suppose there's an easy way around this without ditching the theme...
[Android Software Development] OGMods:
OGBatteryMod v2.0.1

-Fix create Flashable Zip bug
[Android Software Development] OGMods:
Source code updated to v2.0.1
[Android Software Development] droido101:
that didn't work either. thanks for trying to help. if you ever make a flashable zip of this mod i'll be back. oh just in case here are the 2 errors logs. thanks again.

i thought i would try it one last time so i cleared adb in task manager and started over. and the error message i got was failed to zip-align

edit: hurray finally up and running. what i did was, i went back to my first computer that was not seeing the phone in og battery mod and i used task manager and cleared all the active adb processes, once i did that i then ran version 2.0 and viola the computer saw my phone and everything loaded perfectly. once again osama thank you for this mod.
[Android Software Development] Michael B.N.:
Unfortunately it still doesn't work with CyanogenMod 10.1. I still get SystemIU FC when I boot my phone after running your mod :(
[Android Software Development] Ape_D:
And now on a HTC Desire/Bravo running CM10.1 JB4.2.2

Thank you! Really amazing work you have done here!

I had some problems with the tool getting a working connection and the (de)compiling crashed a couple of times but in the end it worked (after the 3rd or 4th try).

Now I am happy running it for approx. 1 hour and had no FCs
[Android Software Development] OGMods:
Can you upload your SystemUI and logcat ??
[Android Software Development] Michael B.N.:
As said earlier I can't create a logcat when I have SystemIU FC. When I run adb.exe it keeps saying 'waiting for phone'. But I've attached the two SystemIU.apk files. The original one and the modded one. Maybe you can find out something...
[Android Software Development] SpaceCaker:
@OP

ive checked ur git source but do you also have the battery controller.smali of yours in java code ?

makes it easier to implement in source code ;)

thanks
[Android Software Development] osiedacz:
Hi OG, I just tried to apply your mod to CleanRom 4.8 and ran into an error where it seems to be looking for an odex rom, but this rom is de-odexed. I was running option 2 where you try to apply the mod to the ROM files on your computer, instead of to the ones on the phone. I am attaching the error files.
[Android Software Development] osiedacz:
Just as an update, it worked fine to pull the files from the installed rom and build a zip.
[Android Software Development] brolee93:
You think it is work with tablet samsum p5100 tab 2 10.1
[Android Software Development] OGMods:
I'll take a look ASAP

Here is it

Try to delete Tools\Framework folder and try again

Edit: also move your framework folder (C:\Users\Daniel Leo Osiedacz\Documents\AT&T Mobile Phones\CleanROM ACE 4.8.0\system\framework\) to other one

the problem from spaces in the path

Yes...
[Android Software Development] SpaceCaker:
same error here

i tried v2.01 latest ogbatterymod

and also searches for odex

i have moved all stuff to different locations without spaces etc

still same errorwith earlier versions it worked fine

:p
[Android Software Development] brolee93:
it is work my bro good work :)
[Android Software Development] brolee93:
You think it is possible to mod a software for mod signal wifi and signal phone ? Without reboot same as your battery mod :)

You think it possible?
[Android Software Development] brolee93:
I have same pb software want odex file but my files don't have one because my rom is deodex. When I connect my phone it is work well
[Android Software Development] Vincent8111:
Hello,

I have a problem with the latest version. It worked with the old version.
[Android Software Development] jimmydene84:
nice, thanks for this!
[Android Software Development] OGMods:
I'll fix it in v2.1.0

Yes, We can.. but it will take a long time

I'll fix it in v2.1.0

Try to copy your Framework folder to other one

The problem is "Le chemin d'accès n'a pas une forme conforme."
[Android Software Development] Vincent8111:
The framework is in C:\Users\Vincent\apktool\framework (it seems correct?)

Download V2.01 put framework in L:\framework, and new problem :

Impossible de trouver le fichier 'L:\GNOTE\_JB\OGBatteryModv2\SystemUI.odex'.

(Can not find the file ...)

but this is not an odex ROM (Asylum 4.2.2 CM10.1 for N7000)

Thanks
[Android Software Development] OGMods:
OGBatteryMod v2.1.0

-Fix 'Mod an existing files' bug​
[Android Software Development] Lucki_X:
Great job. But doesn't work on Motorola Razr I XT890 :(

Everything in application were done, but "Unfortunately, Settings has stopped"
[Android Software Development] bg_man:
Don't choose to make changes in settings menu. After that just use 3 taps on battery icon instead.
[Android Software Development] brolee93:
hi can you make one option to choose my battery for boot in first install in one desired style battery please ? because first boot in DEFAULT and it is bad battery :)

without this issue it is good work my bro

You think it is possible to mod a software for mod signal wifi and signal phone ? Without reboot same as your battery mod

You think it possible?

Yes, We can.. but it will take a long time

GREAT NEWS :)
[Android Software Development] oscar_pan:
Hi OG

firstly thanks much for the great tools, but today tried again the new version, still not ok for Atrix 2, here forwarding the log files, thank you agian!
[Android Software Development] OGMods:
Please attach Logcat

And to avoid the bug now "@bg_man : Don't choose to make changes in settings menu. After that just use 3 taps on battery icon instead.	"

Coming soon :o

To avoid the bug now

create new dir named "framework" on "(My App Dir)\tools"

create new dir named "code" on "(My App Dir)\tools"

Then start my app
[Android Software Development] ugoff:
I believe my problem with the icon reverting on plugin/unplug of a cable may be related to the use of a CM10 theme. Can this be confirmed? Is there a way to use this mod with the theme?
[Android Software Development] Lucki_X:
If I use your mod I have no battery icon there and 3 taps doesn't work. Now I have no bugs with settings.Here are my logcats.
[Android Software Development] Michael B.N.:
Any news on this one :confused:
[Android Software Development] brolee93:
Great :)
[Android Software Development] oscar_pan:
Hi OG

Thanks for your reply, follow your idea I tried agian, now it's ok to finish the modding process, but after apply to the system, it still setting fc, also there is no battery icons in status bar area, and then i tried again to download the files from phone directly, but still same thing happened, so here upload the files for your ref., please kindly help on this, thank you so much and have a nice day@
[Android Software Development] oscar_pan:
Hi OG

please disregard my message above, when I read the whole history from this thread I found the solution, thank you so much for bring this awesome app to us, Iwill show you some day how many PRC loves your app!
[Android Software Development] Pain-N-Panic:
Will this work on cm7 android 2.3.7?
[Android Software Development] Outta:
Heres my log, whats the deal :(
[Android Software Development] Josehg:
Thanks a lot m8. It works great on my S2 JB 4.1.2.

Great job

Enviado desde mi GT-I9100 usando Forum Runner