yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Mr.Yawnie:
The issue is with apktool.. Unfortunately it does that for some reason with newer bases. Download apk multi tool, decompile the stock systemui, make the + changes in style attributes in those two xml I told you about, and recompile. When it asks you yes or no to a question, select yes. Then go to keep folder, delete resources.arsc, and the two xml 's you changed. Then press any key in the apk multi manager and it will make a "unsignedsystemui.apk". That is actually signed already since you selected the "yes" method to copy over unedited files from stock SystemUI.apk.

So just change the name to SystemUI.apk and run it through OG battery mod exe. :)

So the fix here is to use apk multi tool instead of apktool.
[Android Software Development] Shahzeb5444:
Thanks for your help bro it's working now.

I wanna ask you that if I have to make it for other roms like which is not flashed in my devise

So what resources it needs to work

And where I will have to put these

Because system ui and framework res are not sufficient.

Thanks in advance

DN3 battery mod

http://xdaforums.com/showthread.php?t=2597827
[Android Software Development] medozse7s:
i try to make this mod but gatting error Failed to decompiling SystemUI my logs in Attached Files :( any solution ?
[Android Software Development] eozen81:
For LG G2 D802, it did not work, cannot find related apk's. Logs attached.
[Android Software Development] xXWeresXx:
Great Work :D

Can you say me what change your Tool in SystemUI.apk?

i found in smali the folder ghareeb.

But thats not all :D when you say me what your tool change thats beautiful ;D
[Android Software Development] xxmrgreenxx:
Anybody tried to add OG into 3minit Framework?
[Android Software Development] alvin551:
Why would you need to?
[Android Software Development] IZI.Xav:
Hi all do you think I can test this on the last kitkat 4.4.2 thank you for your response ;)

I tested and does not work.

@ kitkat when a compatibility?

thank you
[Android Software Development] lymbe33:
how can i add my style ?and where i can find batteries styles?
[Android Software Development] Crash:
Any chance to make the mod work on kitkat? Or someone that already make it manually can guide os on how to?

Hugs

Sent from my Xperia Tab Z
[Android Software Development] friedrich420:
+1

Its the one thing that's really missing from the kit kat... :)
[Android Software Development] BoBCatRoM:
+2 ?

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Android Software Development] giew13:
it's work tested on my pocket duos S5302 but i should change the flashable :D

btw how to add more battery icon?

i have adding new battery icon into style folder but isn't work

anyways nice work and keep it up :good:
[Android Software Development] Ricky Divjakovski:
if i knew what files the app modified i could easily port this to kitkat..
[Android Software Development] Crash:
Great if you guide us on how to then a lot of users can share this mod on kitkat

Hugs

Sent from my Xperia Tab Z
[Android Software Development] Mr.Yawnie:
It adds a folder called ghareeb inside smali folder. Also, it changes two smali's but I don't remember which they were.. Those smali's are not in kitkat I think. Not sure as i dont remember the name of the smali. Could have been batterymeterview.smali.

I tried to make it manually the way it works on 4.2.2 and 4.3 but I couldn't get it to work on kitkat, since kitkat doesn't use icons but a program inside systemui that draws the battery icon in real time.

Search all the smali's, the lines in the smali's that og mod changes are batterycontroller lines. So search for batterycontroller and you'll find them. I'm in army without my laptop now so can't help you any further :(
[Android Software Development] Crash:
Yes correct on kitkat thats the file to modified the user [MENTION=921672]xentri[/MENTION]s manage the mod to work on note 3

Sent from my Xperia Tab Z
[Android Software Development] Ricky Divjakovski:
Ill be looking into it on 4.3 to see what gets changed, and ill look into porting it to CM11 as my device only has 4.4 available via AOSP (galaxy S3) then I can look into porting it to TW roms etc..
[Android Software Development] Ricky Divjakovski:
Got it working on CM11 ;) ill explain when I get home!
[Android Software Development] Crash:
Great!!!!

Sent from my Xperia Tab Z
[Android Software Development] fcbkataly56:
help me

