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.
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.
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.
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.
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.