The Wayback Machine - https://web.archive.org/web/20131210214042/https://code.google.com/p/android/issues/detail?id=61975
My favorites | Sign in
Project Home Issues
Issue 61975: Undo removal of access to BATTERY_STATS permission for apps
755 people starred this issue.
Comments by non-members will not trigger notification emails to users who starred this issue.
Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sven.kni...@gmail.com, Nov 8, 2013
Android 4.4_r1 removed the possibility for apps to request for the BATTERY_INFO permission (this is the commit https://android.googlesource.com/platform/frameworks/base/+/3714141d287c965ea3451831dd5167f63f8db87b%5E%21/). The reason (issue mentioned) for the commit is unknown.
 
This permission and the access to batterystats - formerly known as batteryinfo - service is vital for use cases (and apps) dealing with analysing awake and wakeup causes (battery drainers) as this services gives access to partial wakelocks and alarms.

I wold like to request a rollback of the mentioned commit.
Nov 8, 2013
#1 scott.kn...@mobiledefense.com
At the very least it would be helpful to know why this change was made. The commit referenced above seems to reference an internal issue number not something from this issue tracker.
Nov 11, 2013
#2 mgerba...@gerbasio.com
I'd like to see access to batterystats added back to Android.
Nov 12, 2013
#3 hosta...@gmail.com
I vote for this too.

And at least, such big changes that affect many applications should be announced in the release notes with a reasonable explanation of why it's been done.
There are also other such changes in the 4.4_r1 when compared to previous releases (4.3) and that isn't very good approach towards 3rd party developers.
Nov 17, 2013
#4 edt...@gmail.com
As a user I want to be able to see these stats too.  I there is not a really good reason, this function should be restored.

Nov 18, 2013
#5 ltcd...@gmail.com
As a user I want to be able to see these stats too.
Nov 18, 2013
#6 alexterr...@gmail.com
As a user, I would also like to see this.
Nov 19, 2013
#8 churb...@gmail.com
Apps to get better stats saved my batterie multiple times. 

This need to be fixed
Nov 19, 2013
#9 habdooll...@gmail.com
Starting from KitKat  users  are not able to easily detect  "No-Sleep" bugs which is very well known Battery Drain cause. 

This change must be reverted
Nov 19, 2013
#10 manfredg...@googlemail.com
Ich möchte als Anwender den Batteryverbrauch ermitteln können.Ich möchte diese Statistiken sehen.
Nov 19, 2013
#11 alanruttenberg@gmail.com
I'm curious about what the motivation for this change was. Are we missing some security issue? 
Nov 19, 2013
#12 meenyada...@gmail.com
thanks so much but i think battery not save 
 
Nov 19, 2013
#13 d.guzaus...@gmail.com
I vote for this!
Nov 19, 2013
#14 mlkauf...@gmail.com
I would like battery stats back as well.
Nov 19, 2013
#15 efi...@gmail.com
Battery stats is beneficial for many users, it should be reverted to its previous state.
Nov 19, 2013
#16 Michael....@gmail.com
I would like them back too
Nov 19, 2013
#17 alex.k1b
I vote for this.
Nov 19, 2013
#18 pi3rre.s...@gmail.com
i vote for this too. without apps like this,  devs would not know if their apps have bugs that drain battery.  without that knowlege,  issues will not be identified and fixed.  users would get frustrated and would eventually swich to the other side. you wouldn't want that,  right?? 
Nov 19, 2013
#20 francis....@gmail.com
I vote for this
Nov 19, 2013
#21 delaware...@gmail.com
I vote
 for this.
Nov 19, 2013
#22 mura...@gmail.com
I also vote for restoring that permission, as there are lots of users who were benefiting from third party apps that detect abusive uses of battery and wakelock. 
Nov 19, 2013
#23 mashhur....@gmail.com
Battery status permission is one of the distinguish feature from iOS.. i would like get this permission forever.. strictly vote this issue...
Nov 19, 2013
#24 alexterr...@gmail.com
The one above me somewhere about iOS, and the one about third party apps,
that is the main reason why I want this permission moved back to the user
category.
Nov 19, 2013
#25 DanielDa...@gmail.com
I vote for this!
Nov 19, 2013
#26 habdooll...@gmail.com
"According to a study made by P. Vekris: “55% of 328 applications using wakelocks do not follow our policies for no-sleep bugs” [2012]. Some major applications have been released with No-Sleep bugs."
ref : http://software.intel.com/en-us/articles/wakelocks-detect-no-sleep-issues-in-android-applications

How Android developers and users have to deal with this issue  in KitKat??

Nov 19, 2013
#27 joseph.p...@gmail.com
Please fix. Also please don't remove the gallery app. I don't want the dang Google Plus thing.
Nov 19, 2013
#28 joseph.p...@gmail.com
Be careful Google. 4.4 is looking more and more like you're going to piss a lot of people off.
Nov 19, 2013
#29 adsilva1...@gmail.com
I vote for this too, it is useful to see what is draining the battery in the case of aosp roms. 
Nov 20, 2013
#30 D3xp...@gmail.com
Another unacceptable and unneeded change within Android. Please revert as suggested by the op.

I don't like the direction where android is going. Closed source changes, never a good thing.
Nov 20, 2013
#31 leandron...@gmail.com
I vote this too. How can I use some of the battery status apps that I like?
Nov 20, 2013
#32 sergey.c...@gmail.com
I vote for this too
Nov 20, 2013
#33 daniel.n...@gmail.com
Have my vote!
Nov 20, 2013
#35 K.Alex....@gmail.com
I'd like to see Wakelock Detector at the android 4.4 very much!
Nov 20, 2013
#36 elvie...@gmail.com
I absolutely vote for this!!!
Nov 20, 2013
#37 colind...@gmail.com
Folks, please STAR the issue in the upper left hand corner of the page instead of constantly adding a vote comment. Vote comments serve not but to annoy the crap out of everyone who has starred it.
Nov 20, 2013
#38 Vlado.Br...@gmail.com
i vote for this !!
Nov 20, 2013
#39 hassi4...@gmail.com
I vote for this
Nov 20, 2013
#40 griffor...@gmail.com
Not cool Goog.give it back.
Nov 21, 2013
#42 edisonpe...@gmail.com
I vote for Ruud. I need this app
Nov 21, 2013
#43 insignia...@gmail.com
I vote for this
Nov 21, 2013
#44 tim.mill...@gmail.com
Please allow battery stat permissions. Very useful for monitoring!
Nov 21, 2013
#45 jlstan...@gmail.com
 Posting a comment that "you vote for this" does +nothing+.  Make sure you highlight the star near the top off this page.  That gets counted as a vote for this issue.

I agree with all of the above.  That someone could make this change with little or no consideration as to the negative effects of such a change is frustrating and a bit scary.  Is there no oversight of changes like this?  You don't change APIs without major justification.

In trying to deal with putting the backup control mechanism in the wrong place, they "fixed" the problem, but caused a much bigger problem.

They should have removed the backup controls from the battery info/status api and created a separate api for that function.  They took a shortcut and we're now seeing the downside of taking shortcuts.

Reverse this change.
Nov 21, 2013
#46 bexte...@gmail.com
Really need this back. Used an app for my Nexus 7 and found a couple of games were the culprit. Having issues again with something and now I have no way to find out. Frustrating as my partner was going to get a Nexus 7 but not until we can identify why my battery is terrible.
Nov 21, 2013
#47 angel.mo...@gmail.com
As a user, I would also like to see this.

Nov 21, 2013
#48 totallys...@gmail.com
Please reintroduce as required for wake lock analysis .
Nov 21, 2013
#49 weijie....@gmail.com
Please undo
Nov 22, 2013
#52 m.panicc...@gmail.com
I vote for this!!
Nov 22, 2013
#53 torbjorn...@gmail.com
Please undo this change asap! It makes no sense to me!
Nov 22, 2013
#54 AAStevens70
for the last time people,  click the star at the top left of this page,  typing "I vote for this" does nothing and you are annoying the people like me waiting for a useful response from Google or a workaround from the more capable dev community. 

Nov 22, 2013
#55 xder...@googlemail.com
Please undo this
Nov 22, 2013
#56 robertd2...@gmail.com
I voted that I want my battery stats back. I use GSAM app everyday to know what's going on with my apps. 
I find we are entering Apple territory, that is, Big brother knows best and can control whatever he wants.
Nov 22, 2013
#57 Tylo...@gmail.com
I vote for this.
Nov 23, 2013
#58 and...@razve.net
Vote
Nov 23, 2013
#59 m4tthias...@googlemail.com
Vote
Nov 23, 2013
#60 zor...@gmail.com
Vote
Nov 23, 2013
#61 yaniklei...@gmail.com
Vote !
Nov 23, 2013
#62 Charlott...@gmail.com
I vote for this
Nov 23, 2013
#63 marc.zim...@gmail.com
Bad decision. Please restore this functionality so that apps like Wakelock Detector can work again. It helped me understand why my phone's battery occasionally drained after wireless charging.
Nov 23, 2013
#64 apm.de.h...@gmail.com
Vote!
Undo this change or explain.
Nov 23, 2013
#65 shaun.h...@gmail.com
PLEASE DO NOT COMMENT if you have nothing constructive to say (technical information, information on why Google changed this, etc). DO NOT just say "I vote!!"
Nov 23, 2013
#66 alexterr...@gmail.com
As comment number 36 said;
Folks, please STAR the issue in the upper left hand corner of the page
instead of constantly adding a vote comment. Vote comments serve not but to
annoy the crap out of everyone who has starred it.
Nov 23, 2013
#67 saba.hf...@gmail.com
I also vote for this.
Nov 23, 2013
#68 irve...@gmail.com
Я за отмену этого изменения!  
Nov 23, 2013
#69 joseph.p...@gmail.com
Fixxx
Nov 24, 2013
#70 charvel...@gmail.com
Star marked. I vote too 

Nov 24, 2013
#71 database...@gmail.com
I vote for it
Nov 24, 2013
#72 kovba...@inbox.ru
Я за отмену этого изменения!
Nov 24, 2013
#73 czigany....@gmail.com
Vote!
Nov 24, 2013
#74 cschmada...@googlemail.com
Bad time for that move, for me the KitKat update came in just after the trouble with Google Play Services keeping lots of devices awake and sucking their batteries empty. Starred.
Nov 24, 2013
#75 ccornel...@gmail.com
I vote for this!

Nov 24, 2013
#76 milanant...@gmail.com
Please undo this
Nov 24, 2013
#77 palpac...@gmail.com
I vote for this!

Nov 24, 2013
#78 mjevans1...@gmail.com
I *ed the issue but would like to explain WHY this tool is useful from a user perspective.

After updating to 4.4 on my Nexus 4 I've noticed that my phone will go from a full charge to almost dead or fully dead /overnight/ (depending on how much I sleep in).  The class of applications that use this feature are the only tool I have for determining where the fault for this change in behavior lies and thus how to begin fixing the issue.
Nov 24, 2013
#79 bish.r...@gmail.com
For those of you who have issues with overnight drain, put your phone on airplane mode and consider force stopping offending apps. I did that last night: when I went to sleep it was 88%, when I woke up it was 88%. Same story for most of the other times I did that. Regardless, I would definitely like to see this issue fixed; this is an important permission that shouldn't have been revoked in the first place. That said, I'm sure Google is on it.
Nov 24, 2013
#80 DJCom...@gmail.com
Voted
Nov 24, 2013
#81 Prash.So...@gmail.com
Vote
Nov 24, 2013
#82 rudy...@gmail.com
Google, please make KitKat more user-friendly.
Nov 24, 2013
#83 halfsqua...@gmail.com
Something is keeping my phone awake and killing my battery. I used to be able to diagnose such issues, but not any more. Thanks Google!
Nov 24, 2013
#84 miniyo...@gmail.com
Voted for this.  I seriously need to use applications which cause no-sleep problems.
Nov 24, 2013
#85 bhaskarj...@gmail.com
I vote for this too!
Nov 25, 2013
#86 s...@held-fischer.de
Please undo this
Nov 25, 2013
#87 pbouloug...@gmail.com
This is an important issue that needs to be resolved.
Nov 25, 2013
#88 pujos.mi...@gmail.com
One can suppose this permission was removed to prevent battery monitoring apps to blame other apps (including Google apps) for (supposedly) bad behaviour.
Nov 25, 2013
#90 nair...@gmail.com
Starred issue, would definitely like this reverted please.

Nov 25, 2013
#91 manfredg...@googlemail.com
Bitte wieder Rückgängig machen
Nov 25, 2013
#92 avbaker...@gmail.com
Vote
Nov 25, 2013
#93 dandwhe...@gmail.com
I vote for this... This service is critical for general troubleshooting 
Nov 25, 2013
#94 zmetz...@gmail.com
I vote to revert this code so that BBS+ works again. 

What's wrong, Google? Afraid that msm_hsic_wakelock issue (which has never been solved and eats my phone's battery in a day) was getting too much attention?
Nov 26, 2013
#95 ilge...@gmail.com
I vote for this
Nov 26, 2013
#96 tommasop...@gmail.com
STOP WRITING "I VOTE FOR THIS"! Simply click on the star!

