yashsingh1/xdaforums huggingface dataset:
[Android Software Development] zameer_yus:
hello can you please explain below commends ?

what is diffident between 2nd , 3rd and 4th method i need detailed explanations please

2 - MAKE_EXT4FS - new img existing permission

3 - MAKE_EXT4FS - new img ANDROID permission

4 - EXT2SIMG - raw to sparse

5 - 32-BYTES chunk header
[Android Software Development] bovirus:
[MENTION=2976903]A.S._id[/MENTION]

No update for Android 7.x (like 7.1.2)?
[Android Software Development] A.S._id:
project closed

hi

I'm lost interest to prepare images...

So project is closed...
[Android Software Development] Austcool:
I keep Getting errors in xubuntu 16.0.4

I need Help.

I allways get errors with the ext4 mount and convert

Mounting RAW image...

Choose ext4 image for edit

STOCK/hidden.img.ext4

STOCK/system.img.ext4

STOCK/cache.img.ext4

STOCK/boot.img

STOCK/recovery.img

Input image <name>: system.img.ext4

mkdir: cannot create directory ‘PROJECT/system.img.ext4.mnt’: No such file or directory

Cannot open output file PROJECT/system.img.ext4.raw

Ive compiled the source code for the android 6.0.1 repack tools but I am unsure of what directory to place them in

Help would be Great. I have a SM-T350 :(
[Android Software Development] gandolf007:
hi

when i want to mount system.img i faced with below error :

Input image <name>: system.img.ext4

tools/scripts/com_mount_ext4img: line 34: tools/android_img_repack_tools/simg2img: No such file or directory

mount: PROJECT/system.img.ext4.raw: failed to setup loop device: No such file or directory

i tested 3 different firmware but problem remains ! where is problem ?
[Android Software Development] bovirus:
Please post the details (mandatory)

OS (Windows (cygwin) or Linux

Type of image file

Command typed

PS: the system should be in not sparse format.

before to mount it try to use the sim2img command

simg2img system.img system.ext4.img

then mount system.ext4.img

---------- Post added at 03:29 PM ---------- Previous post was at 03:18 PM ----------

If you don't want to continue the development of this project could you ask (or if you want I can do it for you) to forum admin, to add a second post empty with my nick (bovirus) where can i put the link to download upgrde project for you tools like

- repacker tool for Linux 6.0.1 build 79?

- info about Please add in READ.ME file the workaround about aclocal error got during configure & compilation

sudo ln -s /usr/bin/automake-1.15 /usr/bin/automake-1.14

sudo ln -s /usr/bin/aclocal-1.15 /usr/bin/aclocal-1.14

Thanks. Bye.
[Android Software Development] gandolf007:
os = linux ubuntu 17.0.4

i used Android_ROM_IMG_Repacker_v2
[Android Software Development] bovirus:
Please check first post.

The latest Image Repacker version is 2.2. Use it.

Please try with single tool command (mount)

## Check system image info with

sudo fdisk -lu system.img

### Cleanup sys folder

rm -rf sys

********************** Decompress system image

mkdir sys

sudo mount -t ext4 -o loop system.img sys/

*********************** Step 2 - Edit files

Then you have all your system partition mouned in 'sys' and you can modify whatever you want in 'sys'. For example de-odex apks and framework jars.

*********************** Step 3 - Recompress system image

** Check in file explorer the volume size of the new unit mounted (ex. 839 MB)

xxx = MB of system image get from fdisk -lu command

sudo make_ext4fs -s -l xxxM -a system new.img sys/

sudo umount sys

rm -fr sys

### Rename old file system

rename system.img system-old.img

### Convert new.img sparse file into ext4 system.img file

simg2img new.img system.img
[Android Software Development] prata618@gmail.com:
Help me i have note 3 n900v I rooted, I removed the bootloader ,i installed a jasmim rom, but i can not istall the exposed framework i flushed the right Zip by twrp goes fine, but doesn't reboot?
[Android Software Development] DopeSick:
You should post your question in the jasmine or xposed thread. This one doesn't have anything to do with either one.
[Android Software Development] gsm-lord:
I have a little problem. after unpack g5520 system file and repack it without edit , cant flash with odin and phone show secure checksum fail : system

I check all tools and and ways.

can any1 help me where is the problem!
[Android Software Development] Boscep:
hi [MENTION=4850783]karansangaj[/MENTION]

would you like to fix your latest make_ext4fs.exe(nougat 7.x) please?

invalid both /system/bin/su & /system/xbin/su perm(0 0 06755).

it should be 0 2000 0755

thank you.
[Android Software Development] rebaz ali:
hi .Im new on linux . my main_menu is not excutable?

pls advice me.
[Android Software Development] gsm-lord:
finaly i got this error. can anyone help me to bypass this ?

Building libpcre...

ar: pcre/dist/*.o: No such file or directory

Makefile:141: recipe for target 'libpcre' failed

make: *** [libpcre] Error 1
[Android Software Development] Mr Hassan:
same error with me in win or linux both,

how you solve that?

---------- Post added at 08:43 AM ---------- Previous post was at 08:39 AM ----------

why you not continue the thread?
[Android Software Development] bovirus:
[MENTION=7279408]Mr Hassan[/MENTION]

It's the original author that is not interested anymore to continue the development.
[Android Software Development] Mr Hassan:
[MENTION=637263]bovirus[/MENTION]

now i,m facing the same issue can you guide me about that? see the upper post the 1st one quote, [MENTION=7897200]Austcool[/MENTION]

same error with me everytime extracted the system.img in linux and win both
[Android Software Development] Austcool:
Do you thing it could have anything with Android Linux se permissions and the stock Kernal?
[Android Software Development] Mr Hassan:
i really don,t know about that. i also searching for that for fix
[Android Software Development] Austcool:
Yeah I think that would fix it but on SM-t350 Galaxy Tab A 8.0 it removes adb revoking so I can't register new adb devices ?... It the defeats the goal of making a custom flash able firmware.
[Android Software Development] nick_c01:
Hello to all users here I need help ... I edit Samsung Firmware long time but now I gut device model G6100 J7 Prime . I edit the system.img when I edit end close the file and flash it on the phone its give me error on the recovery but the phone is turn on and work but when I try to start the first time do next and select the language I gut error unfortunately the process com.android.phone has stooped + when I finish the wizard I gut unfortunately TouchWiz home has stopped . I not see the home screen + the quick start when I slide the finger from up not have the quick shortcut . please help me I really stuck with this problem

Recovery Error

https://ibb.co/eJvmbk

Com.Android.Phone Error

https://ibb.co/cEEwbk

TouchWiz Error

https://ibb.co/gJbEU5

Quick Shortcut Error

https://ibb.co/dYx4U5
[Android Software Development] miracel:
same error with me in win or linux both,do you solve this problem?
[Android Software Development] majid.gsm11:
hi

when repack for sm-c5010 system ;it does not flash with odin

Thank you for helping me.
[Android Software Development] bovirus:
Please don't QUOTE an entire post.

Please edit you previous post and delete QUOTE.

Please provide more details

how you unapcked/repacked and which system you used

Link of the system.img

Operation made on teh file.
[Android Software Development] majid.gsm11:
by using Android_ROM_IMG_Repacker_v22

Recipe : ./make_ext4fs -s -S file_contexts -l size -a system new_system.img sys/

bit system 28B

os=ubuntu 16.04

Previously, I came up with this method for other systems

Is there a specific method for c5010?

Or need to edit the fillet_contexts?
[Android Software Development] majid.gsm11:
The problem was solved

:good:
[Android Software Development] xerox1122:
I have a Samsung galaxy grand prime SM-G531F, android 5.1.1...i try to unpack a system.img and then to repack it using these commands:

simg2img system.img system.raw.img

ext2simg -v system.raw.img system_new.img

Everything works fine but when i try to flash the new one with odin3 i always get:

<ID:0/006> FAIL!

<ID:0/006>

<ID:0/006> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

If i use the old one everything works fine, i didn't even modify anything on the image, i just try to unpack and repack it.
[Android Software Development] steady6968:
Dir
[Android Software Development] rkhat:
Since this project is dead, I made a new version that supports Android Nougat and Android Oreo. Check this post.
[Android Software Development] Focusos:
thanks!
[Android Software Development] RedNeerajSharma:
query

I've the same problem
[Android Software Development] shah22:
Sorry to post in a dead project, but I was exhausted to search any way to modify cache partition in CSC.tar.md5. However, I found img extractor and used it to extract it, but now I cannot find anything that can successfully recompile it back. All I wanted to do was to modify csc of stock firmware of my multic csc region as to set my country's CSC as default in that Multi CSC. I am using S7 Edge G935FD. Also tell me if by any means I succeed in repacking it to cache.img . can I put it back in that csc.tar.md5 ? and could it be flashed in odin? and will it NOT void warranty ? the whole point here is that I don't want to root and don't want to void knox counter to only set my country's csc as default from that multi csc.. any help advanced members? [MENTION=4899305]ashyx[/MENTION]
[Android Software Development] ashyx:
You need to repack it to a raw image then a sparse image then to tar. Md5 isn't strictly necessary.

Plenty of tools can convert to tar even windows can do it.

However for simplicity 7zip can do it.

Linux is your friend for this kind of stuff though.

Also yes it will most likely trip knox as there will be no signature attached to the image.

Surely though if you're rooted you can modify on the device itself?
[Android Software Development] shah22:
Thats what I wanted bro.. changing csc without root.. so if it trips knox then its useless. Anyway to attach signature myself ? So it doesn't trips knox?
[Android Software Development] ashyx:
Impossible to attach the required signature as you would need Samsungs key.

I'm a little confused as to why you cannot just flash the correct CSC?
[Android Software Development] shah22:
Bro my original csc was in a multi csc group, when I flashed btu oreo to try it before it gets in my region, my csc changed to btu, but when I flashed back my own multi csc group firmware, it always selected a default csc from that multi csc group.. and not my original csc within that group.. which was before flashing btu oreo..
[Android Software Development] xp890117:
andriod 9

Do you kown hao to unpack/repack system.img fof android 9.0
[Android Software Development] ashyx:
Same as any other system.img
[Android Software Development] xp890117:
andriod 9

but it's not work

---------- Post added at 01:29 AM ---------- Previous post was at 01:24 AM ----------

i can use simg2img to unpack system.img but after i repack system.img with make_ext4fs ,it can not work . because make_ext4fs binary is not present in Pie repository
[Android Software Development] youmbi:
hi

thanks somuch for this tutorial my question is i whant to know how to unpack and repack system.img raw android 8.0 and 9.0 for qualcomm CUP thanks

best regard
[Android Software Development] xunbu7:
the same error

the same error!

I do not know how to fix it!

you solved it?
[Android Software Development] lebigmac:
Hi @A.S._id can you please tell me how to generate those fs_config and file_context files dynamically on the fly for make_ext4fs to work properly? I'm trying to convert my sub-partitions of super.img from EROFS/F2FS to EXT4 file system format.

Thanks (y)
[Android Software Development] ibe550:
My cell phone is Galaxy note 2 Korean verison.

So, i choose Samsung Exynos Dual/Quad menu.

Mount raw img after done i choose build flash img.

But i always get error message also i tried to other rom(international verion note 2)

Because i thought mine is korean verison so it doesn't work but doesn't matter any kind of rom doesn't work.

But when i choose Exynos 5 Octa menu then i can build flash img.

But after build flash img i tried to build Odin flash rom.

After everythings done i tried to flash odin file always gave me error so i can't flash it.

Anybody know how to slove this problem?

Thank you

Sorry i speak english but not really well.
[Android Software Development] A.S._id:
You're not entered size of system image.

On note 2, if I not wrong, system image size = 2048M
[Android Software Development] ghepardus:
I tried to pre root and Note 3 (MS-N9005) image all are done just like in the video

but the root don't work after flahsing the image, I get 6754 permision on "su" and "daemonsu"

instead of 6755 as I chmod-ed in ubuntu.

If I use CF-Auto-Root all its ok, can you help me to understand what I do wrong ?
[Android Software Development] A.S._id:
For rooting android 4.4.2 try to get info from chainfire, or read him update script for cwm...
[Android Software Development] ibe550:
Thank you it works great!!!
[Android Software Development] rogerscrack:
[MENTION=2976903]A.S._id[/MENTION] I solved my problem with krusader, and now I can remove or add as much as I want in system.img.mnt .. My new problem is that after I flashing in odin .. FC superuser.apk with root checker says no I am root.

You can make a video lesson as the i9300 but for the SM-N900, please?

Regards!

by RogersCrack
[Android Software Development] droidroidz:
Excellent tools here, thank you very much A.S..i tried to get this setup on my own and failed...thank you!

Also do you happen to know the system image sizes for the TW KK Samsung Galaxy S4 variants? If not ..whats best way to get them? Thanks again!!!

EDIT:

I am also getting force closes with Superuser.apk on bootup..ill try and get logcat soon. Any ideas..Ive triple checked all the perms and ran through chainfires cwm script ?
[Android Software Development] rogerscrack:
Hi [MENTION=2976903]A.S._id[/MENTION], I can already solve everything except that after booting, FC appears to Samsumg keyboard ... any suggestions to fix this issue?

by RogersCrack
[Android Software Development] Wuby986:
It happend to me with regular deodex of a rom.. Was due to csc
[Android Software Development] rogerscrack:
okay ... I'll try it including all rom (cache, sboot, etc) and not just the PDA part. Thank you!

by RogersCrack
[Android Software Development] abdyasar:
hi i am getting this error. and cant mount an ext4 img. how can i do this. i watched the video several times. but i cant

Configuring and building tools...

Choose android_img_repack_tools branch

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

Enter branch: android-4.3_r3.1

tools/scripts/configure: line 27: git: command not found

tools/scripts/configure: line 29: git: command not found

tools/scripts/configure: line 31: cd: android_img_repack_tools: No such file or directory

tools/scripts/configure: line 33: git: command not found

chmod: cannot access `configure': No such file or directory

make: *** No rule to make target `clean'. Stop.

make: *** No rule to make target `clear'. Stop.

tools/scripts/configure: line 39: ./configure: No such file or directory

make: *** No targets specified and no makefile found. Stop.

scripts

Finished

Press Enter to continue
[Android Software Development] A.S._id:
git is not intalled

sudo apt-get install git
[Android Software Development] abdyasar:
Thx But :/

Bro..! thx for your great tool and everything. but i am an idifot on linux. so i couldn't do anything. i want to make a factory wipe rom for s4 i9505 and i cant change command values that in cache.img.ext4. this is the command file in it.

4.2.2 Mf8 cache: https://my.pcloud.com/#page=publink&code=XZIRUZj2VFhaURqyRT8rBPBnuVdYyFx45k

4.4.2 Nc9 cache: https://my.pcloud.com/#page=publink&code=XZARUZDmlHUCAmILjRX6XE7tvNWkpXDOLV

can you change the command pls???
[Android Software Development] diemhenmobile:
Galaxy s5 G900A edit mod system.img.ext4 flash by odin 3.09 check security failed
[Android Software Development] Yel-Al:
kann i get odin-3-editor.tar for windows os?

or how to use odin editor on windows?
[Android Software Development] sscs:
小路，最近新出的三星机型按照之前的打包方法刷入不开机，你了解吗

小路，最近新出的三星机型按照之前的打包方法刷入不开机，现在有解决办法了吗？用你这个工具打包不知道能不能解决

另外，我在下载工具的时候，有一个地方出错，

Enter branch: android-4.3_r3.1

Cloning into 'android_img_repack_tools'...

remote: Counting objects: 121, done.

remote: Compressing objects: 100% (52/52), done.

remote: Total 121 (delta 68), reused 121 (delta 68)

Receiving objects: 100% (121/121), 12.57 KiB, done.

Resolving deltas: 100% (68/68), done.

fatal: destination path 'mkbootimg_tools' already exists and is not an empty directory.

Branch android-4.3_r3.1 set up to track remote branch android-4.3_r3.1 from origin.

Switched to a new branch 'android-4.3_r3.1'

mode of "configure" changed from 0664 (rw-rw-r--) to 0755 (rwxr-xr-x)

Cleaning...

*******************************************

Clearing...

rm：无效选项 -- d

请尝试执行"rm --help"来获取更多信息。

make: *** [clear] 错误 1

Cloning into 'core'...

remote: Sending approximately 11.80 MiB ...

remote: Counting objects: 2799, done

下面的都正常
[Android Software Development] zameer_yus:
i have the same problem did you fixed ?
[Android Software Development] A.S._id:
try to add this components, after this try again:

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
[Android Software Development] cram42:
Same issue here and this doesn't fix it.

Running on Ubuntu 14.04 64.

Building make_ext4fs...
/tmp/ccpx5vYx.o: In function `ext4_parse_sb_info':
ext4_utils.c:(.text+0xb04): undefined reference to `ext4_parse_sb'
collect2: error: ld returned 1 exit status
make: *** [make_ext4fs] Error 1
[Android Software Development] satxtreme:
13.10 amd64 gcc 4.8 с распаковкой все ок

Input image <name>: boot.img
Unpack & decompress boot.img to boot.img.tmp
kernel : zImage
ramdisk : ramdisk
page size : 2048
kernel size : 4962288
ramdisk size : 1018278
base : 0x80200000
kernel offset : 0x00008000
ramdisk offset : 0x02000000
second_offset : 0x00f00000
tags offset : 0x00000100
cmd line : console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 maxcpus=4
ramdisk is gzip format.
Unpack completed.

а вот с запаковкой что-то не так

Input image <name>: boot.img

Rename original boot.img «boot.img» -> «boot.img.orig»

mkbootimg from boot.img.tmp/img_info.
[COLOR="Red"]tools/mkbootimg_tools/mkboot: строка 117: mkbootfs: команда не найдена[/COLOR]
kernel : zImage
ramdisk : new_ramdisk.gz
page size : 2048
kernel size : 4962288
ramdisk size : 20
base : 0x80200000
kernel offset : 0x00008000
ramdisk offset : 0x02000000
tags offset : 0x00000100
cmd line : console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 maxcpus=4
Kernel size: 4962288, new ramdisk size: 20, boot.img: 4966400.
boot.img has been created.
...

подскажите плиз что где поправить....
[Android Software Development] zameer_yus:
bro still same problem could you please tell me which version of linux i should install to make it work

or please try to install new linux on your computer and then try use this tool you will see out whats the real problem

Building make_ext4fs...

/tmp/ccpx5vYx.o: In function `ext4_parse_sb_info':

ext4_utils.c:(.text+0xb04): undefined reference to `ext4_parse_sb'

collect2: error: ld returned 1 exit status

make: *** [make_ext4fs] Error 1
[Android Software Development] zameer_yus:
finally i mount hidden.img file to delete some unwanted apps and unmount it again

but when i delete the apps and unmount the hidden.img those apps still available

watch video for explanation

http://www.youtube.com/watch?v=h2kG-mA6SyA
[Android Software Development] rogerscrack:
[MENTION=5172395]zameer_yus[/MENTION] use Krusader (with admin permissions) to delete the apps, i use krusader for delete the apps or make another modifications
[Android Software Development] A.S._id:
added:

[tool] ANDROID_IMG_REPACK_TOOLS & Odin3 ROM Editor

android-4.4.3_r1.1.0.1

android-4.4.4_r2.0.1
[Android Software Development] bovirus:
[MENTION=2967526]A.S[/MENTION]_id

Many tahnks for your tool.

Did you already update the repository?

I checked the repository and it reported lat modification 10 months ago.
[Android Software Development] A.S._id:
Yes look here

https://github.com/ASdev/android_img_repack_tools/tree/android-4.4.3_r1.1.0.1

https://github.com/ASdev/android_img_repack_tools/tree/android-4.4.4_r2.0.1
[Android Software Development] bovirus:
Can I propose to put theese direct links on first post? Can be usefull for other users.

Did you check also with Cygwin under Windows?
[Android Software Development] rogerscrack:
he already did, and I think he updated the pack.

is recommended to install any linux distro. I use ubuntu 12.10 (32-bit) without any problems. You can also test yourself if this tool runs with cygwin.

Enviado desde ARSAT-1 mediante mi Telégrafo de Baudot
[Android Software Development] rogerscrack:
there is any possibility that you install Ubuntu in your desktop / laptop? It will be easier that way.

In AS_id OP clearly says it's for Linux OS and says nothing about using Cygwin.

Regards

Enviado desde ARSAT-1 mediante mi Telégrafo de Baudot
[Android Software Development] bovirus:
Of course as I said it works under Linux (tested on Linux Ububtu 10.04 in vMWare).

Could be usefull if the user can use it also under Windows (via Cygwin).

The developper said that are not etsted under Windows/Cygwin. It's different.

Other ext4 utils can do it.
[Android Software Development] rogerscrack:
[MENTION=2976903]A.S._id[/MENTION] hello, I can overwrite files v002 img repack with 4.4.3 or 4.4.4? In the best case you could make a v3 rom editor? so is more complete. Greetings

Enviado desde ARSAT-1 mediante mi Telégrafo de Baudot
[Android Software Development] A.S._id:
yes, you can, and same you can only insert branch then build odin3 tools
[Android Software Development] bovirus:
[MENTION=2967526]A.S[/MENTION]_id

Do you know if alredy availble the utils to unpack/repack image for Android 5.0 (Lollipop)?

ANdroid 5.0 was released last week.

What do you think to point repository link (master)

https://github.com/ASdev/android_img_repack_tools/tree/master

to the most recent build (now is 4.4.4_r2.0.1) and not like now to the poldest (2.3.7)

I think that if post in the first post the link of build can help many users

https://github.com/ASdev/android_img_repack_tools/tree/android-2.3.7_r1

https://github.com/ASdev/android_img_repack_tools/tree/android-4.0.4_r2.1

https://github.com/ASdev/android_img_repack_tools/tree/android-4.2.2_r1.2

https://github.com/ASdev/android_img_repack_tools/tree/android-4.3_r3.1

https://github.com/ASdev/android_img_repack_tools/tree/android-4.4.2_r1

https://github.com/ASdev/android_img_repack_tools/tree/android-4.4.3_r1.1.0.1

https://github.com/ASdev/android_img_repack_tools/tree/android-4.4.4_r2.0.1

Thanks.
[Android Software Development] A.S._id:
OK. i'm made new branch for new sources [android-l-preview_r2]
[Android Software Development] rogerscrack:
this applies to 4.4.x to 5.0?

Enviado desde ARSAT-1 mediante mi Telégrafo de Baudot
[Android Software Development] A.S._id:
L-preview

https://android.googlesource.com/platform/system/core/+/android-l-preview_r2
[Android Software Development] rogerscrack:
[MENTION=2976903]A.S._id[/MENTION]

ok, thanks for that. I know it may take some time, but you could prepare a new editor img_repack_tool "V3" with all repositories? preferably from the v002 because with that I can work on firmwares for Note 3 Exynos.

Enviado desde ARSAT-1 mediante mi Telégrafo de Baudot
[Android Software Development] A.S._id:
may be later, but you can now simply to change binaries for working with android 5.0