事情是這樣的...
我有一個搖桿透過 type c 接到手機上,我先 adb root 再下 adb shell
才可以看到 /dev/hidraw0 ,而我有一個daemon 要 open 這個 hidraw0 去撈資料
所以我就將init.rc 中的下面這行做些修改
service flash_recovery /system/bin/install-recovery.sh
class main
user root
oneshot
install-recovery.sh內容為:
#!/system/bin/sh
exec /system/bin/virtualsensor