-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added onyx note air3c #471
Conversation
Changes to support the onyx air book3c device. Device info: Manufacturer: qualcomm Brand: onyx Model: noteair3c Device: noteair3c Product: noteair3c Hardware: qcom Platform: bengal
Thanks, looks good!
I'm afraid we cannot merge it without tests. We cannot trust adb (whoops, button!) |
Building KO is easy, just a few steps: https://github.com/koreader/koreader/blob/master/doc/Building.md If you don't want to bother with the task, let us know, so someone can create an APK for you to try :) |
I have compiled the application in debug mode but it seems that it gives permissions problems when trying to modify the brightness value preventing the app to start, then when I have time I will investigate to see if I can modify the brightness using the sdk with reflection. |
After investigating the SDK a little bit it seems that the light management works with this, during the next few days I will be using koreader on the device in case I see something weird, but it looks good. Wait until I used it a little before integrating it. |
80c0524
to
84504d1
Compare
Hi, Can you test your device with this driver? https://github.com/koreader/android-luajit-launcher/blob/master/app/src/main/java/org/koreader/launcher/device/lights/OnyxAdbLightsController.kt The code looks essentially the same. How to enable the permission: https://github.com/koreader/koreader/wiki/Android-tips-and-tricks#adb-stuff Reflection alone or double reflection (Android 10) will not work for these methods anymore. It works on the Onyx SDK because it utilizes the external library 'lsposed' to bypass the hidden API restrictions in Android >=11 ;-) |
I'm attempting to make OnyxSdkLightsController.kt generic. I assume that setLightValue and getLightValue will work properly for any Onyx device, which makes the driver more compact. Of course, we can still use the old methods setWarmLightDeviceValue, setColdLightDeviceValue, and getBrightnessConfig with slight adaptations ;-)
|
Changes to support the onyx air book3c device. I have not been able to check that the code works after compiling it since I don't have the android development kit installed although I have checked that the paths to get/modify the white/warm light work correctly with the adb shell.
The android version is
12
, the device version is2023-12-29_16-55_3.5_f54c71ad2
and the device info isThe log obtained after the execution of the compability test could be found in test.log.zip
This change is