yashsingh1/xdaforums huggingface dataset:
[Android Software Development] bamse84:
I've tried it my friend but i got fc...?..i don't know what i am doing wrong..
[Android Software Development] meawww:
Have you added the apk of the battery?
[Android Software Development] bamse84:
Yes..i already have og mod but with original system UI..i wanted to have with the s5 system because it looks much better..
[Android Software Development] meawww:
Ok i eat dinner first then ill do it for you from the systemui u sent me
[Android Software Development] bamse84:
Thank you..and enjoy your dinner. .
[Android Software Development] meawww:
Sent you the link in pm let me know if it works
[Android Software Development] bamse84:
OMG..It's WORKING..you made my day..I've sent you a beer from Sweden. .thank you
[Android Software Development] meawww:
Glad it worked :P and ty for the beer ahahaha
[Android Software Development] filipelima27:
Man! Help-me pls?

How can i get a IMAGE BATTERY on my galaxy s4? Work with omega v28 xxufnc9 4.4.2 kitkat and xposed framework. Can you help-me?
[Android Software Development] meawww:
Upload the systemui and framework-res and pm me the link
[Android Software Development] filipelima27:
I PM the link for you man!

Thanks for your effort!
[Android Software Development] kermage:
Great App! :good:
[Android Software Development] dannieboiz:
I searched through the thread but didn't find a solution those with problems with SystemUI.apk not found. I'm getting the same error and very similar logs with my Note 3 on 4.4.2
[Android Software Development] Mr.Yawnie:
You need to manually mod the 4.4.2 systemui to support og mod. It works in a different way with kitkat..

Ohh and the reason why the SystemUI.apk is not found is that it's not in system/app anymore, it's in system/priv-app
[Android Software Development] Josiah_07:
Recompiling Fail.. :( I attach the Log.txt below.. Please help me :(
[Android Software Development] Mr.Yawnie:
Download apk multi tool and follow these instructions of mine. So first take the SystemUI.apk, decompile it and make the changes I told you. Then recompile it. After that you can mod the SystemUI.apk with og battery mod exe. :)
[Android Software Development] EwOkie:
Can someone please check this as I i keep getting an error, this is my systemui file : FILE from the Rom

Its for a Samsung Galaxy S 4 mini GT-i9195 to try and get this mod working

Thanks, if you could help
[Android Software Development] mannyvinny:
Whar error you are getting? Paste the error log here.

Sent from my PowerBoxed Note II
[Android Software Development] Sebase:
Hi all,

I am having some trouble with the setting Default > No Charger Animation on my S5.

I know this is the same as stock, and because of that there is no need for me to even use this mod.

But it is included in Omega Rom, and removing the mod also removes the battery icon completely.

The problem is as follows:

- When I reboot, with a charger connected, no battery icon is shown, untill I disconnect the charger.

- After a reboot, with no charger connected, the icon is visible, but does not change when connecting a charger.

- For some strange reason it sometimes starts working after the device is on for a while.

I have also posted this issue in the Omega Thread http://xdaforums.com/showpost.php?p=52607000&postcount=923.

But perhaps someone in here can also check and confirm if this is the case for other Galaxy S5 devices/roms.

Phone: Samsung Galaxy S5

Model: SM-G900F

Recovery: TWRP 2.7.0.0

ROM: Omega v3.0
[Android Software Development] Sk.D:
Could you please explain , how to mod with kitkat?
[Android Software Development] EwOkie:
Still cant get it to work :confused:

This is the LOG HERE

Framework

SystemUI

For : S4 Mini GT-i9195 (4.2.2 Rom)
[Android Software Development] Mr.Yawnie:
Here's a great guide/notes from my good friend [MENTION=4401403]friedrich420[/MENTION] on how to make it work with kitkat. I was too lazy to make those notes myself :) Hope it helps.

And here's the files you need https://www.dropbox.com/s/44wqavn0h3rdyph/og files kitkat.rar
[Android Software Development] ladislav.heller:
I have problems with modding on Samsung Galaxy S4 mini LTE (GT-I9195).

Problem is @ compiling of systemui.apk file.

Screenshot and log attached.
[Android Software Development] Mr.Yawnie:
Gasp.... This is the SAME ERROR I have given answers for TENS OF TIMES within the last 6+ months... Just read the thread, search for my comments and find the solution.

It's two xml files that you need to edit, with style attributes in them.

Which two xml's you ask? Just read your log, go to half way down or so and there will be your errors with style attributes. Just open the xml's it says, and add "+" in front of the "style" texts. So change from "@style" to "@+style"
[Android Software Development] ladislav.heller:
OK, I fixed the style attributes, but how to tell to the tool, that it should take the fixed files?

Edit: OK, now I see. I should use APK multi tool.
[Android Software Development] Mr.Yawnie:
Yes, decompile the SystemUI.apk with apk multi tool, change the style tags as I told you and then recompile. Then mod the new systemui.Apk with the og mod installer.
[Android Software Development] ladislav.heller:
Yeah, your method worked well, and finally the OG mod istaller was able to process Systemui.apk but unfortunately on my phone the APK caused FC after install/restart :(
[Android Software Development] Mr.Yawnie:
When recompiling, did you press yes or no when asked if you want to carry over the unchanged files from the original systemui.Apk? Because you need to press yes, then is asks you to delete changed files from keep folder, so go to keep folder and delete those two xml's from there. Then press any button and it'll finish the new SystemUI.apk for you with the original signatures (important!!).

Then try the systemui and see if it works. If it does, you can og mod it and it should work. What fw are you using? 4.2.2, 4.3?
[Android Software Development] ladislav.heller:
Which option should I use in APK multi tool?

11 Compile System APK files

or

12 Compile Non-System APK Files

My firmware is deodexed stock 4.2.2
[Android Software Development] Mr.Yawnie:
11 since systemui is system app.
[Android Software Development] ladislav.heller:
OK, but this produces a "unsignedSystemUI.apk" file in the "place-apk-here-for-modding" folder. So what is next?

13 Sign apk

?

Edit: Meanwile I tried [13 Sign apk], and pushed the result APK to my phone. It causes FC :(
[Android Software Development] Mr.Yawnie:
It's already signed, although the name is unsignedSystemUI.apk. When you used the 11th option and chose yes, it actually copied everything from the original apk except for the files you deleted from the keep folder, which should have been the two xml's you edited. So the apk has preserved it's old signature (which is essential on system apps, to keep the exact same signature and not sign it yourself!)

So just change the name to SystemUI.apk and try if it works on your phone. If no FC, then og mod it and it will work.
[Android Software Development] ladislav.heller:
Many thanks for useful informations! Now it works, including the OGBatteryMod!

I think the APK multi tool messages are a little bit misleading :)
[Android Software Development] Mr.Yawnie:
No problem, my pleasure! :)
[Android Software Development] Aronuser:
AWESOME! :good::good::good::good::good::good::good::good:
[Android Software Development] Aronuser:
Please make a flashable zip for aosp kitkat roms :(

And for samsung stock kitkat would be cool too
[Android Software Development] Gunthermic:
What am I missing? Where is the guide?

I see you meantion him and link to soem fiels, but no guide link?

Edit: a Doh moment!! I see it now. LOL
[Android Software Development] danivancouver:
Hello, I'm trying to adapt the OG but I g2 lg FC Sytemui, you can help me?

This link tenesi the Sytemui and decompilada sectinng.

greeting

http://lolabits.es/pavijomar/kitchen
[Android Software Development] gcrutchr:
[MENTION=4937202]OsamaGhareeb[/MENTION]

Works great on my Galaxy Note 10.1 (2014) KitKat ROM. Thanks.
[Android Software Development] zyasin:
is it workable on Imperium V5.0 Rom?
[Android Software Development] burnout:
Hi,

thanks a lot for that mod. Works perfectly.

Could it be possible to disable this : "Click the battery icon 3 times to open OGBatteryMod Settings " cause the notification bar doesn't open from the top right as the clock's waiting 3 click for OGB...
[Android Software Development] edzamber:
[MENTION=4937202]OsamaGhareeb[/MENTION],

Thanks for this great Mod.

Do you know how to do this :

I would like to implant my battery icônes into OGBattery.apk in res/xhdpi folder with Vrtheme. But it doesn't works because my Style battery mod isn't appears into Style.

How can i add name into OGBattery.apk to select my battery Style ? I have decompile OGBattery.apk but i don't find xml or Smali to add it...

Posté via Pyrana v39 by Alan-B

http://xdaforums.com/showthread.php?p=50627772
[Android Software Development] xxperrin:
Galaxy Note 3

Is there anyway to install this on a rooted Galaxy Note 3?

Thanks!
[Android Software Development] gcrutchr:
I think you need to add it to arrays. Not at home so do not remember where I added it. /res/values/arrays.xml (I think).
[Android Software Development] kingdj:
is there any way to remove this mod from my system ui?????
[Android Software Development] gcrutchr:
Not without getting into the smali code.

If you know about modifying smali code, I can tell you where to remove the

OGBattery mod changes.

What phone/tablet are you using?
[Android Software Development] edzamber:
Great, its works :)

Just one question :

How to have a battery selected by default after first reboot ? Because i must open OGBattery.apk to select one battery type. Without this, no battery icon in statutbar. Next reboots, no issue, my battery is select.

I think its into on xml to firce a select battery by default but witch one ?

Posté via Pyrana v39 by Alan-B

http://xdaforums.com/showthread.php?p=50627772
[Android Software Development] gcrutchr:
Without getting into the smali code, the easiest way is to label a set of batteries: stat_sys_battery_default_0 to stat_sys_battery_default_100.

The program is using the default style upon initial start of the mod. So whatever battery icon is named as stat_sys_battery_default_* is used as the default battery icon. I saw something in the smali code where '5' was used, which is the 5th entry in the list, named 'Default' but did not look any further.

Hope this helps.
[Android Software Development] edzamber:
Thanks for your reply :)

I already have stat_sys_battery_default_0.png to 100% but no luck, no icon at initial start. I must open OGBattery.apk to choose one battery, then its ok.

Do you know what Smali file configure default icon at initial start ? I don't think its on xml...

Posté via Pyrana v39 by Alan-B

http://xdaforums.com/showthread.php?p=50627772
[Android Software Development] kingdj:
SAMSUNG S3 GT I9300 CUSTOM ROM IMPERIUM V26,4,3

SURE TELL ME HOW BRO

THANK YOU ANYWAY

:good::good::good::good:
[Android Software Development] gcrutchr:
OK. This link is to mod KitKat, but if you do the reverse (undo) the changes made, hopefully it should work. Just look at the code that is being changed and replace your modded code with the with the original code shown.

OGBatteryMod

Good luck.

Note: I have not done this mod on my I9300, only my Note 3 and Note 10.1
[Android Software Development] gcrutchr:
From what I could see, the OGBatteryMod uses a sql database to store the info about which battery to use. When you first install a new ROM the database does not exist and I believe it is created empty. When you select a battery icon, it then write this information to the database.

I guess if you include this database in your ROM it will already have the icon you want at startup. The database is in /data/data/com.ghareeb.battery. It is called lib.

Hope this helps.
[Android Software Development] edzamber:
Thanks a lot but lib file is empty, even if i select an icon in OGBattery.apk and reboot...

Posté via Pyrana v39 by Alan-B

http://xdaforums.com/showthread.php?p=50627772
[Android Software Development] :
How to install?

I'm on Windows 8.1.

Do I only have to install the EXE file here in the 2nd post or are there other tools also necessary?

Will try to get a working SystemUI from ARHD v31 ROM Note2.

Thanks in advance for your help.
[Android Software Development] Son Rise:
Is there a zip flashable?
[Android Software Development] jaguaralani:
Editing OGBatteryMOD.apk File

Hi there,

I am running this MOD on KitKat 4.4.2 ( got the instructions from another thread ), I would only like to edit the file OGBatteryMOD.apk to add/remove styles using windows PC, since I cant use the full functionality of the windows application to add/remove styles on kitkat.

Thanks.
[Android Software Development] Myth2014:
Failed to ZipAligning : OK

Did you want to add 'Battery Style' option in 'Setting>>Display' ? : Yes

how to do ？:(
[Android Software Development] Myth2014:
...add styles is error
[Android Software Development] andy442:
Help Installing on Tab 3 7

Been trying to install this on a Tab 3 7, but am having no luck. I get an error message that says "failed to compile system.ui". Here's a log cat. Any help would be appreciated!
[Android Software Development] ladislav.heller:
Android 4.4 KitKat, SDK version 19 will be supported by this mod/tool in the future?
[Android Software Development] Mr.Yawnie:
You can mod kitkat systemui manually to support this mod. The windows app will most likely not get updated..
[Android Software Development] ladislav.heller:
Already tried. Everything worked well including unpack, modify, repack, etc.

But unfortunately after flash via CWM and reboot the battery icon did not appear on statusbar. No errors, no messages.
[Android Software Development] Mr.Yawnie:
It's a different process in kitkat that you need to do since kitkat draws the battery icon in real time instead of uses images. So you need to change the way how systemui handles battery icon in smali first, and then mod the OG batt mod. So it doesn't work the same way as how the windows application mods it on 4.2.2
[Android Software Development] ladislav.heller:
Great. But where and what to change in smali code to get the things working? :)
[Android Software Development] Mr.Yawnie:
I have given the instructions here several times with [MENTION=4401403]friedrich420[/MENTION] and so you can find them from this thread. Not sure how many pages back. Shouldn't be more than 5 pages back though. And also there's other instructions as well on how to revert 4.4 battery icon to old image icons. Use search.. I can't do it for you right now as I'm only using my phone and I'm busy.
[Android Software Development] zenki1:
i cannot do it on my HTC first :(, rooted- S-off , bootloader unlocked :(
[Android Software Development] Razor64:
Genius

Thanks mate! You're a genius.

Just when I said that, i ran into a problem. The device is being detected by windows as an MTP device but the USB debugging mode is not being detected by Windows now. Please help.

My Device: GT-S7562. Updated the drivers to latest but no luck.
[Android Software Development] ammar1514:
this is an alternative to the OGmod that is being actively developed and maintained

http://xdaforums.com/showthread.php?t=2799958
[Android Software Development] sohailrabani:
it works like charm nooo problemo at all on ics and jb as well very very very nice app thanks to osama
[Android Software Development] clfdhq:
hi, i very like your app, but..

hi, it my phone is miss take, it can`t not USB debugging, i know your app need framework-res and SystemUI, can u make app use file , not use USB debugging, thank u very much :o
[Android Software Development] princemouli:
not working for me ( getting force close ), iam running Celkon A97i Device ( android 4.0 , mt6575 )

can u please give a manual guide to do this...

if u want here is my framework-res.apk , setting.apk , systemui.apk
[Android Software Development] rifanp:
xperia Z

is it available for xperia z ??
[Android Software Development] geniusrehan:
Can someone please share flashable zip for non rooted note 4 (N910C)? Is it possible?
[Android Software Development] frost245:
Can you add kitkat 4.4.2 support? Pls i tried this on my Core, pretty awesome..
[Android Software Development] UzUmAKI_NaRuTo1:
only the problem is smali files !!!! the smali its using are apktool 1.5.2 compatible ... and not 2.x.x compatible..... so i cant recompile the sys ui... now !!

i can make those 2.x compatible but i dnt knw where these smais are saved...!! cant see those in tools...!! please tell me where do i replace those smalis ?

thanks
[Android Software Development] DonAndress:
Guys, anything like that available for Lollipop 5.1.1?

I really miss blue battery from KitKat...
[Android Software Development] » Arrow «:
Try 3minit battery, works fine on lollipop roms

Regards.
[Android Software Development] :
im just wondering on who made these battery icons
[Android Software Development] OGMods:
It need .Net Framewprk4 only

I'll add option to mod an existing Settings.apk & SystemUI.apk as soon as possible
[Android Software Development] Dragon7780:
Also for the mod change quick settings battery icon to
[Android Software Development] jav4u:
Wait new version support it
[Android Software Development] santod040:
Great idea and application!

Thank you for your efforts.

Unfortunately it does not like my device.

I know it was intended for Samsung devices originally, so I didn't quite expect it would work.

The reason it failed though, was due to my com.htc.resources.apk being incompatible with the supplied apktool.

If I get time later, I may try again, after swapping out the .jar in the mod .zip.

Maybe this is something you may be able to work in compatibility for in the future?

Here is the LOG from my initial attempt with the supplied files.

Thanks again for your efforts and for any insight or improvements you may have to offer, regarding HTC device compatibility.
[Android Software Development] OGMods:
@santod040

There are no errors when installing com.htc.resources :rolleyes: so try again

And the steps not completed...

Did you see any messages from my app like 'Failed to download files'?
[Android Software Development] santod040:
There was an error about too many bytes in some files in com.htc.resources the app told me.

I will run it again and post back the exact error message.

It was a resource error if I recall.

Thank you for your prompt response. :)

I believe it had to do with this section of the log:

W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR15
[Android Software Development] OGMods:
@jav4u

Here is it :

OGBatteryMod v1.5.5

-Add option to mod an existing files
[Android Software Development] DSA:
works perfect in a stock galaxy s3 rom

i would love it if you could remove the iphone & sense ones and replace them with other aosp versions
[Android Software Development] AF_624:
I mate

It doesn't work on my SonyEricsson Xperia NeoV with PAC Rom (CM10 based)

Here is my system ui and settings apk

https://www.box.com/s/nalwwf6pysse5ha0gvdf

Respect,

André Ferreira
[Android Software Development] oscar_pan:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/16/03)

It's work fine with my atrix2 in stock jellybean 4.1.2. Thx brother.
[Android Software Development] Dr01nE:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/16/03)

You can actually add or replace all the styles yourself. Not all people think the way you do. Also, you create a unique mod to integrate in your rom.
[Android Software Development] OGMods:
Can you tell me what the problem exactly?

If the files modded successful... can you give me your Logcat?

(After Force Close dialog appears use this command ( adb logcat -d > Logcat.txt ) )
[Android Software Development] AF_624:
Everything went fine with 1.3.0 utill it reeboots and system ui force close.

I will try to get the logcat and i will post it here...

Thanks.. :good:
[Android Software Development] XivilidMohamed:
I'm get FC when open Battery Style in Settings:(
[Android Software Development] OGMods:
Try to click battery icon 3 times

If nothing happens or you get FC.. maybe you don't installed OGBatteryMod.apk correctly
[Android Software Development] XivilidMohamed:
My statusbar not show battery icon, just network icon and clock:rolleyes:

I try install OGBatteryMod.apk but it show "Parse error______________There is a problem parsing the package"
[Android Software Development] OGMods:
Download this version of OGBatteryMod, then copy it to system/app
[Android Software Development] jordanchow725:
why my razr 4.12 cant use it
[Android Software Development] Dr01nE:
Re: [Modding App][Android 4.*] OGBatteryMod (2013/16/03)

Wait for the OP to make it compatible. So far the list of compatible devices are in the first post.

Oops, my bad. I thought there was a list. But just wait until the OP makes the source code usable. In the meantime, prepare your system files as one package. The systemui, settings, and I think the motorola framework.
[Android Software Development] hanonongia:
Is it compatible with any devices?
[Android Software Development] Grondinm:
Trying to get this working on my xiaomi Mi2. The app downloads all the files and get to Doedexing step but then it just crashes. See log and screen shot below

http://pastebin.com/YdsWczzT

http://imgur.com/mKjRiIv

I do have latest MIUI version 3.3.15.

Anything you need let me know.(If your even interested in supporting this device)

EDIT: Hope you see this. Forgot to say that this log is from when i said no to adding the option in settings as i figured the MIUI settings.apk might have been 2 different and so causing the crash....
[Android Software Development] paarthdesai:
not working..the app just crashes

if ur going to say i dont have .net see urself mate :)

htc one v- slim bean 4.1.2

windows 8
[Android Software Development] saphirrot:
failed to restart phone and to copy files to sdcard
[Android Software Development] karankumar:
Will this work for the latest paranoid android. Im using a GNex
[Android Software Development] moparfreak426:
c, android, and chrysis are awesome!!!! cant wait to try out
[Android Software Development] Matada02:
Nice app, thanks! :)
[Android Software Development] Mayday_XL:
Thanks.
[Android Software Development] aryan1312:
Not working with samsung Galaxy S2 I9100

says Unable to decompile

I am Using Slimbean 4.2.2 Build 2.1

Setting.apk and systemUI.apk attached