Romain Vimont
Romain Vimont
If you record, is the result ok? ``` scrcpy --record file.mp4 ``` In any case, see #55. Try with another [encoder](https://github.com/Genymobile/scrcpy#encoder) or give a max size with `-m` so that...
> Connection to same android device working well from another scrcpy installation. Interesting, this suggests that the problem is in the decoder. What are the dimensions, as printed in the...
Update to the latest version (1.24). Does it solve the problem?
https://github.com/Genymobile/scrcpy/blob/dce08677375dbb1b65217c6f4080b012284f4afa/server/src/main/java/com/genymobile/scrcpy/Controller.java#L210-L214 https://github.com/Genymobile/scrcpy/blob/dce08677375dbb1b65217c6f4080b012284f4afa/server/src/main/java/com/genymobile/scrcpy/Device.java#L178-L179 [`InputDevice.SOURCE_GAMEPAD`](https://developer.android.com/reference/android/view/InputDevice#SOURCE_GAMEPAD) and pass some arbitrary `deviceId`?
Hmm, opening /dev/uinput requires root permissions, right?
> > Hmm, opening /dev/uinput requires root permissions, right? > > Nope. Just limited to the ADB shell (at least on my phone). Does it mean it can also be...
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).
Or even [Libcore.java](https://android.googlesource.com/platform/libcore/+/dc5351ff0193f6c82478981e32561a779651821a/luni/src/main/java/libcore/io/Libcore.java#31) + [Linux.java](https://android.googlesource.com/platform/libcore/+/dc5351ff0193f6c82478981e32561a779651821a/luni/src/main/java/libcore/io/Linux.java). With that, you might not need JNA. EDIT: to be adapted on older versions of Android, for example on Android 6 there is no field...
_(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) … ``` So: ```java Method m...
Thank you. > Sometimes, VirtualDisplay DisplayInfo object returns null Do you know why? Are there another `getDisplayInfo` method with different parameter types on your device (if you list all the...