yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] deepjyoti30:
The tool completely needs it. Just check the instructions properly and check the tool folder. There's is need of tgat file without which it is hardly possible to extract it.

And that is not virus man. Open it on some other browser. It just goes to drive after bypassing the ad. And yeah that's the only tool land it works.

---------- Post added at 09:02 PM ---------- Previous post was at 08:59 PM ----------

Edit: Checked the link you gave. I don't know if it's the right one but please give it a try. Though it doesn't look similar to the converter i used.
[Android Q&A, Help & Troubleshooting] kessaras:
Nothing. file_contexts does nothing at all and in the guide in the op is not mentioned anywhere.

the op sais only transfer and system dat. After that , the op sais that if the tool fails, i should manually use python to convert .dat to .img and then head over this thread in this link https://xdaforums.com/showthread.php?t=2285831

and follow that guide to extract the img.

The OP instructions are a load of crap -_- if i need 1 hour to read and 1 hour to convert a file, then my free time is gone !

Anyway. So for now we can't extract 7.1.2 ?
[Android Q&A, Help & Troubleshooting] deepjyoti30:
I extracted 7.1.2 but i did needed the file contexts. Man go ahead and try all that stuff. Even try in Ubuntu and then come back and get the converter.

Even i tried all those python and all fixes. It needs the file. Check in tools. It might have one there.

---------- Post added at 09:31 PM ---------- Previous post was at 09:24 PM ----------

Just checked the zip. There's no file contexts in the bin file though i haven't used this version. Go ahead and try all the different methods and if you still fail please PM me. Will check if the latest version needs to that file. Also i can suggest you other tools confirmed working office with the file contexts.✌️
[Android Q&A, Help & Troubleshooting] kessaras:
from ubuntu i know i can convert the img. the thing is that:

1. i don't like the extra work; booting in ubuntu transfering img there just to convert it and transfering the output back to windows again.

2. i don't like this lame op instructions that have big bold letters that we can extract 7.1.2 and in reality we can't. When we say "i can do that" it means that i can , not spend 2 hours for simply unpacking !

converted it successfully but in ubuntu. Not satisfied. But... oh well... whatever.

Thank you for your time i appreciate the help !
[Android Q&A, Help & Troubleshooting] deepjyoti30:
When i tried in Ubuntu i was able to convert dat to img but the img could not be extracted. I was getting this error. So finally founf the solution with the converter tool. Anyways,enjoy your extracted 7.1.2 image.?
[Android Q&A, Help & Troubleshooting] kessaras:
Just for the information.

I'm still trying to make it work.

If anyone is on windows 10 x64 and can unpack img of 7.1.2, please answer my call and post a step by step what to do !

I'll do the same if I ever make it work.

I have already tried different versions of python and different pythons scripts !!!

I'm not giving up. I'm pissed now ! I'll make it work or I'll start drugs hahaha
[Android Q&A, Help & Troubleshooting] deepjyoti30:
I did it on win8 64. If you want i can pm you how i did it.
[Android Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
[MENTION=6715060]deepjyoti30[/MENTION]: Why not post it on the forums so everyone can benefit?
[Android Q&A, Help & Troubleshooting] deepjyoti30:
The tools are already available in xda. With a bit of googling anyone can find it.
[Android Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
That just makes your offer to PM the result even more ridiculous. There are other people besides the person you wanted to PM you that might benefit from the information, even if it is readily available. When you take it to PM, no one benefits from what you've learned, which runs counter to the spirit of this site, if not the letter.
[Android Q&A, Help & Troubleshooting] deepjyoti30:
That's not the issue. I used another tool to do it and so i don't want to mention about that tool in this thread.
[Android Q&A, Help & Troubleshooting] kessaras:
Also it didn't work on windows 10 x64. I can't unpack 7.1.2. I can only unpack until 7.1.1.

Too bad....
[Android Q&A, Help & Troubleshooting] AlemanSantos:
thanks thanks thanks, just used the tool to unpack some RAZR HD system firmwares to use old ringtones i wanted to hear again =)
[Android Q&A, Help & Troubleshooting] berraffarouk15:
#matrixex hey i want to use this is lineageOS 14.1 but it doesn't read the "file_contexts" it says it's not there ut i'm sure it is there , considering that the file full name is "file_contexts.bin" it's a binary file not a file so what should i do ? i tried rename it but that makes it worse it says missing line in file contexts so ,, please help
[Android Q&A, Help & Troubleshooting] matrixex:
Are you trying to extract or repack?
[Android Q&A, Help & Troubleshooting] berraffarouk15:
repack , extracting works fine, but repacking says it cannot find the file_contexts , i noticed in marshmellow the file is file_contexts

but in nnougat it is file_contexts.bin when i change it to file_contexts it runs but says ligne missing cause i guess it is corrupted when i changed its extenction so any solution,,, and in marshellow i done what u said in that guide and changed to two value of sha1 with the given one from ur extraction but still weh i try to flash it with TWRP i get error number 6
[Android Q&A, Help & Troubleshooting] matrixex:
Sorry I can't help you in repacking of nought because I haven't succeed in it yet

If you look carefully in your updateR_script you might find something missing like semicolon or etc (a/c to another xda posts) or twrp actually point outs the error in the terminal if you look carefully

If nothing helps then upload updater-script and a screenshot of twrp(powerbutton+volumedown)
[Android Q&A, Help & Troubleshooting] sant514:
In windows 10, with Nitrogen Rom 7.1.2

The extracting works fine, but repacking says it cannot find the file_contexts

The Nougat has "file_contexts.bin", no "file_contexts"

I found this tool https://xdaforums.com/showpost.php?p=70881172&postcount=1985

And it converts "file_contexts.bin" --> "file_contexts"

Then, the repacking is so easy.
[Android Q&A, Help & Troubleshooting] matrixex:
[MENTION=5887222]sant514[/MENTION] That's good , btw did you tried flashing it ? Did it boot?

[MENTION=5026454]berraffarouk15[/MENTION] If you want to repack for nougat , first try converting file_context.bin to file_contexts by this tool https://xdaforums.com/showpost.php?p=70881172&postcount=1985 (thanks to sant514), then do the repack
[Android Q&A, Help & Troubleshooting] berraffarouk15:
thnx buddy , i appreciate it
[Android Q&A, Help & Troubleshooting] sant514:
I made the repacking for nitrogen 7.1.2 (version 20170601)

And then, when i tried for flashing,

the recovery (twrp 3.1.1-0) gives to me, error 7

so the flashing does not complete...
[Android Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Did you modify the updater script at all? Error 7 usually is caused by a typo in a line within the script.
[Android Q&A, Help & Troubleshooting] sant514:
No, I modified nothing in update script. Only i removed 6-7 apps from the system.new.data....
[Android Q&A, Help & Troubleshooting] BrooTForce:
7.1.2 nightowl ROM:

"Imgextractor.exe system_1.img -iOpen image file system.img (size 893378560 bytes) successfull...

Analize format of file. Please wait...

Unknown format, magic signature 0xEF53 not found...

Extract fail" not working( Can only extract system.img.ext4 from system.new.dat

ext4_unpacker and ext2explore.exe not help also

Hmm... Sorry, solved, phyton problems
[Android Q&A, Help & Troubleshooting] opt_step:
honor 8 pro, android 7

error unpack

help me
[Android Q&A, Help & Troubleshooting] dreams.sri:
The hero we deserve!

Thanks a billion for this, man. You have no idea how many other tools I tried to get this done. Keep up the good work.

Cheers!:good::highfive:
[Android Q&A, Help & Troubleshooting] dreams.sri:
+1. ☝️this happens to me too.
[Android Q&A, Help & Troubleshooting] Abhishek4587kumar:
Please tell how I can unpack "system.patch.dat"

Its an OTA of Lenovo K4 note which enables volte, I want to know which files are required.

Eagerly waiting for reply.
[Android Q&A, Help & Troubleshooting] sherlock515:
http://imgur.com/a/oDa0X

This is what I've had. What do you mean by flash it directly by folder?

and It's nougat, I couldn't find any tool supporting to repack nougat ROM. please, tell me if anyone has found a tool.
[Android Q&A, Help & Troubleshooting] deepjyoti30:
The repack feature doesn't work all the time and the dev himself has asked to not use it as much possible. You can flash the ROM now by making a zip and flashing it with custom recovery.

But here's a better option for you, if you have custom recovery than just flash the ROM and then open file manager in recovery and then delete the apps you don't need. Thats easier and safer.
[Android Q&A, Help & Troubleshooting] matrixex:
Support for repack of android 7.0 ends

Hello , I am NOT A DEVELOPER and I don't know how to repack it

What do you mean by flash it directly by folder? - This method was suported by android 4.1.2 i.e, at that time size of system folder were small and was directly placed in " zip " but after introduction android L (5.0) the system folder was moved to "system.new.dat"

because of larger size of files and other reasons I might "NOT KNOW"

.

I made this thread after some research and observations on my own device " xperia M " in which my methods worked till android 6.0. After that everything become to diverse too understand, some/every device Custom/Stock ROM have their different repacking methods or contained some extra files.

And I can't make a script for all devices
[Android Q&A, Help & Troubleshooting] Sunnyallizzwell:
Please help i am getting this error while extracting Nougat OTA for HTC One A9

Found system.new.dat

Found system.transfer.list

Hit Enter to continue

converting "system.new.dat" to "system.img.ext4"

Python is installed

Unpacking System.new.dat

sdat2img binary - version: 1.0

Command "bsdiff" is not valid.

Python not found

Switching sdat2img.py to spars2ext.exe

sprs2ext v1.0.0

Built by: Ricky Divjakovski

Contributors: xpirt - luxi78 - howellzhu

No valid command: bsdiff.

converting "system.img.ext4" to "system"

//////////////////////////////////////////////////

/ /

/ There is no system.img.ext4 found /

/ this implies that this extractor /

/ not worked with your .DAT files /

/ Please contact me , matrix /

/ and if possible please proide a /

/ file that contains following info. /

/ 1. dat file size /

/ 2. screenshot(use wordpad, can store images) /

/ 3. mark and copy info on cmd extractor. /

/ /

//////////////////////////////////////////////////

Thanks

Regards -matrix

Press any key to continue . . .
[Android Q&A, Help & Troubleshooting] bflmpsvz:
I'm getting application error Imgextractor.exe

APPCRASH

EXCEPTION_CODE c0000005

EXCEPTION_OFFSET 00003f74

OS Version 6.3.9600.2.0.0.256.4

Additional data 1:	a91f

Additional data 2:	a91f4dad049a9cd6cfa7eb720e63ab21

Additional data 3:	fc8e

Additional data 4:	fc8e7eb2219bf09f4a29c779df5b1684

BTW. I have no file_contexts just file_contexts.bin and it's from LineageOS 14.1 ZIP

Resolution pls
[Android Q&A, Help & Troubleshooting] multiwirth:
Hi i get an error too:

Found system.new.dat

Found system.transfer.list

Hit Enter to continue

converting "system.new.dat" to "system.img.ext4"

Python not found

Switching sdat2img.py to spars2ext.exe

sprs2ext v1.0.0

Built by: Ricky Divjakovski

Contributors: xpirt - luxi78 - howellzhu

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Skipping zero command.

Copying 42 blocks into position 244869...

Copying 28 blocks into position 244912...

Copying 6 blocks into position 244941...

Copying 206 blocks into position 244948...

Copying 40 blocks into position 245155...

Copying 41 blocks into position 245196...

Copying 248 blocks into position 245238...

Copying 2 blocks into position 245487...

Copying 45 blocks into position 245490...

Copying 2 blocks into position 262144...

Copying 2 blocks into position 294912...

Copying 2 blocks into position 295009...

Copying 2 blocks into position 327680...

Copying 2 blocks into position 360448...

Output image: C:\Users\Patrick\Desktop\SYSTEM~1\system.img.ext4

converting "system.img.ext4" to "system"

ImgExtractor version 1.3.6 <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

Open image file system.img.img (size 1610612736 bytes) successfull...

Analize format of file. Please wait...

Unknown format, magic signature 0xEF53 not found...

Extract fail

Files are Found in system_ folder

Drücken Sie eine beliebige Taste . . .

Can someone help me?

I need a file from a LOS14.1 zip for a specific device
[Android Q&A, Help & Troubleshooting] Yannn:
Same error for me !
[Android Q&A, Help & Troubleshooting] matrixex:
[MENTION=5614382]multiwirth[/MENTION]

[MENTION=597390]Yannn[/MENTION]

Python not found

The above mentioned is the

source of error

. I posted it in OP( again reminder) :- Install python and conform that python runs through "cmd" if not then while Installing python select Include Python.exe to cmd
[Android Q&A, Help & Troubleshooting] blackmatrix64:
Same error "magic signature not found" and it ONLY happens with LOS roms. Other roms work fine. And it is not because of corrupted file, I tried this several times with different LOS versions and downloads. Any solution?
[Android Q&A, Help & Troubleshooting] blackmatrix64:
[MENTION=5614382]multiwirth[/MENTION]
[MENTION=597390]Yannn[/MENTION]

Fixed. Had to use file context converter: https://xdaforums.com/tools/general/filecontexts-bin-converter-t3565910
[Android Q&A, Help & Troubleshooting] multiwirth:
I got the needed file anyways but thanks ;)
[Android Q&A, Help & Troubleshooting] matrixex:
And it is not because of corrupted file

[MENTION=4794574]blackmatrix64[/MENTION] Assuming your file is not corrupted, extractor should work. Anyway provide the link to the ROM/OTA. I will try to see what persists problem.

, I tried this several times with different LOS versions and downloads. Any solution?
[Android Q&A, Help & Troubleshooting] blackmatrix64:
Thank you for your reply, but I immediately posted another message after my question, stating that I have fixed it using file context converter. Python was not the issue, so I quoted other two members having the same problem and suggested to them the solution that worked for me.
[Android Q&A, Help & Troubleshooting] matrixex:
I don't know how many of you out there uses xposed, Xposed for nought is out officially by ROVO go and grab it now. https://xdaforums.com/showthread.php?t=3034811&page=5
[Android Q&A, Help & Troubleshooting] xXMrmooMoo:
Getting Command Prompt Error

Hello. Sorry if I am bumping an old thread.

The file halfway extracts as it should then I get to this error:

Exception EListError in module Imgextractor.exe at 00016476.

List index out of bounds (464993).

Has anyone else got this error? I'm not sure what to do. I do have python 2.7 installed.
[Android Q&A, Help & Troubleshooting] BabluS:
Does this process work on windows10..

I tried many times but I can't unpack system.new.dat file..please help
[Android Q&A, Help & Troubleshooting] sagargjasani264:
Hey sir..

I have edited your tool slightly to make system.img directly from folder..

Thanks for your tool.

https://mega.nz/#!Y8lwQbIB!u_rEmV4jLnIOTwBeHjAvdFOiT0oBK1r7Df99l32rQ6w
[Android Q&A, Help & Troubleshooting] Bradl79:
is there a reason why it deletes the file_contexts when i need it for nougat/oreo? thank u
[Android Q&A, Help & Troubleshooting] veli123:
extractor crashes and closes unexpectedly on Windows 10 64 bit SUCKSSSSSSSSSSSSSSSSSSSS
[Android Q&A, Help & Troubleshooting] sumitpsr1:
Can't extract oreo syatem.new.dat ? I don't know error but something relating about moto file system like ext4, ext3 etc I don't know more about.
[Android Q&A, Help & Troubleshooting] henningsieh:
--- deleted ---

EDIT:

It work's like a charm! Many thanks! :)
[Android Q&A, Help & Troubleshooting] henningsieh:
Similar question: do you know a smart tutorial to generate missing file_contexts?

I managed to extract, decode and patch everything - now I am interested in repacking, but my rom (OnePlus 3T, official Oreo beta) does not provide/contain any file_contexts?

Any idea, bro? :D
[Android Q&A, Help & Troubleshooting] sleshepic:
Thanks for this, ran an old Lp5.1 build and it spat out system.new.dat for me instead of standard system folder in the zip. Helpful tool wasnt sure what to do at first
[Android Q&A, Help & Troubleshooting] Ultraworrior:
Im am getting this following error:

[IMG="System Extractor Terminal"]https://lh3.googleusercontent.com/QAXje6KrvKjmmNdFXj4d3ABRCCuMoh4AnFzWN8pPXgvhd4l5FdF2Rs3F8hDJ4pjm6zSWVZvnVv_xL2oxFgoS9G5LqxQhLc08W-F2KucXSbnbIkpy9aShRYEaFQ7OtooVtzMLUmbIlWKz_gG_cTc7Y6ptWHoxvq-EA4PgtWgd785cpA9Ze_-AelhS0K57kl_jCCw56cxSZ3zJNkgHkPsoxc4-ewobogmYcVJ8NfctXSnXHgqSFS4JcY9olcblfKZfpvmFM1pvUGeXUZGOpyPLMEHMZa4Kb9BT6agrI9ODfSsWBsrnXlf7l9mA4DhRbr3wfgo7N-OMzKa2_AqxpR2BGxIACPNXCYZde53ceibc_UEm2NACX9CYu2KpuRYYePj5oK97ecz0sRp9lSvvOwVu_ae8u2qRKCZRoQT4giwD2lxEl8636ELaNiCe_M37xlj4sjD9LZTLAmA99_ljoqoZyTBVRutIibg1OfXbsbCf6GRerpsUMRfvpx4OsDgN0kn_94RwUGWGRf2HnKJzQUyi2kn4Ev_SUgMcdOYnQsSI-F3ftYTTv-sPXSkgXDaD0pAg8wO1lu2CskFNlTei0SRG8gc4lrQOElVjkorzWjM=w974-h528-no[/IMG]

I have python version 2.7.14 installed

---------- Post added at 11:58 PM ---------- Previous post was at 11:41 PM ----------

Part of the error has been fixed by adding Python to environmental variables PATH
[Android Q&A, Help & Troubleshooting] Supermatt01:
Can't extract .dat file. I have followed your instructions. I've read them many times. It hasn't helped.
[Android Q&A, Help & Troubleshooting] matrixex:
Hi there, which ROM are you re-packing?

If its nougat then I can help. Link to file anything of the rom.

Idk how to repack OREO as too much of files are altered in oreo and I haven't done any repack of OREO.

BTW I was reading this post ( https://xdaforums.com/k4-note/development/alpha-t3828335/post77311513#post77311513 ) The hell happened there? The individual devs do hard work and attract people all over the world of which these mods are grabbing cash. And SOME people in repayment gets more demanding like they own this website. Anyway Hope your ROM will be finished one day. :highfive:
[Android Q&A, Help & Troubleshooting] DeblaGaming:
Does this work with oreo?
[Android Q&A, Help & Troubleshooting] dandyfarid:
Nice tool work in android pie thank you :)
[Android Q&A, Help & Troubleshooting] KeyChanKG:
Hello!

Script working with android 9 ?
[Android Q&A, Help & Troubleshooting] Mr.Armaani:
Extractor for images in EXT2\EXT3\EXT4\YAFFS2\CRAMFS filesystem formats

support SPARSE\SIN\MOTO structure formats

Open image file system_1.img (size 1410997248 bytes) successfull...

Analize format of file. Please wait...

Exception EAccessViolation in module Imgextractor.exe at 00002EBB.

Access violation at address 00402EBB in module 'Imgextractor.exe'. Read of address 20399E12.
[Android Q&A, Help & Troubleshooting] kamilmirza:
thank you so much [MENTION=7110463]matrixex[/MENTION]
[Android Q&A, Help & Troubleshooting] matrixex:
Yes you can

Again you have have to copy system.new.dat and system.transfer.list to your ROM folder and repack it using winrar,etc(do not repack rom folder only select files like META-INF folder etc and compress usin .Zip extension GOT IT RIGHT?)
[Android Q&A, Help & Troubleshooting] biepurity:
exactly..thanks for answering mate :)
[Android Q&A, Help & Troubleshooting] ZETROzky:
In some OTAs, like Cyanogen OS 13, file_contexts isn't present. What do I do here?
[Android Q&A, Help & Troubleshooting] matrixex:
Actually there is no need of file_contexts for extract Just make a dummy file and rename it.

