ws-scrcpy
ws-scrcpy copied to clipboard
Android 15 support
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Yeah, been trying to create scrcpy-server.jar from the latest version of scrcpy, but to no avail
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Yeah, been trying to create scrcpy-server.jar from the latest version of scrcpy, but to no avail
I also trid the Genymobile/scrcpy v2.5, but it didn't work, after all, Genymobile/scrcpy has committed many versions
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Yeah, been trying to create scrcpy-server.jar from the latest version of scrcpy, but to no avail
With this Issue 4657, I modified the source code based on NetrisTV/scrcpy version 1.19 and compiled a new version of the scrcpy-server.jar. It can work in Android 15 beta.
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Yeah, been trying to create scrcpy-server.jar from the latest version of scrcpy, but to no avail
With this Issue 4657, I modified the source code based on NetrisTV/scrcpy version 1.19 and compiled a new version of the scrcpy-server.jar. It can work in Android 15 beta.
HI, i would appreciate if you could share your scrcpy-server.jar with me, been trying to do it myself but no success, thanks
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Yeah, been trying to create scrcpy-server.jar from the latest version of scrcpy, but to no avail
With this Issue 4657, I modified the source code based on NetrisTV/scrcpy version 1.19 and compiled a new version of the scrcpy-server.jar. It can work in Android 15 beta.
HI, i would appreciate if you could share your scrcpy-server.jar with me, been trying to do it myself but no success, thanks
You can give it a try, although it needs to be optimized. scrcpy-server15.zip
Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~
Yeah, been trying to create scrcpy-server.jar from the latest version of scrcpy, but to no avail
With this Issue 4657, I modified the source code based on NetrisTV/scrcpy version 1.19 and compiled a new version of the scrcpy-server.jar. It can work in Android 15 beta.
HI, i would appreciate if you could share your scrcpy-server.jar with me, been trying to do it myself but no success, thanks
You can give it a try, although it needs to be optimized. scrcpy-server15.zip
It worked, thanks man
@Okra0o0 I've tried it with your updated scrcpy server and it didnt worked with android 14 pixel. Which scrcpy version did you use for it?
or may i see your codebase to debug?
Check out this issue: https://github.com/NetrisTV/ws-scrcpy/issues/306
@Okra0o0 I've tried it with your updated scrcpy server and it didnt worked with android 14 pixel. Which scrcpy version did you use for it?
or may i see your codebase to debug?
Check out this issue: #306
Caused by: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean] ---> SurfaceControl will be deprecated in new version, so change to VirtualDisplay. Associated files such as attachments. And these changes based on NetrisTV/scrcpy version 1.19 branch. By the way, it worked in my android 14 (AP1A.240405.019.A1) pixel 6 pro. java.zip
@Okra0o0 can you give some instruction what to do with the attached files? I'm assuming by the heart reactions it fixes the issue...
@Okra0o0 can you give some instruction what to do with the attached files? I'm assuming by the heart reactions it fixes the issue...
You just need to replace the scrcpy .jar file in the project
It's somewhere in the vendors / Genymobile folder
I tried, but the screen of my Pixel remained blank :eyes: . It works fine with a xiaomi device... I'm just running npm start after replacing the jar, is that enough or even more required?
Yes it haven't worked with my pixel at first time too. After clearing caches, few pc restarts and phone restarts it suddenly started to work. Idk what of them exactly fixed the problem
Awesome, a reboot did indeed fix the issue.
@Okra0o0 could you still share your changes somewhere? I'd like to be able to further customize the server jar.
Awesome, a reboot did indeed fix the issue.
@Okra0o0 could you still share your changes somewhere? I'd like to be able to further customize the server jar.
Here you go java.zip
Credits to @Okra0o0
So those four files are the only changes in the scrcpy fork we have to make to build that jar?
I saw them earlier, but thought that can't be it 😅 .
awesome! thanks @Okra0o0 and thanks everyone! for this support.
Hi everyone. Please check #344
Hi everyone. Please check #344
I tested phones with both 14 and 15 system on the feature/android_14_15 branch. It encountered the following errors.
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, int]
at java.lang.Class.getMethod(Class.java:2950)
at java.lang.Class.getMethod(Class.java:2450)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:104)
at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:112)
at com.genymobile.scrcpy.Device.(Device.java:110)
at com.genymobile.scrcpy.Connection.(Connection.java:37)
at com.genymobile.scrcpy.WebSocketConnection.(WebSocketConnection.java:23)
at com.genymobile.scrcpy.WSServer.joinStreamForDisplayId(WSServer.java:163)
at com.genymobile.scrcpy.WSServer.onMessage(WSServer.java:126)
at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:648)
at org.java_websocket.drafts.Draft_6455.processFrameBinary(Draft_6455.java:835)
at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:794)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:381)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:218)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.doDecode(WebSocketServer.java:1011)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:993)
I have experienced this before and then made a another version of the scrcpy-server. scrcpy.zip scrcpy-server(1.19-ws6).jar.zip
Hi, @Okra0o0. Could you open PR in https://github.com/NetrisTV/scrcpy?
Hi, @Okra0o0. Could you open PR in https://github.com/NetrisTV/scrcpy?
Looks likeI can't. remote: Permission to NetrisTV/scrcpy.git denied to Okra0o0. fatal: unable to access 'https://github.com/NetrisTV/scrcpy.git/': The requested URL returned error: 403
You need to create a fork. Then create a new branch in you fork from feature/websocket-v1.19.x and add commits to it. After that open new PR to NetrisTV/scrcpy.
You need to create a fork. Then create a new branch in you fork from
feature/websocket-v1.19.xand add commits to it. After that open new PR to NetrisTV/scrcpy.
Oh, I see, thank you. Excuse me, I made a mistake, this feature/android_14_15 branch has already fixed the screen problem. Just need to choose [H264 Converter].
