Original: https: //bbs.pediy.com/thread-215311.htm
1. adb shell with root privileges, or may have later adb shell su root privileges;
2.1 shell acquired selinux domain which is permissive domain, such as u: r: su: s0 or other processes and may have set ptrace init ro domain .xx target attribute selinux permissions.
Usage:
adb the Push \ libs \ armeabi-v7a \ mprop / the Data / local / tmp /.
Adb shell "chmod 755 / the Data / local / tmp / mprop"
# modify the init process ro attribute determination logic
adb shell "/ data / local / tmp / mprop "
after # ro can modify any of the properties, such as
the adb the shell" SetProp ro.debuggable. 1 "
# init restore default logic, it can not be modified after the attribute ro
adb shell" / data / local / tmp / mprop -r "