mirror of
https://github.com/Genymobile/scrcpy.git
synced 2024-09-12 05:21:18 +02:00
Document INJECT_EVENTS permission issue on Xiaomi
Make explicit in the prerequisites the exact message when "USB debugging (Security Settings)" is not set.
This commit is contained in:
parent
67f93350f6
commit
f4a7219c37
1 changed files with 10 additions and 4 deletions
14
README.md
14
README.md
|
@ -53,10 +53,16 @@ Make sure you [enabled USB debugging][enable-adb] on your device(s).
|
||||||
|
|
||||||
[enable-adb]: https://developer.android.com/studio/debug/dev-options#enable
|
[enable-adb]: https://developer.android.com/studio/debug/dev-options#enable
|
||||||
|
|
||||||
On some devices, you also need to enable [an additional option][control] `USB
|
On some devices (especially Xiaomi), you might get the following error:
|
||||||
debugging (Security Settings)` (this is an item different from `USB debugging`)
|
|
||||||
to control it using a keyboard and mouse. Rebooting the device is necessary once
|
```
|
||||||
this option is set.
|
java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
|
||||||
|
```
|
||||||
|
|
||||||
|
In that case, you need to enable [an additional option][control] `USB debugging
|
||||||
|
(Security Settings)` (this is an item different from `USB debugging`) to control
|
||||||
|
it using a keyboard and mouse. Rebooting the device is necessary once this
|
||||||
|
option is set.
|
||||||
|
|
||||||
[control]: https://github.com/Genymobile/scrcpy/issues/70#issuecomment-373286323
|
[control]: https://github.com/Genymobile/scrcpy/issues/70#issuecomment-373286323
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue