Hi, Guest! Login / Register




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[Development] How to unpack and repack boot.img or recovery.img in Windows

#1
(This post was last modified: 07-08-2017, 07:36 PM by hovatek. )

This guide will come in handy for those who wish to port a custom recovery

Requirements


Steps to unpack and repack a recovery image (recovery.img) and boot image (boot.img)


How to unpack boot.img


  1. Extract the CarlivImage Kitchen zip file into a folder on the PC

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-1.jpg]

  2. Copy the boot.img into the boot-resources folder

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-2.jpg]

  3. Go back to the root folder and double-click carliv.bat

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-3.jpg]

  4. Type b then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-4.jpg]

  5. Type 1 then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-5.jpg]

  6. Type 1 then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-6.jpg]

  7. Wait till unpacking is done then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-7.jpg]

  8. You should find the unpacked boot.img in the boot folder

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-8.jpg]

How to repack boot.img


  1. Go back to Carliv Image Kitchen, type 2 then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-9.jpg]

  2. Wait till repacking is done then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-10.jpg]

  3. You should find the repacked boot image in the output folder. You can rename it to boot

    [Image: Hovatek-How-to-unpack-and-repack-boot.img-11.jpg]

How to unpack recovery.img


  1. Copy the recovery.img into the recovery-resources folder

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-1.jpg]

  2. Go back to the root folder and double-click carliv.bat

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-2.jpg]

  3. Type r then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-3.jpg]

  4. Type 1 then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-4.jpg]

  5. Type 1 then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-5.jpg]

  6. Wait till unpacking is done then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-6.jpg]

  7. You should see the unpacked recovery.img in the recovery folder

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-7.jpg]

How to repack recovery.img


  1. Go back to Carliv Image Kitchen, type 2 then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-8.jpg]

  2. Wait till repacking is done then press Enter

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-9.jpg]

  3. You should see the repacked recovery image in the output folder. You can rename it to recovery

    [Image: Hovatek-How-to-unpack-and-repack-recovery.img-10.jpg]



Need further assistance? Speak with a Hovatek Representative:
Working Hours: Mondays - Saturdays ; 09:00 - 18:00 (GMT +1:00)
Reply










Users browsing this thread:
1 Guest(s)