[Q] how do i extract this .img firmwar ? - Android Software/Hacking General [Developers Only]

hi there,
i have read allot of posts and i have mod some firmware's before.
but now i cannot open this .img file : http://www.tabletsupport.eu/Cherry/M-677_Firmware_20111221.rar
when i try to extract it with tccunpack i get an error : invalid signature
when i do it with simg2img : bad magic
When i do it with a android kitchen i get the error :
android 'magic' header not found at start of the boot.img
it is for a tablet.
can someone push me in the right way ?

Related

(LG GW620) - KDZ to IMG Help!

Hi everyone!
I'm asking for a fix!
I did the conversion of files for all existing tutorials and it doesn't work!
Procedure:
========
1) Downloaded at LG sources my original Firmware: V10B_00.KDZ
2) Extract .CAB files by LG Utils, Extract with Winrar the dz.file, Extract files by DzDecrypt
Now I used CYGWIN Linux apps emulator:
===============================
3) Used unmbn to generate zImage_Ramdisk.mbn.new
4) Extract all system files with unyaffsmbn
Note: a error happens when i try to extract APKs: "invalid CEN header (bad signature)", All other system files are ok!
What i should do?
Note2: Can someone convert this files for me without errors?
h t t p ://csmg.lgmobile.com:9002 /swdata /WEBSW /GW620f /ABTMBK /V10b_00 /V10B_00.kdz
Thanks!
No one can help me?
Thks!
i know the process is right, but why only in gw620 the process doesn't work?

[Q] OverMax custom rom - rooting problem - simg2img - "Bad magic"

I need to rooting Android OverMax OV-ML-02 Netbook. I downloaded orginal roms from overmax dot pl slash softml-02 dot rar write it to MicroSD and found system.img (167 MB).
I tried to simg2img it, but I receive "Bad Magic" error.
Here is a 7zip archive:
classicapponcloud dot cloudapp dot net slah source40 dot 7z)– can anybody tried to mount it?
PS
I posted it here, because there is no OverMax forum.
mafamafa said:
I need to rooting Android OverMax OV-ML-02 Netbook. I downloaded orginal roms from overmax dot pl slash softml-02 dot rar write it to MicroSD and found system.img (167 MB).
I tried to simg2img it, but I receive "Bad Magic" error.
Here is a 7zip archive:
classicapponcloud dot cloudapp dot net slah source40 dot 7z)– can anybody tried to mount it?
PS
I posted it here, because there is no OverMax forum.
Click to expand...
Click to collapse
This is uBoot images. Strip of the first 64 bytes of header from the files to get the actual contents.
After this, you can use your tools to unpack them, e.g. cpio for ramdisk, and unyaffs (I guess) for system.
See more at http://www.isysop.com/unpacking-and-repacking-u-boot-uimage-files/
And next time, ask questions like this in the Q&A forum. And write readable links!
kuisma said:
This is uBoot images. Strip of the first 64 bytes of header from the files to get the actual contents.
After this, you can use your tools to unpack them, e.g. cpio for ramdisk, and unyaffs (I guess) for system.
See more at http://www.isysop.com/unpacking-and-repacking-u-boot-uimage-files/
And next time, ask questions like this in the Q&A forum. And write readable links!
Click to expand...
Click to collapse
I skip first 64 bits, but I can not mount the image see my post here:
http://forum.xda-developers.com/showthread.php?t=1878000

[Tool] [Windows] Auto Tool Unpack Repack Rom Android .DAT

[Tool] [Windows] Auto Tool Unpack Repack Rom Android .DAT [No Cygwin] [No Linux]
***(Marshmallow Supported)***
Develop by MTK THAI ROM MODDER (Thiland) Group
Create Tool by: Kritsada Chaitan
SS:
Youtube : https://www.youtube.com/watch?v=nKYozWOETIU
-NOTE 1.-
***First Install Needed For Use This Tool.***
1. Java SDK
2. Python v3.xx
-NOTE 2.-
***First Copy system.new.dat , system.transfer.list To "Paste-DAT-Here" Folder.***
Download:
MEGA
Thank you Original Thread by: "xpirt" https://forum.xda-developers.com/member.php?u=5132229
Thanks for the tool
Bebooo43 said:
Thanks for the tool
Click to expand...
Click to collapse
Good.... ^^
It is a wonderful tool, brother.
is this tool works fine?
Getting error about incompatible operating system when recompressing dat so I tried on windows and got the same do I have to install the java or the phyton to a certain directory or the auto tool to a certain directory it extracted fine thanks in advance for the feedback
Can someone lend a hand.... Program works great. After removing a couple apps, one from 'app' another from 'priv-app', I made a zip file with 7zip and tried flashing but it fails. Is 7zip okay to make a zip file? was I not supposed to remove a 'priv-app' ? I can't find any solid guides on editing a MM rom. thanks in advance.
i succesfully unpack .dat files and repack .dat files (without edit anything) using this tool .
then i replace the repack .dat file to the rom and zip it and flash it .
but the problem is, when i flash i get error 7 system partition has unexpected contents after ota update . any solution ?
can't unpack system.new.dat cm14 (7.1)
Thank you very much, really useful
update - https://forum.xda-developers.com/an...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Is it work for N based ROMs
tooolll
worked for me also...
t.y.
please update it to new version waiting for it.

For (WINDOWS) Tool Android Unpack\Repack system.new.dat Nougat 7.х.х

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

How do I flash a MTK devices with only .bin files?

So I have a MTK device (MT6580), it's bricked and I got a stock ROM from Get droid tips. So I plug in the scatter file and it's all okay, the bar turns red then purple and then it gives me an error : ("BROM ERROR: ?? (3)"). A quick search said
"There's a problem with the format of the scatter file or file(s) being flashed. An example is trying to flash .bin files using SP Flash Tool"
and the solution is :
"Check the scatter file and files you're about flashing to be sure they're not meant to be flashed using a different tool"
But what tool? How ?
* if anyone wants to see the files here they are*
MT6580_SKY-PRO-SELFIE-200228182003 - Google Drive
drive.google.com

Categories

Resources