yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] matrixex:
Sorry bro I can't help you because of work(school work)

Though either you have to find a new method or you have to flash directly without converting into system.new.DAT

Please understand my situation I don't think I can keep extractor updated for 6-7 months after that I will gave everything to support it.

Hehe got it.

And some Info's

"rimgs2dat.exe stopped working" The reason is not compatible with your PC cause it is not for sure every .exe(STANDALONE APPLICATION) can run on each PC it may have its limit, compatibility, etc.

And I can't do anything about it because the developers are freaks , they think that sharing codes(scripts) can led their work go waste(they fell its my work why do I share to others indeed everyone feels it) so they encrypt them and results we suffer.
[Android Q&A, Help & Troubleshooting] matrixex:
I think I can't deal with it right now but may be 6months l8r i will.

Though i dont know the extraction of stock firms.
[Android Q&A, Help & Troubleshooting] Flounderist:
OK dear, I understand. Last question: how to modify updater file to let him work without dev\block line? Just cancel and replace with another one or I must cancel sha1...lines as well?

Please let me know, I don't care about rom size actually.

Cheers.
[Android Q&A, Help & Troubleshooting] matrixex:
Mmm "Let him"

For modifying updateR-scripts search XDA dev and Its something I can't help you

You have to do editing yourself.

And also tutorial of repacking is only for those who has a good experience with updater-scripts so before repacking, you should gain updater-script language (also known as edify)
[Android Q&A, Help & Troubleshooting] Flounderist:
Yeah, wrong statement, sorry.

I am digging into tutorials and edify scripts but, to cut the long story short, I need to compile a new updater file by myself with edify commands or I could just remove lines where dev_block is mentioned and replace with package_extract_dir?

Looking into a CM13 updater file script, I assume it might be safer keeping the .dat system file.

Installing Ubuntu on a virtual machine could help?

sorry for bothering you with my noobness :)

*EDIT* I tried using the 4.0 not updated (I was using this version: http://xdaforums.com/showpost.php?p=67144638&postcount=80 ) and following the guide step by step I found that when choosing repack for Cyanogenmod (option 2) the tool doesn't create the system folder. So I must create folder by myself, but when I go forward the tool goes in loop because cannot locate the proper folder. Any advice?

The tool folder is on desktop, no subfolders.
[Android Q&A, Help & Troubleshooting] Solienatic:
Sir I have windows 10,Java 8 &python 3.6 installed and also with path variable set up.......but your tools stops after showing "loading......."pls help....and thanks for your hard work...
[Android Q&A, Help & Troubleshooting] matrixex:
Bro whom do you calling sir ;)(still minor)

Anyway

What exactly do you want to do extract or repack?
[Android Q&A, Help & Troubleshooting] Solienatic:
I want to unpack my 5.1.1 system.IMG and then repack after some modification
[Android Q&A, Help & Troubleshooting] matrixex:
For unpack/extraction

Use this link

http://xdaforums.com/showthread.php?t=2285831

And for repack wait or search the web
[Android Q&A, Help & Troubleshooting] Solienatic:
I unpacked successfully but my problem is repacking..because when I repack with make_ext4fs the image doesn't work...
[Android Q&A, Help & Troubleshooting] matrixex:
I didn't know you went that far

So finally you are famalier with "make_ext4" binary then for a working system.IMG you have to use file_contexts in the image file

Here is the code

make_ext4fs -T 0 -S file_contexts -l cm_sixe -a system system.img system

Where

1. cm-size=type the size in bytes

2. system=system folder name

3. system.img=output image file name

4.file_contexts=it is a file used to set permissions to image files etc. , don't forget to use this as the main reason behind not working of your system.img is file_contexts
[Android Q&A, Help & Troubleshooting] Solienatic:
Did you mean the file context which I will get after unpacking boot.IMG...if that then pls mention the command line also which I have to paste in cmd...Thnx..
[Android Q&A, Help & Troubleshooting] matrixex:
Look above post and copy file_contexts to the folder where you using cmd.
[Android Q&A, Help & Troubleshooting] Solienatic:
You told "cm-size-type the size in bytes"" which file's size you are telling about??
[Android Q&A, Help & Troubleshooting] ermakovermakov7878:
Your Extractor[4.0] out the error with firmware via Odin.

Please fix.
[Android Q&A, Help & Troubleshooting] v3ndul:
how the updater script, do I have to change the file checksum

//

// File Checksum Integrity Verifier version 2.05.

//

744d557dd6c70c8ff62e71f41585c5a86af0e7ec system.new.dat

example:

show_progress(0.750000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

ui_print("Verifying the updated system image...");

if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "28,0,32767,32768,32770,32825,32827,33285,65535,65536,65538,98304,98306,98361,98363,98821,131071,131072,131074,163840,163842,163897,163899,164357,175758,196608,196610,197068,204799") == "5729f0d95c6adc6e8dbde2d0526c786041d7522e" then

if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "34,32767,32768,32770,32825,32827,33285,65535,65536,65538,66050,97792,98304,98306,98361,98363,98821,131071,131072,131074,131586,163328,163840,163842,163897,163899,164357,175758,176270,196096,196608,196610,197068,204799,204800") == "8e60f81481fc300466eef891dad3674d1200b69a" then

ui_print("Verified the updated system image.");
[Android Q&A, Help & Troubleshooting] anhminhvip:
how to repack system to system.img???

plz help me
[Android Q&A, Help & Troubleshooting] matrixex:
DO NOT QUOTE MY WHOLE POST

Please edit and delete the whole quoted post above

I DO NOT TAKE RESPONSIBILITY OF REPACKING SYSTEM.IMG

And in next update the image repack option will be removed from Extractor

If you have problems with dat repack then i can only help

System -> system conversion not possible (by me ) find any other methon if possible

and report it here, it will help others.
[Android Q&A, Help & Troubleshooting] matrixex:
5729f0d95c6adc6e8dbde2d0526c786041d7522e

8e60f81481fc300466eef891dad3674d1200b69a

Hey did you see this two lines, replace them with the provided value

744d557dd6c70c8ff62e71f41585c5a86af0e7ec

Reply if it worked and if you need help

Go through the REPACK_INFO.TXT

THEN THE SCRIPT BECOMES LIKE THIS

--------------------------------------------------------

show_progress(0.750000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

ui_print("Verifying the updated system image...");

if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "28,0,32767,32768,32770,32825,32827,33285,65535,65536,65538,98304,98306,98361,98363,98821,131071,131072,131074,163840,163842,163897,163899,164357,175758,196608,196610,197068,204799") == "744d557dd6c70c8ff62e71f41585c5a86af0e7ec"

then

if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "34,32767,32768,32770,32825,32827,33285,65535,65536,65538,66050,97792,98304,98306,98361,98363,98821,131071,131072,131074,131586,163328,163840,163842,163897,163899,164357,175758,176270,196096,196608,196610,197068,204799,204800") == "744d557dd6c70c8ff62e71f41585c5a86af0e7ec" then

ui_print("Verified the updated system image.")
[Android Q&A, Help & Troubleshooting] :
https://mega.nz/#!0p4FCDzR!s36mscMm4n0x2lPwP6eiP1LnT9fEVMSP-nPAhDqpcxc

Preloaded with decrypted boot image and twrp so now all you need to unlock bootloader and flash twrp directly which is also loaded in this zip.
[Android Q&A, Help & Troubleshooting] czecx:
Its doesn´t work with the system.new.dat from Nougat... can you fix it please?
[Android Q&A, Help & Troubleshooting] matrixex:
I can't ,I don't know the solution

Please if you find any other then report it here ,It will also help others
[Android Q&A, Help & Troubleshooting] matrixex:
It works fine see images below as a PROOF
[Android Q&A, Help & Troubleshooting] exodius48:
[MENTION=7110463]matrixex[/MENTION] extract working on miui 7, but repack does not work. after copy all folders to "system" then press 1 (repoack) file context is required, then this script delete all contents inside "system" folder and back to warning message.

