yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] andy_zhang:
I hope you add app browse, example Chinese rom 助手

来自我的 VS985 4G 上的 Tapatalk
[Android Software/Hacking General [Developers Only]] yyh991013:
That's called ROM Assistant in English?

来自我的 SM-G9280 上的 Tapatalk
[Android Software/Hacking General [Developers Only]] beefx:
How i can get File_contexts from boot.img?
[Android Software/Hacking General [Developers Only]] andy_zhang:
Seem not to be

来自我的 VS985 4G 上的 Tapatalk
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
Unpack boot.img sir

File_contexts here = boot.img/ramdisk

File_contexts have in KK & LP

JB not have File_contexts sir.
[Android Software/Hacking General [Developers Only]] matwaking:
mirror plz//no mega
[Android Software/Hacking General [Developers Only]] 29y6145:
very good tools
[Android Software/Hacking General [Developers Only]] Skies/SANKE:
thank:good::p
[Android Software/Hacking General [Developers Only]] andy_zhang:
Unpack fail

VS985 USER

---------- Post added at 01:07 PM ---------- Previous post was at 01:07 PM ----------

Unpack img fail

VS985 USER
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
Update tool new sir.

unpack img is not fail
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
Are you install python & java yet ?
[Android Software/Hacking General [Developers Only]] chuyennho184:
I have installed python & java on windows 10. But unpack system is fail. It's say not compatibale with windows 10.
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
I try install windows 10 test this tool sir.
[Android Software/Hacking General [Developers Only]] andy_zhang:
Can you add unpack /repack kernel

VS985 USER
[Android Software/Hacking General [Developers Only]] pehoko:
Hi! I have problems with repacking, I have tried all programs (this too) in windows but without success with ext4 images. Any help will be appreciated, tnx.
[Android Software/Hacking General [Developers Only]] knipsmoped:
Which option is the problem? I have gained experience with options 4 (Input IMG For Unpack) and 5 (Repack system.img).
[Android Software/Hacking General [Developers Only]] pehoko:
Well I have found other program that works fine on Windows, I don't use system.new.dat as seems useless and hard to repack.
[Android Software/Hacking General [Developers Only]] knipsmoped:
After successful repack problem with flashing with ODIN (Fail!)

I want to debloat the firmware and have a problem.

I have an S5 Mini with original firmware 6.0.1.

I also have the right StockRom file (G800FXXU1CRE1_G800FDBT1CRE1_G800FXXU1CRB1_HOME.tar.md5).

I extract SYSTEM.IMG from the StockRom File because I want delete some apps.

1. I Run AUTO TOOL V3.0 X86.EXE (after extracting the zip-File) (on a Windows 7 32bit PC)

2. I choose option 4 for unpack SYSTEM.IMG, press ENTER and a pop-up box with the directory INPUT_IMG appers.

3. I copy the two files SYSTEM.IMG and FILE_CONTEXTS to the directory INPUT_IMG and close the pop-up box.

4. I go back to AUTO TOOL and press any key. After half an minute a superblock info will be displayed. After pressing any key SYSTEM.IMG is unpacked.

5. The displayed file size in the line "Open image file ..... " is noted for repack.

6. After successful unpack I press once again any key. The menue with the options appears.

7. I start the windows explorer and delete two directory apps (BOOKS, DRIVE (Play books and google drive)) in SYSTEM_UNPACK -> SYSTEM_ -> APP.

8. For repack i choose option 5 and and enter the recorded file size.

9. After pressing ENTER I choose Y (yes) for repack SYSTEM.IMG. I takes half an minute.

10. I use TAR Package to convert SYSTEM.IMG into SYSTEM.TAR.MD5 https://xdaforums.com/showthread.php?t=2446269

11. With ODIN v3.13 i will flash SYSTEM.TAR.MD5 (use Option AP)

After START i get a few seconds later the messager FAIL!

What's goinmg wrong?

<ID:0/006> Added!!

<OSM> Enter CS for MD5..

<OSM> Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/006> Odin engine v(ID:3.1301)..

<ID:0/006> File analysis..

<ID:0/006> Total Binary size: 2300 M

<ID:0/006> SetupConnection..

<ID:0/006> Initialzation..

<ID:0/006> Get PIT for mapping..

<ID:0/006> Firmware update start..

<ID:0/006> NAND Write Start!!

<ID:0/006> SingleDownload.

<ID:0/006> system.img

<ID:0/006> FAIL!

<ID:0/006>

<ID:0/006> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)​
[Android Software/Hacking General [Developers Only]] Formingus:
Auto Tool is infected with Trojan and malware
[Android Software/Hacking General [Developers Only]] flex1911:
Both exe's are infected:

Virustotal analysis of 2.0

Virustotal analysis of 3.0

Whether it is accidental or intentional, links are removed and thread closed.
[Android Software/Hacking General [Developers Only]] matwaking:
this tool works on win10(extraction and repack from .img)

whats broken is make_ext4fs

win says its not compatible
[Android Software/Hacking General [Developers Only]] Joseph67500:
Hi, I have downloaded this tool but I have an error (view on screenshot).

Note : The latest version of Java and Python are installed.

Note 2 : I use Windows 7 Home Premium x86
[Android Software/Hacking General [Developers Only]] brownstyle:
not working on step 2.make_ext4fs not cmpatible with windows..im running windows 8.1 32bit
[Android Software/Hacking General [Developers Only]] Joseph67500:
Hello, I have a critical error : read_sb: failed to read all superblock

---------- Post added at 10:20 PM ---------- Previous post was at 10:06 PM ----------

I can unpack system.img and system.new.dat but It's impossible to repack
[Android Software/Hacking General [Developers Only]] neelsolanki:
same here all goes good but repacing dat cause error for me...make ext4fs error

i eagerly wnt to port and mod some rom for my devices but without repacking ...how cn i start lol

---------- Post added at 09:03 AM ---------- Previous post was at 09:01 AM ----------

@Kritsada Chaitan guide me bro#btw i hav 32 bit with windws 7
[Android Software/Hacking General [Developers Only]] brownstyle:
up

---------- Post added at 06:10 PM ---------- Previous post was at 06:05 PM ----------

please update this thread we're stuck up on this make_ext4fs in windows
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
this tool for choose "Repack IMG or DAT" not working on windows x86

Download and Replace all this file to "Android-Tool" folder (setting folder show hidden file first)

for windows x86 support = https://mega.nz/#!RoImBIiS!HtOqW2M4c7imgVE31l39DDVEvm1zxbkXLaoVVm1q45E
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
this tool for choose "Repack IMG or DAT" not working on windows x86

Download and Replace all this file to "Android-Tool" folder (setting folder show hidden file first)

for windows x86 support = https://mega.nz/#!RoImBIiS!HtOqW2M4c...bkXLaoVVm1q45E
[Android Software/Hacking General [Developers Only]] Joseph67500:
Ok thank you

Envoyé de mon SM-G800F en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] brownstyle:
file link not found

---------- Post added at 11:37 AM ---------- Previous post was at 11:36 AM ----------

edit:ok now
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
new link sir. = https://mega.nz/#!RoImBIiS!HtOqW2M4c7imgVE31l39DDVEvm1zxbkXLaoVVm1q45E
[Android Software/Hacking General [Developers Only]] vaserbanix:
Thanks!

That tool work good with last update.

Ihave it the same error on packing, but now it work!

Thanks again

EDIT

options for .img not working properly

tool start extraction but stand stuck on it!

can you fix it?

thanks

EDIT2

haf of work(unpak .img) fixed wit new ImgExtractor from here http://xdaforums.com/showpost.php?p=64145265&postcount=10

for repak i get err with "incompatibile with windows version"
[Android Software/Hacking General [Developers Only]] luiseteyo:
Hi sir, first of al really thanks for the tool. It is easy, quick and effective. The only problem I found is that I was trying to mod a mm ROM and after unpacking, modding and repacking the dat files, I replaced them in the original ROM zip file, but it gave me an error while flashing (error executing update-binary) do anyone know why? Thanks!!!
[Android Software/Hacking General [Developers Only]] vaserbanix:
the scripts from "updater-script" doesnt match with "update-binary" or with phone model, or many other reasons!
[Android Software/Hacking General [Developers Only]] luiseteyo:
But how can that be possible if I didn't touch updater-binary or updater-script? I just decompressed .dat files into a system.img, I edited it and compressed back into dats. Then I replaced them in the rom, without touching the META-INF folder (which includes updater-script and updater-binary).

Thanks for your help!
[Android Software/Hacking General [Developers Only]] vaserbanix:
What recovery do you have?

Trimis de pe al meu SM-J500FN folosind Tapatalk
[Android Software/Hacking General [Developers Only]] luiseteyo:
TWRP 2.8.7.0
[Android Software/Hacking General [Developers Only]] vaserbanix:
flash again the rom

after the err go to advanced/ copy log to sdcard and save the log

restore your workng rom, reboot and read the log

will tell you what is wrong
[Android Software/Hacking General [Developers Only]] luiseteyo:
Thank you very much
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
thank sir.

and now repack dat or img not compatibile with windows x86 (32bit) sir.

I updated again.
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
try this META-INF sir. https://mega.nz/#!kxpzhYTZ!O89Uv5t4vyaob_SC_WUb4ZVDbUoZH24_qNyNMniq45g
[Android Software/Hacking General [Developers Only]] luiseteyo:
Thanks again for your help. Sorry for the delay, I am very busy lately, and I cannot find any free time. Here is the log:

https://mega.nz/#!JU03gLwZ!-ex2PqhvEpw92TVIrBYDse_0FDGuDZQBo4H2I02Tfr4

Will try your META-INF right now.

:)

Edit.-

It did nothing. Didnt flash the ROM

:( i would be very grateful if u could help me imterpreting that log. Thanks buddy!
[Android Software/Hacking General [Developers Only]] GigilinE:
hi,

for me tool decompile and recompile img but when i try to flash i have this error:

<ID:0/006> Added!!

<ID:0/006> Odin engine v(ID:3.1100)..

<ID:0/006> File analysis..

<ID:0/006> SetupConnection..

<ID:0/006> Initialzation..

<ID:0/006> Get PIT for mapping..

<ID:0/006> Firmware update start..

<ID:0/006> SingleDownload.

<ID:0/006> system.img

<ID:0/006> NAND Write Start!!

<ID:0/006> FAIL!

<ID:0/006>

<ID:0/006> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

if try to flash it with recovey twrp my phone is stock on splash bot kernel Samsung Galaxy S6 edge+, when i go in recovery my phone show: drm verification failed
[Android Software/Hacking General [Developers Only]] andy_zhang:
I repack system.img, failed. I don't know why

vs985 China user
[Android Software/Hacking General [Developers Only]] Awesomeslayerg:
I get a memory error when i try to extract system img. then imgextractor.exe stops working
[Android Software/Hacking General [Developers Only]] goofwear:
Thank you this looks like a great program and its one that can finally do 5.0 & 6.0. I have downloaded it now and will take a look at it in a bit when I have time.
[Android Software/Hacking General [Developers Only]] yash92duster:
This is a great tool and I finally extracted my system.img file.

Thank you devs
[Android Software/Hacking General [Developers Only]] jneto3000:
Error: sdat2img.py is damaged or unknown archive.
[Android Software/Hacking General [Developers Only]] andy_zhang:
What version do you use window?

vs985 China user
[Android Software/Hacking General [Developers Only]] 29y6145:
not work on windown 32bit
[Android Software/Hacking General [Developers Only]] PlasmaPump:
That link is encrypted file... whats the password?
[Android Software/Hacking General [Developers Only]] yash92duster:
Deleted
[Android Software/Hacking General [Developers Only]] andy_zhang:
Can you repack system.img?

vs985 China user
[Android Software/Hacking General [Developers Only]] andy_zhang:
I can't. Why?

vs985 China user

---------- Post added at 03:10 PM ---------- Previous post was at 03:07 PM ----------

Prompt Size, how to get size?

vs985 China user
[Android Software/Hacking General [Developers Only]] andy_zhang:
I installed java, but, Do not know how to enter size.

vs985 China user

---------- Post added at 02:49 AM ---------- Previous post was at 02:47 AM ----------

I installed java, but, Do not know how to enter size.

vs985 China user
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
https://mega.nz/#!RoImBIiS!HtOqW2M4c7imgVE31l39DDVEvm1zxbkXLaoVVm1q45E
[Android Software/Hacking General [Developers Only]] kevin mitnick:
I tried. repack was succed. but, device got bootloop.. tested on redmi note 3 mtk

could you please advice how to repack and flash into a phone?
[Android Software/Hacking General [Developers Only]] WisamTND:
how to unpack the boot.img?
[Android Software/Hacking General [Developers Only]] WisamTND:
failed to unpack sytem.img for Note5 MM stock rom, its stuck when reach to All share app (system.new_/app/AllshareMediaShare/lib/arm 0 0 755)

While I succeed to unpack the system.img of S6 Edge MM stock rom.

Anyone know why its not worked for Note5 system.img?:confused:
[Android Software/Hacking General [Developers Only]] Gabri98:
I have same problem with s7 edge system.img

No solution for now :(
[Android Software/Hacking General [Developers Only]] andy_zhang:
Its a bug. You need input system.img size.

vs985 China user
[Android Software/Hacking General [Developers Only]] Ztsanga:
I got a error while repacking ayatem.new.dat...its says this is not compatible with this windows version...im using windows 7 32 bit..why am i getting this error..unpacking works fine but always this error when im repacking

---------- Post added at 11:51 AM ---------- Previous post was at 11:47 AM ----------

How to fix this error.. please …

>>>> Start Unpacking in system.img…..

Please Wait…..

This version of C:\Users\JOEY\Desktop\Auto Tool Unpack Repack .DAT & .IMG For Windows v2.0\Android-Tool\simg2i

mg.exe is not compatible with the version of Windows you're running. Check your computer's system information

to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software p

ublisher.

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

File system.new.img not found…

Done. Go To The Folder Unpack-IMG

Press any key to continue . . .

How to fix this

Fixed it..nedds to be rn on windows x64 but after repacking i always get status 7 error when flashing..
[Android Software/Hacking General [Developers Only]] swand:
win 10, 32bit

when repack system.img got this error

ext2simg.exe is not compatible with the version of windows

what can i do?

thanks
[Android Software/Hacking General [Developers Only]] andy_zhang:
It is a bug

vs985 China user
[Android Software/Hacking General [Developers Only]] sunilgavali:
can anyone help me please

not able to repack the system.dat
[Android Software/Hacking General [Developers Only]] minhnewpro:
how to repack system.img after edit folder system.new?? i choose repack system and file system.new.img is gone and nothing happen. I want make new system.img after edit
[Android Software/Hacking General [Developers Only]] kevin mitnick:
hi..

I tried this. Unpack repack was successed.

I made changes for app on system, such as delete bloatware, added some application, only on folder system/app.

repack was successed, but when I flashed to my redmi note 3, its stuck error warning.

could you please tell me the guide for able to flashing

thanks in advance
[Android Software/Hacking General [Developers Only]] Flounderist:
Hi there,

I am trying a porting from cm 13.

SDK and Python are properly set. I am able to extract system.new.dat but when I try to repack I get the error message "rimg2sdat.exe has stopped working". The ROM I am porting is for MTK6755 Helio P10. The file system.new.dat has been repacked, but the system.transfer file is empty.

May I try to flash the system folder unpacked, as per your guide? If positive, how to edit the updater file?

Do I just need to remove these lines

block_image_update("/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

Or I need to edit something else (I assume the "if range_sha1....." are to be cancelled)?

Thank you for your help!

Cheers.
[Android Software/Hacking General [Developers Only]] XPawlex:
deleted
[Android Software/Hacking General [Developers Only]] shunsai:
Funny, I have the same problem with an S6 MM ROM. I hope there's a fix for it.
[Android Software/Hacking General [Developers Only]] matrixex:
Here is guide how to edit updater-script

http://xdaforums.com/showthread.php?t=1931585
[Android Software/Hacking General [Developers Only]] Flounderist:
Thank you, already sorted. I am flashing unpacked system folder
[Android Software/Hacking General [Developers Only]] TheLoonyRebel:
Running into this issue trying to extract system.img:
[Android Software/Hacking General [Developers Only]] javad490:
how to Extract and unpack the boot.img and get File_contexts ?

i unpack boot.img via 7zip but i see only single File " boot " and not seen other files and directory? what tools must use for ectract boot.img?

thanks
[Android Software/Hacking General [Developers Only]] srmd:
I have problem repack system folder to system.img .....give me Message (( look pictuer )) ..

whats the problem .........and thaks
[Android Software/Hacking General [Developers Only]] amitams:
it's work great, but in galaxy s7 system.img it's crashed
[Android Software/Hacking General [Developers Only]] yash92duster:
By using this tool

Not able to unpack s7 s7edge and note 7 roms

It stucks while unpacking system/app folder

So I am using diiff tool for unpacking system folder :)
[Android Software/Hacking General [Developers Only]] amitams:
which?
[Android Software/Hacking General [Developers Only]] amitams:
the rom that created can be flash by odin?
[Android Software/Hacking General [Developers Only]] yash92duster:
That is not possible

Only via custom recovery
[Android Software/Hacking General [Developers Only]] Bebooo43:
i have an error while repacking .dat

the tool dosn't recognize file_context.bin instead of file_contexts

Android 7.1 now uses file_context.bin
[Android Software/Hacking General [Developers Only]] omikron20:
Can somebody help me. Its not working for me. Always when I try run this app I get this.
[Android Software/Hacking General [Developers Only]] shankufx4y:
how to extract in mac ????
[Android Software/Hacking General [Developers Only]] supersqualo:
I think you've already solved but i write the solution:

Insert 4 ---> Enter

After, when folder will open, you must insert into it:

-system.img

-file_contexts

present in the ROM you want to unpack

---------- Post added at 04:23 PM ---------- Previous post was at 04:20 PM ----------

There is a method for repack android 5.1.1?

This tool create incompatible system.transfer.list (not for android lollipop 5.1.1!) because the version that will be created is 1 but the original version of 5.1.1 is 2!

And so when i flash a new rom i get this error: unexpected transfer list version [1 ]

I tried to change version with notepad++ and the error no longer appears but the firmware cannot be flashed because the installation starts but doesn't complete (goes in stuck)!

Please help me

Stock system.transfer.list:

2
146445
0
0
erase 2,0,262144
new 32,0,32767,32768,32770,32833,32835,33347,65535,65536,65538,98304,98306,98369,98371,98883,131071,131072,131074,163840,163842,163905,163907,164419,196607,196608,196610,229376,229378,229441,229443,229955,247047

Repack system.transfer.list

1
150644
erase 2,0,262144
new 84,0,64,65,179,579,580,4675,20050,20053,22476,22479,22487,22490,22491,22500,22506,22517,22671,22672,23814,23826,24082,24094,25259,25260,32767,32768,32770,32833,32834,33347,41193,41196,45537,45538,49457,49464,49622,49623,54103,54105,54112,54118,54139,54140,54141,54160,55263,55264,65535,65536,65537,98304,98306,98369,98370,98883,122919,122920,123534,123539,131071,131072,131073,163840,163842,163905,163906,164419,166592,166593,196607,196608,196609,229376,229378,229441,229442,229955,254995,254996,255021,255074,255906
[Android Software/Hacking General [Developers Only]] shinigami_tsin:
Can u support cm14.1? file_contexts.bin not support now.
[Android Software/Hacking General [Developers Only]] Swapnil Soni:
Same question.
[Android Software/Hacking General [Developers Only]] XDA-00:
I am unable to extract the files with WinRAR. (Gives unknown method error or smth like that).

Can you upload the files without compressing them? That would be helpful.
[Android Software/Hacking General [Developers Only]] mirhl:
Use 7-zip, profit.

On another news, this tool is too old to have 7.0 support, and doesn't seem like it will get an update any time soon.

EDIT: ok, seems like v3 actually addressed this
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
***Update***

TOOL ALL NEW UPDATE v3

For First Post
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
try rename file_contexts.bin to file_contexts befor repack.
[Android Software/Hacking General [Developers Only]] Hiraethic:
can anybody help? i have kept system.new.dat along with file context in the respective folder.Also the file context file was available when i unzipped the rom itself.
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
teamview or not i help.
[Android Software/Hacking General [Developers Only]] Hiraethic:
whats teamview?
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
install teamviewer to computer

I will demonstrate the tool u see
[Android Software/Hacking General [Developers Only]] Hiraethic:
i installed teamviewer
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
give user and pass in teamview
[Android Software/Hacking General [Developers Only]] Hiraethic:
nevermind it works now.

Had to copy system.transfer.list as well
[Android Software/Hacking General [Developers Only]] Swapnil Soni:
Does new update supports SDK24 and 25 ?
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
i"m not have devices test firmware
[Android Software/Hacking General [Developers Only]] omikron20:
What I can do, I everywhere in window I have this text- 'ctext' is not recognized as an internal or external command, operable program or batch file.

I have installd latest Phyton and JDK.
[Android Software/Hacking General [Developers Only]] Hiraethic:
I was able to unpack 7.1.1 rom using this
[Android Software/Hacking General [Developers Only]] alone_in_dark:
System.img was unpacked successfully. But at the time of repacking, I am getting error: build_directory_structure: scandir: No such file or directory always. How can I slove this? :rolleyes:
[Android Software/Hacking General [Developers Only]] omikron20:
Can somebody help me ? I wait for help 3 month.

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
add up size befor repack

size in picture = 1879048192

try up size = 1979048192 or 2079048192 or up +100mb for repack work.
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
try paste the tool folder in desktop or drive c\: and use tool again
[Android Software/Hacking General [Developers Only]] omikron20:
Have it on desktop.

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Android Software/Hacking General [Developers Only]] Kritsada Chaitan:
give see for error
[Android Software/Hacking General [Developers Only]] omikron20:
Here You have screen how it look like.