Android

Do not delete files when trying to bypass Android’s screen lock protection!!!

Full Format

This wipes user data.

Use fastboot with the option fastboot -w.

This doesn’t remove Magisk root.

ROOT

  1. Get a copy of boot.img from the ROM.

  2. Send to phone: adb push <directory>/init_boot.img /sdcard/Download/

  3. Patch with Magisk: fastboot flash init_boot <magisk_patched.img file>

  4. Reboot.

Booting to Recovery from Fastboot

fastboot reboot recovery

It might not work everytime since it’s non-standard.