-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Secure display doesn't work on the latest Android build #1935
Comments
Sorry, the Andoird OS Code I pointed is not corrected. Looks like the code I was looking at is still not merged to the public repo. Closing it. |
Oh, that's a bad news 😞
I think that we won't have the choice, indeed. |
After R? (Android 12 is S) Refs #2129 |
Yep, should be "after R". Sorry for the confusion. |
How to create a non secure display |
Use scrcpy >= 1.18. |
I meant the complete set of steps |
Root users may use this fork which simply runs the scrcpy-server as the system user: #3049 (comment) |
In the latest Android code, secure display can only be created by UID AID_GRAPHICS or AID_SYSTEM:
https://android.googlesource.com/platform/frameworks/native/+/refs/heads/master/services/surfaceflinger/SurfaceFlinger.cpp#5661
While scrcpy will try to create one by shell user, which will no longer work:
https://github.com/Genymobile/scrcpy/blob/master/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java#L201
I'm not sure if there's any fix other than creating a non-secure display when the OS version is after Q, any thoughts?
The text was updated successfully, but these errors were encountered: