Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[tool] ANDROID_IMG_REPACK_TOOLS & Odin3 ROM Editor

OP A.S._id

6th January 2014, 10:54 PM   |  #1  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,165
 
1,079 posts
Join Date:Joined: Sep 2010
More
[tool] ANDROID_IMG_REPACK_TOOLS & Odin3 ROM Editor


android_img_repack_tools is a kit utilites for unpack/repack android ext4 and boot images in LINUX


includes binaries:
mkbootfs
simg2simg
make_ext4fs
mkbootimg
ext2simg
img2simg
simg2img
sgs4ext4fs - Chainfire's tool
unpackbootimg - CyanogenMod tool
mkbootimg_tools - xiaolu




sources used:
https://android.googlesource.com
https://github.com/CyanogenMod/android_system_core.git
https://github.com/Chainfire/sgs4ext4fs





how to make:

Preparation OS:

Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.8-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind libreadline6-dev gcc-multilib g++-multilib libc6-dev x11proto-core-dev libx11-dev libz-dev gawk texinfo automake libtool cvs libsdl-dev
Dowload repo:

Code:
git clone https://github.com/ASdev/android_img_repack_tools
Choose branch, for example:

Code:
cd android_img_repack_tools
git checkout android-4.4.4_r2.0.1
Building tools:

Code:
./configure
will download source from android git repositories

Code:
make
will compille binaries: mkbootfs simg2simg make_ext4fs mkbootimg sgs4ext4fs unpackbootimg ext2simg img2simg simg2img

Code:
make clean
will clean sources

Code:
make clear
wiil remove binaries

credits:
android.googlesource
Chainfire
CyanogenMod


go to the repository

Already have a branch:
android-2.3.7_r1
android-4.0.4_r2.1
android-4.1.2_r2.1
android-4.2.2_r1.2
android-4.3_r3.1
android-4.4.2_r1
android-4.4.3_r1.1.0.1
android-4.4.4_r2.0.1
android-5.0.0_r2





XDA:DevDB Information
android_img_repack_tools & Odin3 ROM Editor, Tool/Utility for the Android General

Contributors
A.S._id

Version Information
Status: Testing

Created 2014-01-06
Last Updated 2014-11-06
Last edited by A.S._id; 26th October 2014 at 02:18 PM.
The Following 40 Users Say Thank You to A.S._id For This Useful Post: [ View ]
6th January 2014, 10:54 PM   |  #2  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,165
 
1,079 posts
Join Date:Joined: Sep 2010
More
Odin3 ROM Editor
Odin3 ROM Editor

sources used:

sgs4ext4fs - Chainfire's tool
CWM / TWRP / MobileODIN installable ZIP: http://download.chainfire.eu/supersu
android_img_repack_tools - ASdev
mkbootimg_tools - xiaolu


Odin3 ROM Editor - it's a smart tool for:

* Extract/repacking zip/.tar.md5 ROM files
* Unpacking/mounting/repacking ext4 sparse partition image files
* Unpacking/repacking boot image files
in LINUX OS



Lesson 1 - Editing SM-N9005 Stock ROM



Lesson 2 - Editing I9300 Stock ROM. Adding Root permissions



DOWNLOAD



credits:
android.googlesource
Chainfire
Chenglu
Last edited by A.S._id; 3rd November 2014 at 11:56 PM.
The Following 13 Users Say Thank You to A.S._id For This Useful Post: [ View ]
6th January 2014, 10:54 PM   |  #3  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,165
 
1,079 posts
Join Date:Joined: Sep 2010
More
Odin3 ROM Editor - History of changes:
Odin3_ROM_Editor_v.002 - fixed support Galaxy SII flash ROM

Odin3_ROM_Editor_v.003 - added support android-4.4.4_r2.0.1
Last edited by A.S._id; 3rd November 2014 at 11:57 PM.
The Following 3 Users Say Thank You to A.S._id For This Useful Post: [ View ]
8th January 2014, 11:52 AM   |  #4  
Member
Thanks Meter: 22
 
50 posts
Join Date:Joined: Aug 2005
mod edit
Thank you very much. I'm waiting for you.
Last edited by mark manning; 8th January 2014 at 03:28 PM.
The Following User Says Thank You to linhbs For This Useful Post: [ View ]
8th January 2014, 01:08 PM   |  #5  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,165
 
1,079 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by linhbs

Thank you very much. I'm waiting for you.

But what are you waiting?
And why to copy all post?
The Following 3 Users Say Thank You to A.S._id For This Useful Post: [ View ]
8th January 2014, 02:23 PM   |  #6  
Member
Thanks Meter: 22
 
50 posts
Join Date:Joined: Aug 2005
Thanks you. I got it!
8th January 2014, 05:28 PM   |  #7  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,165
 
1,079 posts
Join Date:Joined: Sep 2010
More
added branches:
android-2.3.7_r1
android-4.0.4_r2.1
android-4.2.2_r1.2
android-4.3_r3.1
android-4.4.2_r1
The Following 3 Users Say Thank You to A.S._id For This Useful Post: [ View ]
12th January 2014, 10:51 AM   |  #8  
Member
Thanks Meter: 4
 
39 posts
Join Date:Joined: Jun 2010
More
Some headers missed. I am using Ubintu 12.04 and installed zlib1g-dev for compiling zlib_host. But make_ext4fs don't compiling:

Building make_ext4fs...
extras/ext4_utils/make_ext4fs.c: In function 'build_directory_structure':
extras/ext4_utils/make_ext4fs.c:175:27: error: 'struct stat' has no member named 'st_stat'
extras/ext4_utils/make_ext4fs.c:176:26: error: 'struct stat' has no member named 'st_stat'
extras/ext4_utils/make_ext4fs.c:177:26: error: 'struct stat' has no member named 'st_stat'
make: *** [make_ext4fs] Error 1
12th January 2014, 11:05 AM   |  #9  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,165
 
1,079 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by MATPOC

Some headers missed. I am using Ubintu 12.04 and installed zlib1g-dev for compiling zlib_host. But make_ext4fs don't compiling:

Building make_ext4fs...
extras/ext4_utils/make_ext4fs.c: In function 'build_directory_structure':
extras/ext4_utils/make_ext4fs.c:175:27: error: 'struct stat' has no member named 'st_stat'
extras/ext4_utils/make_ext4fs.c:176:26: error: 'struct stat' has no member named 'st_stat'
extras/ext4_utils/make_ext4fs.c:177:26: error: 'struct stat' has no member named 'st_stat'
make: *** [make_ext4fs] Error 1

Well you has two ways:
This http://www.zlib.net/
or
Code:
make clean
make clear
./configure
cd ./zlib/src
./configure
make
sudo make install
cd ../..
make clean
make
Last edited by A.S._id; 12th January 2014 at 11:12 AM.
The Following 3 Users Say Thank You to A.S._id For This Useful Post: [ View ]
12th January 2014, 12:46 PM   |  #10  
Member
Thanks Meter: 4
 
39 posts
Join Date:Joined: Jun 2010
More
Quote:
Originally Posted by A.S._id

Well you has two ways:
This http://www.zlib.net/

As I said I have compiled zlib_host by installing zlib1g-dev. Compile broken at ext4fs - maybe there are no extra headers for ext4fs, such as for struct stat.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes