Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer can't control mobile screen #874

Closed
BambooWave opened this issue Oct 21, 2019 · 1 comment
Closed

Computer can't control mobile screen #874

BambooWave opened this issue Oct 21, 2019 · 1 comment

Comments

@BambooWave
Copy link

After the Xiaomi mobile phone system is upgraded to miui11, the computer cannot control the mobile phone screen. When the system was miui10, it did not have this problem and returned a error.

environment:

Mobile phone:redmi k20pro
System version:MIUI 11.0.2.0
Android version:10

error:

[server] ERROR: Exception on thread Thread[Thread-1,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:96)
        at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:165)
        at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:113)
        at com.genymobile.scrcpy.Controller.control(Controller.java:73)
        at com.genymobile.scrcpy.Server$1.run(Server.java:45)
        at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:94)
        ... 5 more
Caused by: java.lang.IllegalArgumentException: displayToken must not be null
        at android.view.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:1606)
        ... 7 more
@rom1v
Copy link
Collaborator

rom1v commented Oct 21, 2019

Duplicate of #835. Already fixed on dev branch.

@rom1v rom1v closed this as completed Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants