Analysis of adbd cannot run as root in production builds above Android5.0

See the source code for the specific cause of the problem

So as long as ro.debuggable is set to 1, there are many ways to change it to 1. I will talk about one way to succeed in my own test: borrow the mprop tool to achieve, specific reference: https://blog.csdn .net/qq_26914291/article/details/101286933

But after testing, I found that some operations that require root privileges still cannot be implemented. After studying the source code, I found the following code

The direct macro defines a judgment, that is, the logic is written dead during the compilation phase, or the related logic is directly deleted at all. In this case, it cannot be solved, unless another adb that can be turned on is compiled to replace the adb in the phone.

Guess you like

Origin blog.csdn.net/qq_26914291/article/details/103254587