FORUMS
Remove All Ads from XDA

[tool] ANDROID_IMG_REPACK_TOOLS

1,207 posts
Thanks Meter: 2,547
 
By A.S._id, Inactive Recognized Developer on 6th January 2014, 09:54 PM
Post Reply Email Thread
21st June 2016, 08:01 AM |#411  
Senior Member
Thanks Meter: 620
 
More
@A.S._id

The latest version of your tools is based on Android 6.0.1_r31
The latest build for Android tool is 6.0.1_r46. Do you have a plan to update your tools?

Tool branches updated (no needs update)
4.3_r3.1
4.4.3_r1.1.01
4.4.4_r2.0.1
5.1.1_r37

Tool branches to update
4.2.2.r2.1 -> 4.2.2.r2.1b
4.4.2.r2 -> 4.4.2.r2.0.1
5.0.0.r7 -> 5.0.0.r7.0.1
5.0.2.r1 -> 5.0.2.r3
6.0.1.r31 -> 6.0.1.r46
 
 
7th July 2016, 02:00 PM |#412  
Senior Member
Thanks Meter: 422
 
More
--
20th July 2016, 06:50 PM |#413  
Senior Member
Flag Athens
Thanks Meter: 40
 
More
What should the block size in img2simg be?

update
I think i got everything working now after using linux
5th August 2016, 10:41 AM |#414  
Junior Member
Thanks Meter: 13
 
More
This will work out of the box with no problems using ubuntu version: ubuntu-14.04.5-desktop-amd64
WIth other versions older or new you will have various problems to solve on linux regarding missing packages, wrong packages versions, etc.
5th August 2016, 11:49 AM |#415  
rogerscrack's Avatar
Senior Member
Flag Buenos Aires
Thanks Meter: 12
 
Donate to Me
More
@xjpmauricio Please edit your post, it is not necessary to cite all first message.
The repacker tool works correctly in Ubuntu 14.04 and Ubuntu 16.04. To work properly in Ubuntu 16.04 has to do AS._id indicated in comment #391 (please find and read).

I recommend emphatically, read all the comments on this thread. Many problems or concerns have been resolved.

Regards!

Enviado desde mi SM-G920I mediante Tapatalk
24th August 2016, 06:28 AM |#416  
Junior Member
Thanks Meter: 0
 
More
hello everyone I need your help i see your Excellent tool I download it and I see the video that you made how to use it . now I have a problem and 2 question when i Choose
1 - Build android_img_repack_tools and Choose android-6.0.1 .. Does it matter if my firmware is 5.1.1 Do I have to do this action every time I work from firmware to a different firmware
I have a devices Samsung SM-J7108 that I want to add a file to the system folder and delete file from this folder new i try what you show in your video bat i get error when I try to Choose ... 2 - Ext4 img edit menu ... 1 - MOUNT ext4 img ... Input image <name>: cache.img now this is the error


Input image <name>: cache.img
tools/scripts/com_mount_ext4img: line 34: tools/android_img_repack_tools/simg2img: No such file or directory
mount: PROJECT/cache.img.raw: failed to setup loop device: No such file or directory

Finished

If anyone can help I be Grateful

---------- Post added at 05:28 AM ---------- Previous post was at 04:37 AM ----------

this is the the end of the download I need help please



Building libselinux...
libselinux/src/procattr.c: In function ‘getprocattrcon’:
libselinux/src/procattr.c:29:8: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
^
removed 'avc.o'
removed 'avc_internal.o'
removed 'avc_sidtab.o'
removed 'booleans.o'
removed 'callbacks.o'
removed 'canonicalize_context.o'
removed 'checkAccess.o'
removed 'check_context.o'
removed 'compute_av.o'
removed 'compute_create.o'
removed 'context.o'
removed 'deny_unknown.o'
removed 'disable.o'
removed 'enabled.o'
removed 'fgetfilecon.o'
removed 'freecon.o'
removed 'fsetfilecon.o'
removed 'get_initial_context.o'
removed 'getenforce.o'
removed 'getfilecon.o'
removed 'getpeercon.o'
removed 'init.o'
removed 'label.o'
removed 'label_android_property.o'
removed 'label_file.o'
removed 'lgetfilecon.o'
removed 'load_policy.o'
removed 'lsetfilecon.o'
removed 'mapping.o'
removed 'policyvers.o'
removed 'procattr.o'
removed 'sestatus.o'
removed 'setenforce.o'
removed 'setfilecon.o'
removed 'stringrep.o'
*******************************************
Building zlib_host...
*******************************************
Building libsparse_host...
*******************************************
removed 'adler32.o'
removed 'backed_block.o'
removed 'compress.o'
removed 'crc32.o'
removed 'deflate.o'
removed 'example.o'
removed 'example64.o'
removed 'gzclose.o'
removed 'gzlib.o'
removed 'gzread.o'
removed 'gzwrite.o'
removed 'infback.o'
removed 'inffast.o'
removed 'inflate.o'
removed 'inftrees.o'
removed 'minigzip.o'
removed 'minigzip64.o'
removed 'output_file.o'
removed 'sparse.o'
removed 'sparse_crc32.o'
removed 'sparse_err.o'
removed 'sparse_read.o'
removed 'trees.o'
removed 'uncompr.o'
removed 'zutil.o'
*******************************************
Building libpcre...
ar: pcre/dist/*.o: No such file or directory
make: *** [libpcre] Error 1
bionic external libselinux libz.a pcre simg_dump.py
configure extras libselinux.a Makefile README.md zlib
core file_contexts libsparse.a mkuserimg.sh sepolicy
'tools/scripts/com_mkboot' -> 'tools/mkbootimg_tools/com_mkboot'

Finished

Press Enter to continue

this is the files that i have in the tools folder is not download all the files As it should be
tools folder
31st August 2016, 12:17 PM |#417  
A.S._id's Avatar
OP Inactive Recognized Developer
Thanks Meter: 2,547
 
Donate to Me
More
For @wanam special
Here this is you asked
The Following 4 Users Say Thank You to A.S._id For This Useful Post: [ View ] Gift A.S._id Ad-Free
19th September 2016, 09:09 PM |#418  
F. Gacrux's Avatar
Senior Member
Thanks Meter: 112
 
More
Mint 18 x64

I get this error on make:

Code:
Building libselinux...
libselinux/src/procattr.c: In function ‘getprocattrcon’:
libselinux/src/procattr.c:29:8: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
   rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
        ^
removed 'avc.o'
removed 'avc_internal.o'
removed 'avc_sidtab.o'
removed 'booleans.o'
removed 'callbacks.o'
removed 'canonicalize_context.o'
removed 'checkAccess.o'
removed 'check_context.o'
removed 'compute_av.o'
removed 'compute_create.o'
removed 'context.o'
removed 'deny_unknown.o'
removed 'disable.o'
removed 'enabled.o'
removed 'fgetfilecon.o'
removed 'freecon.o'
removed 'fsetfilecon.o'
removed 'get_initial_context.o'
removed 'getenforce.o'
removed 'getfilecon.o'
removed 'getpeercon.o'
removed 'init.o'
removed 'label.o'
removed 'label_android_property.o'
removed 'label_file.o'
removed 'lgetfilecon.o'
removed 'load_policy.o'
removed 'lsetfilecon.o'
removed 'mapping.o'
removed 'policyvers.o'
removed 'procattr.o'
removed 'sestatus.o'
removed 'setenforce.o'
removed 'setfilecon.o'
removed 'stringrep.o'
*******************************************
Building zlib_host...
*******************************************
Building libsparse_host...
*******************************************
removed 'adler32.o'
removed 'backed_block.o'
removed 'compress.o'
removed 'crc32.o'
removed 'deflate.o'
removed 'example.o'
removed 'example64.o'
removed 'gzclose.o'
removed 'gzlib.o'
removed 'gzread.o'
removed 'gzwrite.o'
removed 'infback.o'
removed 'inffast.o'
removed 'inflate.o'
removed 'inftrees.o'
removed 'minigzip.o'
removed 'minigzip64.o'
removed 'output_file.o'
removed 'sparse.o'
removed 'sparse_crc32.o'
removed 'sparse_err.o'
removed 'sparse_read.o'
removed 'trees.o'
removed 'uncompr.o'
removed 'zutil.o'
*******************************************
Building libpcre...
ar: pcre/dist/*.o: No such file or directory
Makefile:141: recipe for target 'libpcre' failed
make: *** [libpcre] Error 1
29th September 2016, 10:29 AM |#419  
gandolf007's Avatar
Senior Member
Thanks Meter: 9
 
More
G920P 6.0.1
i got below error


Code:
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /root/Android_ROM_IMG_Repacker_v2/tools/android_img_repack_tools/pcre/dist/missing aclocal-1.14 -I m4
/root/Android_ROM_IMG_Repacker_v2/tools/android_img_repack_tools/pcre/dist/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
Makefile:1346: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o test/example.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o adler32.o adler32.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o crc32.o crc32.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o deflate.o deflate.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o infback.o infback.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o inffast.o inffast.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o inflate.o inflate.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o inftrees.o inftrees.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o trees.o trees.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o zutil.o zutil.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o compress.o compress.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o uncompr.o uncompr.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o gzclose.o gzclose.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o gzlib.o gzlib.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o gzread.o gzread.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN   -c -o gzwrite.o gzwrite.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o 
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example example.o -L. libz.a
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/adler32.o adler32.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/crc32.o crc32.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/deflate.o deflate.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/infback.o infback.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inffast.o inffast.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inflate.o inflate.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inftrees.o inftrees.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/trees.o trees.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/zutil.o zutil.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/compress.o compress.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/uncompr.o uncompr.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzclose.o gzclose.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzlib.o gzlib.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzread.o gzread.c
gcc -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzwrite.o gzwrite.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3  -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o libz.so.1.2.8 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo  -lc 
rm -f libz.so libz.so.1
ln -s libz.so.1.2.8 libz.so
ln -s libz.so.1.2.8 libz.so.1
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o examplesh example.o -L. libz.so.1.2.8
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzipsh minigzip.o -L. libz.so.1.2.8
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example64 example64.o -L. libz.a
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.c
gcc -O3  -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip64 minigzip64.o -L. libz.a
Patch files
'extras/ext4_utils/make_ext4fs.c' -> 'extras/ext4_utils/make_ext4fs_def.c'
'extras/ext4_utils/mkuserimg.sh' -> './mkuserimg.sh'
cp: omitting directory '.'
'sepolicy/file_contexts' -> './file_contexts'
cp: omitting directory '.'
'core/libsparse/simg_dump.py' -> './simg_dump.py'

for android.googlesource.com choosed branch android-6.0.1_r31...

for Cyanogen Mod source choosed branch cm-13.0...

Building libselinux...
libselinux/src/procattr.c: In function ‘getprocattrcon’:
libselinux/src/procattr.c:29:8: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
   rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
        ^
libselinux/src/label_file.c:19:18: fatal error: pcre.h: No such file or directory
compilation terminated.
Makefile:134: recipe for target 'libselinux' failed
make: *** [libselinux] Error 1
avc_internal.o		context.o	getfilecon.o		  mkuserimg.sh
avc.o			core		get_initial_context.o	  pcre
avc_sidtab.o		deny_unknown.o	getpeercon.o		  policyvers.o
bionic			disable.o	init.o			  procattr.o
booleans.o		enabled.o	label_android_property.o  README.md
callbacks.o		external	label.o			  sepolicy
canonicalize_context.o	extras		lgetfilecon.o		  sestatus.o
checkAccess.o		fgetfilecon.o	libselinux		  setenforce.o
check_context.o		file_contexts	load_policy.o		  setfilecon.o
compute_av.o		freecon.o	lsetfilecon.o		  simg_dump.py
compute_create.o	fsetfilecon.o	Makefile		  stringrep.o
configure		getenforce.o	mapping.o		  zlib
'tools/scripts/com_mkboot' -> 'tools/mkbootimg_tools/com_mkboot'

 Finished 

Press Enter to continue
how to fix that
3rd October 2016, 09:07 PM |#420  
gandolf007's Avatar
Senior Member
Thanks Meter: 9
 
More
Quote:
Originally Posted by F. Gacrux

Mint 18 x64

I get this error on make:

Code:
Building libselinux...
libselinux/src/procattr.c: In function ‘getprocattrcon’:
libselinux/src/procattr.c:29:8: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
   rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
        ^
removed 'avc.o'
removed 'avc_internal.o'
removed 'avc_sidtab.o'
removed 'booleans.o'
removed 'callbacks.o'
removed 'canonicalize_context.o'
removed 'checkAccess.o'
removed 'check_context.o'
removed 'compute_av.o'
removed 'compute_create.o'
removed 'context.o'
removed 'deny_unknown.o'
removed 'disable.o'
removed 'enabled.o'
removed 'fgetfilecon.o'
removed 'freecon.o'
removed 'fsetfilecon.o'
removed 'get_initial_context.o'
removed 'getenforce.o'
removed 'getfilecon.o'
removed 'getpeercon.o'
removed 'init.o'
removed 'label.o'
removed 'label_android_property.o'
removed 'label_file.o'
removed 'lgetfilecon.o'
removed 'load_policy.o'
removed 'lsetfilecon.o'
removed 'mapping.o'
removed 'policyvers.o'
removed 'procattr.o'
removed 'sestatus.o'
removed 'setenforce.o'
removed 'setfilecon.o'
removed 'stringrep.o'
*******************************************
Building zlib_host...
*******************************************
Building libsparse_host...
*******************************************
removed 'adler32.o'
removed 'backed_block.o'
removed 'compress.o'
removed 'crc32.o'
removed 'deflate.o'
removed 'example.o'
removed 'example64.o'
removed 'gzclose.o'
removed 'gzlib.o'
removed 'gzread.o'
removed 'gzwrite.o'
removed 'infback.o'
removed 'inffast.o'
removed 'inflate.o'
removed 'inftrees.o'
removed 'minigzip.o'
removed 'minigzip64.o'
removed 'output_file.o'
removed 'sparse.o'
removed 'sparse_crc32.o'
removed 'sparse_err.o'
removed 'sparse_read.o'
removed 'trees.o'
removed 'uncompr.o'
removed 'zutil.o'
*******************************************
Building libpcre...
ar: pcre/dist/*.o: No such file or directory
Makefile:141: recipe for target 'libpcre' failed
make: *** [libpcre] Error 1

i have same problem
3rd October 2016, 09:15 PM |#421  
rogerscrack's Avatar
Senior Member
Flag Buenos Aires
Thanks Meter: 12
 
Donate to Me
More
@gandolf007




Please take a few minutes to read the previous comments. I recommend doing indicating AS_ID in screenshot, and then the second catch. posterioremente re-install add what is stated in the main post.

Enviado desde mi ONEPLUS A3000 mediante Tapatalk
The Following User Says Thank You to rogerscrack For This Useful Post: [ View ] Gift rogerscrack Ad-Free
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