Need help extracting a .img file - Android Q&A, Help & Troubleshooting

I have a custom firmware for RK3288 that I'm trying to extract the img file and modify some of the files and system settings. I've tried lots of different tools to try and extract it but no luck. Here's a link to the file: https://drive.google.com/file/d/1HX0sLvRID2G_20z21Dykn4QF0oKUOckY/view?usp=sharing
I would really appreciate if anyone could help me out with this

alysia00 said:
I have a custom firmware for RK3288 that I'm trying to extract the img file and modify some of the files and system settings. I've tried lots of different tools to try and extract it but no luck. Here's a link to the file: https://drive.google.com/file/d/1HX0sLvRID2G_20z21Dykn4QF0oKUOckY/view?usp=sharing
I would really appreciate if anyone could help me out with this
Click to expand...
Click to collapse
Try aik or superr's kitchen, either one should work [emoji106]
Sent from my moto g(6) play using Tapatalk

Tried both already, they don't work :\

alysia00 said:
Tried both already, they don't work :\
Click to expand...
Click to collapse
Are you extracting from a rooted device or are you working with firmware?
Sent from my moto g(6) play using Tapatalk

I figured it out. It needed special tools make for the rk3288 to extract the img file. I needed AndroidTool_Release_v2.38.

alysia00 said:
I figured it out. It needed special tools make for the rk3288 to extract the img file. I needed AndroidTool_Release_v2.38.
Click to expand...
Click to collapse
well done!
Sent from my moto g(6) play using Tapatalk

Related

Stock ROM modification.. Help please!!!!

Hello,
I want to make a custom ROM based on a stock i9001 ROM. However when I extracted the tar file there were IMG and ext4 files. I know how to make a rom via cygwin when i have: 1) system folder
2) META-INF folder
And 3) boot.img
I don't know what to do to the stock ROM
(.tar) to be like this
*** sorry for my bad english
Sent from my Galaxy Nexus using xda premium
kagouro said:
Hello,
I want to make a custom ROM based on a stock i9001 ROM. However when I extracted the tar file there were IMG and ext4 files. I know how to make a rom via cygwin when i have: 1) system folder
2) META-INF folder
And 3) boot.img
I don't know what to do to the stock ROM
(.tar) to be like this
*** sorry for my bad english
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
explain more
Help Building a CUSTOM(from STOCK ROM)
Newbie here---
- I have downloaded the HTC stock RUU for my device.
- I used Android Kitchen cygwin to extract the files, setup the working folder.
- Added root permissions,BusyBox
- Built the rom from working folder.
Wanted to test whether this works or not... But Phone Got stuck on HTC logo .. Not even BOOTANIMATION.
What did i miss or DO wrong here??
Where in these steps worked flawlessly when i took a custom rom? What else should be done here?? Help would be Appreciated!!!
Learn More About Kitchen. Add Root, Busybox, Put apk files in System/aps etc. What do you want to do?
cheqolada said:
Learn More About Kitchen. Add Root, Busybox, Put apk files in System/aps etc. What do you want to do?
Click to expand...
Click to collapse
I'm Sorry, The ROM i built from the working folder did not boot. My question was what went wrong?
kagouro said:
Hello,
I want to make a custom ROM based on a stock i9001 ROM. However when I extracted the tar file there were IMG and ext4 files. I know how to make a rom via cygwin when i have: 1) system folder
2) META-INF folder
And 3) boot.img
I don't know what to do to the stock ROM
(.tar) to be like this
*** sorry for my bad english
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Maybe this is what you search:
http://forum.xda-developers.com/showthread.php?t=1976412
yashwantpiduru said:
I'm Sorry, The ROM i built from the working folder did not boot. My question was what went wrong?
Click to expand...
Click to collapse
My Answer is for kagouro - Becouse i Don't see your post when I write.
If Your Phone is dedected in adb you can use logcat (adb logcat in windows cmd) if phone don't dedected in adb - flash recovery via fastboot, join in recovery , instal working rom and found bad files in rom (try add modyfication singly - first root, second busybox etc - in this metod you can see whad mod don't work - probably stupid method but work :cyclops
yashwantpiduru said:
Newbie here---
- I have downloaded the HTC stock RUU for my device.
- I used Android Kitchen cygwin to extract the files, setup the working folder.
- Added root permissions,BusyBox
- Built the rom from working folder.
Wanted to test whether this works or not... But Phone Got stuck on HTC logo .. Not even BOOTANIMATION.
What did i miss or DO wrong here??
Where in these steps worked flawlessly when i took a custom rom? What else should be done here?? Help would be Appreciated!!!
Click to expand...
Click to collapse
Kitchen will replace certain necessary parts of your ROM if it isn't compatible with the kitchen, it puts them back when you compile. When you compiled your ROM did you take the guided option? Also, and probably the first thing I should have asked, is your phone compatible with kitchen?
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
Kitchen will replace certain necessary parts of your ROM if it isn't compatible with the kitchen, it puts them back when you compile. When you compiled your ROM did you take the guided option? Also, and probably the first thing I should have asked, is your phone compatible with kitchen?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
My phone is compatible with the kitchen.
Yeah I took the guided step! Still no luck
sent from my oc'd incS
yashwantpiduru said:
My phone is compatible with the kitchen.
Yeah I took the guided step! Still no luck
sent from my oc'd incS
Click to expand...
Click to collapse
OK, just for giggles try this, take the meta-inf folder from a rom you know works and using 7zip replace the one in your rom. Let me know if that helped at all:beer:
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
OK, just for giggles try this, take the meta-inf folder from a rom you know works and using 7zip replace the one in your rom. Let me know if that helped at all:beer:
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Sure! its late! I will try and let you know asap!
P.S: actually I tried this as well adding aroma installer to the rom! That had some ext3 error ! Dont have a clue what's that?
sent from my oc'd incS
yashwantpiduru said:
Sure! its late! I will try and let you know asap!
P.S: actually I tried this as well adding aroma installer to the rom! That had some ext3 error ! Dont have a clue what's that?
sent from my oc'd incS
Click to expand...
Click to collapse
Ext3 is a mount point, I'm not sure what it would be specific to your device, but it tells me there's an error in your updater script
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
Ext3 is a mount point, I'm not sure what it would be specific to your device, but it tells me there's an error in your updater script
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thanks for the heads up... I am gonna check the updater script.
sent from my oc'd incS

Partitions/Fastboot Images for OnePlus 2

Hello People !!!
I am uploading partitions/fastboot images for OP2 here :-
https://www.androidfilehost.com/?w=files&flid=40701
Extract the .tar.gz file and find the image.
I am not uploading modemst1 , modemst2 because I don't want all to have my IMEI
We can unbrick soft-bricks using it and the guide for the same will be added here.
If you want to donate to me and want to appreciate my work,feel free to PM me.Thanks a lot.
Good work naman.
Was waiting for this! Why no official factory images ?
TheDj408 said:
Was waiting for this! Why no official factory images ?
Click to expand...
Click to collapse
Don't think there's ever been an official fastboot zip of any Oxygen rom.
Sent from my OnePlus 2
is it possible to pull fingerprint code from this
Why so ? Any reaosns? What if we want to flash stock image ? @Spannaa
TheDj408 said:
Why so ? Any reaosns? What if we want to flash stock image ? @Spannaa
Click to expand...
Click to collapse
I've no idea - ask OnePlus
I have hydrogen os fastboot.zip
After corrupting my phone and not being able to boot into recovery i lost all hopes
Then i search all possible sources after 4 hours of intensive search and translating bunch of chinese sites n pages finally i found fastboot of H2 os file .
If someone needs it can reply me or pm me its around 1.4gb i will upload it .
I revived my phone n now its doing fine with cm 12.1 with functional all partition and everything . xda and google can bring anything back from graves.
psnijjar said:
After corrupting my phone and not being able to boot into recovery i lost all hopes
Then i search all possible sources after 4 hours of intensive search and translating bunch of chinese sites n pages finally i found fastboot of H2 os file .
If someone needs it can reply me or pm me its around 1.4gb i will upload it .
I revived my phone n now its doing fine with cm 12.1 with functional all partition and everything . xda and google can bring anything back from graves.
Click to expand...
Click to collapse
Nice to hear that you fix your baby. I would like actually. Is it possible to upload in Mega? It would be nice of you. Thanks
Sent from my ONE A2003 using Tapatalk 2
I will asap currently on low speed connection.
I will upload as soon as possible m facing low speed connection on my side here . as soon it get good speed i will upload it.
Note- i used some Qualcomm flashkit to flash it n revived it from dead.
---------- Post added at 05:29 PM ---------- Previous post was at 05:27 PM ----------
I extraxted h2os boot animation if any one need i will upload soon. Its kinda cool.
TheDj408 said:
Why so ? Any reaosns? What if we want to flash stock image ? @Spannaa
Click to expand...
Click to collapse
Spannaa said:
I've no idea - ask OnePlus
Click to expand...
Click to collapse
cos its their own cook and not community.
its a shame as it would be really handy to have these images (OPO & OP2). To have this not available actually starts to worried me (especially the one for OP2) as it stops community developers making some great stuff
Here are the files
https://mega.nz/#!idAy1Jpa!6ofPBQG27or20m5ftodVFxoXd6QLUnNjl6EKSjUGZ4cc
Download this rar file and extract it . it have Qualcomm app inside it for flashing the rom.
I say again this is h2os rom fastboot files not oxygen os . these are to jus recover phone from brick and boot partition corrupted.
@janjan here you go . if i been any helpful please mention me somewhere in your work or anywhere these files are of any help.
rikardo1979 said:
cos its their own cook and not community.
its a shame as it would be really handy to have these images (OPO & OP2). To have this not available actually starts to worried me (especially the one for OP2) as it stops community developers making some great stuff
Click to expand...
Click to collapse
Most of the images that would be in a fastboot rom zip are already inside the full rom flashable zip.
System can be extracted from system.new.dat & system.transfer.list and recovery can be found online.
That just leaves userdata and cache.
Sent from my OnePlus 2
psnijjar said:
https://mega.nz/#!idAy1Jpa!6ofPBQG27or20m5ftodVFxoXd6QLUnNjl6EKSjUGZ4cc
Download this rar file and extract it . it have Qualcomm app inside it for flashing the rom.
I say again this is h2os rom fastboot files not oxygen os . these are to jus recover phone from brick and boot partition corrupted.
@janjan here you go . if i been any helpful please mention me somewhere in your work or anywhere these files are of any help.
Click to expand...
Click to collapse
Thanks a lot. :thumbup:
Sent from my ONE A2003 using Tapatalk 2
psnijjar said:
https://mega.nz/#!idAy1Jpa!6ofPBQG27or20m5ftodVFxoXd6QLUnNjl6EKSjUGZ4cc
Download this rar file and extract it . it have Qualcomm app inside it for flashing the rom.
I say again this is h2os rom fastboot files not oxygen os . these are to jus recover phone from brick and boot partition corrupted.
@janjan here you go . if i been any helpful please mention me somewhere in your work or anywhere these files are of any help.
Click to expand...
Click to collapse
Basically these are not fastboot files. But still thanks for your contribution here.
Sent from my ONE A2003 using Tapatalk
Spannaa said:
Most of the images that would be n a fastboot rom zip are already inside the full rom flashable zip.
System can be extracted from system.new.dat & system.transfer.list and recovery can be found online.
That just leaves userdata and cache.
Sent from my OnePlus 2
Click to expand...
Click to collapse
I have userdata and Recovery and cache image with me too but uploading them is being a difficulty. A friend will upload prolly tonight. So we are just left with system IMG.... I made a rooted system IMG but that will be of no use.
Sent from my ONE A2003 using Tapatalk
Naman Bhalla said:
Basically these are not fastboot files. But still thanks for your contribution here.
Sent from my ONE A2003 using Tapatalk
Click to expand...
Click to collapse
Apologize for wrong i did. But these files does help very much to recover from any brick . the process this Qualcomm app does here is very much similar to fastboot flashing.
I have a very silly request @Naman Bhalla can u please pull camera apk for deodexed rom please. Would be very grateful of you.
Naman Bhalla said:
I have userdata and Recovery and cache image with me too but uploading them is being a difficulty. A friend will upload prolly tonight. So we are just left with system IMG.... I made a rooted system IMG but that will be of no use.
Sent from my ONE A2003 using Tapatalk
Click to expand...
Click to collapse
I can help upload it someplace. Let me know.
psnijjar said:
Apologize for wrong i did. But these files does help very much to recover from any brick . the process this Qualcomm app does here is very much similar to fastboot flashing.
I have a very silly request @Naman Bhalla can u please pull camera apk for deodexed rom please. Would be very grateful of you.
Click to expand...
Click to collapse
Yeah.. It is similar to fastboot but still not fastboot... Practically, those files should be used for hard brick cases and fastboot files for soft bricks...
I think someone had extracted camera apk from OxygenOS as well as HydrogenOS and made zips. I personally use HydrogenOS camera using apk. Will share it's link if you can't find. Tell me if you are unable to find.
Sent from my ONE A2003 using Tapatalk
Spannaa said:
Most of the images that would be n a fastboot rom zip are already inside the full rom flashable zip.
System can be extracted from system.new.dat & system.transfer.list and recovery can be found online.
That just leaves userdata and cache.
Sent from my OnePlus 2
Click to expand...
Click to collapse
I bet you can just use the 64 data .img from the OPO, cause it's an empty RAW partition (for deleting the content). And who needs the cache
I'm on generating the system.img from system.dat and .list files, but having time for now, hope can do it today...

I have an issue making stock based rom

I extract system from spflash (to make .Img into a folder), and try to add to my meta-inf and boot.img and it doesn't boot... the script is correct, I'm sure of it, it just formats system, and drops the system folder to /system, but it still doesn't boot.. what am I doing wrong? I've made stock based rooms for other devices but the stock rom was already in system folder type(I didn't have to extract system.img) and I guess it's something to do to the way I extract system.img.. how can I fix it?
Hi.
Did you convert the sparse image? If you extract the img without converting it, then it will not boot. Use simg2img to convert system.img.
Greetings
vsrookie
Ps. Please attach script.
Sent from my P9000 using XDA-Developers Legacy app
vsrookie said:
Hi.
Did you convert the sparse image? If you extract the img without converting it, then it will not boot. Use simg2img to convert system.img.
Greetings
vsrookie
Ps. Please attach script.
Click to expand...
Click to collapse
i havent converted it, i just extracted it using a winrar, ill leave the script and try to convert but im 100% the script is correct, and for some reason i cant send the script so ill leave a link to it:
https://pastebin.com/4aLmga5X
Ruben Craveiro said:
i havent converted it, i just extracted it using a winrar, ill leave the script and try to convert but im 100% the script is correct, and for some reason i cant send the script so ill leave a link to it:
https://pastebin.com/4aLmga5X
Click to expand...
Click to collapse
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Sent from my P9000 using XDA-Developers Legacy app
vsrookie said:
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Click to expand...
Click to collapse
I converted it to ext4 and now I'm using ext2explore to extract, will that work?
vsrookie said:
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Click to expand...
Click to collapse
I converted to ext4, then from ext4 to a folder.. Packed everything and flashed, still didn't boot (I used the unedited system.img), do I have to change the boot.img to make unsecured or it doesn't matter?
vsrookie said:
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Click to expand...
Click to collapse
Got it to work, thanks! I forgot to make boot.img unsecure

Need help repacking boot.img

Hi, anyone here who can help me replacing the kernel from the attached stockboot.img to the boot.img ?
I cant find any boot.img repacker tools and ima beginner, maybe someone can help me out ?
Keiko87 said:
Hi, anyone here who can help me replacing the kernel from the attached stockboot.img to the boot.img ?
I cant find any boot.img repacker tools and ima beginner, maybe someone can help me out ?
Click to expand...
Click to collapse
Use Android image Kitchen. Search it on google.
Start here. https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434 You will need to use Linux or Windows but linux is your best bet if you are a beginner.
Sent from my SM-J327P using Tapatalk
Sands207 said:
Start here. https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434 You will need to use Linux or Windows but linux is your best bet if you are a beginner.
Sent from my SM-J327P using Tapatalk
Click to expand...
Click to collapse
Awesome aririririgatou, worked for me ヅ
Keiko87 said:
Hi, anyone here who can help me replacing the kernel from the attached stockboot.img to the boot.img ?
I cant find any boot.img repacker tools and ima beginner, maybe someone can help me out ?
Click to expand...
Click to collapse
has several tools,,, but, what's the point, if they close the file, half the size
i have a boot_b.bin weighing 40mb when I open and close, it gets 17mb, never that the systema will accept such a deal.

[TOOL] Amlogic Unpacker - Windows Tool to Unpack/Repack Oreo Images

THE FOLLOWING GUIDE IS FOR OREO IMAGES.
TO UNPACK AMLOGIC 9.0 PIE IMAGES, WATCH THIS TUTORIAL VIDEO: https://youtu.be/exDD6YOC4HU
Hey Everyone! Many people requested me on forumXperience to make a repacking/unpacking guide for Amlogic Oreo/Pie Images. So yesterday, when I had time I started to create my own windows tool for you guys to unpack and repack Amlogic Oreo/Pie Images.
You can now easily extract files in a few clicks and edit them to flash on your devices!
Very simple to use and it works great and is also faster than stock Amlogic Customization Tool which unfortunately doesn't support Oreo images.
There may be a few bugs that I am unaware of, so please let me know if you run into any problem. Later, I may add recovery and kernel unpacking option in the tools.
Thanks to Ricky for his Customisation Tools, I used his binaries for this project
The tool is pretty much open for everyone to edit and modify, it has batch scripts so you can easily edit with Notepad and learn the process of Amlogic Unpacking/Repacking manually [emoji23]
Here you can download the tool:
[Amlogic Unpacker by Nayam.zip]
3.26 MB​
it works fine. thanks.....
i was going to buy the other tool but this did the work without any money
techygaga said:
it works fine. thanks.....
i was going to buy the other tool but this did the work without any money
Click to expand...
Click to collapse
Good to hear. This has been flying under the radar and people really didn't care about this tool. Glad to see atleast there's someone using this.
Yes it does unpack/repack oreo images but it doesn't (yet) unpack recovery and kernel which I thought were not really important for the time being. Unpacking vendor and system will do all the work if you want to mod ROMs. Kernel and Recovery modifications are really not required and can be avoided by using alternative ways.
Sent from my F3116 using Tapatalk
Cool. Thank you
thanks
link doesn't work
do you have support uppack/repack Android 9??
xmannv said:
do you have support uppack/repack Android 9??
Click to expand...
Click to collapse
Yes ofcourse
Sent from my F3116 using Tapatalk
N'ayam Amarsh'e said:
Yes ofcourse
Sent from my F3116 using Tapatalk
Click to expand...
Click to collapse
But Image Pack Failed (Android 9 Pie)
Level 1 repack doesnt work with A95X Max.
Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
like your tool..
Tonian1878 said:
Level 1 repack doesnt work with A95X Max.
Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
Click to expand...
Click to collapse
Hey, i have the same problem with a gt king pie .img..
I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?
Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..
and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it?
Thanks
Sim
5im said:
Hey, i have the same problem with a gt king pie .img..
I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?
Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..
and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it?
Thanks
Sim
Click to expand...
Click to collapse
get rickys customisation tool, in the folder of ricky customisation tool, create a folder called "tmp".
Now unpack your firmware with nayams tool (both level 1 and 2) and copy the level 1 and 2 folders from the "unpacked" folder and paste them into you newly created "tmp" folder.
start rickys customisation tool, edit and repack your rom from there.
hope that make sense
5im said:
Hey, i have the same problem with a gt king pie .img..
I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?
Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..
and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it?
Thanks
Sim
Click to expand...
Click to collapse
I'm sorry for not explaining everything correctly.
Level 2 is unpacked after unpacking level 1.
You cannot unpack level 2 without unpacking level 1 first.
Similarly, the repack script I wrote first repacks level 2 and then repacks level 1. If you want these separated, I can provide that too.
So you need to run the scripts in order.
Run script number 1, then 2. Then make changes in level 2 folder and then run repacking script.
Sent from my F3116 using Tapatalk
Tonian1878 said:
Level 1 repack doesnt work with A95X Max.
Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
Click to expand...
Click to collapse
Thanks for confirming, I'll fix the repacking script If it's causing problems.
Sent from my F3116 using Tapatalk
If Pie images aren't working, please wait for a fix. I'll try some pie images out and will update the commands
Sent from my F3116 using Tapatalk
N'ayam Amarsh'e said:
Thanks for confirming, I'll fix the repacking script If it's causing problems.
Sent from my F3116 using Tapatalk
Click to expand...
Click to collapse
Thanks.
it does repack the firmware but after flashing the a95x max, it just hangs on the boot logo and doesnt get to the boot animation.
as said before, if i take the unpacked level 1 contents from your tool and repack with rickys tool, A95X max flashes and boots perfectly.
level 2 to level 1 repack doesnt seem to be an issue, purely level 1 to img repack.
@Tonian1878: Thx for the explanation!
N'ayam Amarsh'e said:
If Pie images aren't working, please wait for a fix. I'll try some pie images out and will update the commands
Click to expand...
Click to collapse
That would be great! If you need a Pie image for testing: bee-link.com/forum.php/forum.php?mod=viewthread&tid=50649&extra=page%3D1
Download link is down.. pls re-up.
Tonian1878 said:
get rickys customisation tool, in the folder of ricky customisation tool, create a folder called "tmp".
Now unpack your firmware with nayams tool (both level 1 and 2) and copy the level 1 and 2 folders from the "unpacked" folder and paste them into you newly created "tmp" folder.
start rickys customisation tool, edit and repack your rom from there.
hope that make sense
Click to expand...
Click to collapse
I tried it that way. Unfortunately, there is always an error message "Failed to repack system, default will be used"..
The image will be packed correctly, but my changes will be overwritten again.
Do you use AMLogicTools_V6.0.0?

Categories

Resources