Post Reply Subscribe to Thread Email Thread

Prompt [tool] ANDROID_IMG_REPACK_TOOLS & Odin3 ROM Editor

6th January 2014, 09:54 PM   |  #1  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,235
 
1,095 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
android-5.0.2_r1
android-5.1.0_r1





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 2015-03-12
Last edited by A.S._id; 26th October 2014 at 01:18 PM.
The Following 44 Users Say Thank You to A.S._id For This Useful Post: [ View ]
6th January 2014, 09:54 PM   |  #2  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,235
 
1,095 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 10:56 PM.
The Following 15 Users Say Thank You to A.S._id For This Useful Post: [ View ]
6th January 2014, 09:54 PM   |  #3  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,235
 
1,095 posts
Join Date:Joined: Sep 2010
More
MOTO_G_sparse_img_editor
MOTO_G_sparse_img_editor

Editor images for MOTO G for Linux x64
(If necessary under the x32 folder android_img_repack_tools is the source can compile the source code):
Code:
make clean
make

Instructions:
1. Download \ extract the archive
2. In the extracted folder to put all parts of the firmware images without sticking together!
3. Start main_menu in the terminal, select 1 - convert & mount img enter the name of the image without the extension! (system for example)
The tool will gather converts into a normal part of ext4, remove MOTO extra header and mount it in a folder system.mnt
4. After all the manipulations with the files, you can convert back to sparse img for flash via fastboot, selecting the menu item 2 - build sparse ext4img

DWNLOAD
Last edited by A.S._id; 17th March 2015 at 10:27 PM.
The Following 5 Users Say Thank You to A.S._id For This Useful Post: [ View ]
8th January 2014, 10:52 AM   |  #4  
Member
Thanks Meter: 22
 
51 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 02:28 PM.
The Following User Says Thank You to linhbs For This Useful Post: [ View ]
8th January 2014, 12:08 PM   |  #5  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,235
 
1,095 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, 01:23 PM   |  #6  
Member
Thanks Meter: 22
 
51 posts
Join Date:Joined: Aug 2005
Thanks you. I got it!
8th January 2014, 04:28 PM   |  #7  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,235
 
1,095 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, 09:51 AM   |  #8  
Member
Thanks Meter: 4
 
40 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, 10:05 AM   |  #9  
A.S._id's Avatar
OP Recognized Developer
Thanks Meter: 2,235
 
1,095 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 10:12 AM.
The Following 3 Users Say Thank You to A.S._id For This Useful Post: [ View ]
12th January 2014, 11:46 AM   |  #10  
Member
Thanks Meter: 4
 
40 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