Skip to main content

Modification LK.bin to erease Orange state and confirmation boot


Bypass Confirmation Boot 

Tool necessary : Ghidra
Download and install here : https://github.com/NationalSecurityAgency/ghidra

 

Open file lk.bin in Ghidra

  • File -->  new project
  • Non-Shared Project --> Next

 

image.png

  • Give a name to your project --> Next

image.png

  • File --> import File 
  • Import File lk.bin you want patch

image.png

  • Select Langage --> ARM v6

 

image.pngimage.png

 

image.png

  • Double click on file

image.pngimage.png

  • respond yes to analyzed

image.pngimage.png

    We will get 

    image.png

      Search -->  for String

      image.png

        continue with clicking on Search

        image.png

          type "dm-verity corruption" on filter

          image.png

            One final will find --> click on line find

            image.png

              this will give

              image.png

                Go to the fonction who call the string "dm-verity corruption" with double click on hexa (FUN_00056c40:00056c8e)

                image.png

                  This will give

                  image.png

                    We get the fonction we need on right

                    image.png

                      The fonction who call string dm-verity is highlighted

                      image.png

                        So we can understand if the boot not start correctly 

                        the var  image.png and give  image.png     

                        so the first an green is if boot is corectly and an red if we got an error

                        image.png


                         

                         

                         

                         

                         

                         

                        Find the warning string

                         

                         

                        https://github.com/R0rt1z2/lkpatcher

                        https://lkpatcher.r0rt1z2.com/

                        https://blog.r0rt1z2.com/patch-mediatek-bootloader-images-lk.html