[Tutorial] How to unpack signed boot, recovery or system (-sign.img)
[Tutorial] How to unpack signed boot, recovery or system (-sign.img)
Quote:In this video tutorial, I'll be explaining how to unpack a signed image using FBWin tools. This particular guide is going to work for either a signed boot, recovery or system Now, first off, I need to explain what a signed image is. You might have comes across some files in your firmware where you have a file name-sign alright? Something like this Now, this is a signed image. What this means is that if you intend to port a custom recovery with your boot image or recovery image or even if you want to flash or modify the system image, you can't do that if (since) it has been altered so it's a security feature by your OEM to make sure you only flash verified images so before you can port a custom recovery with this kind of image, you have to first un-sign the image then you can go ahead with modification.
Now, to show you how works, I first have to show you an attempt of me trying to unpack a signed image okay? so you can see the error message you're going to get First off, I'm going to copy this recovery image, its a signed image so I'm going to try to unpack using Carliv Image tool. I'm going to paste it right here. Now this tool requires me to rename to recovery.img so I'm going to rename it quickly. OK, so I have my recovery image. Now, I'm going to launch the Carliv Image tool. What I'm trying to do is to unpack a signed recovery image.
I've not yet unsigned it okay? I'm trying to unpack it in its State. I'm trying to unpack a recovery image, I select 1. I select Unpack. Alright! Great! The system cannot find the batch label specified - ~1. You can see this error. Now, this is what you get when you try to unpack a signed image. You're going to get the same thing with boot image also so I can just go ahead and close this. I'm going to clear this also. You can see it couldn't even extract the recovery image. Alright! so that is what you get when you try to unpack a signed image so now I'm going to show you how to unsign this recovery image.
After You unsign, you can then go ahead to unpack using your Carliv Image kitchen. Okay so once you have your recovery image, what you want to do is copy it and then you go to the FBWin tools. As for the software (tool) we have a link on our website. You can check our Forum for the download link for this tool or you check the description in this video for the download link. Now, once you have your recovery image (of course) You go to the _In folder and You're going to paste it here.
Now, one mistake people tend to make when trying to use this tool is that they rename this to recovery, which is wrong. You try to remove this (-sign) which you shouldn't do it should be named recovery-sign okay because that's what this tool is looking out for so You leave it that way i.e recovery-sign or boot-sign or system-sign whatever it is You're unpacking. Make sure the -sign suffix is appended then You go back. Now, You're going to launch this menu.bat, Its a batch file.
You're going to double-click it. Now, on this menu, You're going to select 1; that is FB. You're doing an FB unsign so You select 1 and You tap Enter. Now I'm going to select 1 again (FB unpack) so I'm going to select 1; I'm doing an FB unpack; that's going to unsign the image. That is done, it says FB recovery image unpacked so I'm going to head over to the Unpack folder - _Image and there I have my recovery-sign so now I can go ahead to try and unpack this using my Carliv Image since it has been unsigned. Now, in Carliv Image, You want to paste it right here in recovery-sources or whatever tool you want to use to modify Your recovery image.
Now, you need to remove the -sign suffix since you've unsigned the image now so there's no point having the -sign suffix okay? I'm going to save it as recovery.img. Don't forget this is an image file. You can come under Properties (.img is an image file). I can close this. Press any key to continue. I can close my FB, I'm done unsigning. Now to unpack I'm going to go ahead to unpack. Now, I'm going to launch the Carliv Image tool so I'll double click that. I'm trying to unpack recovery so I'll select R, select 1, select unpack, so you can see this time around, its unpacking and its unpacking very smoothly so once it's done I'll just come right here and I have my recovery image unpacked.
It's the same procedure whether you're trying to unsign a boot image, a recovery image or a system image. Before you can go ahead to unpack, you have to first unsign using FBWin tools. Once unsigned, You can then go ahead to do whatever you want with the image. So that's basically how to unsign a signed image whether boot, system or recovery using FBWin tools
(23-12-2017, 03:27 PM)kaew158 My device stuck on boot screen after flash twrp.img and boot into recovery. My stock ROM signed. (boot-sign.img / recovery-sign.img and more). Need help to solve this problem.
(05-01-2018, 02:00 PM)X3non(05-01-2018, 08:47 AM)feligres Hello, and thanks for the tutorial.
I have a question...
Is there any way to convert a system to a system-sign to install by Flashtools?
the tool has an option for doing that but it doesn't work
so for now the answer is no
(06-01-2018, 05:00 PM)feligres(05-01-2018, 02:00 PM)X3non(05-01-2018, 08:47 AM)feligres Hello, and thanks for the tutorial.
I have a question...
Is there any way to convert a system to a system-sign to install by Flashtools?
the tool has an option for doing that but it doesn't work
so for now the answer is no
Okay.
Thanks for the reply.
I thought I was doing it wrong, but I see that the option does not work because of what you say.
(20-03-2018, 11:09 PM)dwana Where do I get the system-sign.img From. Am lost there.