Luiz Henrique Laurini
Luiz Henrique Laurini
> You might be interested in [`android.system.Os`](https://developer.android.com/reference/android/system/Os). The documentation does not show all the methods, because some are hidden, but you can probably still access them. For example [ioctlInt()](https://android.googlesource.com/platform/libcore/+/dc5351ff0193f6c82478981e32561a779651821a/luni/src/main/java/android/system/Os.java#320). >...
Hmm, I can't seem figure out how to use `ioctlInt`. ```java import android.system.Os; Os.ioctlInt(fd, UI_SET_EVBIT, EV_KEY); ``` fails with ``` error: cannot find symbol Os.ioctlInt(fd, UI_SET_EVBIT, EV_KEY); ^ symbol: method...
> _(Quick msg just to answer about your blocking points)_ > > Before [this commit](https://android.googlesource.com/platform/libcore/+/273504366eb453fde7f1e593e45a33af67ef4203%5E%21/) the signature was: > > ```java > public int ioctlInt(FileDescriptor fd, int cmd, Int32Ref arg)...
> @LHLaurini are you still working on this PR? Not right now, but it works well in its current state, AFAIK. What I have left to do is: - make...
> @LHLaurini thank you for your response. > Actually, I would like to use this branch with UTF-8 text injection. So I think I will wait until you implement the...
> My purpose is whenever I type the UTF-8 characters from physical keyboard, the system will receive it and show correctly on device. Ah, I see. In that case, character...
I have now implemented all that I wanted to. Since it seems we won't be able to use evdev with pure Java, all that's left is to decide about the...
From some quick investigation, I've discovered this is possible by using `uinput`. Normal apps don't have permission to use it, but the adb shell has. That means we can emulate...
It's working. Please test #2130 and let me know about any issues.
@scaldav If #2130 doesn't work for you, it's likely your phone isn't supported (at least not without root). Using the same method as in #2632 would probably make it work...