FORUMS
Remove All Ads from XDA

[Dev tool] Unpack .Dat compression on Your Android phone itself [Using Termux]

n/a posts
Thanks Meter: 0
 
By dg28gadhavi, Guest on 10th April 2017, 12:14 AM
Post Reply Email Thread
14th April 2019, 04:19 AM |#21  
HemanthJabalpuri's Avatar
Senior Member
Flag Repalle
Thanks Meter: 240
 
More
Quote:
Originally Posted by Wahyu6070

...

I updated the code at https://forum.xda-developers.com/and...5/post79328654

Follow above thing...
5th August 2019, 06:38 AM |#22  
Wahyu6070's Avatar
Member
Flag Bojonegoro
Thanks Meter: 81
 
Donate to Me
More
Quote:
Originally Posted by HemanthJabalpuri

Your code is wrong...
Place system.img extracted from .dat file in /sdcard/Music folder and type following

Code:
su
mkdir /data/local/system
mount -t ext4 -o rw,noatime /sdcard/Music/system.img /data/local/system
Now you can go to /data/local/system and tweak it and unmount afterwards
Place img2simg binary in /sdcard/Music and
Code:
umount /data/local/system
exit
cp /sdcard/Music/img2simg $HOME
chmod +x $HOME/img2simg
cd $HOME
./img2simg /sdcard/Music/system.img /sdcard/Music/system_sparse.img

can you send img2simg?
5th August 2019, 10:12 AM |#23  
HemanthJabalpuri's Avatar
Senior Member
Flag Repalle
Thanks Meter: 240
 
More
Quote:
Originally Posted by Wahyu6070

can you send img2simg?

Here you go...
These are taken from Flashfire app
and also you can build them on your own in Termux from https://github.com/anestisb/android-simg2img
Attached Files
File Type: zip img2simg_files.zip - [Click for QR Code] (315.2 KB, 50 views)
5th August 2019, 07:58 PM |#24  
Wahyu6070's Avatar
Member
Flag Bojonegoro
Thanks Meter: 81
 
Donate to Me
More
Quote:
Originally Posted by HemanthJabalpuri

Here you go...
These are taken from Flashfire app
and also you can build them on your own in Termux from https://github.com/anestisb/android-simg2img

is it written in c instead of python?
7th August 2019, 02:53 AM |#25  
HemanthJabalpuri's Avatar
Senior Member
Flag Repalle
Thanks Meter: 240
 
More
Quote:
Originally Posted by Wahyu6070

is it written in c instead of python?

Yes in C.
Only sadt2img by xspirit is in python.
28th December 2019, 03:34 AM |#26  
Junior Member
Flag Tangerang
Thanks Meter: 4
 
More
How about unpack "system.new.dat.br" to "system.new.dat" or to "system.img" directly ? Because at rom base android 8.1 > there is .br extension
28th December 2019, 02:02 PM |#27  
KaMyKaSii's Avatar
Senior Member
Thanks Meter: 621
 
More
Quote:
Originally Posted by Iyan Tl

How about unpack "system.new.dat.br" to "system.new.dat" or to "system.img" directly ? Because at rom base android 8.1 > there is .br extension

You first extract system.new.dat.br with Google Brotli and then extract system.new.dat with the usual tool
13th January 2020, 04:31 PM |#28  
Junior Member
Flag Tangerang
Thanks Meter: 4
 
More
Quote:
Originally Posted by KaMyKaSii

You first extract system.new.dat.br with Google Brotli and then extract system.new.dat with the usual tool

Succesfully unpack system.new.dat.br to system.new.dat and finally system.img than unpack system.img to system folder by zarchiver pro. but now i have a problem, i'm still find a way to repack system folder to system.img via termux with unrooted phone. I've heard about sim2img,but how to install necessary tool & use it via termux without root acces or with proot on termux android ?
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes