yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pvyParts:
Yeah there has been an emergency offshore with work and I Don't have my PC to work on nething.

Pvy

sent from xda app
[Android Software/Hacking General [Developers Only]] rivelta:
how to add option on settings menu?
[Android Software/Hacking General [Developers Only]] pvyParts:
Sorry what?

Pvy.
[Android Software/Hacking General [Developers Only]] rivelta:
example if i want to add some option to battery bar tweaks

- with percentage

- top bar battery

- bar color etc.

can u help? :o
[Android Software/Hacking General [Developers Only]] pvyParts:
You'd have to code them in your self but those options are there....

,
[Android Software/Hacking General [Developers Only]] -eldorado-:
Love the bar! I can't get the animations to work though. I have been through the settings and all is on, just no animations.

Thanks!

Sent from my PC36100
[Android Software/Hacking General [Developers Only]] RogueCoyote:
I also don't get any animations on ICS
[Android Software/Hacking General [Developers Only]] pvyParts:
What version are you using???
[Android Software/Hacking General [Developers Only]] -eldorado-:
I am using v3.0

Sent from my PC36100
[Android Software/Hacking General [Developers Only]] pvyParts:
I think you are lost, :) you have the App correct?

the mod version needs to be version 5 for animations.

if you are on the app and are having anim issues after last update send me a pm for the test app. :)

also

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

Pvy.
[Android Software/Hacking General [Developers Only]] pimpmaneaton:
Many thanks.

Hey pvyparts just wanted to write and say thanks to creating this. I recently just put in my theme/mod and is working fantastically.

Link to My EyeCandy theme/mod

Think many users will really like that new feature.
[Android Software/Hacking General [Developers Only]] RogueCoyote:
I'm using the Mod version 5
[Android Software/Hacking General [Developers Only]] JusticeAA:
Is there a way to modify the layout.xml to have the battery bar display at the bottom of the status bar? I have been trying to figure it out myself with no luck.

Thanks
[Android Software/Hacking General [Developers Only]] sniper:
Thanks for this awesome mod :)

I've gotten it to work great in my rom except for one little issue. The Battery Bar Settings app works and I can set options fine, but I'm having trouble trying to insert a shortcut to it into my system settings like so:

In Settings.apk/res/xml/display_settings.xml I have

<PreferenceScreen android:title="Battery Bar Settings" android:summary="">
<intent android:targetPackage="com.pvy.battbar.settings" android:action="android.intent.action.MAIN" android:targetClass="com.pvy.battbar.settings.options" />
</PreferenceScreen>

but when I try to use it it just force closes the Settings.apk. Here's a logcat of when it occurs, but I don't see why it's saying it can't find the activity and is asking if I have declared it in the manifest because I haven't had to add anything into my settings manifest for two other apps I've added shortcuts for and they work fine. http://pastebin.com/6H9nSTmq

Edit: changing android:targetClass from com.pvy.battbar.settings.options to .options gives the same error in the logcat but with com.pvy.battbar.settings/.options instead. I ran the app fine through adb by using: am start -n com.pvy.battbar.settings/.options
[Android Software/Hacking General [Developers Only]] pvyParts:
Try Take the android:action out.

Did you edit the apk at all?

Also the log at is referring to the targets manifest. :)

Pvy
[Android Software/Hacking General [Developers Only]] sniper:
I didn't touch the apk besides fixing a spelling mistake :P it said vissit instead of visit. After I get the shortcut working I'll edit the manifest and take out the launcher line to stop it from showing up in a launcher.

I'll try taking out android:action once I get back on my computer.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] sniper:
Taking out android:action didn't work :confused:

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] Papa Smurf151:
If u click on my smurfmod link in my sig. U can download my rom and check out my settings.apk and see the edits I made to the XML file. I'm mobile right now but have subscribed to this thread. When I get home if u haven't figured it out I'll post the XML for u.

XDA Moderator
[Android Software/Hacking General [Developers Only]] sniper:
Alright, so after decompiling your Settings.apk in res/xml/settings_headers.xml your intent is set up the same as mine except you're using the full package name when defining the class. I've tried with and without the full name (just .options):

<intent android:targetPackage="com.pvy.battbar.settings" android:action="android.intent.action.MAIN" android:targetClass="com.pvy.battbar.settings.options" />

and the only difference is that you have yours enclosed in header tags since it is part of the main menu and not part of the display settings which is where I have mine. I'll try adding it into my main settings menu and see if that will work for me.

Edit: SUCCESS!! :eek: I put it in the settings_headers like you did and it works fine, but I'm still confused as to why it won't work in the display_settings within preferencescreen tags which worked fine for another app I have in there.
[Android Software/Hacking General [Developers Only]] Papa Smurf151:
No idea but glad it worked

XDA Moderator
[Android Software/Hacking General [Developers Only]] pabloltg:
I added it from source in my CMX, and work great!!

Some way of add Holo style to bar settings?
[Android Software/Hacking General [Developers Only]] pvyParts:
if you have the latest sources it should be.

this is on my phone. (Galaxy Nexus)

Pvy.
[Android Software/Hacking General [Developers Only]] dannejanne:
This is a fine mod/app. I have missed this since I used MIUI ages ago.

However on my phone it affects some things in different apps while the service is running.

I noticed the scrolling in Play Store (only on an apps page though) and my playlists in Spotify gets stuttering while scrolling. Like project butter is not working anymore. If I disable the service it gets smooth again instantly and if I turn it on the stuttering comes back.

Seems like a weird issue and that it only affects certain apps and in certain places of the app.
[Android Software/Hacking General [Developers Only]] Ditamae:
Hey Pvy. I'm a long time user of your app and I love it dearly. But I just updated to the latest Market version and I'm seeing the charging animation while the phone is not connected to a power source. Any idea why this would be happening?

Thanks so much!
[Android Software/Hacking General [Developers Only]] pvyParts:
lol no. :P few things to try quickly would be toggle the service, if that fails reboot, if that fails let me know. :)

Edit found it pushed an update will update thread soon

Pvy.
[Android Software/Hacking General [Developers Only]] marcolino7:
Lot of CPU consumption

Hi,

I just moved to HTC One X and i install Battery Bar as on all my olp Android Phone.

On this Phone Battery Bar take about 15-25% of CPU resource:

User 26%, System 37%, IOW 0%, IRQ 0%
User 102 + Nice 0 + Sys 146 + Idle 137 + IOW 0 + IRQ 0 + SIRQ 2 = 387

PID TID PR CPU% S VSS RSS PCY UID Thread Proc
2361 2361 0 21% S 320136K 47652K fg app_222 .pvy.batterybar com.pvy.batterybar
22734 22734 0 20% R 1392K 760K fg root top top
140 198 0 7% S 29544K 7940K fg system SurfaceFlinger /system/bin/surfaceflinger

Android is 4.04 and I'm using stock HTC rom, with Sense.

What is happening onmy phone?

Thanks
[Android Software/Hacking General [Developers Only]] pvyParts:
are you charging or connected to USB?

Pvy.
[Android Software/Hacking General [Developers Only]] marcolino7:
Yes,

I'm running ADB on my PC, and phone is charging....
[Android Software/Hacking General [Developers Only]] pvyParts:
then the bar is animating as an overlay :) hence the high cpu usage.

Pvy.
[Android Software/Hacking General [Developers Only]] marcolino7:
Hi,

phone is fully charged, and battery level is at 100%. Bar is grey, the default color when phone is not in charge, but phone is still connected to usb.

Just to confirm that is correct behaviour.

Thanks
[Android Software/Hacking General [Developers Only]] pvyParts:
not meaning to offend but maybe add all this info first next time ;)

i have found the "Full" level to be a bit unpredictable. some phones it goes into it's "passive" mode others it sorta hovers between passive and charge mode. i think it depends on what the phone actually does once it reaches the level.

Pvy
[Android Software/Hacking General [Developers Only]] marcolino7:
Hi Pvy,

thanks for your answers.

I'll install a terminal on my phone and I'll try to check process without USB Cable connected.

Marco
[Android Software/Hacking General [Developers Only]] abhi922:
awsm guide

awesome guide bro ................

i wili include it my rom ..........

it works perfectly__________flawlessly..

thanks man
[Android Software/Hacking General [Developers Only]] theshrink:
Hey, I'm using the paid play store version on a tmobile note 2 running a ported Hong Kong ROM and the bar keeps disappearing. If I change something in settings or turn it off and on it turns on, but only for a few seconds. Any idea how to fix this? Thank you!
[Android Software/Hacking General [Developers Only]] pvyParts:
Are you able to collect any logs :)

I know there is an issue with the gnote2 but do not have a device. So I need assistance fro. Anyone who is able to collect logs and email / pm them to me

Pvy
[Android Software/Hacking General [Developers Only]] Pantherx12:
Java does not like running properly on my system so I'm having difficulties would anyone be willing to apply this mod to the systemui apk from this rom

http://andromadus.flinny.org/?q=cm10_1 (I've attached the APK to this post)

Would great appreciate it.

Or if you happen to know of another way of adding this mod that would be fantastic too.

Many thanks in advance to anyone willing to give this a go for me.
[Android Software/Hacking General [Developers Only]] lys0529:
nice job，thousands thanks！
[Android Software/Hacking General [Developers Only]] V@no:
This is a must have mod, absolutely amazing!

Set it to 2 or more pixels high and it will stay.
[Android Software/Hacking General [Developers Only]] babylonbwoy:
Im on mobile so it's not easy to search if it was already reported : on jb when I choose Show Under the StatusBar and pull down the notification then the battery bar is in middle of widgets. Stock Sony Xperia T with JB.

LT30p Tapatalked

Edit : Oops wrong thread, didn't noticed on tapatalk...
[Android Software/Hacking General [Developers Only]] jeep447:
Just wanted to say thank you for that tip because I was having the exact same issue and that fixed it instantly! At first I was bummed because I thought setting it to 2 would be to thick, but it's actually perfect. I'm wondering if it's an issue with the framework on certain roms because I'm on a totally different rom (MyRom Revolution V7) but it was doing exactly what the other guy said his was doing on a different rom. I know the developer of the rom I'm on has basically made his own framework, so maybe that has something to do with it. I'm just glad I'm finally able to use this again because I bought the full version right before I got my Note 2 and I haven't been able to use it. Another thing I've thought about trying is to convert it into a system app and then see if it sticks with the height set to 1, maybe it'll make a difference? I'm not sure if anyone else has tried it or not but I guess it's worth a shot. Anyway thanks again! :D
[Android Software/Hacking General [Developers Only]] pvyParts:
TBH it has me stumped (mainly due to lack of info) :P i have tried a bunch of things but testers are a bit hard to come by or give me mixed results :P if you are willing to help pm me and i'll send you my beta apk with the test options.

I wouldn't have thought making it a system app would work but would be keen to find out if it does.

Pvy.
[Android Software/Hacking General [Developers Only]] jeep447:
I wouldn't mind helping out at all man. PM Sent! :D
[Android Software/Hacking General [Developers Only]] xinfinityoO:
my status_bar.xml looks completely diffrent.

it does not have the line

</com.android.systemui.statusbar.StatusBarView>

i am on stock samsung rom . 4.1.2 . galaxy s2

do i have to edit some other file

my decompiled systemui is attached

would appreciate the help thanks
[Android Software/Hacking General [Developers Only]] pvyParts:
hello from across the pond :P

the tutorial was from back in Gingerbread days :P but same sorta applies

i think you need to edit the tw_status_bar

and put it above this line instead

</com.android.systemui.statusbar.phone.PhoneStatusBarView>

if that doesn't work then try the other status_bar.xml

if that doesn't work buzz me again :)

Pvy.
[Android Software/Hacking General [Developers Only]] xinfinityoO:
thanks it worked :)
[Android Software/Hacking General [Developers Only]] grvrulz:
Not showing up where it should..

First of all thank you so much for this awesome mod.. :)

I'm trying to make it work on my phone with stock ICS 4.0.4 but I just can't get it to show up in the statusbar :( . I tried putting it up in other places like status_bar_expanded.xml and mysteriously it works there, but not in the statusbar. I'm attaching screenshots along with my SystemUI, framework-res. Here's a link to my status_bar.xml http://pastebin.com/6fXAbXsw. Please take a look.

Thanks again for this awesome mod :D :D
[Android Software/Hacking General [Developers Only]] pvyParts:
have you tried in the zzz_statusbar files?

Pvy.
[Android Software/Hacking General [Developers Only]] grvrulz:
OMG I totally missed that :\ Thank you for taking the time. It works now.. and you are awesome :D :D
[Android Software/Hacking General [Developers Only]] pvyParts:
tooo easy happy modding,

:) what phone is that outa curiosity?

Pvy.
[Android Software/Hacking General [Developers Only]] grvrulz:
It's a rebranded chinese phone, sold by a company called Spice mobility. The actual thing is called Hosin U9, runs a MTK6577 processor with 500 mb of RAM, and comes with nearly stock ICS.