i can't add style
[Android Software Development] Ricky Divjakovski:
hey mate, your missing this file stat_sys_battery_charge_anim0.png from New folder
[Android Software Development] _MutantX_:
Thank you for the sharing ;)
[Android Software Development] Ricky Divjakovski:
Ill post a guide for adding it to 4.4.x and up!
[Android Software Development] Benedetto1702:
Hi, can you add guide to the kitkat 4.4.2 with odex roms, and the generated flashable zip folders is different

Regards

Benedetto
[Android Software Development] Hnktc:
[MENTION=4937202]OsamaGhareeb[/MENTION]

i tried your mod with last DDUENA1 (Hurricane rom) but it doesn't work properly.. wesamothman (hurricane rom creator) says it's because of framework and resources not compatible.. can u do something please?
[Android Software Development] Ricky Divjakovski:
He edits smali files in systemUI to point it to his smali files, other then that all there is, is an entry in settings to open his app
[Android Software Development] Hnktc:
Sorry i don't understand :(
[Android Software Development] Ricky Divjakovski:
ill upload some smali files sooon.
[Android Software Development] Ricky Divjakovski:
Heres the files that need to be modified, he replaces some parts with paths to his ghareeb folder and adds 1 some extra smali code, just compare the files and see what he changes, its all i can do until i get home!
[Android Software Development] Benedetto1702:
The same tool version or another version that you intend to release, because with the current version the drop menu only include version till jb 4.2

Thanks for you job

Benedetto
[Android Software Development] Dragon7780:
1. i know its animated but i mean different.. ill send you an xml as example asap

2. (asap) as soon as possible. first have to eat something:)

Ok, so by Settings.apk you mean only to add icon style values to arrays.xml and

OG BatteryMod.apk only place the icons.png and edit public.xml...
[Android Software Development] OGMods:
Re: [Windows][Modding App] OGBatteryMod (2013/03/10)

Yes, you need to add the style name in arrays.xml on Settings.apk file

And icons on OGBatteryMod.apk (no need to change public.xml)
[Android Software Development] Dragon7780:
What about placement of the icon.pngs. can i place them in the xhdpi folder or must it be hdpi folder?

logcat attached (SystemUI crash error) hope you can fix then the mod works flawless
[Android Software Development] OGMods:
Re: [Windows][Modding App] OGBatteryMod (2013/03/10)

I think all folders work..

Attached log doesn't help :(

Try again and give me the log that contains 'StatusBar' or 'ghareeb'
[Android Software Development] Dragon7780:
Sorry for that , fault in batteryTile.smali quicksettings Logcat coming up one moment pls

battery icon is not showed in quicksettings menu!!

Edit: Correct logcat attached (Rename to .txt)

Question:

Ive added and removed icon.pngs from OGBatteryMod.apk and Added lines to Settings.apk arrays.xml. But when trying to open the mod settings chrashes

This is what id did

OGBatteryMod.apk

1. Decompiled OGBatteryMod.apk

2. Added Icons

3. Compiled OGBatteryMod.apk Then decompiled again and edited the R$drawable.smali

4. Complied OGBatteryMod again

Settings.apk

1. Decompiled Settings.apk

2. Added Batterystyles to arrays

3. Compiled Settings apk

then i can enter the mod but the already existed battery styles are showed, then when scrolling down to the new added batterystyles Mod Crashes. i think im missing something for the preview anim of the added battery styles..
[Android Software Development] OGMods:
@Dragon7780

I'll try to fix the problem

and here's the steps to add new style

For example we want to add a new style named "Battery Style 16"

OGBatteryMod.apk

1. Decompile OGBatteryMod.apk

2. Add Icons

(Icons names should be " stat_sys_battery_battery_style_16_* " & " stat_sys_battery_battery_style_16_charge_anim* " for charge icons, Small letters & no space)

3. Compile OGBatteryMod.apk

1. Decompile Settings.apk

2. Add Battery Style name to arrays.xml

<string-array name="BatteryStyles">
<item>Default</item>
<item>Aeon</item>
<item>Android</item>
<item>Broken Circle</item>
<item>Bubble</item>
<item>C</item>
<item>Chrysis</item>
<item>Circle</item>
<item>Froyo</item>
<item>Grey Tiny Circle</item>
<item>ICS Sphere</item>
<item>iPhone</item>
<item>Numas</item>
<item>Sense</item>
<item>Vertical ICS Blue</item>
<item>[B]Battery Style 16[/B]</item>
</string-array>

3. Compile Settings apk
[Android Software Development] Dragon7780:
Ok thnx, but figured it out already:D also need edited the R$drawable.smali when adding icon style to OGBatteryMod.apk;)

Hope you can figure it out the systemui.apk crash now, the problem is i think in quicksettings battertile.smali

Also i attached an xml file for the charge animation how it supposed to be:laugh: hope you can make it like that.. (rename .zip to .xml)
[Android Software Development] OGMods:
I don't use R class so no need to modify it

Try out v1.4.0 and tell me if SystemUI fixed

I'll add new animation in v1.4.1
[Android Software Development] Dragon7780:
Thnx will try if systemui is fixed.

Hope to see v1.4.1 soon for the animation change:D Keep up the good work mate:good:

When you dont add the new battery styles to the R$drawable.smali in OGBatteryMod.apk

settings will FC when choose mod.

Why are the existing battery styles present in R$drawable.smali?

.annotation system Ldalvik/annotation/InnerClass;

accessFlags = 0x19

name = "drawable"

.end annotation

# static fields

.field public static final ic_launcher:I = 0x7f020000

.field public static final stat_sys_battery_aeon:I = 0x7f020001

.field public static final stat_sys_battery_aeon_0:I = 0x7f020002

.field public static final stat_sys_battery_aeon_1:I = 0x7f020003

.field public static final stat_sys_battery_aeon_10:I = 0x7f020004

.field public static final stat_sys_battery_aeon_100:I = 0x7f020005

.field public static final stat_sys_battery_aeon_11:I = 0x7f020006
[Android Software Development] Dragon7780:
Still SystemUI Crash for v1.4.0:(

Logcat attached again. (rename .zip to .txt)

the last piece of the puzzel and then the mod is perfect:good:
[Android Software Development] OGMods:
v1.4.1

Charge animation changed

Add (try..catch) code on my class

I hope SystemUI work now ;)
[Android Software Development] Dragon7780:
Thnx ill try:good:

ill report back in 10 mins:D

Edit:

SystemUI crash fixed

Charge Animation Like how it supposed to be

Nice work

More ideas coming soon, was thinking about signal icon styles:D
[Android Software Development] OGMods:
OGBatteryMod v1.5.0

Click the battery icon (on StatusBar) 3 times to open OGBatteryMod Settings ;)

​
[Android Software Development] OGMods:
OGBatteryMod v1.5.1

Modding Settings.apk works again
[Android Software Development] jav4u:
How to install driver. It still step 1.
[Android Software Development] OGMods:
Re: [Windows][Modding App] OGBatteryMod (2013/03/15)

Did you enabled USB Debugging and plugged your phone to computer?
[Android Software Development] jav4u:
Re: [Windows][Modding App] OGBatteryMod (2013/03/15)

Yes. I used W7 and used XZX rom for Sony xperia S
[Android Software Development] OGMods:
Are you sure that your computer read your phone? :rolleyes:
[Android Software Development] OGMods:
Source Code Updated

OGBatteryMod v1.5.1 - GitHub
​
[Android Software Development] jav4u:
I sure :((

PC no need install any driver ?
[Android Software Development] jcespi2005:
Quick question, option 11 or 12 to compile?

Thanks for the help ;)
[Android Software Development] Mr.Yawnie:
It's the option for system apps, no user apps. I think it was 12? I don't remember and can't check it out now :)

---------- Post added at 07:13 PM ---------- Previous post was at 07:10 PM ----------

Check my post below.
[Android Software Development] jcespi2005:
Sorted out ;) many thanks for the help, you rocks...

Don't know why but APKTools are a little hard

Cheers

Enviado desde mi GT-I9505 mediante Tapatalk
[Android Software Development] khusika:
Anyone can share manual guide ?
[Android Software Development] khusika:
Nevermind,

