mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 02:53:05 +00:00
Fix root mouse capture with su binaries that don't like additional parameters after -c
This commit is contained in:
parent
fa761debc4
commit
7eac609219
@ -55,7 +55,7 @@ public class EvdevCaptureProvider extends InputCaptureProvider {
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
// Launch evdev_reader directly via SU
|
// Launch evdev_reader directly via SU
|
||||||
try {
|
try {
|
||||||
su = Runtime.getRuntime().exec("su -c "+evdevReaderCmd);
|
su = new ProcessBuilder("su", "-c", evdevReaderCmd).start();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
reportDeviceNotRooted();
|
reportDeviceNotRooted();
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user