On LineageOS, the "Rooted debugging" option (also known as "ADB root") allows ADB to run with root privileges. If you want to disable rooted debugging via ADB, follow these steps:
First, verify if rooted debugging is enabled:
bashadb root
adbd cannot run as root in production builds, rooted debugging is already disabled.Use the following command to disable rooted debugging:
bashadb root adb disable-verity adb shell setenforce 0 adb shell setprop service.adb.root 0 adb shell stop adbd adb start-server
Explanation:
adb root ensures you’re in root mode (if enabled).setprop service.adb.root 0 disables root access for ADB.stop adbd and start-server restart the ADB daemon to apply changes.Restart ADB and check the status:
bashadb kill-server adb start-server adb shell
$ instead of #, rooted debugging is disabled.If you want to permanently disable rooted debugging, edit /system/build.prop (requires root access):
bashadb pull /system/build.prop
Add or modify this line:
iniro.debuggable=0
Then push it back:
bashadb push build.prop /system/ adb reboot
After disabling rooted debugging, reconnect ADB in standard mode:
bashadb usb