Romain Vimont
Romain Vimont
An issue with using the existing `ADBKeyBoard` is the absence of permissions. As a consequence, once enabled, any installed app could inject any text or events (anything managed by [`AdbIME`](https://github.com/senzhk/ADBKeyBoard/blob/master/keyboardservice/src/main/java/com/android/adbkeyboard/AdbIME.java))...
> so normal but 1 sec delay Which branch?
Could you confirm that there is no delay on my branch (https://github.com/Genymobile/scrcpy/pull/1751#issuecomment-724268986)?
@quyleanh I implemented broadcasts so that it works without latency (https://github.com/Genymobile/scrcpy/pull/1751#issuecomment-724268986), but the absence of permissions of AdbKeyboard is a problem (https://github.com/Genymobile/scrcpy/pull/1751#issuecomment-724532949). Also, scrcpy should enable/disable the keyboard on start/stop....
> I know that copy paste feature. But I would like to inject UTF-8 characters directly from keyboard. Yes, I know, but since you said that Vietnamese characters were not...
> [server] WARN: Could not inject char u+1ed3 You're not running my branch `adbkeyboard` with `scrcpy --use-adb-keyboard`: https://github.com/Genymobile/scrcpy/pull/1751#issuecomment-724268986
Try with AdbKeyboard alone: https://github.com/senzhk/ADBKeyBoard (without scrcpy).
Yes, I got it, but try with AdbKeyboard alone to check if Vietnamese characters work. If they don't, then it's expected that the `adbkeyboard` branch can't do it either. If...
Test with ints: ``` adb shell am broadcast -a ADB_INPUT_CHARS --eia chars 7891 ``` (7891 is 0x1ed3)
OK so in theory it should work with scrcpy on `adbkeyboard`. I don't know why it does not, but will not investigate for now, since in the end scrcpy should...