I tested it in Samsung Galaxy W GT-I8150 with CM9 rom

Thanks Osama :thumbup::D
[Android Software Development] sitifire:
thanks bro...works great on my samsung galaxy mega gtI9152 & Lenovo S880...
[Android Software Development] brandonhatty:
I keep getting the "failed to decompile systemui.apk" error. I am using on a Verizon Galaxy Note 2. But I am running a custom Rom. I don't know if this is for stock roms only?
[Android Software Development] agottschling:
Re: Brandonhatty

No it works for custom roms as my phone worked fine with it when running cyanogenmod. Also it looks like java isn't installed or setup properly so check on that.
[Android Software Development] brandonhatty:
After reading back through some of the pages I think I found my answer. It looks like there isn't support for 4.3 yet. I've been running the new mj9 4.3 Roms. I hope this development continues to 4.3 because it's pretty cool stuff. I had it on my last 4.1 Rom.
[Android Software Development] Mr.Yawnie:
Works well on 4.3. And also 4.4.2 with a couple of manual tweaks.

Seems like you have some kind of Java issues.
[Android Software Development] brolee93:
i don't have succes when i modify smali file in 4.4.2 :/

but i dont have pb with 4.3 files

have you success to put OGbattery in 4.4.2 rom ?
[Android Software Development] Mr.Yawnie:
Yes, I got it to work on echoe rom for S4 and N3. It's implemented on it by stock.
[Android Software Development] Hnktc:
doesn't work on dduena1/xxuena1, but works in older release :)

if someone will fix it for dduena1/xxuena1, i appreciate! :D
[Android Software Development] inaqi69:
Getting error :(

Statusbar disappeared here is logcat !!

View attachment Logcat.txt
[Android Software Development] Mr.Yawnie:
4.4.2 NA1? Yes, I got it to work on S4. Only thing is that I'm in army now and can't really guide you through it now as I dont have time nor my laptop.
[Android Software Development] Hnktc:
4.3 NA1 (note 2) :)
[Android Software Development] mrjoy:
Failed to decompiling systemUI. What is the solution?
[Android Software Development] mrjoy:
these are the log files
[Android Software Development] AxAtAx:
How did you get it to work 4.4.2, I have tried to use the win ogbattery mod to pull from the phone, when it comes up to the settings file, secsettings in not listed. what am I doing wrong?

And the next issue is can't find systemui....can you help?

Thanks
[Android Software Development] Mr.Yawnie:
Systemui is in priv-app. I can guide you through a bit more when I have time. I'm in army now and really busy.. :/ so maybe next weekend when I have 2 days off.

4.4.2 requires several manual tricks and is not achievable with Windows og program.
[Android Software Development] AxAtAx:
Ok no problem..thanks...I understand the files it is looking for are in the priv-app...is there maybe a config file I can edit to reflect the directory change? Hmm weird...thanks again, we will await your arrival....:good::good:
[Android Software Development] xxmrgreenxx:
SystemUI can be found in system/priv-app
[Android Software Development] AxAtAx:
Thanks, I am aware of file locations, I am tring to use the windows OGBatt prog, to pull the files from and compile them, it does not see the files thats all, it is a location thing with in the prog.
[Android Software Development] friedrich420:
If you renamed the priv-app folder to app? And app to app2 just for the purposes of the windows OGbatt program...
[Android Software Development] wertzPH:
is it possible to add more battery icons? how? thanks.

working on 4.2.2, but without the settings>display option. need to double-click battery icon to change styles.
[Android Software Development] Mr.Yawnie:
Really easily with the pc program.
[Android Software Development] RomanosN:
Hi, I have ZTE V975 with Intel x86 cpu,

is it possible to create a flashable zip for Intel cpu?

I dl your programm done the steps but when I try to flash it says CWM Error 255 which means that it's not compatible with Intel cpus.

I also tried to copy the apks to the system/app but it didn't did the trick :(
[Android Software Development] brolee93:
Have one apk stock and one apk mod ? for i compare and make for my sysUI note 2 4.4.2 ? please ?
[Android Software Development] Mr.Yawnie:
I dont have the files handy right now.. Throw [MENTION=4401403]friedrich420[/MENTION] a PM and ask if he could provide you with the OG modded systemui I have done and a stock systemui from same base. It's OK from my side, I just don't have the files on my phone now..
[Android Software Development] friedrich420:
https://mega.co.nz/#!74hD1Krb!iFZyKdBcsQ36z0x9TrbHpJnp9ejJyEQq5V30WLvVpQA

SystemUI S4 NB8 Base OG Modded
[Android Software Development] brolee93:
Ok my bro thanks I wait ;)

---------- Post added at 11:11 PM ---------- Previous post was at 11:10 PM ----------

Ok I see tonight ;) Thanks my bro

Can you up please stock file ? i can after compare two files :) if you want/can. I want understand :D

Thanks very much .

I have make a lot of test but i have fc and i dont know very much 4.4.2 :/

Edit : for juste have OG battery it is necessary modify res/layout/statusbar.xml?
[Android Software Development] Mr.Yawnie:
You have to edit a lot of smali as well.
[Android Software Development] brolee93:
Yes I know for smali but it is also necessary to modify this file(Statusbar. Xml) in addition to smali file (phonestatusbar. Smali etc) ?
[Android Software Development] friedrich420:
Yes you also need to mod statusbar.xml but most work is with the smali's...

I made a guide for myself my man... here you go: https://mega.co.nz/#!nsJzQAaZ!HMnfl9PvDXOJvEsjgncLOnBPtSJWixKfHY-kQ3E66e8

ALL THE CREDITS go to my INCREDIBLE SOLDIER [MENTION=5327466]Mr.Yawnie[/MENTION] !!! :good:

He is the one who figured it out!! I just compared the differences afterwards and made this guide...
[Android Software Development] brolee93:
Ahhhhh

I test with the three Smali to add. I was missing it. I retrieves and I test.

Thanks for your tuto but my error is missing this 3 files i add it and test

hum same bug i have fc .

i have modify adress publi of id"battery" with my values but same pb .

i continue and i see your method/tuto thanks

Edit : Oh is good i have delete one line smali and And it was not lol

---------- Post added at 03:27 PM ---------- Previous post was at 03:14 PM ----------

Ohhh Yeah Big thanks to :

-INCREDIBLE SOLDIER [MENTION=5327466]Mr.Yawnie[/MENTION] !!!

-INCREDIBLE SOLDIER [MENTION=4401403]friedrich420[/MENTION] !!!!

And i have Forget BIG UP TO GHAREEB FOR THIS GREAT MOD

[/SIZE]

You are the best ;)
[Android Software Development] hoaxdream:
how to have ogbatterymod plus moving the gsm signal and wifi to the left? what exact line in status_bar.xml need to edit? here is my xml file http://www.4shared.com/document/GCteS8ygba/status_bar.html tia
[Android Software Development] Crash:
use this xposed module mate with this module automatically moves both signal and wifi to the left

http://xdaforums.com/showthread.php?t=2666827
[Android Software Development] hoaxdream:
thanks mate. but its only for 4.4 and im on 4.3.. :(
[Android Software Development] persano:
i want to remove ogbattery mod. if i make a theme, it is enormus!!!! i want kitkat style
[Android Software Development] Ali-Abdollah:
?!?!?!?

Not working on my HTC Amaze 4G.

I'm running ARHD 4.0.3. I always get "Failed to decompiling SystemUI".

Can anyone help?!
[Android Software Development] woolsley:
hi can you make something for me i am on this rom [ROM][I9300][ALEXNDR] XXUGNB6 JellyBean 4.3 Multi CSC, DEODEXED (Development Base) thnx already :good::good:
[Android Software Development] brolee93:
you can use software ogbattery it is work well with 4.3 :)
[Android Software Development] piyushmehta24:
http://a d f.ly/grYLz guys check out this app made by me! really nice one just remove the space between a d and f
[Android Software Development] SpaceCaker:
[MENTION=4937202]OsamaGhareeb[/MENTION]

I moddified the Default style to match ICS/JB blue batter icon

but this one was pulled from xhdpi device

so why it only puts the new pngs in hdpi and not xhdpi folder of OG battery app ?

is there a way we can select that in the settings or chooser of the modding app ?

but because the pngs are placed in hdpi it wont look properly on xhdpi devices :p like way to big or such.

etc

i know resizing also can be possible :p
[Android Software Development] Mr.Yawnie:
What you should do is decompile the OGbatterymod.apk and then create a new folder called drawable-xhdpi. Move the images you have added from hdpi folder to xhdpi folder. Recompile, sign the apk and voila, you're done! :)
[Android Software Development] SpaceCaker:
thats what i did right now ;)
[Android Software Development] r2dak:
Failed to decompiling systemUI any idea ?
[Android Software Development] xxmrgreenxx:
To many Infos :)
[Android Software Development] htmltiger:
I am having a issue with Samsung Galaxy Young GT-S6310N 4.1.2

"Failed to compiling SystemUI.apk"

Please check the log files with apk and SystemUI folder

Tools.7z

Thanks.
[Android Software Development] Papote3:
How can I make this work with tinted status bar xposed mod
[Android Software Development] Gack69:
Posted in wrong forum by mistake...move along...nothing to see here :)
[Android Software Development] digital.sami:
My systemUI already been modified by "S5 LOOK LIKE QUICK TOGGLES" and "[MOD] S4 FLARE EFFECT FOR GT-I8262" and the respective threads are http://xdaforums.com/showthread.php?t=2708943 and http://xdaforums.com/showthread.php?t=2571216

Just now applying the great "OGBatteryMod v2.1.0" without any hiccups and any trouble.........system is running kool.

Cheers to Osama Ghareeb & many thanks for the mod.
[Android Software Development] JesseAaronSafir:
I would LOVE to see a "Big Blue Type One" MOD included like this one created by pas2001 for 3Minit:

http://www.mediafire.com/download/feyritot2lb8rha/BLUE_BIG_TYPE_ONE.zip
[Android Software Development] Er. Aditya:
how can i add new styles to these batteries ??
[Android Software Development] LEGEND94:
Is OGBatteryMod compatible with Android 4.4.2?

S4 M919 with Insane Kit Kat V7
[Android Software Development] ImEVO:
Yes
[Android Software Development] SandeepEmekar:
Please someone post a detailed guide with smali folder for Galaxy S5.
[Android Software Development] imax1995:
guide for OG battery for galaxy s5 whit root
[Android Software Development] meawww:
Try my guide it might work on S5 http://xdaforums.com/showthread.php?t=2730108
[Android Software Development] SandeepEmekar:
I tried with all possibilities but it didn't work with Galaxy S5. :(
[Android Software Development] meawww:
Send me ur SystemUI.apk if its deodexed ill try to do it but you have to test it i dont own 1 XD
[Android Software Development] SandeepEmekar:
Sorry,

You have to deodex it as I have uploaded the SystemUI.odex file along with it.

http://xdaforums.com/showpost.php?p=52181571&postcount=2

Thank you!:)
[Android Software Development] meawww:
Can u provide me a deodexed apk ?
[Android Software Development] SandeepEmekar:
Here,

It is!

Used Universal Deodexer V4.
[Android Software Development] bugggmenot:
anybody used this tool to Mod Xperia M Dual with android 4.3 ? i couldnt make it work, as it always shows fully charged battery icon, even if its not full charged !!
[Android Software Development] bamse84:
Mare here i have my s5 SystemUi.apk and it's deodex.. https://mega.co.nz/#!nEIEGK7L!ruaUhtU3NBvxgukprLcA-xiaoMWJBchG8KbOOx8dQc4 would you be kind and add this awesome mod to it?????
[Android Software Development] meawww:
Already made it yesterday for [MENTION=4286479]SandeepEmekar[/MENTION] s5 here's the link https://mega.co.nz/#!6MtHiRTa!rELhwO4Qlayc8uOA2To-5kauvvv4ZY2j375lYlHSkxA deodexed