mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Fix root input device capture on the Nexus 9
This commit is contained in:
parent
897bb76858
commit
1dfcb7bc29
@ -26,7 +26,7 @@ public class EvdevReader {
|
|||||||
// 4.4 and later to do live SELinux policy changes.
|
// 4.4 and later to do live SELinux policy changes.
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||||
EvdevShell shell = EvdevShell.getInstance();
|
EvdevShell shell = EvdevShell.getInstance();
|
||||||
shell.runCommand("supolicy --live \"allow untrusted_app input_device dir getattr\" " +
|
shell.runCommand("supolicy --live \"allow untrusted_app input_device dir { getattr read search }\" " +
|
||||||
"\"allow untrusted_app input_device chr_file { open read write ioctl }\"");
|
"\"allow untrusted_app input_device chr_file { open read write ioctl }\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user