yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] zdnko:
I have the same problem on my atrix, so I do first Regular Charge to set Full Charge, then change Full Charge to set Regular Charge. :confused:

bye

App Version v1.8 - Bar Version v6.0

Atrix Gingerbread 2.3.4 - System version 45.31.0.MB860.TIM.en.IT
[Android Software/Hacking General [Developers Only]] pvyParts:
Grab the latest version.

Pvy

Sent from my TEAM powered Arc S
[Android Software/Hacking General [Developers Only]] buckmarble:
Just added this to my rom for the D3(maverick rom). One bug I found is the bar size change is not working. I used the line in the v2 files status bar xml which defined the size as 1.0px. Could this be causing a conflict with v5 app to allow size changes? Used v5 smali.

EDIT: my bad. Just read the OP again. Saw you changed that to "wrap content"
[Android Software/Hacking General [Developers Only]] pvyParts:
haha ok just as i was replying noiticed you had edited it :)
[Android Software/Hacking General [Developers Only]] buckmarble:
One thing I would add to this is a refresh trigger for the sysui(or wherever its needed) after you make a change in the settings. Also an option to center the bar.
[Android Software/Hacking General [Developers Only]] pvyParts:
the bar does watch the settings and updates as soon as it can after a change using settings listeners.

center is a WIP. animations go all wonky :P so i am working on it when i can

Pvy.
[Android Software/Hacking General [Developers Only]] buckmarble:
You've done an awesome job on this mod and presenting it to the public. The instructions are very clear and easy to follow, even for the newbies. Keep up the great work and thank you for publishing this for people to use! I will surely give credit where credit is due! Again thank you for generosity!
[Android Software/Hacking General [Developers Only]] ppalbicke:
Works great. Any update on the battery toggle? Otherwise this is solid thanks.

Sent from an Emancipated Infuse bleeding Orange
[Android Software/Hacking General [Developers Only]] supetawesomedude:
Jealous...

Hey all,

this worked FLAWLESSLY. So big thanks to the genius who came up with this!

But now, I'm a little jealous of this:

As you can see, Taine0's battery bar is UNDER the statusbar. I think this looks really nice and I was wondering if there was any way to do it? He's on CM7 I believe (I am too). Thanks in advance!
[Android Software/Hacking General [Developers Only]] Brent212:
I'm running a stock ROM (on a Samsung Epic 4G Touch), so my SystemUI.apk doesn't have a classes.dex. Instead, there is also a SystemUI.odex under /system/app. I'm trying to follow the directions in the 2nd post here to remove the battery icon, tweaking it slightly based on this difference.

Using Android Commander, I copy /system/app/SystemUI.odex and SystemUI.apk to my computer. I also copy /system/framework (the entire folder).

From the location containing the framework folder and the SystemUI files, I run "java -jar baksmali.jar --api-level 13 -d framework -x SystemUI.odex". This creates an "out" folder (I think that's the name), with the com/android/systemui folders and the code.

I changed the StatusBarPolicy.smali as described in the 2nd post.

I then rename SystemUI.odex to SystemUI.old.odex and run "java -jar smali.jar out/ -o SystemUI.odex". This creates a new SystemUI.odex that, as far as I can tell, should have the updated code in it.

Using Android Commander, I copy the new SystemUI.odex to /system/app on my phone, change the permissions to 644, and reboot the phone.

Is there any reason this shouldn't work? When I tried it, the status bar completely disappeared, but I think one error I made was using "out/com/" in the smali command rather than just "out/", so I'm hoping that was the problem. I'm going to retry tonight.

I don't understand why /res/layouts/status_bar.xml in SystemUI.apk is replaced in the instructions in the 2nd post. It doesn't appear to have been modified, but I suspect I'm missing something and this might not be as simple as I'm hoping.
[Android Software/Hacking General [Developers Only]] pvyParts:
Easily done if you want it permanent just add a android:layout_gravity="bottom" to the batterybar in the statusbar.xml

i have not had alot of time to program lately, but i plan to add the option in.

I have never worked with odexed roms, i have always done a full deodex first

so i cant be much help process wise.

but with the icon hide tut, you dont need to copy the xml i just copy pasted the process from the OP. :P have removed it thanks for the heads up.

Pvy.
[Android Software/Hacking General [Developers Only]] supetawesomedude:
Thank you this worked flawlessly!!!
[Android Software/Hacking General [Developers Only]] pvyParts:
great thx for letting me know! i'll program the option in as soon as i get a moment of free time :D

Pvy.
[Android Software/Hacking General [Developers Only]] drgekkoo:
found the problem i got. it was due to my 9 patch background of the statusbar. gonna fix my 9 patch.
[Android Software/Hacking General [Developers Only]] grayn0de:
Awesome! You should put that in the OP. :)
[Android Software/Hacking General [Developers Only]] xm41907:
I'm trying to add this to a custom HC ROM I'm creating for the Toshiba Thrive but the basic instructions don't work. The file system is not the same when I decompile systemui. There is no smali folder and I can't find "com.android.systemui.statusbar.DateView" in any of the statusbar xml's. Could you help please??
[Android Software/Hacking General [Developers Only]] PsyberS:
Hide with statusbar not working

I have the Battery Bar Pro, latest version from the Play market (v2.0).

I have the option checked to hide the battery bar when the statusbar is hidden (for full screen apps). I am fairly certain this worked a week or two ago when I first upgraded to the Pro version.

However this no longer works. No matter what I do with that option (checked or unchecked) the bar always shows when the statusbar hides.

Phone: Motorola Triumph

Android: 4.0.4 / CM9 alpha 0.6.11.0

Battery Bar Pro version: 2.0

Edit: not sure if this helps or not, but I have the Height set to 2. If I rotate the phone in a fullscreen game, I noticed the bar height changes to 1! Sure enough, if I use 1 as my height then when the phone is rotated it hides the bar properly. It still won't hide in portrait mode though.
[Android Software/Hacking General [Developers Only]] pvyParts:
are you running both versions at the same time ? did you uninstall the free one.

also i moved it to it's own thread shoulda put a link in op

http://xdaforums.com/showthread.php?t=1568318

Pvy.
[Android Software/Hacking General [Developers Only]] motcher41:
pvy, I know you're always looking for ideas for options to add. Thanks for the full coloring by the way. I notice a few custom rom ds have the battery bar option like miui. What I thought was pretty cool on 1 of omens were with centered but mirrored out both directions. When the left n right sides mirror back to the center of the bar your at 0 percent they grow out until they are at 100% then you have a solid line. Just a thought your application works better than most battery bars any day

Sent from my Galaxy Nexus using Xparent Blue Tapatalk 2
[Android Software/Hacking General [Developers Only]] shoman94:
How about updating the mod version for TouchWiz ICS?
[Android Software/Hacking General [Developers Only]] jadeboy7:
Was this changed from the previous version? Mine only updates now when I rotate the screen or something like that. Even pulling it down doesn't work.
[Android Software/Hacking General [Developers Only]] pvyParts:
nope i am rewriting it for my ROM Atm maybe i induced a bug at somepoint, it works for me tho. i will check it :D and report back :)

Pvy.
[Android Software/Hacking General [Developers Only]] jadeboy7:
Ok, I'll check back. If you need more information about the ROM, etc. that I am using, it should all be in my sig. If you need more than that, just ask.
[Android Software/Hacking General [Developers Only]] xm41907:
I'd love to integrate this into my Honeycomb ROM for the Toshiba Thrive, but the file system isn't the same and I've not figured it out. If I sent you the systemui.apk could you take a look at it and see if you can help??
[Android Software/Hacking General [Developers Only]] pvyParts:
Yeah mate sure.

Pvy
[Android Software/Hacking General [Developers Only]] shoman94:
Still looking for some I sight on addi g this to sgs2 ics. The status bar is a different location..... mainly named different but there is a difference. Can you add support for this please? I asked you already once. At least a reply would be nice.
[Android Software/Hacking General [Developers Only]] shinji257:
Same here. I tried to do it as well and I just ended up with the status bar missing and had to restore my backup copy. Any help would be appreciated.

AT&T Galaxy S2
[Android Software/Hacking General [Developers Only]] RogueCoyote:
I noticed the app version has an option to show the battery bar when the status bar is hidden. How can this be implemented on the MOD version? thanks
[Android Software/Hacking General [Developers Only]] pvyParts:
It cannot be done. Sry. Mod version is part of the statusbar.

Pvy
[Android Software/Hacking General [Developers Only]] RogueCoyote:
Got it. That makes sense. Thanks for the quick reply!
[Android Software/Hacking General [Developers Only]] grayn0de:
Anyone run into and/or know how to fix the 1% battery notification when the battery level is less than 15%? Pvy said (in a PM) that it had something to do with the way I was hiding the stock battery icon, but I've never successfully figured this out. Issue is indeed resolved by unhiding the icon. :confused:

This has been a minor, but long-standing bug in my ROM. :(
[Android Software/Hacking General [Developers Only]] pvyParts:
Sorry dude I completely forgot. Can you send me the smali file that has the hide code in it and ill compare it to my fix to see if it can work too.

Pvy

Sent from my TEAM Powered Arc S
[Android Software/Hacking General [Developers Only]] hlxanthus:
This works for the LG Optimus S, thought you might like to know. I would like to include this mod within a future release of my rom (currently release, just looking for more goodies for it LOL), but is there a way to modify to be active by default so on the user end it doesnt have to be activated to work? I must say, I am impressed with this, works flawlessly. A nice addition to the settings apk would be to have the option for a centered battery bar, and maybe move to the bottom of the status bar. Just a thought.

Edit: saw these features had been mentioned already, so no biggie
[Android Software/Hacking General [Developers Only]] grayn0de:
Thanks, Pvy! Sent you a PM with download link.
[Android Software/Hacking General [Developers Only]] hlxanthus:
Well, I have released this in my rom. I rethemed my framework-res.apk from the standard uot theme I had to change the battery to show just the numerical percentage. Everyone, feel free to make use of the images from the apk if you want, though I doubt the apk itself would work for you. Thanks pvy !! If you are interested in checking out my rom just follow the link for the apk and go back to the first page!

http://forums.androidcentral.com/showthread.php?p=1795413 - themed framework-res.apk
[Android Software/Hacking General [Developers Only]] Ticklefish:
Very nice! Is it possible I could use those in a command-line tool I'm working on? Fully credited, of course.

I tried to do something similar but my artistic skills are...not so good! :)

Sent from my U20i, SK17i, GT-P1010 or something else entirely.
[Android Software/Hacking General [Developers Only]] hlxanthus:
Use as you like!
[Android Software/Hacking General [Developers Only]] Ticklefish:
Thanks, I will! :D

I've got this on my phone and it looks so much nicer than the numerical battery icon I made...sigh..lol
[Android Software/Hacking General [Developers Only]] MatZ69:
Hey, i do like the tutorial said, with the 5v files and V5.apk and the carge animation simple doesnt work...

The bar only increases with the charging level but not animated...

Can someone help me?

Thanks
[Android Software/Hacking General [Developers Only]] Martin87:
hey there...

is there a possibility to hide this batterybar in widgetlocker????
[Android Software/Hacking General [Developers Only]] bigfau:
I get nothing at all on Galaxy Note I717. I only have a FC when I use Battery Bar Settings v4. On v5 settings do not stick.
[Android Software/Hacking General [Developers Only]] t0mas_:
try switching animation off, plug to charger, unplug, turn on, plug in again. worked for me...
[Android Software/Hacking General [Developers Only]] Arbybear:
Hey, I found a bug on my Droid x2 cm7. Sometimes, when the battery bar is at its normal color, it switches to the charging color.
[Android Software/Hacking General [Developers Only]] psychEinside:
my status bar does not back.how long it will take?
[Android Software/Hacking General [Developers Only]] Metallan:
ok, so I checked a few pages at the beginning and the end and didn't see anyone else reporting this, but the "hide while in fullscreen" option isn't working for me on ICS. Neither on my SGS2 nor my Note.

Could this be something related to Touchwiz UI or ICS? It worked just fine when I had both devices with GB, but it stopped working after updating to ICS:

EDIT: I'm using the market version. The app link brought me here, but if there's another place I should be reporting this, please let me know.
[Android Software/Hacking General [Developers Only]] pvyParts:
Here is great i am offshore with work will fix it when i get home. prob 4 or 5 days...

Pvy.
[Android Software/Hacking General [Developers Only]] MatZ69:
Thanks it worked :)
[Android Software/Hacking General [Developers Only]] motcher41:
Pvy, I was using the battery bar on my nexus somehow I managed to delete the app and now market says my nexus isn't compatible. Can o get a free version apk to download?
[Android Software/Hacking General [Developers Only]] pvyParts:
http://xdaforums.com/showthread.php?t=1568318

Here ya go mate.

what config you have on ya phone i want to fix the market.

Pvy.
[Android Software/Hacking General [Developers Only]] motcher41:
Galaxy nexus what do you need?
[Android Software/Hacking General [Developers Only]] pvyParts:
android version, and rom/kernel if not stock :) should suffice.

