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

server: add root support #4947

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

server: add root support #4947

wants to merge 1 commit into from

Conversation

vvb2060
Copy link

@vvb2060 vvb2060 commented May 26, 2024

The service can now run with root. It will auto change the main thread's euid to 2000 for binder calls. If a binder call requires root user, notify the main thread to switch to euid 0.

Tested on Android 14, can display secure content.

scrcpy-server.zip

usage:

adb root
scrcpy

@adam12639
Copy link

scrcpy --adb root
scrcpy

@vvb2060
Copy link
Author

vvb2060 commented Jun 22, 2024

@rom1v It conflicts now, any comments? If you think this PR is bad, please let me know.

@vvb2060
Copy link
Author

vvb2060 commented Jun 22, 2024

this PR only modifies the service part, I don't care how to notify the exe to start the service with root. (For me adb root is enough.

@Vladik01-11
Copy link

@rom1v maybe you would consider this PR?

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

Successfully merging this pull request may close these issues.

3 participants