[Sony Xperia ZR] zavjah:
Hi,

I am using CM11 on Galaxy Nexus. CM11 has battery led and I wanted to deactivate the charging/full led notification leaving only week battery notification on, but it doesn't work. Here's the log from v1.0.1:

-----------------
01.07.2014 17:28:07 UTC
Loading Xposed v54 (for Zygote)...
Running ROM 'cm_maguro-userdebug 4.4.2 KVT49L 697960fbef test-keys' with fingerprint 'google/yakju/maguro:4.3/JWR66Y/776638:user/release-keys'
Loading modules from /data/app/com.boblc.disablechargingled-1.apk
Loading class com.boblc.disablechargingled.DLLoader
Loading modules from /data/app/com.phantasm.xposed.gfesecuritypatcher-1.apk
Loading class com.phantasm.xposed.gfesecuritypatcher.GfeHook
Loading modules from /data/app/com.elesbb.xposedinputautocorrectalways-1.apk
Loading class com.elesbb.xposedinputautocorrectalways.B
java.lang.NoSuchFieldError: com.android.server.BatteryService#mBatteryLevel
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:80)
at de.robv.android.xposed.XposedHelpers.getIntField(XposedHelpers.java:688)
at com.boblc.disablechargingled.DLLoader$1.beforeHookedMethod(DLLoader.java:34)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611)
at com.android.server.BatteryService$Led.updateLightsLocked(Native Method)
at com.android.server.BatteryService.processValuesLocked(BatteryService.java:577)
at com.android.server.BatteryService.update(BatteryService.java:353)
at com.android.server.BatteryService.access$1300(BatteryService.java:86)
at com.android.server.BatteryService$BatteryListener.batteryPropertiesChanged(BatteryService.java:994)
at android.os.IBatteryPropertiesListener$Stub.onTransact(IBatteryPropertiesListener.java:58)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
java.lang.NoSuchFieldError: com.android.server.BatteryService#mBatteryLevel
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:69)
at de.robv.android.xposed.XposedHelpers.getIntField(XposedHelpers.java:688)
at com.boblc.disablechargingled.DLLoader$1.beforeHookedMethod(DLLoader.java:34)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611)
at com.android.server.BatteryService$Led.updateLightsLocked(Native Method)
at com.android.server.BatteryService.updateLedPulse(BatteryService.java:916)
at com.android.server.BatteryService.access$1400(BatteryService.java:86)
at com.android.server.BatteryService$SettingsObserver.update(BatteryService.java:1065)
at com.android.server.BatteryService$SettingsObserver.observe(BatteryService.java:1035)
at com.android.server.BatteryService.<init>(BatteryService.java:198)
at com.android.server.ServerThread.initAndLoop(SystemServer.java:322)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at com.android.server.ServerThread.initAndLoop(Native Method)
at com.android.server.SystemServer.main(SystemServer.java:1373)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
Loaded app: com.good.android.gfe
class found : com.good.android.compliance.ComplianceManagerPolicy
class found : g.aeb
hook1 successful
class found : g.agc
hook1 g.agc fail
hook1 failed
class found : com.good.android.compliance.d
hook2 successfull
hook3 successfull
Loaded app: com.good.android.gfe
class found : com.good.android.compliance.ComplianceManagerPolicy
class found : g.aeb
hook1 successful
class found : g.agc
hook1 g.agc fail
hook1 failed
class found : com.good.android.compliance.d
hook2 successfull
hook3 successfull
-----------------
01.07.2014 17:33:48 UTC
Loading Xposed v54 (for Zygote)...
Running ROM 'cm_maguro-userdebug 4.4.2 KVT49L 697960fbef test-keys' with fingerprint 'google/yakju/maguro:4.3/JWR66Y/776638:user/release-keys'
Loading modules from /data/app/com.boblc.disablechargingled-1.apk
Loading class com.boblc.disablechargingled.DLLoader
Loading modules from /data/app/com.phantasm.xposed.gfesecuritypatcher-1.apk
Loading class com.phantasm.xposed.gfesecuritypatcher.GfeHook
Loading modules from /data/app/com.elesbb.xposedinputautocorrectalways-1.apk
Loading class com.elesbb.xposedinputautocorrectalways.B
java.lang.NoSuchFieldError: com.android.server.BatteryService#mBatteryLevel
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:80)
at de.robv.android.xposed.XposedHelpers.getIntField(XposedHelpers.java:688)
at com.boblc.disablechargingled.DLLoader$1.beforeHookedMethod(DLLoader.java:34)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611)
at com.android.server.BatteryService$Led.updateLightsLocked(Native Method)
at com.android.server.BatteryService.processValuesLocked(BatteryService.java:577)
at com.android.server.BatteryService.update(BatteryService.java:353)
at com.android.server.BatteryService.access$1300(BatteryService.java:86)
at com.android.server.BatteryService$BatteryListener.batteryPropertiesChanged(BatteryService.java:994)
at android.os.IBatteryPropertiesListener$Stub.onTransact(IBatteryPropertiesListener.java:58)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
java.lang.NoSuchFieldError: com.android.server.BatteryService#mBatteryLevel
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:69)
at de.robv.android.xposed.XposedHelpers.getIntField(XposedHelpers.java:688)
at com.boblc.disablechargingled.DLLoader$1.beforeHookedMethod(DLLoader.java:34)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611)
at com.android.server.BatteryService$Led.updateLightsLocked(Native Method)
at com.android.server.BatteryService.updateLedPulse(BatteryService.java:916)
at com.android.server.BatteryService.access$1400(BatteryService.java:86)
at com.android.server.BatteryService$SettingsObserver.update(BatteryService.java:1065)
at com.android.server.BatteryService$SettingsObserver.observe(BatteryService.java:1035)
at com.android.server.BatteryService.<init>(BatteryService.java:198)
at com.android.server.ServerThread.initAndLoop(SystemServer.java:322)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at com.android.server.ServerThread.initAndLoop(Native Method)
at com.android.server.SystemServer.main(SystemServer.java:1373)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
Loaded app: com.good.android.gfe
class found : com.good.android.compliance.ComplianceManagerPolicy
class found : g.aeb
hook1 successful
class found : g.agc
hook1 g.agc fail
hook1 failed
class found : com.good.android.compliance.d
hook2 successfull
hook3 successfull
Loaded app: com.good.android.gfe
class found : com.good.android.compliance.ComplianceManagerPolicy
class found : g.aeb
hook1 successful
class found : g.agc
hook1 g.agc fail
hook1 failed
class found : com.good.android.compliance.d
hook2 successfull
hook3 successfull
-----------------
01.07.2014 17:41:03 UTC
Loading Xposed v54 (for Zygote)...
Running ROM 'cm_maguro-userdebug 4.4.2 KVT49L 697960fbef test-keys' with fingerprint 'google/yakju/maguro:4.3/JWR66Y/776638:user/release-keys'
Loading modules from /data/app/com.boblc.disablechargingled-1.apk
Loading class com.boblc.disablechargingled.DLLoader
disablechargingled - Loading preferences from com.boblc.disablechargingled
Loading modules from /data/app/com.phantasm.xposed.gfesecuritypatcher-1.apk
Loading class com.phantasm.xposed.gfesecuritypatcher.GfeHook
Loading modules from /data/app/com.elesbb.xposedinputautocorrectalways-1.apk
Loading class com.elesbb.xposedinputautocorrectalways.B
disablechargingled - Hooking updateLightsLocked in BatteryService$Led
disablechargingled - Reloading preferences.
disablechargingled - Got mBatteryProps
disablechargingled - mBatteryLevel = 27
disablechargingled - mBatteryStatus = 2
disablechargingled - mLowBatteryWarningLevel = 15
disablechargingled - Reloading preferences.
disablechargingled - Got mBatteryProps
disablechargingled - mBatteryLevel = 27
disablechargingled - mBatteryStatus = 2
disablechargingled - mLowBatteryWarningLevel = 15
Loaded app: com.good.android.gfe
class found : com.good.android.compliance.ComplianceManagerPolicy
class found : g.aeb
hook1 successful
class found : g.agc
hook1 g.agc fail
hook1 failed
class found : com.good.android.compliance.d
hook2 successfull
hook3 successfull
Loaded app: com.good.android.gfe
class found : com.good.android.compliance.ComplianceManagerPolicy
class found : g.aeb
hook1 successful
class found : g.agc
hook1 g.agc fail
hook1 failed
class found : com.good.android.compliance.d
hook2 successfull
hook3 successfull