I n future updates i will remove file_contexts but for new update of Extractor you must install Python :)

Some extra

And Repack doesn't works with Cyanogenmod because of sha1_check in updater-scripts fails

file_contexts is needed during repack

And here how will you extract it

Unpack boot.img->ramdisk/file_contexts

That is you will find file_contexts inside ramdisk folder:)
[Android Q&A, Help & Troubleshooting] matrixex:
HI ALL

Does repack worked for all of you or not?

For those repack worked please upload your META-INF folder.
[Android Q&A, Help & Troubleshooting] biepurity:
since i've tried with cm based rom, it failed... i didn't see all in OP pages that time, so this is not error from your applications, user error... :D

might be worked on another rom(non cm based)
[Android Q&A, Help & Troubleshooting] hamzaeid:
nice work pro i was searching for this tool long time ago thank you again. put could tell me how to extract boot.img file:confused:
[Android Q&A, Help & Troubleshooting] matrixex:
This will work

http://xdaforums.com/showthread.php?t=2319018
[Android Q&A, Help & Troubleshooting] hamzaeid:
thanks proo for replay and for the link I really appreciate that :)
[Android Q&A, Help & Troubleshooting] TopDroid:
Whenever I use System Extractor, it says "The system cannot find the specified path".

What can I do?
[Android Q&A, Help & Troubleshooting] matrixex:
Please upload a image and Rom info. Ver.