Pvy.
[Android Software/Hacking General [Developers Only]] motcher41:
how is this?
[Android Software/Hacking General [Developers Only]] pvyParts:
perfect thanks i'll see whats going on.

Pvy.
[Android Software/Hacking General [Developers Only]] motcher41:
No thank you. I had no luck finding it in a search on play store...either one. Found it by going to your website. I'll buy the donate if you get it working for me.
[Android Software/Hacking General [Developers Only]] motcher41:
Pro still comes up not for nexus. Got a donate link I'll just donate if it doesn't have any extras
[Android Software/Hacking General [Developers Only]] greekunit690:
Is there anyway to make it center alligned? And have it diminish from both sides evenly as in AOKP. Thanks!
[Android Software/Hacking General [Developers Only]] FlemishDroid:
Nice
[Android Software/Hacking General [Developers Only]] jamieg71:
Thanks for this.
[Android Software/Hacking General [Developers Only]] RogueCoyote:
Anyway of putting the bar at the bottom of the status bar using the market version? TIA!
[Android Software/Hacking General [Developers Only]] muntahar:
thanks .....all work on my device.....:good::good::good:
[Android Software/Hacking General [Developers Only]] MatZ69:
This works very well, but i'm a little problem, i want to hide the modsettingsv5.apk form the launcher so a decopiled it and change what is to change, but when i put in my rom, and ai do a clean install it gets FC. But if i only use it from throw a patch it works... I downt know any idea what is wrong. Can you help me?

Anyway great job ;)
[Android Software/Hacking General [Developers Only]] pvyParts:
new version should have all of the above + different settings in market (maybe more phones)

having issues with center bar atm :P it goes Whaky :D but i'll push a update sometime this week with out without it

i can make it for you you prob need to resign it. but it might not like a test key. i'll compile it with no launcher tomorro and upload it for you.

Pvy.
[Android Software/Hacking General [Developers Only]] MatZ69:
Thanks for your help ;)
[Android Software/Hacking General [Developers Only]] Killarny:
Yes! I've been hoping for some updates to this app ever since I bought it! Can't wait.. :P
[Android Software/Hacking General [Developers Only]] The Undertakerr:
Originally Posted by pvyParts

Heyy pvyParts,

Love this mod, it's great!!!

I use the mod version:good:

All works fine, but I have the above problem.

After every change I make, I have to turn around the screen to make it update the batterybar changes I made. Or connect it to usb, or whatever.

If I don't do that, every change I make in the batterybarsettings, takes 2 minutes or so. That's a bit annoying.

Love the mod though!!

You have a solution for the above delay?

What changes to make in smali?

I'm using the V5 modsettings and files.

Thank you very much for your answer in advance and keep up this great work!!

Ps: Will now try with the V4 files to see if this version does update the batterybar settings instantly. But I just don't want to lose the charging animation. I'm not sure that's in V4 but will try now...
[Android Software/Hacking General [Developers Only]] ngh55:
I was very happy with the MOD version until I realized it does not stays on top of full screen apps :(

Is there an option I could add to accomplish this?

{©}Sent from the Death Star{©}
[Android Software/Hacking General [Developers Only]] pvyParts:
It can't be done mate.

The status bar has been hidden the mod version is **" part of the stats bar "**

Sorry.

Pvy

sent from xda app
[Android Software/Hacking General [Developers Only]] motcher41:
That's what I liked about the app version. It stayed onscreen no matter what. Nice when watching netflix and wasn't plugged in. Thanks again for the hard work pvy
[Android Software/Hacking General [Developers Only]] pvyParts:
Thats Half the reason I put so much effort into the app (stability wise) is cause I love it too :)

Pvy

sent from xda app
[Android Software/Hacking General [Developers Only]] bigfau:
What files should we use for the mod? It says 2 files attached, but I see 4 (2 zips, 2 apks)And does this work on ICS?
[Android Software/Hacking General [Developers Only]] pvyParts:
Take the v5 files old files are for reference. And yes it does

Pvy

sent from xda app
[Android Software/Hacking General [Developers Only]] Ditamae:
Well, I feel stupid. I'm trying to use APK Manager v4.9. Every time I try to install the framework-res.apk, I get the "apktool is not recognized as an internal or external command, etc..." error. My PATH is set properly and I'm in the right directory. I've spent forever trying to find an answer to what is likely an obvious user error... any help would be much appreciated. :)
[Android Software/Hacking General [Developers Only]] pvyParts:
okay

if you navigate to the apkmanager folder in cmd

put the framework res in the same place as the apk manager script

then type this into cmd

java -jar other/apktool.jar if framework-res.apk

my command line looks like this

C:\APK Man NEW>java -jar other/apktool.jar if framework-res.apk

that will do it for you

Pvy.
[Android Software/Hacking General [Developers Only]] Ditamae:
Thank you!!! :)
[Android Software/Hacking General [Developers Only]] Ditamae:
Thank you so much for your help... I finally got it up and running. This is awesome. :D
[Android Software/Hacking General [Developers Only]] ngagephone:
Wow fantastic just what I been looking for works a treat on HTC desire GSM running oxygen 2.3.1. Two small requests when I first loaded the battery bar it was gray instead of green any way to make it green on first load. Also can you add a option to hide the default battery icon when using battery bar? Thanks.
[Android Software/Hacking General [Developers Only]] dafunk2:
Simply perfect, many thanks mr :D

I made the edits to center the clock on the notification bar as well....so it seems nicer.

I assume that if I add to the same line added:

android:paddingTop="37.0px"

I will have the battery bar on the bottom of the notification bar, right?

Thanks again :)
[Android Software/Hacking General [Developers Only]] pvyParts:
yes but it is alot harder to implement. as you have to edit the smali files directly (statusbarpolicy.smali)

that will work i think... But i will add a new option to align it to the bottom so that the alignment is perfect regardless of statusbar size.

Pvy.
[Android Software/Hacking General [Developers Only]] dafunk2:
Great! :) That way is a lot better.

I'm just thinking about adding some other option. Maybe the "background" of the battery bar with configurable color? Just to understand...like a loading bar. And what about to select the size of the height? (1->5 px)?

Or the possibility of having a gradient bar where you can select the two colors (start and end)?

Just some idea.....so please don't beat me LOL :D.

Great work anyway, I love it :)

Many thanks in advance pvyParts
[Android Software/Hacking General [Developers Only]] pvyParts:
Haha I was already half done on those. Lol. I also was trying to make it animate during charge

Also the colors are selectable? From the included app. You can set it to be static if that's what you meant.

Sent from my TEAM powered x10
[Android Software/Hacking General [Developers Only]] ngagephone:
Do you have a eta?
[Android Software/Hacking General [Developers Only]] pvyParts:
On the new mods no. shouldn't be more than a week or so but no guarantees been rather busy of late.

Won't be hard to update tho if that's what you are worried about.

Pvy.

Sent from my TEAM powered x10
[Android Software/Hacking General [Developers Only]] ngagephone:
Thanks no not worried about upgrading just would like to finalize my personal rom lol.
[Android Software/Hacking General [Developers Only]] KingRedHot:
THANK YOU!! I have been drooling over that battery bar ever since MIUI first implemented it. I'll post a screenshot after I drop it into my theme ;)
[Android Software/Hacking General [Developers Only]] jadeboy7:
Huge thanks for the mod Pvy. I just seem to be having an issue with the charging color not working. I'm using an Evo 4G and running MikG 3.0 beta 2 in case that helps. Let me know if you need any more information and thanks again.
[Android Software/Hacking General [Developers Only]] pvyParts:
I may have had the setcolor line commented when i compiled. i have a new version am testing it now charge color works in it :D prob release today / tomorro.

has the height selection in it. :)

gradients are playing hard ball.

Pvy.
[Android Software/Hacking General [Developers Only]] jadeboy7:
Sounds awesome. I'll be sure to check it out. Thanks.
[Android Software/Hacking General [Developers Only]] pvyParts:
Updated to v2

New Version is in OP.

Changes are minimal

just a few code changes,

added height options ( 1 - 5px )

all you need to do to update is put replace the 3 smali files in you systemui and install the app over the top of the old one. :) (update it)

EASY!

Pvy.
[Android Software/Hacking General [Developers Only]] jadeboy7:
Works like a charm. Thanks and Thanked :).
[Android Software/Hacking General [Developers Only]] crz6662:
posting to track thread......
[Android Software/Hacking General [Developers Only]] Ditamae:
So to update do I need to decompile SystemUI.apk to replace the 3 new smali files? I tried this and wound up without a status bar... I'm sure I'm making this harder than it is...
[Android Software/Hacking General [Developers Only]] rivelta:
thanks for tutorial :)

sent from my security handy talkie

talk free , no pay®
[Android Software/Hacking General [Developers Only]] Killarny:
Is work is still in progress on this app? I bought it and am happy with it, so I'm not trying to nag at all, just curious :)