Flashable ZIP to unroot Android. This was created originally as a clean way to unroot Fairphone 2 Open OS, that comes prerooted and with TWRP.
Removes bin/su
and xbin/su
binaries from /system
, and some other configuration files if they exist.
Unrooting is needed to pass SafetyNet requirements for some apps. Guide and motivation behind.
Run:
make build
This will generate a emojione.zip
in the build/
folder.
To make a public release, run:
make release
This will generate a unroot_YYYY-MM-DD.zip
file in the release/
folder.
You'll need a custom recovery installed on your device, such as TWRP.
Restart your device into recovery and start ADB sideload
. Then run:
adb sideload <flashable-zip-name>
Alternatively, copy the resulting ZIP to your device storage, restart your device into recovery and use the GUI Install
or Install ZIP
option.