And try to use other versions of system extractor

Or

May be you have not placed files as stated above
[Android Q&A, Help & Troubleshooting] UnitedOceanic:
almost what i'm looking for, any chance for a linux release?
[Android Q&A, Help & Troubleshooting] matrixex:
Soon but only with extract.

Also i don't have linux installed so i can only convert system.new.dat. To ext4image and you have to mount it.

Tip: please install python.
[Android Q&A, Help & Troubleshooting] DahakePL:
So how to extract cm based roms?

I tried using this tool but the rom doesn't boot (RR)
[Android Q&A, Help & Troubleshooting] UnitedOceanic:
Extract is what I am looking for, I will take a look at your source, perhaps I understand what kind of magic you are doing there ;)

Or I can set up a Windows VM in Linux and or you try a Linux VM in Windows, be warned though once there you don't what to go back :D
[Android Q&A, Help & Troubleshooting] matrixex:
Okk also i wanted install linux but nobody in my home familer with linux bla....etc

And extract is nothing

HERE HOW IT WORKS

Just download sdat2img.py

Link https://github.com/xpirt/sdat2img/blob/master/sdat2img.py

And make sure you have installed python 3.x. Or higher

Make a folder with any name let, system

Save that script, sdat2img.py to system folder also copy your files system.new.dat system.transfer.list to system folder.

And run script through terminal as stated

sdat2img.py system.transfer.list system.new.dat. system.ext4

[*]You will get a raw image file named as system.ext4

And then mount it :)

Story ends not need of any script
[Android Q&A, Help & Troubleshooting] matrixex:
Didn't get it you extracted and does boot boot how?

I think you want to say repack
[Android Q&A, Help & Troubleshooting] DahakePL:
I took system new dat from the Rom, I extracted it and made changes, then I wanted to make the dat file again, I succeded but then I put the files back to the rom zip and I try to flash it, the rom doesn't boot or doesn't flash properly
[Android Q&A, Help & Troubleshooting] matrixex:
I happened with me too so please use system folder instead .Dat file

Currently i am searching solution.

Actually fie_contexts is not used during repack which included several permissions In next version of Extractor i will look forword to use file_contexts for repack then ROM will boot for sure:)
[Android Q&A, Help & Troubleshooting] DahakePL:
So I can still make a marshmallow rom using just a system folder?

That would be amazingly easy
[Android Q&A, Help & Troubleshooting] matrixex:
Yes you can also use dxdia kitchen for symlink