This script is root only, users who have not rooted their phones cannot use this script. The script has been so far only tested on a Xiaomi Redmi 12C, please open an issue if you're facing any problems regarding device compatibility or any other errors.
The script works in a very simple manner, it'll check for root and then force persist.security.adbinstall
and persist.security.adbinput
to 1
using setprop
.
After that it'll pull remote_provider_preferences.xml
from the phone (found in /data/data/com.miui.securitycenter/shared_prefs/
) and modify it to add 2 flags:
<boolean name="security_adb_install_enable" value="true" />
AND
<boolean name="security_adb_input_enable" value="true" />
And will then put it back onto the phone and reboot it.
- Python v3
- platform-tools (adb.exe specifically) that can be executed from anywhere
- Rooted phone (Tested => Redmi 12C w/ Magisk v27.0)
If root_check fails and gives you an error message, download and run the text file from the repository and follow it step by step.