[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
Hey Buddy, really appreciate your work on this ROMs

when i was working on mods, after attaching battery mod everythings goes well but 2 strange things happened one of them was about "ModFmwkProxyService" couldn't find some motorola setting classes and stopped working

(i don't think it's too important)

LOGs :

02-10 13:01:09.233 4925 5060 I chatty : uid=10018(com.motorola.modservice) Mod Service expire 3 lines
02-10 13:01:09.236 9768 9781 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
02-10 13:01:09.236 9768 9781 E JavaBinder: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/motorola/android/provider/MotorolaSettings$Secure;
02-10 13:01:09.236 9768 9781 E JavaBinder:	at com.motorola.modservice.fmwkwrapper.IntentReceiver.setDisplayOffByFpsEnabled(IntentReceiver.java:180)
02-10 13:01:09.236 9768 9781 E JavaBinder:	at com.motorola.modservice.fmwkwrapper.IntentReceiver.onDetach(IntentReceiver.java:234)
02-10 13:01:09.236 9768 9781 E JavaBinder:	at com.motorola.modservice.fmwkwrapper.FrameworkProxyService$1.onModAttachDetach(FrameworkProxyService.java:137)
02-10 13:01:09.236 9768 9781 E JavaBinder:	at com.motorola.fmwkwrapper.IFrameworkProxyService$Stub.onTransact(IFrameworkProxyService.java:96)
02-10 13:01:09.236 9768 9781 E JavaBinder:	at android.os.Binder.execTransact(Binder.java:565)
02-10 13:01:09.236 9768 9781 E JavaBinder: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.motorola.android.provider.MotorolaSettings$Secure" on path: DexPathList[[zip file "/system/priv-app/ModFmwkProxyService/ModFmwkProxyService.apk"],nativeLibraryDirectories=[/system/priv-app/ModFmwkProxyService/lib/arm64, /system/priv-app/ModFmwkProxyService/ModFmwkProxyService.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]
02-10 13:01:09.236 9768 9781 E JavaBinder:	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-10 13:01:09.236 9768 9781 E JavaBinder:	at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
02-10 13:01:09.236 9768 9781 E JavaBinder:	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-10 13:01:09.236 9768 9781 E JavaBinder:	... 5 more
02-10 13:01:09.237 9768 9781 W System.err: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/motorola/android/provider/MotorolaSettings$Secure;
02-10 13:01:09.237 9768 9781 W System.err:	at com.motorola.modservice.fmwkwrapper.IntentReceiver.setDisplayOffByFpsEnabled(IntentReceiver.java:180)
02-10 13:01:09.237 9768 9781 W System.err:	at com.motorola.modservice.fmwkwrapper.IntentReceiver.onDetach(IntentReceiver.java:234)
02-10 13:01:09.237 9768 9781 W System.err:	at com.motorola.modservice.fmwkwrapper.FrameworkProxyService$1.onModAttachDetach(FrameworkProxyService.java:137)
02-10 13:01:09.237 9768 9781 W System.err:	at com.motorola.fmwkwrapper.IFrameworkProxyService$Stub.onTransact(IFrameworkProxyService.java:96)
02-10 13:01:09.237 9768 9781 W System.err:	at android.os.Binder.execTransact(Binder.java:565)
02-10 13:01:09.237 9768 9781 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.motorola.android.provider.MotorolaSettings$Secure" on path: DexPathList[[zip file "/system/priv-app/ModFmwkProxyService/ModFmwkProxyService.apk"],nativeLibraryDirectories=[/system/priv-app/ModFmwkProxyService/lib/arm64, /system/priv-app/ModFmwkProxyService/ModFmwkProxyService.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]
02-10 13:01:09.237 9768 9781 W System.err:	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-10 13:01:09.237 9768 9781 W System.err:	at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
02-10 13:01:09.237 9768 9781 W System.err:	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-10 13:01:09.237 9768 9781 W System.err:	... 5 more
02-10 13:01:09.237 9768 9781 E JavaBinder: Forcefully exiting
02-10 13:01:09.261 641 2632 I ActivityManager: Process com.motorola.process.system (pid 9768) has died
02-10 13:01:09.261 641 2632 D ActivityManager: cleanUpApplicationRecord -- 9768
02-10 13:01:09.261 641 2632 W ActivityManager: Scheduling restart of crashed service com.motorola.modservice.fmwkwrapper/.FrameworkProxyService in 1000ms
02-10 13:01:09.261 4925 5007 I chatty : uid=10018(com.motorola.modservice) Greybus Dispatc expire 12 lines
02-10 13:01:09.263 481 481 I Zygote : Process 9768 exited cleanly (1)
02-10 13:01:09.273 641 2616 I ActivityManager: Start proc 12668:com.motorola.process.system/1000 for service com.motorola.modservice.fmwkwrapper/.FrameworkProxyService
02-10 13:01:09.275 4896 4896 I chatty : uid=10018 com.motorola.modservice:ui expire 23 lines
02-10 13:01:09.279 4925 5058 I chatty : uid=10018(com.motorola.modservice) ModFwkUpdateThr expire 4 lines

and second one is related to "ModManager", can't read "/sys/" contents

so it makes sense when "ModManager" can't read kernel driver stuffs it can't show battery percentage

i granted selinux denials as it was possible but still can't read them, i really don't know why it's happening :confused:

LOGs :

02-10 13:09:32.744 4925 4996 E ModManager: Error in reading /sys/devices/platform/mods_ap/greybus1/1-3/1-3.2/connections:java.io.FileNotFoundException: /sys/devices/platform/mods_ap/greybus1/1-3/1-3.2/connections (No such file or directory)
02-10 13:09:32.744 4925 4996 E ModHotplugManager: Unable to read /sys/devices/platform/mods_ap/greybus1/1-3/1-3.2/connections

i'll be glad to help, just ask me to test what you want bro, i have battery mod ;)

thanks again