e282100d0b
Some devices internally create a Handler when creating an input Surface, causing an exception: > Surface: java.lang.RuntimeException: Can't create handler inside > thread that has not called Looper.prepare() As a workaround, call Looper.prepareMainLooper() beforehand. Fixes: - <https://github.com/Genymobile/scrcpy/issues/240> - <https://github.com/Genymobile/scrcpy/issues/921> Signed-off-by: Romain Vimont <rom@rom1v.com>