In lieu of the rewrite to be more general: droidux, I have archived this project. Please try out the new project !
- Boox Note Air 2
- Boox Ultra Tab C
Virtual user space driver for boox devices
If your are on x11 you need to install the xorg-evdev driver (xf86-input-evdev
on arch).
If you are on wayland it should work out of the box !, if you have issues open an issue.
You also need android platform tools for adb
TODO: add more details about this
Build the project
cargo build --release
and run it
sudo ./target/release/vboox
NOTE: Currently this works (hopefully)
The vbooxd.sh
script at the root of this repository can be run in the background like so
setsid -f sh -c 'exec ./vbooxd.sh <device name (e.g NoteAir2)> 2>&1 > /dev/null'
This will check by default every 10 seconds to see if you have a device connected (and allowed) and subsequently launch the driver.
You can change the interval by running like so
setsid -f sh -c 'check_period_in_seconds=1 ./vbooxd.sh <device name (e.g UltraTabC)> 2>&1 > /dev/null'
As of android 11 you can use adb wirelessly by enabling wireless debugging and pairing your device.
Currently works with usb and wifi connections, basically once you have an adb connection regardless of how, this program should work
If you want your device to have support you can help ! even if you don't write the driver yourself opening an issue and being willing to gather device specifications.
This uses adb to fetch kernel input events via the builtin getevent
tool on android - then it simply creates an appropriate virtual device via evdev and emits any events it reads from getevent
.
If you get permission errors you can set the binary to run as root like so
chown root /path/to/vboox
chgrp root /path/to/vboox
chmod u+s /path/to/vboox