FORUMS
Remove All Ads from XDA

[8/3/2019]Updated Android IMG Tools[Upto Android 9.0]

5,156 posts
Thanks Meter: 7,567
 
By Ricky Divjakovski, Recognized Developer / Recognized Contributor on 20th January 2019, 03:23 PM
Post Reply Email Thread
Since These tools are outdated there has been little movement with the tools since, @rkhat has made a source available to be built for linux, however im unable to get a compile.

So i decided to gather sources and make some modifications to get them compiling in cygwin and works upto android 8.1

Install cygwin in the default directory with the following packages.
libpcre1, zlib-devel, cmake, make, automake, gcc-core, gcc-g++, libgcc1, libstdc++6, cpio, flex, bison, cygwin32-gcc-core, patch, libintl

Source code
Prebuilt binaries

To build simply download and extract the source, open CMD and
Code:
path=%path%C:\cygwin64\bin;
cd to each directory and execture
Code:
make
To build e2fsprogs
Open cygwin
cd to the directory
Code:
mkdir build
cd build
../configure
make

Original Sources
Sparse utillities based on sources https://github.com/anestisb/android-simg2img
mkbootimg based on sources https://github.com/osm0sis/mkbootimg
mkbootfs based on sources https://github.com/osm0sis/mkbootfs
make_ext4fs based on sources https://github.com/jamflux/make_ext4fs
sefcontext_decompile based on sources https://github.com/wuxianlin/sefcontext_decompile
dtc based on sources https://github.com/dgibson/dtc
e2fsprogs based on sources https://github.com/tytso/e2fsprogs


Generates -
append2simg.exe
cpio.exe
dtc.exe
gzip.exe
img2simg.exe
make_ext4fs.exe
mkbootfs.exe
mkbootimg.exe
sefcontext_decompile.exe
simg2img.exe
simg2simg.exe
unpackbootimg.exe
mke2fs.exe


Contributors
SuperR, anestisb, rkhat2, osm0sis, jamflux, wuxianlin, Xannytech, CarmineRovito
The Following 10 Users Say Thank You to Ricky Divjakovski For This Useful Post: [ View ]
 
 
20th January 2019, 06:53 PM |#2  
N'ayam Amarsh'e's Avatar
Senior Member
Thanks Meter: 514
 
Donate to Me
More
Doing God's work I see.
The Following User Says Thank You to N'ayam Amarsh'e For This Useful Post: [ View ] Gift N'ayam Amarsh'e Ad-Free
21st January 2019, 12:29 PM |#3  
Ricky Divjakovski's Avatar
OP Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 7,567
 
Donate to Me
More
Repo was on private, fixed it now
21st January 2019, 12:52 PM |#4  
Senior Member
Thanks Meter: 17
 
More
https://github.com/anpaza/make_ext4fs
The Following User Says Thank You to I1V1A1N For This Useful Post: [ View ] Gift I1V1A1N Ad-Free
21st January 2019, 04:09 PM |#5  
Ricky Divjakovski's Avatar
OP Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 7,567
 
Donate to Me
More
Quote:
Originally Posted by I1V1A1N

https://github.com/anpaza/make_ext4fs

Thats a newer build, i may use it, thanks
8th February 2019, 04:19 AM |#6  
Ricky Divjakovski's Avatar
OP Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 7,567
 
Donate to Me
More
Repository has been updated for partial 9.0 support
The Following User Says Thank You to Ricky Divjakovski For This Useful Post: [ View ]
25th February 2019, 02:44 AM |#7  
Junior Member
Thanks Meter: 0
 
More
dose it support pie use make_ext4fs?
25th February 2019, 05:15 AM |#8  
Ricky Divjakovski's Avatar
OP Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 7,567
 
Donate to Me
More
Quote:
Originally Posted by Nightmare_MYS

dose it support pie use make_ext4fs?

Unpacking yes but repacking not at the moment, i havent had time to look into mk2efs and the new e2fsdroid source code, the source for these are in the e2fsprogs repository, mk2efs already has a windows port in cygwin and the e2fsdroid sourcw code is in the contrib/android directory, i have built mk2efs correctly but i havent attempted e2fsdroid yet because i have been busy, maybe @osm0sis may be able to give it a shot
25th February 2019, 07:32 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Ricky Divjakovski

Unpacking yes but repacking not at the moment, i havent had time to look into mk2efs and the new e2fsdroid source code, the source for these are in the e2fsprogs repository, mk2efs already has a windows port in cygwin and the e2fsdroid sourcw code is in the contrib/android directory, i have built mk2efs correctly but i havent attempted e2fsdroid yet because i have been busy, maybe @osm0sis may be able to give it a shot

i have no idea,i checked a lot of method,mke2fs just can creat a new null img,i still don't know e2fsdroid's effect,i had used ClassyKitchen to repack my pie,it working,but ClassyKitchen just a single exe file,
26th February 2019, 10:36 AM |#10  
Ricky Divjakovski's Avatar
OP Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 7,567
 
Donate to Me
More
Quote:
Originally Posted by Nightmare_MYS

i have no idea,i checked a lot of method,mke2fs just can creat a new null img,i still don't know e2fsdroid's effect,i had used ClassyKitchen to repack my pie,it working,but ClassyKitchen just a single exe file,

thats quite odd, from looking into classy kitchen it seems that it does use make_ext4fs?
however i dont know how he has got it working, he tries hiding the functionallity of his tools quite abit, im guessing this is because of licensing issues preventing him to sell whats included in the tools and to stop other people from making a free version, the binaries are unpacked to %tmp%/BIN folder when processing a firmware, check it out
27th February 2019, 03:12 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Ricky Divjakovski

thats quite odd, from looking into classy kitchen it seems that it does use make_ext4fs?
however i dont know how he has got it working, he tries hiding the functionallity of his tools quite abit, im guessing this is because of licensing issues preventing him to sell whats included in the tools and to stop other people from making a free version, the binaries are unpacked to %tmp%/BIN folder when processing a firmware, check it out

the free of classy kitchen just can build new img,if i know its working space,i maybe know it in Disk C,but i can't find it and dont't know the binaries unpacked where,i tryed to use make_ext4fs to build my pie img,it is not working,i sure Classy Kithen can,
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