I have successfully compiled an AOSP branch (andriod 5.1.1) and installed it to my nexus 5. I have also recompiled a new kernel and replaced the former kernel. I want to know if it is possible to gain root privilege by modify the kernel source code. If so, how?
Thanks!
in build/core/main.mk find block:
ifneq (,$(user_variant))
# Target is secure in user builds.
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=1
change ro.secure=0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.