yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sesuncedu:
Out of range current sensor reading filters?

Is there any way to suppress the occasional bogus spikes that are generated by the current sensor on the Nexus 7 (2013)?

These seem to always be positive in sign, and often occur when the device is not being charged. Assuming there isn't a secret AEGIS test site in one of the neighboring condos that's tricking the inductive charging, these readings cannot be valid, so can readily be discarded. They can occur when the unit is charging, and when it is in standby or not.

They are transient enough not to make much of a difference in stats, but they are so huge in relation to sane readings that they wreck the graph scaling

I haven't seen any similar spikes downwards.

The problem occurred before and after rooting (stock ROM and kernel). I can't recall if it happened under older kitty cats.

P.S.

I would love a resizable graph widget so I could make it the full width of the screen, but that's for aesthetics.
[Android Apps and Games] 3c:
Those spikes are always caused by a quickly increasing % (in a few seconds), due to some kind of "re-calibration" occurring on its own while unplugged. mA spikes will be eliminated in next update.

Concerning the graph widgets, they are all re-sizable should the launcher supports it (ICS or above) in both height and width.
[Android Apps and Games] AlexVallat:
I'm trying to figure out if this app can help me pin down what's causing an infrequent rapid battery drain for me - can anyone let me know if I'm just doing it wrong, or the app doesn't have that capability?

The problem is, for most of the time, I get a nice gradual battery usage slope, no problems at all. Sometimes, for no reason I can discover, I come to turn on my tablet in the evening and it's dead. Once plugged in and turned back on, the battery slope shows an extremely sharp dip until the time it turned itself off.

What I want to be able to do is log which app(s) were using so much battery *during that period* - I don't want to know how much battery the apps used since it was last charged, as over such a long time I get only normal results, the same as when it doesn't drain. I was hoping either a historical log that recorded the instantanous usage of running apps at regular intervals, or perhaps some trigger that starts logging when a given discharge rate occurs, but I haven't been able to configure anything successfully yet.

Is there anything I can do to gather that sort of information with this app?
[Android Apps and Games] Largamelion:
There is another app that can do exactly what you are looking for but I 'm not sure if you can get the same information from this app. I mainly use this app to see how much mA I get from a charger.
[Android Apps and Games] 3c:
Have a look at the statistics tab, it shows both wakelock (standby) and/or app CPU usage (usage) since last charge or on battery.
[Android Apps and Games] AlexVallat:
Thank you for replying, but as I said in my post, unless I'm missing something this doesn't give me the information I need. It only shows the information since the reboot, not what was going on before the reboot that caused it to drain so quickly and turn itself off. Largamelion, the same applies to the app you suggested.

I need some way to record a log of what apps were using battery that caused it to drain until it powered off, so just using the android battery statistics isn't enough as they are reset on reboot. I was hoping for something that would keep a history log so I could inspect it after rebooting.

Battery Monitor Widget does record a history log, but as far as I can tell this history contains only the state of the battery, and not information about the apps that were draining it at the time.
[Android Apps and Games] 3c:
Then you can try System Tuner or Android Tuner, they both have recording capabilities for your purpose.
[Android Apps and Games] AlexVallat:
Thank you, a quick look at the recording settings for those (and for your Process Monitor I found when looking them up too) does seem to indicate that they might record useful data that would let me track down the problem! Of course, those settings can't be enabled without buying the full version, so I can't test it out, but I guess I'll take a chance.
[Android Apps and Games] metai:
Hi. First of all, thank you for this great app. It's really working fine on my phone and my tablets ...

... with the exception of my Nook Color, since I updated to 3.x. When sleeping, mA numbers are somewhat random. I tried all possible settings, of course the "Nook Color" setting, to no avail. I remember BMW 2.x working perfectly fine in this regard.

Is there anything I can set up so it would work again? (I do notice that even though I set detection to "Nook Color", the status page still says "Android kernel", I don't know if this is an error or not.)

Thanks in advance
[Android Apps and Games] 3c:
Those values are all reported by Android kernel (read from /sys filesystem), hence the status page says "android kernel". So, in a way there's nothing random about those values, even though they don't reflect actual discharge. I'll assume in v2.x you ticked estimated mA in standby, which doesn't get migrated to 3.x. You can set that up in battery / monitoring settings to help get more accurate readings in standby.

Both versions are using the same reading methods, but just in case, please send a support request from app settings, help and support so we can review the readings and what data is actually available. Don't forget to add a quick note about your post so we can identify your support request and handle it quickly (empty requests for known devices are often discarded as we don't know what to look for).
[Android Apps and Games] metai:
Thanks for the reply, that was quick. :)

It is supposed to say that, even with Battery->Monitoring->"mA retrieval method" set to "Nook Color"?

I really don't remember the settings I had in 2.x, and this is a completely fresh setup, so maybe that will help. Thanks.

I tried and I can't. The data collection process aborts at around 60/70 with the somewhat cryptic notification, "Request device support... No apps can perform this action." Android 4.2.2 (MROM)
[Android Apps and Games] 3c:
Yes, most methods read mA from kernel data.

This means you have no email app on your device to send the request. You can find all files in /sdcard/Android/data/ccc71.bmw[.pro]/support. You can post a zip of that folder so we can review actual battery data.
[Android Apps and Games] Qhel0:
Unfortunately, Battery Monitor Widget Pro has stopped.

Hi,

I was a happy user of BMW and everything was fine since I installed "Enable BATTERY_STATS for KitKat" Xposed module. BMW started force-closing at every app launch. I tried uninstalling the Xposed module, but nothing changed. Same after cache+dalvik wipe. I also flashed the 4.4.4 ROM but keeps closing.

After all those attempts, I'm not really sure it depends on the Xposed module. Maybe it was just a coincidence.

I saved a logcat with the relevant information and am ready to send it in for analysis.

Device info: Nexus 4; stock 4.4.4 KTU84P; franco Kernel r209; Xposed framework; BMW 3.1.5 pro

Thanks
[Android Apps and Games] 3c:
Best is to send a support request from app settings, help and support with a mention of your issue if you can. If not, please send content of folder /sdcard/Android/data/ccc71.bmw.pro, or attach a zip here.
[Android Apps and Games] Qhel0:
Here you are. I cannot even start the app, so the only thing I can do is share the files here: dropbox.com/s/nms0r09n3d1hgg6/ccc71.bmw.pro.zip

(At 42, I'm still too young to post outside links in xda, so excuse me if the file it's not just one click away ;))
[Android Apps and Games] 3c:
EDIT: After little investigation, are you using an Xposed module to force fast scrolling ? This is actually causing this issue in the first place.

We will publish an update shortly to address this. Can you email us from your Play Store account, so we can send you a test APK?

EDIT2: See here for reported problems with Xposed module: http://xdaforums.com/xposed/modules/mod-force-fast-scroll-force-listviews-t2785006/page4
[Android Apps and Games] Qhel0:
After your first reply (before the edit) where you talked about the paging interface I remembered about that module and disabled it.

It now works again and I'm happy too [emoji1]

At this point it's useless to me that you send me the app. I'll just wait the new version.

EDIT: if you'd like to have someone more to test it I'll be glad to help you. I'm writing right now from the store. - -

Thank you for the great and prompt support.
[Android Apps and Games] infatality:
[MENTION=253258]3c[/MENTION] any idea why on nexus 5 or on snapdragon 800 devices.. It's seems that it did not show the actual battery drainage.. Etc, like my nexus 5 actually in deep sleep and idle..but when I checked its always show like -200mA to 400mA odd.. Is it supposed to be this way or? As I my s2 actually show the right amount of drainage.. Any help will be appreciated..
[Android Apps and Games] 3c:
That has nothing to do with the CPU being used, and everything to do with the current (mA) sensor implementation from the manufacturer. This sensor is often used to calibrate % calculations based on very complex algorithm, but it's not originally meant to provide mA readings for end-users.

Your S2 has no current sensor, hence app estimates it based on % changes. The Nexus5 do have a current sensor however it's not meant to provide mA in standby, so it's best to activate the 'estimate mA' option for standby in battery / monitoring settings.
[Android Apps and Games] infatality:
So do I use estimate drain or estimate standby drain?
[Android Apps and Games] 3c:
Standby drain should work fine as drain while screen's on appears ok.
[Android Apps and Games] iba21:
Could you add the note 3 exynos?

i bouth your app whan i had the sensation.. and sure.. system tuner pro too!!

But.. i never used it when i migrate to samsung.. note2 and 3 didn't have a correct mA recognization value
[Android Apps and Games] 3c:
Most Samsung devices have no current sensor, hence the app select estimated mA. If not you can select this option in battery / monitoring settings and send us a support request mentioning the issue so we had the model number to the app database.
[Android Apps and Games] iba21:
Yup i can select extimated.. and.. sure.. it was auto selected as extimated..

I saw new values.. as the extimates by the internal sensor..

Anyway do you need a complete day log or simply the informations added to the mail?
[Android Apps and Games] kenfeyl:
Question on current

Hi everyone,

I am having trouble reconciling some numbers from BMW while charging my Samsung Exhibit II 4G T679.

While charging, BMW shows a consistent current of about 1.2A. With a 3.7V battery, this is 4.44W.

However, a Kill-A-Watt unit plugged into the wall while charging measures 3.6W. How could BMW be correct about the current to the phone?

I must be missing something simple here. Please help. Thank you.

Ken
[Android Apps and Games] infatality:
[MENTION=253258]3c[/MENTION] I'm using on xiaomi hongmi miui v5.. I noticed that the notification package don't refresh and will get killed when swiping away the app.
[Android Apps and Games] 3c:
Swiping an app is supposed to kill the app, but only the swipped app. We've never seen such behavior or heard reports of such problems, even though we received many reports of MIUI users about the interval alarm bug on MIUI: http://www.3c71.com/android/?q=node/2565
[Android Apps and Games] FrankJHTC:
Problem with ATSystem.apk

Hello, I use Battery Monitor Widget Pro for a long time..with my previous Xperia Z worked perfect, but now I have a HTC One M8, it´s root but battery statistics don´t work...I try install the Helper.apk but it´s imposible for me.. I don´t have ATSystem.apk in cc71.bmw.pro, and I don´t kwon why..and,of course, I can´t copy it to system/priv-app...someone can help me..

Anyone can put the file in dropbox??

Thanks.

Sorry for my bad english
[Android Apps and Games] Conan179:
@3c. on the german language all wigdets, has i name "at".
[Android Apps and Games] 3c:
Hello and sorry for the inconvenience. You can easily find that APK inside BMW APK itself ;) Opening the APK as a ZIP file, you can find the system APK in assets folder. We'll check why it's not in app data directory /data/data/ccc71.bmw.pro asap.
[Android Apps and Games] 3c:
Thanks for letting us know, this will be fixed in next update.
[Android Apps and Games] FrankJHTC:
Thanks..now works. One question..what option I have to check for didn't lost the time screnn when I turn off the phone..?

Thanks

Enviado desde mi HTC One_M8 mediante Tapatalk
[Android Apps and Games] 3c:
Do you mean "screen-time on battery" or such data from battery statistics in widgets? Those are often reset on boot, so there's very little that can be done about it. The app could save it on shutdown and accumulate them, however it makes things complicated and even more considering some ROMs do not reset them.
[Android Apps and Games] FrankJHTC:
Ok..thanks..

Enviado desde mi HTC One_M8 mediante Tapatalk

---------- Post added at 04:12 PM ---------- Previous post was at 03:39 PM ----------

Works now..perfect..Thanks

Enviado desde mi HTC One_M8 mediante Tapatalk
[Android Apps and Games] kyva1929:
Request support for oneplus one

Oneplus one:

The sysfs file for current is located at

/sys/class/power_supply/battery/current_now

Right now bmw is reporting 0 mA at all time.
[Android Apps and Games] 3c:
Please send a support request from app settings, help and support so we can provide the appropriate option to use in 'mA retrieval method' of battery / monitoring settings and add out-of-the-box support for your device. All necessary information is provided in the request's attachments.
[Android Apps and Games] GoJo ^^:
Ok MIUI, when charger plugged it shows -35%/h and unplugged +20%/h, everything's inverted.. I installed alarm fix but no change. What to-do?
[Android Apps and Games] 3c:
"mA retrieval method" is wrong, try selecting "reverse uA" in battery / monitoring settings.
[Android Apps and Games] GoJo ^^:
Nice ;) Can I have a notification that shows remaining battery usage like in gsam (why does not seem to have a reverse setting, correct?)?
[Android Apps and Games] 3c:
You can add many different notifications, in app notification settings, you can tap 'notification packs' to download and activate specific packs, or use a simple shortcut to the app showing battery data in the notification drop-down list.
[Android Apps and Games] GoJo ^^:
I'm gonna check that. I noticed something else wrong with this phone : the temperature. While tethering, phone's feel like burning, close to 60C° i guess, but battery apps shows 25C°..!!
[Android Apps and Games] iba21:
Does it works with nexus 5 and android L,

Because..

http://www.imgur.com/I0XGglF.png

378mah??
[Android Apps and Games] clAssymeerKat:
Thanks, work great for me!
[Android Apps and Games] 3c:
The Nexus5 sensor is very likely reporting mA differently. Please make sure to run last version of the app, and send a support request from app settings, help and support so we can review mA history and available reporting methods. Don't forget to mention your issue in the request.
[Android Apps and Games] andy o:
Hi @3c, I just bought the in-app for removing ads, but the ads aren't being removed. I tried restarting the phone (twice), and also deleted app data, but the ads are still there. I'm on a Nexus 5 w/ 4.4.4, rooted. Anything else I can try?
[Android Apps and Games] 3c:
If you contacted us recently for that, please note the in-app purchase was cancelled when you first emailed us and we sent you an updated APK earlier today, also published on Play Store. After running tests, it appeared the purchase process could no longer complete.

Sorry for the inconvenience and thanks for letting us know.
[Android Apps and Games] andy o:
Thank you, that wasn't me but I just got the update on the Play Store, all is good now.
[Android Apps and Games] bobmarsh72:
I love the feature of showing the mA in the status bar, but there isn't an option for just white, they all seem to be red when discharging and green when charging. Would it be possible it in white? Thanks.
[Android Apps and Games] laca77:
Hello

I used the BMW on my OPO,. and in the history i saw the values like: -5mA, -7mA, -9mA and the charging was (+)1981mA.

After i bought the PRO version, i get this number with POSITIVE valuse, so the discharging was 5mA, 7mA, 9mA, and the charging was -1981mA.

So how can i change the setting that i would see the values like in the non-PRO version? With negativ the discharging and with positive the charging.

Thanks

Laca
[Android Apps and Games] Conan179:
Hello@all

i haf a little qustin.

On screenshot 1 on my old Note 2 i have to graph.

I dont no anymore how i make this.

Screnshot 2 is my New Note 4.

how can i make aktiv, the second graph?https://www.dropbox.com/sc/9a5o14mlypckuts/AACHBnQwaAXYc8z5AYIYljoDa
[Android Apps and Games] [] AL []:
It's in xda rules that all posts must be made on English.

I don't know what kind of childish language you're using here and I don't think G translate will help you.

Edit:

OK I'm not a moderator, so just ignore this message as I will do with yours....
[Android Apps and Games] DRTMI:
That is lazy language.
[Android Apps and Games] klau1:
Battery Capacity based on AC Power mAh and mV specifications.

According to the instructions, the user must enter the AC Adapter's mAh and mV specifications as listed on the AC Power adapter for the Battery Capacity Measurement algorithm to determine the battery capacity.. However, are these figures accurate enough to allow for a an accurate calcuation of the battery capacity?

AC power adapters have been known to output below their specifications which would then improperly off-set the Battery capacity calculations, would it not?

For example, the Samsung AC power adapter lists 2000mA at 5v, but according to the Galaxy Current App, it's only supplying 1800mAh when the screen is off, and 1200mAh when the screen is on.

So what is the proper number to enter into the AC Calibration Field?

Entering a number higher than the actual power supply will yield falsely inflated battery capacity and vice-versa :confused:
[Android Apps and Games] 3c:
You shouldn't use Current App as it only reports hard-coded values that have no meaning. Your adapter provides 2Amp at 5v and the device will use what it actually wants, some for the screen (about 600mA for a 5") and the remaining to charge the battery.

However when % get above 70% the charging rate will drop to avoid burning the battery and reduce aging. fast-charge + %>70 + heat = faster battery aging.

Nevertheless, 2Amp @5v means a charge rate (screen off) from 2800mA down to 2300mA. You can verify that in your history. Now, if it goes any higher, that means the current capacity is over-rated. This basic principle works great and measure the charging capacity. We're working on the same for discharging capacity, however there's no actual limit to what a device can drain. A 10" screen will drain about 1200-1500mA, while a 5" will drain less than 600mA, and those values will also varies with the screen brightness and also the content on LED display. White = full drain, Black = near-zero drain.

To get accurate results, it's best to charge the device from 0% to 70% while screen's off, as the app cannot determine screen and CPU actual drain.

Entering higher values will prevent app from adjusting capacity but will not inflate battery capacity either.
[Android Apps and Games] andy o:
[MENTION=253258]3c[/MENTION] I remember having read something about battery statistics being more accessible on Lollipop. Do you know yet if Battery Monitor Widget will be able to do more, or the same with better accuracy?
[Android Apps and Games] 3c:
All I've seen so far is the Android battery usage provides slightly better results or better UI, showing consumed mAh, but appart from that access to battery stats is still restricted on Lollipop.

Here is how battery stats work on Android:

- OS gather app activities and states all the time.

- Manufacturer provides components consumption information (eg screen consumes x mA in state Sx, CPU consumes y mA in state Sy, etc).

- OS calculates estimated consumption based on gathered information and components consumption.

- OS calculates real mAh consumption based on % lost (eg 10% lost = 250mAh)

- OS adjusts all calculated consumption based on real mAh consumption and total calculated mAh consumption.

So the accuracy of the stats highly depends on manufacturer having done it's home work: measuring real consumption of the device components in every possible states.

Some manufacturer just don't do it and leave it to the default AOSP values, which is likely not accurate.

There's a full description and guidelines for manufacturers in some profile files in the AOSP source code.
[Android Apps and Games] sonwon:
Now I am pondering which manufacturers actually do a better job?
[Android Apps and Games] samaxen:
Not working on Note 4

[MENTION=253258]3c[/MENTION] I checked the battery stats is not reported correctly on Samsung Note 4
[Android Apps and Games] 3c:
There's no way we can help with statements like "this does not work". Please check the system helper is properly installed (and listed in apps list), please attach a screenshot and explain what is wrong and what you expected.
[Android Apps and Games] samaxen:
The mA drain report was not showing up on Automatic mode, then I changed the mA retrieval method to estimated and it has started working again. I have attached the screenshot below. It was working on automatic mode on my note 3.

Above tested on Note 4 Exynos SM-910C
[Android Apps and Games] 3c:
So it's not the battery stats you were referring to, but the current mA. Note 4 can use "Advent Vega". This will be the default (automatic) in next update.
[Android Apps and Games] snickler:
Closed per OP's request
[Android Apps and Games] MKairys:
Trying once more to make sense of the estimations I get... I cleared data and reset estimates, then made a spreadsheet :) I have three datapoints so far:

after unplugging AC, after charging overnight

4 hours later, before going on USB

Half an hour later, after unplugging USB

Datapoint	1	2	3

Global Estimation	4m	3h38m	2m
using all-time average
using average since...	n/a	23h36m	4h55m
using battery...	n/a	n/a	n/a

Average Times
Ac full-charge	18m	18m	18m
USB full-charge	n/a	n/a	38m
Discharge

Last Measured
Actual battery...	95%	82%	98%
Last battery...	95%	97%	99%
Last measured	2m	4h20m	2m

This doesn't make any particular sense to me... The "Last Measured" section seems correct, and the USB full-charge number is correct, but it seems confused about AC...

Can you figure out anything from examples like this? Would more/other examples be helpful?

Am I the only one getting results like this?
[Android Apps and Games] 3c:
You're not alone, just received a PM with some unexpected results, got a comment on Market saying it's bugged since last update, though I didn't change the estimate code... So there is definitely an issue, but it's not occurring in all circumstances...

Why it always occur for you on AC or USB charging, is still a mystery. I don't think you can actually charge on USB over 38 mins?

Don't understand why you don't get average times for discharging either...

EDIT: would you be able to get the logcat of the app when (un)plugging after a few percent (dis)charged?

You should actually see a line like this (I'm actually interested in the whole logs, I suspect the app is resetting the estimates before calculating it):

AC0- 41=>52 since 41m or USB1 - 30=>41 since 55m or BAT0 - 100=>30 since 28h45m

You can use my other app Process Monitor Widget to get the logs of the app only.

The logs will definitely reflect your issue!

Can you please use the APK attached in post #106 below, I changed a very small thing in the logic.

Question: when charging (either AC/USB) do you get good estimates for both 'since last (un)plugged' (red) and 'actual (dis)charge' (green) ? As you don't show estimates data before unplugging, it's hard to say whether data is ok in the first place.