Skip to content

Instantly share code, notes, and snippets.

@GaryOderNichts
Created August 10, 2022 14:59
Show Gist options
  • Save GaryOderNichts/58f4123d5f02d75997694d4ed81163dd to your computer and use it in GitHub Desktop.
Save GaryOderNichts/58f4123d5f02d75997694d4ed81163dd to your computer and use it in GitHub Desktop.
Running MCP recovery on retail
.arm.big
.open "patches/sections/0x5000000.bin","patches/patched_sections/0x5000000.bin",0x05000000
; patch IOS_CheckDebugMode to always return 0
.org 0x0501fc98
.thumb
mov r0, #0
mov r0, #0
; patch IOS_CheckDebugFlag(0x40000000) to return non-zero to load recovery
.org 0x0501fca6
.thumb
mov r0, #0
mov r0, #1
.Close
.arm.big
.open "patches/sections/0x5100000.bin","patches/patched_sections/0x5100000.bin",0x05100000
; patch IOS_CheckDebugMode to always return 0
.org 0x0510ea1c
.thumb
mov r0, #0
mov r0, #0
.Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment