FORUMS
Remove All Ads from XDA

[XPOSED MODULE][MOD] Enable BATTERY_STATS In KitKat

44 posts
Thanks Meter: 56
 
Post Reply Email Thread
5th December 2014, 01:12 AM |#61  
Senior Member
Thanks Meter: 114
 
More
Quote:
Originally Posted by Mariner_1712

Here

Its not there in the latest BBS build.
 
 
5th December 2014, 08:21 AM |#62  
Primokorn's Avatar
Recognized Contributor / Themer
Thanks Meter: 6,993
 
More
Quote:
Originally Posted by bland.life

Its not there in the latest BBS build.

I have the latest apk (2.0 RC2) and I do have this option. From the main screen: Menu > Settings > Advanced > Do not detect system app.
9th January 2015, 08:40 PM |#63  
Senior Member
Thanks Meter: 286
 
Donate to Me
More
I have installed and enabled the module (and of course rebooted). I use BetterBatteryStats and GSam.
BetterBatteryStats refuses to give alarm info unless installed as a system app, although I have checked the "Do not detect system app" checkbox.
Also, GSam shows this in the logcat: E/com.gsamlabs.bbm.lib.NotifyingService(29114): Error getting kernel wakelock stats my way - let's get the built in ones...
So doesn't the module work?
My phone is a Galaxy S5 using stock 4.4.4 ROM.
15th February 2015, 02:50 PM |#64  
XlAfbk's Avatar
Senior Member
Thanks Meter: 398
 
More
FYI, it's broken on Lollipop:

Code:
I/Xposed  ( 3743):   Loading class com.gsamlabs.xposed.mods.enablebatterystatspermission.HookGetStatisticsMethodCall
I/Xposed  ( 3743): EnableBatteryStatsPermission failed to load a field - we won't be able to bypass any permissions.  This should NEVER happen.
E/Xposed  ( 3743): java.lang.ClassNotFoundException: com.android.server.am.BatteryStatsService
E/Xposed  ( 3743):      at java.lang.Class.classForName(Native Method)
E/Xposed  ( 3743):      at java.lang.Class.forName(Class.java:308)
E/Xposed  ( 3743):      at java.lang.Class.forName(Class.java:272)
E/Xposed  ( 3743):      at com.gsamlabs.xposed.mods.enablebatterystatspermission.HookGetStatisticsMethodCall.<clinit>(HookGetStatisticsMethodCall.java:60)
E/Xposed  ( 3743):      at java.lang.reflect.Constructor.newInstance(Native Method)
E/Xposed  ( 3743):      at java.lang.Class.newInstance(Class.java:1572)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:463)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:418)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:105)
E/Xposed  ( 3743): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.server.am.BatteryStatsService" on path: DexPathList[[zip file "/data/app/com.gsamlabs.xposed.mods.enablebatterystatspermission-1.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Xposed  ( 3743):      at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Xposed  ( 3743):      at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Xposed  ( 3743):      at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/Xposed  ( 3743):      ... 9 more
E/Xposed  ( 3743):      Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.android.server.am.BatteryStatsService" on path: DexPathList[[zip file "/system/framework/XposedBridge.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Xposed  ( 3743):              at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Xposed  ( 3743):              at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Xposed  ( 3743):              at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Xposed  ( 3743):              ... 10 more
E/Xposed  ( 3743):              Suppressed: java.lang.ClassNotFoundException: com.android.server.am.BatteryStatsService
E/Xposed  ( 3743):                      at java.lang.Class.classForName(Native Method)
E/Xposed  ( 3743):                      at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/Xposed  ( 3743):                      at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/Xposed  ( 3743):                      at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Xposed  ( 3743):                      ... 11 more
E/Xposed  ( 3743):              Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
The Following 2 Users Say Thank You to XlAfbk For This Useful Post: [ View ] Gift XlAfbk Ad-Free
14th March 2015, 01:51 AM |#65  
Senior Member
Thanks Meter: 1,010
 
Donate to Me
More
Quote:
Originally Posted by XlAfbk

FYI, it's broken on Lollipop:

Code:
I/Xposed  ( 3743):   Loading class com.gsamlabs.xposed.mods.enablebatterystatspermission.HookGetStatisticsMethodCall
I/Xposed  ( 3743): EnableBatteryStatsPermission failed to load a field - we won't be able to bypass any permissions.  This should NEVER happen.
E/Xposed  ( 3743): java.lang.ClassNotFoundException: com.android.server.am.BatteryStatsService
E/Xposed  ( 3743):      at java.lang.Class.classForName(Native Method)
E/Xposed  ( 3743):      at java.lang.Class.forName(Class.java:308)
E/Xposed  ( 3743):      at java.lang.Class.forName(Class.java:272)
E/Xposed  ( 3743):      at com.gsamlabs.xposed.mods.enablebatterystatspermission.HookGetStatisticsMethodCall.<clinit>(HookGetStatisticsMethodCall.java:60)
E/Xposed  ( 3743):      at java.lang.reflect.Constructor.newInstance(Native Method)
E/Xposed  ( 3743):      at java.lang.Class.newInstance(Class.java:1572)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:463)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:418)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:105)
E/Xposed  ( 3743): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.server.am.BatteryStatsService" on path: DexPathList[[zip file "/data/app/com.gsamlabs.xposed.mods.enablebatterystatspermission-1.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Xposed  ( 3743):      at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Xposed  ( 3743):      at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Xposed  ( 3743):      at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/Xposed  ( 3743):      ... 9 more
E/Xposed  ( 3743):      Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.android.server.am.BatteryStatsService" on path: DexPathList[[zip file "/system/framework/XposedBridge.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Xposed  ( 3743):              at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Xposed  ( 3743):              at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Xposed  ( 3743):              at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Xposed  ( 3743):              ... 10 more
E/Xposed  ( 3743):              Suppressed: java.lang.ClassNotFoundException: com.android.server.am.BatteryStatsService
E/Xposed  ( 3743):                      at java.lang.Class.classForName(Native Method)
E/Xposed  ( 3743):                      at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/Xposed  ( 3743):                      at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/Xposed  ( 3743):                      at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Xposed  ( 3743):                      ... 11 more
E/Xposed  ( 3743):              Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

I have tested it and found "Class.forName" can't find the system class (com.android.server.am.BatteryStatsService).
7th July 2015, 10:28 AM |#66  
ASHURiCAN's Avatar
Senior Member
Thanks Meter: 123
 
More
Quote:
Originally Posted by XlAfbk

FYI, it's broken on Lollipop:

Code:
I/Xposed  ( 3743):   Loading class com.gsamlabs.xposed.mods.enablebatterystatspermission.HookGetStatisticsMethodCall
I/Xposed  ( 3743): EnableBatteryStatsPermission failed to load a field - we won't be able to bypass any permissions.  This should NEVER happen.
E/Xposed  ( 3743): java.lang.ClassNotFoundException: com.android.server.am.BatteryStatsService
E/Xposed  ( 3743):      at java.lang.Class.classForName(Native Method)
E/Xposed  ( 3743):      at java.lang.Class.forName(Class.java:308)
E/Xposed  ( 3743):      at java.lang.Class.forName(Class.java:272)
E/Xposed  ( 3743):      at com.gsamlabs.xposed.mods.enablebatterystatspermission.HookGetStatisticsMethodCall.<clinit>(HookGetStatisticsMethodCall.java:60)
E/Xposed  ( 3743):      at java.lang.reflect.Constructor.newInstance(Native Method)
E/Xposed  ( 3743):      at java.lang.Class.newInstance(Class.java:1572)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:463)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:418)
E/Xposed  ( 3743):      at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:105)
E/Xposed  ( 3743): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.server.am.BatteryStatsService" on path: DexPathList[[zip file "/data/app/com.gsamlabs.xposed.mods.enablebatterystatspermission-1.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Xposed  ( 3743):      at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Xposed  ( 3743):      at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Xposed  ( 3743):      at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/Xposed  ( 3743):      ... 9 more
E/Xposed  ( 3743):      Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.android.server.am.BatteryStatsService" on path: DexPathList[[zip file "/system/framework/XposedBridge.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Xposed  ( 3743):              at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Xposed  ( 3743):              at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Xposed  ( 3743):              at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Xposed  ( 3743):              ... 10 more
E/Xposed  ( 3743):              Suppressed: java.lang.ClassNotFoundException: com.android.server.am.BatteryStatsService
E/Xposed  ( 3743):                      at java.lang.Class.classForName(Native Method)
E/Xposed  ( 3743):                      at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/Xposed  ( 3743):                      at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/Xposed  ( 3743):                      at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Xposed  ( 3743):                      ... 11 more
E/Xposed  ( 3743):              Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

So, doesn't work on Lollipop? Do we still need this on Lollipop? Any alternative? I'm using the 3 apps (betterBatteryStats, Gsam and Wakelock Detector).

Thx.
26th October 2015, 08:27 PM |#67  
Junior Member
Thanks Meter: 0
 
More
This module will work on Lollipop?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes