Hovatek
  • Need instant replies? Try Private Support
  • Blog
  • Home
Login Register Ask Question Hello There, Guest!


  1. Hovatek Forum
  2. DEVELOPMENT
  3. Android
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5



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

hovatek
hovatek
Administrator
*******
Posts: 45,547
Threads: 1,148
Joined: Oct 2013
Reputation: 393
#1

11-02-2016, 05:28 PM

This is a step-by-step guide on how to use carliv image kitchen to unpack & repack boot.img or recovery.img. It will come in handy for those who wish to port a custom recovery

Requirements

  • Download Carliv Image Kitchen depending on your PC's architecture (32 or 64 Bit)
  • Windows PC

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


Follow the steps below to use Carliv Image Kitchen in unpacking & repacking recovery or boot

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]

Important Notice
  • Ensure to name the file appropriately i.e as either boot.img or recovery.img
  • This will work for -verified.img files, just remove the -verified portion from the file name
  • You might encounter an error unpacking signed images i.e boot-sign.img or recovery-sign.img. For such images, you first need to unsign before unpacking
  • For images in .bin format, simply rename the extension from .bin to .img
  • There are many other tools to unpack and repack Android images so feel free to explore



Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.


(This post was last modified: 10-13-2019, 12:22 PM by hovatek. )
Website Find
Reply
X
Thanks to hovatek



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


SuomiPelaajaa
SuomiPelaajaa
Newbie
Posts: 1
Threads: 0
Joined: Jun 2018
Reputation: 0
#2

06-27-2018, 12:05 AM
Hi, i have problem, i'm trying unpack Huawei Honor 8 (FRD-L19) boot.img, when i try unpack i just get 

Your image: boot.img

Create the boot folder.


 Android boot magic not found.
Compression used: ~1
~1file-ramdisk-compress"

Unpacking the ramdisk....

The system cannot find the batch label specified - ~1
Press any key to continue . . .

please help.
Find
Reply
X
Thanks to SuomiPelaajaa



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


hovatek
hovatek
Administrator
*******
Posts: 45,547
Threads: 1,148
Joined: Oct 2013
Reputation: 393
#3

06-27-2018, 10:30 AM
(06-27-2018, 12:05 AM)SuomiPelaajaa Wrote:  Hi, i have problem, i'm trying unpack Huawei Honor 8 (FRD-L19) boot.img, when i try unpack i just get 

Your image: boot.img

Create the boot folder.


 Android boot magic not found.
Compression used: ~1
~1file-ramdisk-compress"

Unpacking the ramdisk....

The system cannot find the batch label specified - ~1
Press any key to continue . . .

please help.

It seems your boot is signed. Unsign using https://forum.hovatek.com/thread-21005.html

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.


Website Find
Reply
X
Thanks to hovatek



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


abdisohad
abdisohad
Newbie
Posts: 1
Threads: 0
Joined: Feb 2019
Reputation: 0
#4

02-01-2019, 01:55 AM
hi, i have problem to unpack recovery files

i get this when try unpack

"/recovery.img-ramdisk.gz: cpio: license/openaes: Cannot change mode to rwxr-xr-x: Permission denied"

what should i do next?
Find
Reply
X
Thanks to abdisohad



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


X3non
X3non
Hovatek Representative
Posts: 12,796
Threads: 464
Joined: Jul 2014
Reputation: 253
#5

02-01-2019, 09:23 AM
(02-01-2019, 01:55 AM)abdisohad Wrote:  hi, i have problem to unpack recovery files

i get this when try unpack

"/recovery.img-ramdisk.gz:     cpio: license/openaes: Cannot change mode to rwxr-xr-x: Permission denied"

what should i do next?

create a new thread so we'll focus on this
see https://forum.hovatek.com/thread-514.html for how to create a thread

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Find
Reply
X
Thanks to X3non



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


« Next Oldest | Next Newest »








Possibly Related Threads…
Thread / Author Replies Views Last Post
Application for Pack and Unpack system.img
BiggerGames
3
157
Last Post by X3non
10-05-2019, 01:42 PM
How to unpack & repack system (.img or .new.dat) in Windows
hovatek
16
29,674
Last Post by hovatek
07-29-2019, 09:15 AM
How to patch the boot.img or system.img to make support for NTFS on Android?
Mikesew
0
330
Last Post by Mikesew
04-04-2019, 06:37 AM
How to unpack signed boot, recovery or system (-sign.img)
X3non
27
18,188
Last Post by shankar1790
02-06-2019, 06:36 AM
Need help.Unable to unpack stock recovery(MT6739)Oreo8.1.0
imcha
2
611
Last Post by X3non
11-26-2018, 09:15 AM
I want a (twrp recovery img) from a (phiz recovery img)
Ivanovish
3
798
Last Post by hovatek
11-16-2018, 11:08 AM
[MT6762] [Uploaded Boot, Recovery img] BOTH RECOVERY PORTER are not working
vickyw288
14
2,849
Last Post by hovatek
08-06-2018, 01:09 PM
How to unpack and repack OS 6.0 system.img
ryfoz
25
3,818
Last Post by X3non
07-23-2018, 06:08 PM
Cannot unpack System-sign.img for TB3-850M
addas
7
3,467
Last Post by addas
06-10-2017, 10:57 PM
[RECOVERY]Recovery build enviorment can i make it on windows or USB linux
techtentttt
4
1,445
Last Post by techtentttt
05-19-2017, 02:52 AM

  • View a Printable Version


Users browsing this thread: 1 Guest(s)
  1. Hovatek Forum
  2. DEVELOPMENT
  3. Android

About

The Hovatek Forum is a free Tech. Support Forum. We provide solutions to all your device related problems and questions. We'll love to have you participate in discussions here whether you're a Newbie or Experienced.

         

Forum Team

Powered By MyBB. Crafted by EreeCorp.
Linear Mode
Threaded Mode