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

Meizu MX6 cannot screen on scrcpy2.0. #3833

Closed
Helaer opened this issue Mar 17, 2023 · 11 comments
Closed

Meizu MX6 cannot screen on scrcpy2.0. #3833

Helaer opened this issue Mar 17, 2023 · 11 comments

Comments

@Helaer
Copy link

Helaer commented Mar 17, 2023

scrcpy 2.0 https://github.com/Genymobile/scrcpy
C:\Program Files (x86)\Androidscreen\Resources\scrcpy-serv...file pushed, 0 skipped. 106.7 MB/s (52867 bytes in 0.000s)
[server] INFO: Device: Meizu MX6 (Android 7.1.1)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference
at android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:151)
at android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:151)
at com.android.server.NetworkManagementSocketTagger.getApplicationInfo(NetworkManagementSocketTagger.java:262)
at com.android.server.NetworkManagementSocketTagger.getProcessInfo(NetworkManagementSocketTagger.java:292)
at com.android.server.NetworkManagementSocketTagger.tag(NetworkManagementSocketTagger.java:139)
at libcore.io.BlockGuardOs.tagSocket(BlockGuardOs.java:47)
at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:288)
at android.system.Os.socket(Os.java:491)
at android.net.LocalSocketImpl.create(LocalSocketImpl.java:256)
at android.net.LocalSocket.implCreateIfNeeded(LocalSocket.java:107)
at android.net.LocalSocket.connect(LocalSocket.java:130)
at com.genymobile.scrcpy.DesktopConnection.connect(DesktopConnection.java:50)
at com.genymobile.scrcpy.DesktopConnection.open(DesktopConnection.java:85)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:97)
at com.genymobile.scrcpy.Server.main(Server.java:381)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:308)
ERROR: Server connection failed

@rom1v
Copy link
Collaborator

rom1v commented Mar 17, 2023

What is the value of Build.BRAND?

boolean mustFillAppInfo = Build.BRAND.equalsIgnoreCase("meizu");

And does it work on scrcpy 1.25?

@rom1v
Copy link
Collaborator

rom1v commented Mar 17, 2023

And does this version work: #3801 (comment) ?

@Helaer
Copy link
Author

Helaer commented Mar 17, 2023

It works fine on scrcpy1.24.

@Helaer
Copy link
Author

Helaer commented Mar 17, 2023

这个版本有效吗:#3801(评论)

Ok, I'll test it now.

@Helaer
Copy link
Author

Helaer commented Mar 17, 2023

这个版本有效吗:#3801(评论)

It works fine. Would you consider releasing a fix?

@rom1v
Copy link
Collaborator

rom1v commented Mar 17, 2023

It works fine.

That's very strange, this version is not supposed to fix a problem with Meizu devices 😕

Would you consider releasing a fix?

It will be in the next minor release, I don't know when (there is no rush).

@Helaer
Copy link
Author

Helaer commented Mar 17, 2023

And does this version work: #3801 (comment) ?

Ok, scrcpy-server is big. Is that normal?

@rom1v
Copy link
Collaborator

rom1v commented Mar 17, 2023

127Kb is not big.

@Helaer
Copy link
Author

Helaer commented Mar 17, 2023

127Kb 不大。

I see it is twice the size of the normal version, in curiosity.

@rom1v
Copy link
Collaborator

rom1v commented Mar 17, 2023

Oh, it's because it has been built from my debug builddir (so with gradle assembleDebug) while the release is built in release mode (gradle assembleRelease).

@Helaer
Copy link
Author

Helaer commented Mar 17, 2023

哦,这是因为它是从我的调试构建器构建的(所以使用 ),而版本是在发布模式下构建的()。gradle assembleDebug``gradle assembleRelease

I see. Thank you.

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