NetrisTV / ws-scrcpy

Web client prototype for scrcpy.
MIT License
1.71k stars 338 forks source link

Android 15 support #315

Closed Okra0o0 closed 3 months ago

Okra0o0 commented 4 months ago

Currently Android 15 devices have no screen, but it can be control, whether it's scrcpy-server.jar problem, can you fix it? Thanks~

ituberus commented 4 months ago

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

Okra0o0 commented 4 months ago

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

Okra0o0 commented 4 months ago

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.

ituberus commented 4 months ago

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

Okra0o0 commented 4 months ago

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

ituberus commented 4 months ago

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

denizkoele commented 3 months ago

@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 commented 3 months ago

@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

eschoenawa commented 2 months ago

@Okra0o0 can you give some instruction what to do with the attached files? I'm assuming by the heart reactions it fixes the issue...

denizkoele commented 2 months ago

@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

eschoenawa commented 2 months ago

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?

denizkoele commented 2 months ago

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

eschoenawa commented 2 months ago

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.

denizkoele commented 2 months ago

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

eschoenawa commented 2 months ago

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 😅 .

SPrasadT commented 1 month ago

awesome! thanks @Okra0o0 and thanks everyone! for this support.