And, there's one more thing. Is there a way to make the settings app holo themed? I tried to compile it with sdk-15 after setting the theme in the manifest, but it didn't work.
[Android Software/Hacking General [Developers Only]] moeduss:
What is that clock and weather widget, does it work on the same and where can I get it?
[Android Software/Hacking General [Developers Only]] grvrulz:
It's "One more clock". It comes with a few themes, this is one of the themes :)
[Android Software/Hacking General [Developers Only]] leito824:
Worked perfect in cm10.2, motorola defy, Thanks
[Android Software/Hacking General [Developers Only]] bigfau:
Having problems adding to LG G2 . Here is the error:

C:\Users\Cerberus\Desktop\320k11a>apktool b lgsystemui

I: Using Apktool 2.0.0-Beta7 on lgsystemui

I: Checking whether sources has changed...

I: Smaling...

lgsystemui\smali\com\android\systemui\statusbar\BatteryBar$1.smali[24,4] Error for input '.parameter': Invalid directive

lgsystemui\smali\com\android\systemui\statusbar\BatteryBar$1.smali[40,4] Error for input '.parameter': Invalid directive

lgsystemui\smali\com\android\systemui\statusbar\BatteryBar$1.smali[41,4] Error for input '.parameter': Invalid directive

lgsystemui\smali\com\android\systemui\statusbar\BatteryBar$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/BatteryBar$1.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:284)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:233)

at brut.apktool.Main.main(Main.java:88)
[Android Software/Hacking General [Developers Only]] G-26:
Battery bar service stops unexpectedly on CM 10.2 and CM 11 for me running on I9300
[Android Software/Hacking General [Developers Only]] pvyParts:
I'm assuming you mean the app on the market.

I'm running cm11 with no issues. Can you provide more info.

Pvy
[Android Software/Hacking General [Developers Only]] G-26:
Yes, I am running the free app from the market. Running the latest CM11 Nightlies on my I9300. It would cut out on CM10.2 when I ran Real Racing 3 too. Sorry about posting here, I didn't realize that there was a dedicated thread for the app version.
[Android Software/Hacking General [Developers Only]] pvyParts:
If it is cutting out during a game it because android is running out of ram and it is killing it... i cant do too much about that.

as for CM11, when does it cut or is it random?

Pvy.
[Android Software/Hacking General [Developers Only]] G-26:
It seems to be random, but I probably just haven't clued into what is triggering it. I have noticed that the service is stopped by holding the home button, then clearing any recent/running apps. This battery bar app was unaffected by this action when running on CM10.1 and CM10.2
[Android Software/Hacking General [Developers Only]] pvyParts:
I think that in KK the remove all button has changed to include services and such.

I will try to do some more digging.

Pvy.
[Android Software/Hacking General [Developers Only]] dbareis:
On Kitkat 4.2.2 on Nexus 5, battery bar not visible after reboot and possibly other times.

To get it to display:

1. STOP service

2. Start service
[Android Software/Hacking General [Developers Only]] BoBCatRoM:
On nexus 5 and KitKat 4.2.2 works perfectly....
[Android Software/Hacking General [Developers Only]] dbareis:
Fails every boot here... If there is a way of logging it I can send it...
[Android Software/Hacking General [Developers Only]] juried:
I am also having trouble with the bar disappearing seemingly at random. I got the pro version but same prob. I tried the free version making it a system app but that did not fix it. Will try that again.

I'm on slimkat 4.4.2. Nexus 7 2013.
[Android Software/Hacking General [Developers Only]] juried:
Moved it into a system app, that did not fix the issue. Still disappears at random. I think this is due to a recent update in kk. I think it was working fine in an earlier version of kk.

How can I help?
[Android Software/Hacking General [Developers Only]] pvyParts:
Happens to me too. Looking into what is causing it :)

Pvy
[Android Software/Hacking General [Developers Only]] juried:
I did a data wipe and reinstalled everything clean last night, now it seems to be sticking. :) Fingers crossed. Still a system app at this stage.
[Android Software/Hacking General [Developers Only]] juried:
Damn, just noticed it is gone again :(
[Android Software/Hacking General [Developers Only]] gpietron:
Hi,

just confirming: I installed and am testing v. 4.4.2 now and noticed the bar disappearing (I'm on the T.E.A.M. Battery Bar app). It was stable on 4.3.0.

Service in app's Settings still showing as green - but requires off/on for the bar to re-appear.

Hope it helps.
[Android Software/Hacking General [Developers Only]] pvyParts:
I'm not ignoring you. It's just slow to test patches. It looks like there is a bug in the 4.4 sources. I'll post more later.

Pvy
[Android Software/Hacking General [Developers Only]] gpietron:
No worries, take your time. It's a GREAT app and I'd like to have it back, stable :)
[Android Software/Hacking General [Developers Only]] paul c:
Yes, happens for me too on the T.E.A.M Battery Bar app, I'm running Purity ROM (4.4.2) on a Nexus 4, with the Hellscore b43 kernel. I noticed you're on the case - if you need anything testing, just pm me, I'll be glad to help.
[Android Software/Hacking General [Developers Only]] dbareis:
Ticking & unticking the animation option is enough to get it to display...
[Android Software/Hacking General [Developers Only]] dbareis:
At least for now I'm using "Energy Bar" which works.

Update: oh well it worked for a while, similar symptoms.
[Android Software/Hacking General [Developers Only]] josephlor:
Am sorry if this was posted earlier. I have evo 4lte using Vanir 4.4Can we make a battery line instead of an icon?
[Android Software/Hacking General [Developers Only]] naifaharsy:
Can i used this with rom cm 4.3.1
[Android Software/Hacking General [Developers Only]] hugo.gabriel999:
:(

it happened:

CM11 - Defy
[Android Software/Hacking General [Developers Only]] Wasabi Ice Cream:
I'm noticing favorable results by installing T.E.A.M. Battery Bar as a System app.
[Android Software/Hacking General [Developers Only]] PhyscoAssassinx:
Someone should make this into an xposed module ?
[Android Software/Hacking General [Developers Only]] peterthaigerpinoy:
How can i help to translate the app from English to Danish ?

Kind regards

Thaiger DK
[Android Software/Hacking General [Developers Only]] zigbye82:
Could any one help, is there any way to get the charging animation right to left in the mod version?
[Android Software/Hacking General [Developers Only]] Dakmagnum:
error compiling on gs5 4.4.4

I: Using Apktool 2.0.0-RC4

I: Checking whether sources has changed...

I: Smaling smali folder into classes.dex...

systemui/smali/com/android/systemui/statusbar/BatteryBar.smali[677,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/BatteryBar.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354)

at brut.androlib.Androlib.buildSources(Androlib.java:294)

at brut.androlib.Androlib.build(Androlib.java:280)

at brut.androlib.Androlib.build(Androlib.java:255)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

anyone have any ideas?
[Android Software/Hacking General [Developers Only]] Dakmagnum:
has this been updated for apktool 2.0rc4?
[Android Software/Hacking General [Developers Only]] jtash01:
The service does not seem to stay running in the background. I have to restart it in Marshmallow on the S7 EDGE (Sprint)
[Android Software/Hacking General [Developers Only]] Petr Monty:
bar accidentally falls again activated. Galaxy S5 Android 6.0.1
[Android Software/Hacking General [Developers Only]] Nimadroid:
Working on marshmallow???
[Android Software/Hacking General [Developers Only]] RealWelder:
Thanks. I only see one major bug, there are a couple of small ones like the radio buttons not working correctly in the pop-ups, but the main bug is when set to pulse when it descends it randomly misses pixles. Leaving like a trail of lines or dots. (Depending on the size.) I appreciate your work. I'm running 4.4.2 TAB3.
[Android Software/Hacking General [Developers Only]] bx10r:
Can anyone tell me why with the pro version it randomly turns off...i have to manually turn on, using an s6 6.0.1
[Android Software/Hacking General [Developers Only]] issasaurus:
Works on 7.1.1 but doesn't seem to persist reboot. Sometimes it forgets to keep working and it'll show 50% battery when I'm down to like 20.

OnePlus 3 ob14
[Android Software/Hacking General [Developers Only]] RealWelder:
Try this one. https://xdaforums.com/showthread.php?t=2799050
[Android Software/Hacking General [Developers Only]] crz6662:
I've been using this for years. Found something similar for jail broke iPhones too.

Back to Android now and purchased the Pro version but I can't seem to get it to show on my lock screen. Anyway to make it persistent there also. When I look at my S9 for the time it would be nice to see the battery level at a glance. Any help guys? Am I missing a setting somewhere. ?