Hacker News new | past | comments | ask | show | jobs | submit login

Is there any way to find this out in other versions of Android? I've been experiencing severe battery drain recently and am unable to pinpoint to the app causing it.



Xposed Framework + XPrivacy allows quite granular access controls and history track of those

https://github.com/M66B/XPrivacy#xprivacy

http://i.imgur.com/mZC4RjE.png (random picture of usage history, found on net)


Google should be required to give root to any user that request it for their own device... (anyone should be able to get better control of their own device). It would be easier to control crazy permissions.


They do. It's called the Nexus.


Don't most other phones too? I could unlock the bootloader on my HTC One and my Z3 with just one command.


Is my Nexus 5 pre-rooted?

edit: I don't really know a lot about this stuff, I was just trying to understand the comment I was responding to. I think I maybe misunderstand something fundamentally.


> Is my Nexus 5 pre-rooted?

No, but Google has made sure that doing so is pretty trivial: https://wiki.cyanogenmod.org/w/Install_CM_for_hammerhead


Why would it have to be? It allows you to enable root access without exploits or trying to prevent you from doing the process.


Why would Google pre-root their phones?


I didn't know that they are now letting users root Nexus devices without having to use exploits and such, but I was refering to all devices that use the Android OS.


> I didn't know that they are now letting users root Nexus devices without having to use exploits and such...

If by "letting users root" you mean providing instructions on using ADB to unlock the bootloader, install a custom recovery, sideload SuperSU, and reboot into a fully rooted device, then no. Google doesn't provide these instructions, but they also don't lock the phone down to the point that you have to find an exploit and pray you don't brick the phone. No exploits necessary on a Nexus, just standard tools and instructions available on any reputable Android dev site.


You could reverse engineer it: http://stackoverflow.com/questions/12732882/reverse-engineer...

I would like to hear from other people about other methods or tools to answer your question.

Edit: Sorry, been awake for too long and misread your question. You could use this, but I am not endorsing this app: https://play.google.com/store/apps/details?id=com.gsamlabs.b...


I was experiencing severe battery drainage also with Cyanogenmod on my old Google Nexus 3. Turns out the culprit was Google services keeping the location service going to sleep.

Turned out a newer update of Google Services just does something wrong on unofficial builds. You can see from the preferences which application is keepign the phone awake, but I think you might have to enable the developer options.

Solution was hacky, had to install a runtime script which was called on each boot, so that the particular service was blocked. Or maybe it was just looking at the battery stats, not sure anymore.


If you're willing to use a custom rom, you can see the counts with Cyanogenmod 12.1, based on Android 5.1 (maybe in previous versions too). 17 562 times for me in less than a month.


Without diving into root, the best method is to use safe mode, and if the battery drain vanishes, start uninstalling everything until the problem goes away.

The factory battery report isn't sophisticated enough to correctly attribute blame for more indirect battery usage patterns.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: