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

Android 15 support #315

Closed
Okra0o0 opened this issue Jul 18, 2024 · 16 comments
Closed

Android 15 support #315

Okra0o0 opened this issue Jul 18, 2024 · 16 comments

Comments

@Okra0o0
Copy link

Okra0o0 commented Jul 18, 2024

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
Copy link

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
Copy link
Author

Okra0o0 commented Jul 18, 2024

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
Copy link
Author

Okra0o0 commented Jul 31, 2024

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
Copy link

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
Copy link
Author

Okra0o0 commented Jul 31, 2024

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
Copy link

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
Copy link

@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

@Okra0o0
Copy link
Author

Okra0o0 commented Aug 12, 2024

@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 Okra0o0 closed this as completed Aug 29, 2024
@eschoenawa
Copy link

@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
Copy link

@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
Copy link

I tried, but the screen of my Pixel remained blank 👀 . 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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

SPrasadT commented Oct 8, 2024

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

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

5 participants