How to fix?
[Android Q&A, Help & Troubleshooting] matrixex:
Tere a command in batch script

if exist system/app delete system

This command is for deletation of previous files, system folders

for repack don't copy everything first to directory , just select option and then a folder will be created then copy your files etc., also a important thing, use file_contexts original otherwise extractor will loop forever
[Android Q&A, Help & Troubleshooting] exodius48:
Now wokring, but i get this message :

What should i do?
[Android Q&A, Help & Troubleshooting] matrixex:
This message is due to no system.new.DAT file found in directory possibly because the extractor failed to convert system to DAT file .

Please do it once again and then report

If again it not works then I will provide a script which will help you to convert to a DAT file and one last question is the ROM miui works with you device ? Or is it your first build
[Android Q&A, Help & Troubleshooting] matrixex:
Here I created a batch script only for repacking

Download it or open it here and copy all lines to a notepad file and then save it as dat.bat

All you need to do is to copy this dat.bat to the extractor folder where bin folder is present.

And make sure it is renamed as dat.bat

(It means you have to change the extension of file to .bat)

Rename it any how don't ask me then run the script

Follow every line of the script carefully.

After doing all this you will get system.new.dat , system.transfer.list , sha1_system.txt

Then from here follow REPACK_INFO.TXT GUIDE (FROM MY POST)

I JUST TESTED THIS SCRIPT AND IT WORKS FINE SEE BELOW IMAGES OF SCRIPT AND BOOTED CM13 ROM
[Android Q&A, Help & Troubleshooting] exodius48:
Official miui rom worked for me, because i'm using xiaomi device. So miui is stock rom in my device.

Ok

Btw, does repack info only for CM13 rom? If i'm using miui, am i need to follow that?
[Android Q&A, Help & Troubleshooting] matrixex:
Oh bro c'mon did I mention that it only works with cm13 ROMs obliviously no , Actually I never tried on other but I am for sure it will work and one thing

Did the stock ROM contained system.new.dat file when you opened the Stock ROM for first time? If not then the there will more work required like making a updater-script for system.new.dat JUST PM ME THE ANSWER
[Android Q&A, Help & Troubleshooting] exodius48:
Oh..ok, :D

I can't PM you bro.

Stock rom miui for my device just contain .dat file like this:

Here the updater script : http://paste2.org/8kVH91fh

system.transfer.list script : http://paste2.org/8B4WnGB9

So do i need to replace stock system.new.dat with my custom system.new.dat? I just deodexed it and repack again, i hate odex rom. :D

Btw, your script dat.bat above worked. When i want to repack it ask me to enter size in MB , my rom is in GB so i check properties like this

I type 1862 in MB , right?
[Android Q&A, Help & Troubleshooting] matrixex:
Thats no prob, i told you pm me, b'coz i dont want to spam the thread whatever

That's right size ,replace system.new.dat & system.transfer.list and Reply it worked or not
[Android Q&A, Help & Troubleshooting] exodius48:
Ok, recently created new custom system.image.dat for miui 7. Screenshoots above is miui 8. I don't like miui 8 right now. 4G is locked on my device. So i use old miui 7 that has 4G unlocked. :D
[Android Q&A, Help & Troubleshooting] matrixex:
It worked or not?, flashing of zip

If you are planning on flashing later then please report it worked or not .
[Android Q&A, Help & Troubleshooting] exodius48:
Flashing in progress now, i think it won't work, because on twrp, command script stuck in "patching system image unconditionally". Almost 30 mins like that. Usually flashing official rom is fast.

What should i do?
[Android Q&A, Help & Troubleshooting] matrixex:
THE MAIN REASON IS THAT REPACKAGING OF SYSTEM.NEW.DAT IS UNSUCCESSFUL THAT MEANS SYSTEM.NEW.DAT IS CORRUPTED OR YOU DIDN'T REPLACE "SYSTEM.TRANSFER.LIST"

SOME INFO

When you do the conversion of system folder to system.new.DAT , you get two files as output

1> system.new.DAT ->collection of subfolders

2> system.transfer.list->used to move files as the new(present inside this file) commands defines

* If any of the file is not replaced above the DAT file will be useless!

Do the repacking again and sign the zip file .

And upload your updater-script (not image, text file)

And the system.transfer. list which is generated when you convert system folder to system.new.dat
[Android Q&A, Help & Troubleshooting] exodius48:
Ah ,, sorry, this is my mistake still using old system.transfer.list. I'll try again.
[Android Q&A, Help & Troubleshooting] matrixex:
That's the main problem , Replace it

And reply it worked or not
[Android Q&A, Help & Troubleshooting] exodius48:
Everything successfull. But my phone won't booting, haha, stuck on logo.

So whats the problem?
[Android Q&A, Help & Troubleshooting] matrixex:
SO AT LAST

I don't think repack will work with your ROM

Don't know the reason.
[Android Q&A, Help & Troubleshooting] exodius48:
Ah..ok,, no problem.

Btw, can i delete file ".journal" before repack? Bacuse it's unknown file
[Android Q&A, Help & Troubleshooting] matrixex:
Yea you can BTW can you provide me your system.transfer.list and updater-script (text.file not photo)

Lets try one more time and i will guide you.....

First do the conversion of system to system.new.dat then send me the newley created system.transfer.list

And also updater-script (upload them both)
[Android Q&A, Help & Troubleshooting] exodius48:
Here you're http://rgho.st/7l7w8gSVx

Btw, if this can't be resolved its fine bro, probably miui rom does not support modified like this. :)
[Android Q&A, Help & Troubleshooting] Murali dharan:
Not booting

Showing an ERROR 6 when flashing even though i didn't do any changes inside folder but repacked exactly as per your instructions .
[Android Q&A, Help & Troubleshooting] matrixex:
Ok, leave it
[Android Q&A, Help & Troubleshooting] matrixex:
Did you modify updater-script as mentioned? Its totally problem of udaterR-script maybe

DO NOT REMOVE ANY LINES OF UPDATER-SCRIPT OR THE TWRP WILL SHOW THIS ERROR

Which rom are you repacking?
[Android Q&A, Help & Troubleshooting] Murali dharan:
I did exactly as per instructions.

To check i tried on

Cm13, aosp, aicp worked on nothing

But while repacking it blinked like some error but it repacked..
[Android Q&A, Help & Troubleshooting] matrixex:
Well I guess I can't help you , don't know the reason why it not worked

Anyway flash it directly without conversion
[Android Q&A, Help & Troubleshooting] Murali dharan:
i tried too.. It won't work as you know already
[Android Q&A, Help & Troubleshooting] dkionline:
[MENTION=7110463]matrixex[/MENTION], is that possible, to unpack system.patch.dat and cust.patch.dat?
[Android Q&A, Help & Troubleshooting] Yorgo1982:
need help to unpack and repack system.img.ext4 Note 7

Thanks
[Android Q&A, Help & Troubleshooting] Murali dharan:
can you help me to understand file_contexts .because i couldn't find in boot.img is that important ?
[Android Q&A, Help & Troubleshooting] serch826:
don´t work

Hello, i´ve copied all the files to the Extractor folder, but when open extractor and select no: 1 it says copy the files to the current folder, need help with this, thanks.
[Android Q&A, Help & Troubleshooting] Danielz1396:
****REPACK PROCESS WILL OR WILL NOT WORK WITH STOCK ROMS, IT PERFECTLY WORKS WITH ROM THATS CONTAINS UPDATER-SCRIPT > SHA_1 CHECK ON UPDATER-SCRIPT*******

• REPACK system.new.dat

Download extractor and extract it TO SOME EMPTY FOLDER

Run extractor and select second option

Copy all your ROM system files/subfolders(bin ,app ,build.prop etc) to recently created system folder

CONTINUE AND READ CAREFULLY WHATEVER EXTRACTOR DISPLAY

After repack a sha1_sum of system.new.dat is generated and a file is also created in current directory and named as "sha1_system.txt" with "system.new.dat" "system.transfer.list"

And follow this guide Repack_INFO.txt (attached end of this POST)

OR GIT ATTACHEDhttps://github.com/matriex/System_Extractor/blob/master/Repack_INFO.md

That's all if you need help feel free to comment

If REPACK OF system->system.new.DAT doesn't work then lastly use system folder method

como es lo del sha1_system? se crea. se autogenere oh como es? porque solo me falta validar eso para que pueda empaquetar. porfavor espero me respondan rapido. mi correo: dzerpa96@gmail.com
[Android Q&A, Help & Troubleshooting] jimkimchaba:
404. That's an error. The requested URL was not found on this server. That's all we

Can you help:confused:
[Android Q&A, Help & Troubleshooting] matrixex:
I , myself unable to find it in nought ROM , but if you have source code of ROM then search there , it will be there in text format

It is not important in extracting of any ROM ,during extracting you can use a dummy file_contexts , but during repacking ,it decides whether to boot or not , repacking without file_contexts will create useless DAT files.
[Android Q&A, Help & Troubleshooting] matrixex:
Copy the files to the directory from where you run extractor.bat , it will work

Also please state which ROM are you extracting , for extraction of nought , rename file_contexts.bin to file_contexts
[Android Q&A, Help & Troubleshooting] matrixex:
Spanish right?

Sí es suficiente para validar la sha_1value.txt al actualizador guión, significa que tenga que editar actualizador-guión y sustituir el valor de comprobación sha_1

Si su ROM no contiene, actualizador-script no contiene sha1_chech continuación, la guía de embalar no funcionaráfuncionará

English:

Yes you only have to validate the sha_1value.txt to updater script , I mean you have to edit updater-script and replace the sha_1 check value

If your rom does not contain , updater-script does not contains sha1_chech then the repack guide will not work

Also please speak English I don't know any other language than English
[Android Q&A, Help & Troubleshooting] matrixex:
extractor link or ?

Could you please explain your situation?
[Android Q&A, Help & Troubleshooting] link77kz:
Help plizz

what is the reason for halfway shows the window?

[IMG="stoped"]http://images.vfl.ru/ii/1474098392/349656da/14149160.png[/IMG]
[Xperia Z5 Compact General] punkrockfan:
Just seen that.

They advertise the compact as a 2GB RAM device, knowing that they only deliver 1,8 GB.

Anyone else seen that before?

I do not think it s a way to free up to full 2GB as advertised?

Other brands deliver 2GB if they tell their devices have, why not so z5 compact?
[Xperia Z5 Compact General] Fargo_Zoidberg:
Where's the source on what you're talking about? The RAM is always going to be used up by something - the OS, launcher, etc. You're not going to turn the phone on and have exactly 2GB of RAM available.
[Xperia Z5 Compact General] punkrockfan:
Sure, but it says 1,4 out of 1,8 used, 3xx free.

That means Limit is 1,8 as shown under Memory, not 2 as advertised. Never noticed that on a phone before.

As soon as the device is running memory is used, but it should say out of 2,0 not 1,8?
[Xperia Z5 Compact General] zacharias.maladroit:
[MENTION=4809229]punkrockfan[/MENTION]

you're a little late to the party ;)

http://www.disk-space-guide.com/size-units.aspx

https://en.wikipedia.org/wiki/Gigabyte

https://blogs.gnome.org/cneumair/2008/09/30/1-kb-1024-bytes-no-1-kb-1000-bytes/

http://superuser.com/questions/287375/what-is-the-origin-of-k-1024

https://en.wikipedia.org/wiki/Timeline_of_binary_prefixes

Also - not sure why you'd want to specifically blame Sony for this

Coming from the technical, developer background:

you have to consider that device drivers also eat up quite some memory/storage (best example: the Galaxy S, GT-i9000: 512 MB advertised, at best 300 [384 at best] available)

it's only the device drivers, it's the kernel (system) itself that also needs memory

so you'd basically have to advertise e.g. 2 GB but plug in 3 or even 4 GB to have full access for e.g. apps
[Xperia Z5 Compact General] eilsel.:
All companies define a gigabyte to be 1000MB, and a megabyte to be 1000kb, etc etc. In reality it's 1024KB per MB, and 1024MB per GB.

You never fully get 2GB, just check your computer eg. your hardrive might be 1tb big, but in reality its only somewhat over 900gb? 16gb ram might only be 15.9 gb!
[Xperia Z5 Compact General] punkrockfan:
Well, nice, not sure since when vienna is germany?
[Xperia Z5 Compact General] zacharias.maladroit:
derailing the topic like a pro :D

Home Country vs. Service Provider vs. City

you'd know that if you had taken a look at your own profile

(I moved back some time ago)

Thanks for the notice though :)
[Xperia Z5 Compact General] punkrockfan:
The topic is...that in Windows the full RAM without any convertings of bits and bytes is shown.

Only Hard Disks have that "exchange" from 2TB to 1,8 e.g.

So I was not awaiting that on mobile RAM too.
[Xperia Z5 Compact General] zacharias.maladroit:
Really ?

I gotta take a look next time I booted into Windows,

Android sort of is Unix, Linux - so that is more to be expected
[Xperia Z5 Compact General] punkrockfan:
yep

BIOS: 3096MB a 4GB Bar

Windows too

But I got an explanation somewhere else as smartphones use flash memorys equal to SSDs so its the same 1000 isnt 1024...thing there )
[Xperia Z5 Compact General] zacharias.maladroit:
3096MB ?

that looks more like a 32bit OS limitation though
[Xperia Z5 Compact General] TheEndHK:
Plus, on android some ram is reserved by GPU. Unlike dedicated graphic card on PC/Mac which got their owned ram but our GPU shared with system memory.
[Xperia Z5 Compact General] punkrockfan:
Same thing as onboard GPU on desktop systems so?

Well 3096 per slot, using several 4GB bars, no 32 bit limitation)
[Samsung Gear S] ZENTIUMBLUETEC:
I installed android 5.1.1 on my Gear S for SKTelecom(SM-R750S)

But I heard that it cannot get back to SKT TIZEN firmware....

Is there no way to get back to SKT TIZEN Firm? plz help me :crying:
[Samsung Gear S] oqaab:
I reckon you can just reflash with official firmware to get back.

As a side question where did you find the recovery and custom firmware? I'm planning to do that to mine but cant find the thing anywhere.
[Samsung Gear S] maxi65:
Having the same issue With my watch Even i have tried flashing Stock firmware using odin But No Fruit.

---------- Post added at 05:26 AM ---------- Previous post was at 05:22 AM ----------

the port is so buggy i'll recommend You to not to try Because Phone call audio Doesn't work,Battery timing is only few hours like 3 to 4 and a lot of syncing problems.

but if you still want to Then PM me i'll send you the link because I dont know whether it is allowed to post here the websites links or not :) Thanks
[Samsung Gear S] playershow:
could i have the link also please pm me:)
[Samsung Gear S] naimmkassim:
Don't root your watch if you don't ready to lost it. I root it, flash cm 12.1. End up loop restart and below screen portion not response to touch anymore. Try to repair it at Samsung center, they not accept it and ask to change mother board first :(
[Samsung Gear S] maxi65:
Here is the link man...

Surely it'll fix you watch as it fixed mine :)

In sha Allah

---------- Post added at 12:19 PM ---------- Previous post was at 12:18 PM ----------

Check the latest post man :)