Disable SecureBoot Guide
WARNING
This process can permanently brick your device if done incorrectly. Read every step carefully and DO NOT modify partitions unless explicitly instructed.
DANGER
DO NOT ERASE, CREATE OR MODIFY ANY PARTITION IN DISKPART. ONLY ASSIGN A DRIVE LETTER TO ESP(DEVICE-NAME).
Start diskpart in CMD:
diskpart- Find ESP(DEVICE-NAME) partition:
list volume- Replace $ with the actual volume number of ESP(DEVICE-NAME):
select volume $
assign letter Y- Exit diskpart:
exitEnable Test Signing
bcdedit /store Y:\EFI\Microsoft\BOOT\BCD /set "{default}" testsigning onDisabling recovery
bcdedit /store Y:\EFI\Microsoft\BOOT\BCD /set "{default}" recoveryenabled noDisabling integrity checks
bcdedit /store Y:\EFI\Microsoft\BOOT\BCD /set "{default}" nointegritychecks onRemove SiPolicy (Critical)
If SecureBoot is being disabled on an already installed system, delete:
del Y:\EFI\Microsoft\Boot\SiPolicy.p7bFailure to delete this file will result in boot failure.
- Remove ESP Drive Letter
mountvol Y: /dIf this fails, ignore it. The phantom drive will disappear after reboot.
Flash NoSecureBoot UEFI
- Reboot to bootloader:
adb reboot bootloader- Replace path\to\NoSecureboot.img with your actual image path:
fastboot flash boot path\to\NoSecureboot.img- Reboot
fastboot reboot