OEMUnlockOnBoot is a simple Magisk/KernelSU module that ensures Android's OEM unlocking toggle is enabled on every boot. It is meant for use in setups where the bootloader is locked with the user's key (eg. with avbroot) to ensure that the device is always recoverable in the event of a boot failure.
-
Download the latest version from the releases page. To verify the digital signature, see the verifying digital signatures section.
-
Install the module from the Magisk/KernelSU app.
-
Reboot. The log file is written to
/data/local/tmp/OEMUnlockOnBoot.log.
To verify the digital signatures of the downloads, follow the steps here.
OEMUnlockOnBoot can be built like most other Android projects using Android Studio or the gradle command line.
To build the module zip:
./gradlew zipReleaseThe output file is written to app/build/distributions/release/.
Bug fix pull requests are welcome and much appreciated!
If you are interested in implementing a new feature and would like to see it included in OEMUnlockOnBoot, please open an issue to discuss it first.
OEMUnlockOnBoot is licensed under GPL-3.0-only. Please see LICENSE for the full license text.