FORUMS
Remove All Ads from XDA

Extract system.new.dat of Marshmallow and Lollipop (easily)

326 posts
Thanks Meter: 213
 
By matrixex, Senior Member on 11th March 2016, 03:42 PM
Post Reply Email Thread
IMP NOTE : Use " python-2.7.xx" ,latest version otherwise extractor will led to undesired output like this one https://forum.xda-developers.com/sho...&postcount=295 and extractor supports android 7.1.2(updated on 18-May-2017)

Extractor of system.new.dat of Marshmallow and Lollipop ROM's







DOWNLOAD
OLD

UPDATED

Extractor 4.8 (Updated on 18-May)

SOURCE
$GIT-HUB Contribute!
Changelog -> https://github.com/matriex/System_Ex...b306326b15cb5a

Alternative of repack, if the repack script doesn't works with your system folder then try this script SCRIPT / GUIDE



How to

Extract ext4-Image files


Download Imgextractor.exe binary from the link
https://github.com/matriex/System_Ex...gextractor.exe

1. Create a folder named ext and copy the binary to ext folder

2. Copy your image file ,say "system_1.img" to ext folder

3. Select the ext folder , hold the shift (right) click RMB

4. Select "Open command window here"

5. Then type this command on CMD

Code:
Imgextractor.exe system_1.img -i
6. The files will be in "system_" named folder.

NOTE:You should rename IMG file to system_1.img before doing anything



Extract *.DAT files

Users, The extractor works with nought 7.0.0 and 7.1.1 perfectly (tested with CM14.1-2016-12-12 & aosp_7.0_2016-09-19), If you encounter errors then please install python and then try extracting again
Method I
  • Download and run the extractor .
METHOD II (command line)

Use python 2.7.xx

1. Download zip and extract sdat2img.py binary from the link
https://github.com/xpirt/sdat2img/archive/master.zip

2. Create a folder "ext"

3. copy "sdat2img.py", "system.transfer.list" and "system.new.dat" to ext folder

4. Open cmd on "ext", (by selecting and holding shift , you will find "Open command window here")

5.Type this on command window

Code:
python sdat2img.py system.transfer.list system.new.dat system.img
6. After that you'll find system.img on that folder, that image file is ext4 image file and can be extracted by this guide

http://forum.xda-developers.com/show....php?t=2285831




Repack *.DAT


/*Repack will or will not work, Don't panic if it not worked, You can still use folder =) */


For flashing xyz_ROM.zip with dat files , you need to modify updater-script

Script, "of some roms" , b'coz some roms contains a link b/w updateR-script

and system.transfer.list. The link includes following : There is a line in

updateR-script script called
Code:
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "36,0,32770,......,307199") == "0b20303394271424267e36a0ce7573f1b62ddc0d" then
if you found this in

updateR-script then from here follow the guide Repack_INFO.txt otherwise

directly copy system.new.dat and system.transfer.list to ROM folder and

repack/zip it and flash it.

  • Repack ,select from script, then choose manually (option 1)
  • Copy all your ROM files/subfolders(bin ,app ,build.prop etc) to system folder
  • Everything is expalined in extractor, read it carefully
  • If you found "range_sah1()" on your updateR-script then continue below, else only you have to replace system.new.dat and system.transfer.list of "xyz_ROM"
    CONTINUE ONLY IF YOU FOUND RANGE RANGE_SHA1
  • After repack a SHA1_VALUE of system.new.dat is generated and file is created as "SHA1_VALUE.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_Ex...Repack_INFO.md
  • That's all if you need help feel free to comment
  • Thanks for using this method I can't say it will work , but what's wrong in trying , I tried 10 to 20 times to make it work


A LITTLE ADVICE

1. If the script failed to work ,please take a look at this post again I'm sure I've posted enough resource which will help you out in extracting and repacking .DAT files .

2. Please keep this thread clean.

3. Please don't quote whole thread(use tags).

4. I take no responsibility of repacking system.img!

5. For Linux users :https://github.com/matriex/System_Ex...ster/README.md

6. Use Python 2.7.x Do not use python 3.0 or update sdat2img.py binary!



Thanks to @xpirit for sdt2img
Attached Files
File Type: txt Repack_INFO.txt - [Click for QR Code] (17.7 KB, 1954 views)
The Following 122 Users Say Thank You to matrixex For This Useful Post: [ View ] Gift matrixex Ad-Free
 
 
11th March 2016, 04:14 PM |#2  
nicesoni_ash's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 7,624
 
Donate to Me
More
Any possible way to put it back?
The Following 3 Users Say Thank You to nicesoni_ash For This Useful Post: [ View ] Gift nicesoni_ash Ad-Free
11th March 2016, 04:50 PM |#3  
matrixex's Avatar
OP Senior Member
The Matrix
Thanks Meter: 213
 
More
🔜 if possible Or why don't you flash it directly by folder
The Following 5 Users Say Thank You to matrixex For This Useful Post: [ View ] Gift matrixex Ad-Free
11th March 2016, 04:57 PM |#4  
nicesoni_ash's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 7,624
 
Donate to Me
More
Quote:
Originally Posted by matrixex

Wait comming soon if possible
Or why don't you flash it directly by making some changes in updater-script

I am in no dire need of it right away, I am just asking for any future need.
12th March 2016, 04:02 PM |#5  
matrixex's Avatar
OP Senior Member
The Matrix
Thanks Meter: 213
 
More
Quote:
Originally Posted by nicesoni_ash

I am in no dire need of it right away, I am just asking for any future need.

Hi
I have successfully created repack script for system to dat , download it and reply worked or not
The Following 4 Users Say Thank You to matrixex For This Useful Post: [ View ] Gift matrixex Ad-Free
13th March 2016, 06:48 AM |#6  
matrixex's Avatar
OP Senior Member
The Matrix
Thanks Meter: 213
 
More
Deleted
The Following User Says Thank You to matrixex For This Useful Post: [ View ] Gift matrixex Ad-Free
13th March 2016, 01:46 PM |#7  
matrixex's Avatar
OP Senior Member
The Matrix
Thanks Meter: 213
 
More
Deleted
The Following User Says Thank You to matrixex For This Useful Post: [ View ] Gift matrixex Ad-Free
17th March 2016, 12:10 AM |#8  
Senior Member
Flag Android
Thanks Meter: 351
 
More
Works well on new Nutella OTA images. Thx
The Following User Says Thank You to tweakradje For This Useful Post: [ View ] Gift tweakradje Ad-Free
17th March 2016, 05:40 PM |#9  
matrixex's Avatar
OP Senior Member
The Matrix
Thanks Meter: 213
 
More
Quote:
Originally Posted by tweakradje

Works well on new Nutella OTA images. Thx

Cool please give me the link to android N OTA
The Following User Says Thank You to matrixex For This Useful Post: [ View ] Gift matrixex Ad-Free
21st March 2016, 02:18 PM |#11  
Junior Member
Flag Tangerang
Thanks Meter: 1
 
More
tools not working broo
Source

Tools not working bro
Post Reply Subscribe to Thread

Tags
system, system.new.dat

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes