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

Support for Meizu Phone with flymeOS #1

Closed
olbb opened this issue Feb 19, 2019 · 2 comments
Closed

Support for Meizu Phone with flymeOS #1

olbb opened this issue Feb 19, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@olbb
Copy link
Owner

olbb commented Feb 19, 2019

In Meizu phone,there is an error case by MzNightModeManager

Surface: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.(Handler.java:200)
at android.os.Handler.(Handler.java:114)
at com.meizu.nightmode.MzNightModeManager.(MzNightModeManager.java:158)
at com.meizu.nightmode.MzNightModeManager.getDefault(MzNightModeManager.java:313)
at android.graphics.Canvas.(Canvas.java:2606)
at android.view.Surface$CompatibleCanvas.(Surface.java:631)
at android.view.Surface$CompatibleCanvas.(Surface.java)
at android.view.Surface.(Surface.java:107)
at android.media.MediaCodec.createInputSurface(Native Method)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:69)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:28)
at com.genymobile.scrcpy.Server.main(Server.java:110)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:277)

@olbb olbb added the enhancement New feature or request label Feb 19, 2019
olbb added a commit that referenced this issue Feb 19, 2019
Fix the error case by flyme nightMode.
issue #1
@olbb olbb closed this as completed Feb 20, 2019
@callmexss
Copy link

hello there, can you give some more detail instructions about how can I use this patch?

@olbb
Copy link
Owner Author

olbb commented Aug 30, 2019

@callmexss you can just compile the scrcpy's android project and get the scrcpy.jar and replace it with the officecal scrcpy.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants