One.Root
There are many root tutorials on the Internet, here is the recommendation:
a must-see for gaming! Take you into the pit of Android flashing, the ROOT basic guide that even Xiaobai can understand is here!
It introduces the principle and method of Root in detail, and strongly recommends using the Magisk tool.
You can use the command adb shell getprop ro.debuggable to view the value of ro.debuggable
2.Magisk reset ro.debuggable
Note: This method is invalid after restarting the phone, and it must be reset every time it restarts
adb shell #adb进入命令行模式
su #切换至超级用户
magisk resetprop ro.debuggable 1
stop;start; #通过该命令重启手机后才能成功设置
3. Modification of MagiskHidePropsConfig module
This method works permanently and is relatively simple
- Download the module MagiskHide Props Config 5.4.1
- Use the push command to transfer files to the phone
adb push MagiskHidePropsConf-v5.4.1.zip /sdcard
- Select local installation in the module of Magisk, find the installation package, restart the phone after installation
- run props
- Select 3 - Edit MagiskHide props
- Select 1 - ro.debuggable
and confirm all later. After restarting the phone, check ro.debuggable again and find that the value is 1