koreader / android-luajit-launcher

Android NativeActivity based launcher for LuaJIT, implementing the main loop within Lua land via FFI
MIT License
132 stars 84 forks source link

Xiaomi Moaan InkPalm Mini 5 Pro Driver Help #507

Open aviettran opened 3 weeks ago

aviettran commented 3 weeks ago

Manufacturer: allwinner Brand: allwinner Model: epd105 Device: virgo_perf1 Product: virgo_perf1 Hardware: sun8iw15p1 Platform: virgo

I did some poking around starting by decompiling the stock launcher. I found some methods for controlling lights and moved on to trying to do a POC Android app. I tried:

forName("android.p002os.moan.MoanLed")

Which yields a ClassNotFoundException. The device is API level 27 which rules out any hidden API issues. I'm pretty stuck at this point. This is not my area of expertise. Would anyone be able to give me some pointers?

hugleo commented 3 weeks ago

Perhaps android.p002os.moan.MoanLed is an app library and not a system class, so you might need to search further. It could also be blocked for third-party apps. Some cases require root access or might be restricted due to SELinux policies. Detailed adb logs can give hints if that's the problem.

aviettran commented 3 weeks ago

It is, in all likelihood, a library. Is there a way to determine which it is with certainty? The methods in question are writing values directly to /proc, so there's nothing else involved, as far as I can tell. I checked the ADB logs and do not see anything else which may be related.