-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
adbd cannot run as root in production builds #425
Comments
It is an issue of the adbd insecure app, not mine. |
@peyer It's probably caused by MagiskHide changing ro.debuggable to 0. It needs to be set to 1 for You can either disable MagiskHide (and reboot), or change just that prop back to 1 with a boot script or MagiskHide Props Config (it's in the Magisk repo). |
@topjohnwu @Didgeridoohan Sorry about reply you so late. I have used MagiskHide Props Config to change ro.debuggable and ro.secure, it still could not work. So I push executable file to /sdcard/ , then copy them to /data/local/tmp. |
I don't know how to configure system properties in the config.prop file. I have to change the ro.debuggable value to 1 in the hide_utils.c file. Recompile and flash zip, you can use the adb root command on your computer. |
Goto folder path : /Users/RKumar/Library/Android/sdk/tools |
@ashu123mae same on my side. I've rooted a Pixel 4 (Android 11) using Magisk and hit into the same error: "adbd cannot run as root in production builds". I've tried to use adbd insecure app on Google Play but no luck either. |
adbd cannot run as root in production builds |
me too |
anybody find a useful method? |
me too |
me too |
flash a dev system. example my Pixel 4 flash lineage OS. |
me too |
Me too in my FP4 (Android 11) |
Me too in my pixel 3 (Android 12) |
Any new solution for this? |
me too |
me too |
Me too in my pixel 3 (Android 12). After I set the ro.debuggable to 1 by MagiskHidePropsConf, $ adb root
restarting adbd as root
timeout expired while waiting for device |
Hi folks, I guess I just solved this problem.
$ lunch aosp_blueline-userdebug
$ fastboot flashall -w
$ adb root
adbd is already running as root I hope it works for you. ;) |
Does anyone have a better plan ? My phonexiao mi mix2 can not do "adb root" , |
#!/system/bin/sh https://liwugang.github.io/2021/07/11/magisk_enable_adbr_root.html |
''' Loading... Please wait. MagiskHide Props Config v6.1.2 =====================================
|
i'm glad to see it working |
Apologies for reaching out again, but it seems that the previous solution did not resolve the issue. I encountered a new error while attempting to run adb root. The error message states: "restarting adbd as root" followed by "timeout expired while waiting for device." Furthermore, upon manual inspection of the build.prop file, I noticed that the ro.debuggable value remains unchanged. I am curious to understand the root cause of this issue. Could it be due to the project's (https://github.com/Magisk-Modules-Repo/MagiskHidePropsConf) inactivity or discontinuation? |
|
For those of you who are here to edit the Android hosts file, you can use Magisk systemless host. |
Because I'm lazy. Here is the command in one line.
|
hi, i run these commands, it works, but after then, i can't install apk by adb |
@javaeryang What are you attempting to do? Are you sure you need to run adbd as root for installing an apk? I had to this to get access to protected system files over the adb. |
@topjohnwu So much thanks for your Magisk firstly. I have rooted my PIXEL already following your provided method successfully. It looked below when I used command of adb shell
sailfish:/ $ su
sailfish:/ #
However, I still received hint like adbd cannot run as root in production builds after I tried command of adb reboot, even I have downloaded app of adb insecure, and enabled insecure adbd and restarted adb server, it also infoed me adbd cannot run as root in production builds.
How can I do next to fix it?
The text was updated successfully, but these errors were encountered: