Hello!
I want to extract the apk files from the system.img file HUAWEI P30 smartphone with android 9.
But the tool that I have always used (imgextractor.exe) completes the processing of the img file with an error:
Code:
ImgExtractor version 1.3.7 <Created by And_PDA (Based on sources ext4_unpacker)>
Extractor for images in EXT2\EXT3\EXT4\YAFFS2\CRAMFS filesystem formats
support SPARSE\SIN\MOTO structure formats
Exception EOutOfMemory in module imgextractor.exe at 0001669D.
Out of memory.
Please, help me!
P.S. According to the rules of the forum, I can not yet attach an external link to my post. But if necessary, I can send it to private messages!
Did you convert SIMG to IMG before? Something is in new format SIMG or raw IMG.
adeii said:
Did you convert SIMG to IMG before? Something is in new format SIMG or raw IMG.
Click to expand...
Click to collapse
Yes i used simg2img.exe for this. I tried to process the new IMG file with imgextractor.exe, but the result was the same ((
appdroiddevelop said:
Yes i used simg2img.exe for this. I tried to process the new IMG file with imgextractor.exe, but the result was the same ((
Click to expand...
Click to collapse
Try with DiskInternals LinuxReader.
Related
A tool to Repack the firmware image system.new.dat Nougat 7.x.x
the author of the tool by Karan Sangaj thank you :good: on XDA haven't found the original post
The usage is very simple, I hope many will be useful.
thanks for the help ajsmsg78
1) install Python 2.7.13
2) original post File contexts.bin converter thank you
another File context tools thank you
video instruction
https://www.youtube.com/watch?v=OsHWPdIgGjY
https://plus.google.com/u/0/collection/EiQ1NE
sory for my English
cannot convert my_new_system.img.
how to convert it exactly?
Any solution??
Traceback (most recent call last):
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\img2sdat.py", line 10, in <module>
import common, blockimgdiff, sparse_img
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\common.py", line 112
print " running: ", " ".join(args)
^
Esakren17 said:
Any solution??
Traceback (most recent call last):
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\img2sdat.py", line 10, in <module>
import common, blockimgdiff, sparse_img
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\common.py", line 112
print " running: ", " ".join(args)
^
Click to expand...
Click to collapse
I am getting the same error as this, what should I do to fix it?
Have installed python v2.7.13+3.6.1, latest java jdk and jre and .NET framework v4.7 and running windows 10, it had worked on the first try but started showing this error suddenly.
It works, but after install ROM the battery discharges very quickly and heats up... I think that incorrectly exposed file permissions, because if i flash "system" folder with setting simlinks and set_metadata in updater-script ROM works fine and battery is ok.
ROM work only with system.img, system.new.dat dont flash, error 7 in TWRP...
best tools ,thanks!!
raghuM said:
I am getting the same error as this, what should I do to fix it?
Have installed python v2.7.13+3.6.1, latest java jdk and jre and .NET framework v4.7 and running windows 10, it had worked for the first time but started showing this error suddenly
Click to expand...
Click to collapse
same here
Anyway to repack oreo
Got a problem with this tool.....
it works perfectly to extracting system.new.dat and unpack system.img I modify and remove some files in the system folder (remove some apks and fonts, add some hosts....) so the size of the system folder change and when I type the 04 option got this error message.....
0 [main] make_ext4fs 7236 cygwin_exception:pen_stackdumpfile: Dumping stack trace to make_ext4fs.exe.stackdump
Impossible de trouver C:\Users\RAYMAN95\Desktop\Android Unpack Repack Nougat\temp_size.txt
How is it possible to made some modifications and repack it to system.new.dat????
thank's for the help
This tool is very nice.... But please help me guys... On the last step I'm failed to repack system.img to new.system.dat... SYNTAX ERROR... how to fix it?
By the way it is very great tool... Thx to Dev ^^
Can't Unpack system.img
Ok Bro .. That's awesome Tutorial.
I have the system.img of Note 8 AP file .. I try to unpack it directly but it Ext4Extractor.exe is stopping working.
I don't have system.new.dat file so I'm trying to unpack system.img directly but it doesn't work.
As these images show the error:
https://imgur.com/a/jlZvb
Thank you very much for your tools very easy to use Thank you again
iMenesi said:
Ok Bro .. That's awesome Tutorial.
I have the system.img of Note 8 AP file .. I try to unpack it directly but it Ext4Extractor.exe is stopping working.
I don't have system.new.dat file so I'm trying to unpack system.img directly but it doesn't work.
As these images show the error:
https://imgur.com/a/jlZvb
Click to expand...
Click to collapse
The link is not working.
You need to have a custom ROM, and in it system.transfer.list and system.new.dat.
Use this method:
[DEV] sdat2img 1.0 - img2sdat 1.2 ◦ Unpack/re-pack android DAT files
For a long time I use and have not found Android ROM 5.1.1 - 8.0.0, which can not be unpacked using sdat2img.py.
Thank you authors @xpirt , @luxi78 , @howellzhu !
You dont need a custom rom or the system.transfer.list, or system.new.dat. This unpacks images just fine. It will not unpack factory images tho. I got it to work just fine unpacking nexus 6 system.img by placing the image in the output_converted_dat_to_ext4 folder then telling the bat file what the size is and unpacking it. Do the same thing for oreo and the ext4 exe crashes.
ze7zez said:
The link is not working.
You need to have a custom ROM, and in it system.transfer.list and system.new.dat.
Use this method:
[DEV] sdat2img 1.0 - img2sdat 1.2 ◦ Unpack/re-pack android DAT files
For a long time I use and have not found Android ROM 5.1.1 - 8.0.0, which can not be unpacked using sdat2img.py.
Thank you authors @xpirt , @luxi78 , @howellzhu !
Click to expand...
Click to collapse
iMenesi said:
Ok Bro .. That's awesome Tutorial.
I have the system.img of Note 8 AP file .. I try to unpack it directly but it Ext4Extractor.exe is stopping working.
I don't have system.new.dat file so I'm trying to unpack system.img directly but it doesn't work.
As these images show the error:
https://imgur.com/a/jlZvb
Click to expand...
Click to collapse
greeshan said:
It works, but after install ROM the battery discharges very quickly and heats up... I think that incorrectly exposed file permissions, because if i flash "system" folder with setting simlinks and set_metadata in updater-script ROM works fine and battery is ok.
ROM work only with system.img, system.new.dat dont flash, error 7 in TWRP...
Click to expand...
Click to collapse
flash "system" folder with setting simlinks and set_metadata in updater-script ROM
Click to expand...
Click to collapse
How did you fix the problem?
How did you do that?
master.robot said:
How did you fix the problem?
How did you do that?
Click to expand...
Click to collapse
i use commands set_metdata(xxxx); after block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
Is this tool work with oreo roms ?
wgmmmx said:
Is this tool work with oreo roms ?
Click to expand...
Click to collapse
No i think
link77kz said:
A tool to Repack the firmware image system.new.dat Nougat 7.x.x
the author of the tool by Karan Sangaj thank you :good: on XDA haven't found the original post
The usage is very simple, I hope many will be useful.
thanks for the help ajsmsg78
1) install Python 2.7.13
2) original post File contexts.bin converter thank you
another File context tools thank you
video instruction
https://www.youtube.com/watch?v=OsHWPdIgGjY
https://plus.google.com/u/0/collection/EiQ1NE
sory for my English
Click to expand...
Click to collapse
rom isn't booting after editing system.new.dat. any help ?
For anyone having syntax errors converting systemsparse.img to system.new.dat just download the updated img2sdat files from the link below and extract all files ending in .py to the tools folder of this batch tool. There's also an updated sdat2img.py linked below which goes in the same tools folder. Overwrite all the old files when prompted.
Edit: I've attached a zip that has the tools already updated. Maybe the OP can update the first post?
img2sdate update: https://github.com/xpirt/img2sdat
sdat2img update: https://github.com/xpirt/sdat2img
i have two questions :
1. what this lines mean in an updater script :
run_program("/bin/7zr", "x", "/data/system_boot.7z", "-y","-o/system");
i know it runs 7zr program from /bin/ to extract system_boot.7z from data directory
but what are "x" and "-y" and "-o"???
2. and how can i to convert two folders content to system.img and data.img to flash with fastboot?
any idea?
x23are said:
any idea?
Click to expand...
Click to collapse
this script extract system_boot.7z archive to system partition
x extract
y force replace
2. system and data partitions must be flashed with .yaffs2 images
Hello,
I have an ASUS K01A tablet with a blank system partition and unusable recovery. I can flash img files to their respective partitions just fine (boot.img, droidboot.img) in fastboot, but 'system' in the stock firmware zip is a directory instead of a flashable image. Of course, this (and other reasons) means I can't just flash the stock firmware in fastboot, nor flash over the entire 'system' directory.
I need a system.img to recover my tablet from softbrick, but I can't for the life of me compile one. I've exhausted every method and tool I could find in both Windows and Ubuntu.
I beseech the community; if there is anyone reading this who could build such a file for me, I would be eternally grateful. I believe I only need the system.img to recover the tablet.
The stock firmware is at the ASUS website. Here is the download link: UL-K01A-WW-12.8.1.41-user.zip.
Thanks in advance!
Why not extract the system folder of the ZIP linked to, then pack it into a ZIP what you then convert to IMG using an online-convertor that does the job?
jwoegerbauer said:
Why not extract the system folder of the ZIP linked to, then pack it into a ZIP what you then convert to IMG using an online-convertor that does the job?
Click to expand...
Click to collapse
"Why not" indeed; that sounds like it would more than suffice. Can you please recommend one?
Anyone? I have been unable to find this "online-converter" despite days of searching; still at square one.
Only as example ( found via Google search !!! )
Archive Converter - Convert your a7z, rar, zip, gzip, bzip2, tar archives to another format online
Free Archive Converter. Convert your archive files to a7z, rar, zip, gzip, bzip2, tar format online for free using OnlineConvertFree.
onlineconvertfree.com
jwoegerbauer said:
Only as example ( found via Google search !!! )
Archive Converter - Convert your a7z, rar, zip, gzip, bzip2, tar archives to another format online
Free Archive Converter. Convert your archive files to a7z, rar, zip, gzip, bzip2, tar format online for free using OnlineConvertFree.
onlineconvertfree.com
Click to expand...
Click to collapse
Thank you, but I've tried this one and all the others on Google, and none will handle the filesize (~650 MB). It must be purpose-made for Android .img files it seems, which I've been unable to find.
Kehkou said:
Hello,
I have an ASUS K01A tablet with a blank system partition and unusable recovery. I can flash img files to their respective partitions just fine (boot.img, droidboot.img) in fastboot, but 'system' in the stock firmware zip is a directory instead of a flashable image. Of course, this (and other reasons) means I can't just flash the stock firmware in fastboot, nor flash over the entire 'system' directory.
I need a system.img to recover my tablet from softbrick, but I can't for the life of me compile one. I've exhausted every method and tool I could find in both Windows and Ubuntu.
I beseech the community; if there is anyone reading this who could build such a file for me, I would be eternally grateful. I believe I only need the system.img to recover the tablet.
The stock firmware is at the ASUS website. Here is the download link: UL-K01A-WW-12.8.1.41-user.zip.
Thanks in advance!
Click to expand...
Click to collapse
maybe that video helps you...
good luck
solong
speedson
I built it finally using IMGBurn to create the raw img and Sparse Converter to convert it to sparse img fragments.
But now the tab has formatting error, and with -u option, flashing errors (all partitions and imgs now). Ah, well.
Thank you to everyone! Hopefully someone else reading this will have better luck than me.
Kehkou said:
I built it finally using IMGBurn to create the raw img and Sparse Converter to convert it to sparse img fragments.
But now the tab has formatting error, and with -u option, flashing errors (all partitions and imgs now). Ah, well.
Thank you to everyone! Hopefully someone else reading this will have better luck than me.
Click to expand...
Click to collapse
Download the attached file from the link at the bottom of this post and unzip it somewhere on your PC. It is a temporary recovery launcher. We'll come back to it in a moment. Based on your original post I'm assuming you already have your stock firmware downloaded as well as ADB and Fastboot setup. From your stock firmware unpack the following files: fastboot.img, splashscreen.img, and boot.img and place them in your ADB/Fastboot folder. Copy the stock firmware to your sd card (in its original, unzipped form...the way it was when you first downloaded it). Put the tablet in fastboot mode. Run the following fastboot commands from a command prompt.
- fastboot flash fastboot fastboot.img
- fastboot flash boot boot.img
- fastboot flash splashscreen splashscreen.img
Reboot back to fastboot mode. Go to wherever you unzipped the temp recovery that you downloaded earlier. Double click on launcher.bat. Type accept in the window, then type T2 and your device should boot into CWM recovery. Now choose install zip>install from se card>and choose the stock firmware.zip that you previously copied to your sd card then let it do its thing. Once its finished go back to the first page of the CWM recovery that you're in and select reboot system now>no>no. You should be golden now. Post back if you have any issues.
Download Disposable Recovery
i got this error when i try to sideload flash arrow os 12 on pitchblack recovery
Code:
assert failed: update_dynamic_partitions(package_extract_file("dynamic_partitions_op_list"))
Updater process ended with ERROR: 1
hihellolol123 said:
i got this error when i try to sideload flash arrow os 12 on pitchblack recovery
Code:
assert failed: update_dynamic_partitions(package_extract_file("dynamic_partitions_op_list"))
Updater process ended with ERROR: 1
Click to expand...
Click to collapse
what is your phone model
LR7875 said:
what is your phone model
Click to expand...
Click to collapse
realme c3
hihellolol123 said:
realme c3
Click to expand...
Click to collapse
have tried other recoveries other than pitchblack?
LR7875 said:
have tried other recoveries other than pitchblack?
Click to expand...
Click to collapse
yes
LR7875 said:
have tried other recoveries other than pitchblack?
Click to expand...
Click to collapse
i was originally on twrp
hihellolol123 said:
i was originally on twrp
Click to expand...
Click to collapse
in twrp still fail?
LR7875 said:
in twrp still fail?
Click to expand...
Click to collapse
yes still the same error
hihellolol123 said:
yes still the same error
Click to expand...
Click to collapse
what are the files when you extracted the arrowos zip
boot img
dtbo img
dynamic partitions op list
odm new dat br
odm patch dat
odm transfer list
product new dat br
product patch dat
product transfer list
system new dat br
system patch dat
system transfer list
system ext new dat br
system ext patch dat
system ext transfer list
vbmeta img
vendor patch dat
vendor transfer list
install (folder)
META INF (folder)
hihellolol123 said:
boot img
dtbo img
dynamic partitions op list
odm new dat br
odm patch dat
odm transfer list
product new dat br
product patch dat
product transfer list
system new dat br
system patch dat
system transfer list
system ext new dat br
system ext patch dat
system ext transfer list
vbmeta img
vendor patch dat
vendor transfer list
install (folder)
META INF (folder)
Click to expand...
Click to collapse
use this
[Tools][windows][Pie]Auto System Image Exctractor
============================================== Auto System Image Exctractor ============================================== ============================================== Supports 1) system.new.dat 2) system.new.dat.br 3) payload.bin...
forum.xda-developers.com
use system.new.dat.br to obtain system.img
flash in fastboot
ok thankss
i got an error again
Code:
WARNING!!!
system.new.dat nor system.new.dat.br nor payload.bin not found!!
make sure you are using the correct zip file
closing...
hihellolol123 said:
i got an error again
Code:
WARNING!!!
system.new.dat nor system.new.dat.br nor payload.bin not found!!
make sure you are using the correct zip file
closing...
Click to expand...
Click to collapse
Put the files of your rom into the extractor folder
LR7875 said:
Put the files of your rom into the extractor folder
Click to expand...
Click to collapse
ok
I need to get the boot.img file to root my phone, but I can't extract the boot.img file from the Fastboot ROM file.
My phone: Omix X400.
Android version: 11 (R).
It has Seamless Update feature.
It is impossible to find custom recovery on the internet because my phone is not very well known.
Fastboot ROM File: https://github.com/omixmobile/firmware/releases/download/V11.4.2_X400/R.X400.20221116.V11.4.2.pac.xz
Optional: I have attached the system's build.prop file.
Memozit said:
I need to get the boot.img file to root my phone, but I can't extract the boot.img file from the Fastboot ROM file.
My phone: Omix X400.
.....
Click to expand...
Click to collapse
Didn't even know this device exists but was interested in your problem (having only Samsungs+LG).
Downloaded ROM from your link.
Searching!helped me find a youtube video how to extract files from that .pac file.
Downloaded that tool and extracted a file I suspect it to be the boot.img although named dtbo.img. It's 8MB big so I will not attach it.
Extracting is that easy that I believe you can do it yourself.
bmwdroid said:
Bu cihazın var olduğunu bile bilmiyordum ama sorununuzla ilgileniyordu (yalnızca Samsungs+LG'ye sahip).
Bağlantınızdan ROM indirildi.
Aranıyor! bu .pac dosyasından dosyaların nasıl çıkarılacağına dair bir youtube videosu bulmama yardımcı oldu
Bu aracı indirdim ve bir dosya çıkardım, adının dtbo.img olmasına rağmen boot.img olduğundan şüpheleniyorum. 8 MB büyük, bu yüzden eklemeyeceğim.
Ayıklamak o kadar kolay ki, kendin yapabileceğine inanıyorum.
Click to expand...
Click to collapse
I'll try patching the dtbo.img file after I've done my homework
bmwdroid said:
Didn't even know this device exists but was interested in your problem (having only Samsungs+LG).
Downloaded ROM from your link.
Searching!helped me find a youtube video how to extract files from that .pac file.
Downloaded that tool and extracted a file I suspect it to be the boot.img although named dtbo.img. It's 8MB big so I will not attach it.
Extracting is that easy that I believe you can do it yourself.
Click to expand...
Click to collapse
I'm trying to patch from Magisk; The files I bought from every ROM, had the extension .img and had the extension .img (except .xml, .bmp and userdata.img) all gave the same error:
- Device platform: arm64-v8a
- Installing: 25.2 (25200)
- Copying image to cache
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
- Unpacking boot image
! Unsupported/Unknown image format
! Installation failed
This log got from a files Magisk log.
Try using older version of SPD Research Tool, version R21 and below maybe
ren16 said:
Try using older version of SPD Research Tool, version R21 and below maybe
Click to expand...
Click to collapse
What for??
It worked/extracted all.
Any update to this? I am trying to get boot.img from a Lenovo .pac file, but it doesn't exist after the SPD extraction. Only dtbo.img, but Magisk fails to use it and says "Unsupported/Unknown image format".
All the other *.img files in the ROM do the same.