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

adb root option? #2

Open
Joduai opened this issue Nov 8, 2022 · 3 comments
Open

adb root option? #2

Joduai opened this issue Nov 8, 2022 · 3 comments

Comments

@Joduai
Copy link

Joduai commented Nov 8, 2022

Hello
Haven't tried this app yet but wanted to ask if it's possible that it allows "adb root" option on custom roms?
The problem is with all roms with fixed option leading to "ADB cannot run as root in production builds", although ro.system.build.type is set to userdebug along with proper ro.debuggable.

@nikita-yfh
Copy link
Owner

nikita-yfh commented Nov 12, 2022

Hello. I investigated the ADB source code and came to the conclusion that the ability to run "adb root" depends on whether ADBD (ADB daemon on device) is compiled with the ALLOW_ADBD_ROOT flag. That is, it is not enough to install property, you need to completely recompile ADBD or replace it.

@Joduai
Copy link
Author

Joduai commented Nov 19, 2022

I hoped that replacing adbd with patched executable on some GSI and custom roms won't be a must as uncle G's safetynet will get a diarrhea.

Anyways thanks a lot for clarifying whole thing. Seems that I haven't dug deep enough to find crucial info about compilation flag, nor didn't even know about it.

@supaDaveSu
Copy link

fu po po

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

3 participants