As to the issue, I think that what happened is really a shame.

First of all, I sort of agree with the user that said that this could be a way to hide battery drain problems caused by Google services under the carpet. These problems must be solved, and if Google thinks that an "out of sight, out of mind" approach is an acceptable solution, well, this is a real problem.

Also, giving users the possibility to understand what causes a battery drain in their phones is important, that's why the choice of restricting the battery stat service is definitely an unfortunate choice. One of the reasons why Android gained traction over iOS is its flexibility. Now Google is going in the wrong direction.

Another big problem is the way Google is handling Android OS updates. I see two major problems:
1) there is no early access to newer versions of Android OS (betas) prior to official release
2) too often there are changes that break existing applications, and too often those changes are not documented and not disclosed to developers in advance.

Consider what Microsoft does with Windows... of course it's impossible to guarantee backwards compatibility to every applications for every new version of Windows. But new versions are released to developers many months before their actual release date, so developers (and common users) can test their applications with the new version.

So Google should really change the way they handle Android OS updates, otherwise its developers will get annoyed and switch to WP development as soon as it reaches a decent market share (which will happen).
Nov 26, 2013
#97 knigh...@gmail.com
This is the second time I've seen a comment like this:

"2) too often there are changes that break existing applications, and too often those changes are not documented and not disclosed to developers in advance."

I am very much in favor of restoring this functionality but everyone here needs to keep in mind that this was a private undocumented API. Apple and Microsoft aren't going to notify developers about changes to internal APIs anymore than Google has in this case and nor should they.
Nov 26, 2013
#98 franklem...@gmail.com
I want it back !!!
Nov 26, 2013
#99 sanjivkt...@googlemail.com
I would like this back please.
Nov 26, 2013
#100 bitb...@gmail.com
I vote for this!
Nov 27, 2013
#101 roei.ta...@gmail.com
I agree - upgrade policy is disgraceful.. features should be added not removed or broken.

sorry, but this move (and such) will drive end users away after developers start giving up..
Nov 27, 2013
#103 mikma...@gmail.com
#11
"I'm curious about what the motivation for this change was. Are we missing some security issue?"

I'm also curious. Could the batterystats/batteryinfo make the device vulnerable to side channel attacks?

Nov 27, 2013
#104 arbi...@gmail.com
Voted.

Why would functionality like this be removed intentionally?
Nov 28, 2013
#105 audrius....@gmail.com
Maybe they have reason to do this, but seems we really need to hear a proper explanation.
Nov 29, 2013
#106 mladenov...@gmail.com
I vote for this as well and would be very interested to know why it was changed in the first place!

Nov 30, 2013
#107 rie...@squishypuppy.com
Please undo this change. 
Nov 30, 2013
#108 valentin...@gmail.com
Google, please undo this change. As an user I found very helpful the detailed level of info provided by apps like BetterBatteryStats in order to diagnose which apps or services are draining the battery and in which cases. 
Nov 30, 2013
#109 par.bo...@gmail.com
How can an os update ever be allowed to break apps that adheres to api's? Please ensure compatibility and proper regression testing before you roll out updates Google. This change is breaking one of my favorite apps. If battery stats truly breaks security why not offer an alternate interface/service to devs so that existing apps continue to work with a bit of porting work? 
Dec 1, 2013
#110 twofoldp...@yahoo.com
Agree with the above.  The standard usage readout does not show all apps and doesn't provide enough drill down, especially when it comes to wakelocks, to be useful. The manner inwhich this has been introduced has also been ddisconcertingly opaque. 
Dec 4 (6 days ago)
#111 fabricio...@gmail.com
Voto para esta modificação ser revertida !

I vote for you undo this change !
Dec 4 (6 days ago)
#112 wbengsto...@gmail.com
I need this feature.
Dec 4 (6 days ago)
#113 jorgeara...@gmail.com
Fixx
Dec 4 (5 days ago)
#114 massimo....@gmail.com
Open Source... ?
I need this feature restored as soon as possible.
Kitkat is killing my Nexus battery. Probably due to the "improved" gnow intagration.
Fix!
Dec 5 (5 days ago)
#115 access.s...@gmail.com
What happened to open-source?? Come on google remove the restriction pls.

Dec 5 (5 days ago)
#116 fonter.y...@gmail.com
I would like them back too
Dec 5 (5 days ago)
#117 colin.be...@gmail.com
Please add them
Dec 6 (4 days ago)
#118 elias.ir...@gmail.com
Add them.
Dec 7 (2 days ago)
#119 lucky...@gmail.com
Please fix so I can monitor my battery again without root 
Dec 8 (46 hours ago)
#121 tfo...@gmail.com
Dont you guys understand why Google dont want us to see stats? Because almost all the time the problem of drain has to do with 
google services. Google just doesn't want people to deactivate their services, instead of fixing the bugs.

People, dont you realise? Android will become closer and closer. It already started a few versions ago. It will become almost 
as closed as Apple. Mark my words. Keep this message. From 3/4 years you will see. This is not a hunch, it's just 
facts...

I hope Tizen soars up, and be a viable alternative and aim to be to what Android used to be.
Sign in to add a comment

Powered by Google Project Hosting