redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

Redroid does not support button drive,/dev/input/event2

Open liukeqqs opened this issue 2 years ago • 5 comments

Describe the bug Redroid does not support button drive,/dev/input/event2

make sure the required kernel modules present

  • grep binder /proc/filesystems
  • grep ashmem /proc/misc

collect debug logs curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER] omit CONTAINER if not exist any more.

Screenshots QQ截图20230919170519

liukeqqs avatar Sep 19 '23 09:09 liukeqqs

Take a look at vendor/redroid/redroid.common.rc, those interfaces are removed on purpose. Someone run redroid on desktop environment (stream via scrcpy), and input events will be sent twice if not removed.

    exec -- /bin/rm -rf /dev/input
    # inputflinger require this dir
    mkdir /dev/input

zhouziyang avatar Sep 19 '23 10:09 zhouziyang

你看vendor/redroid/redroid.common.rc,那些接口是故意去掉的。有人在桌面环境上运行redroid(通过流scrcpy),如果不删除输入事件将发送两次。

    exec -- /bin/rm -rf /dev/input
    # inputflinger require this dir
    mkdir /dev/input

So how can I have it? It's removing

liukeqqs avatar Sep 19 '23 10:09 liukeqqs

You can adjust vendor/redroid/redroid.common.rc to get host input devices mounted.

zhouziyang avatar Sep 19 '23 10:09 zhouziyang

And https://github.com/remote-android/platform_system_core/blob/redroid-11.0.0/rootdir/ueventd.rc#L12

NepPure avatar Dec 19 '23 12:12 NepPure

Take a look at vendor/redroid/redroid.common.rc, those interfaces are removed on purpose. Someone run redroid on desktop environment (stream via scrcpy), and input events will be sent twice if not removed.

    exec -- /bin/rm -rf /dev/input
    # inputflinger require this dir
    mkdir /dev/input

这个调查过是为什么吗,我想修改scrcpy源码 适配

junknet avatar Oct 11 '24 15:10 junknet