Hi, I'll need some details to look at the issue.
1) Which version did you download?
2) Did you build the binary from sources or used my prebuilt binary?
3) What OS did you run this command from? Also 32-bit or 64-bit?
Thank you
When I used make_ext4fs to successfully make the new system.img,and then upgrade it,when I reboot my phone,I found that the uid and gid permissions of all the files under the system were all changed to root,and have some bug in my phone,I use oero,8.1
I have a Nougat Rom, I mount and replaced only one app, them I repack using file_context from boot. and them convert with img2simg. I cant flash this img but I can flash Raw img and phone is in a loop. I have tried without making any change on the system
---------- Post added at 09:55 PM ---------- Previous post was at 09:47 PM ----------
So I have a question system.transfer.list == to system.map???
Thanks for your reply. How can I check or determine packer of my rom?
My image is in sparse. When I use simg2img it got converted ro raw and until here I can still flash the image and my phone boots.
If I mount the raw image and repack, even if I don’t make any change my phone doesn’t boot.
Could you take a look in the image Please? Maybe you can find the way to support this type. Thanks for your hard work.
Windows PE is a portable executable file. Ok I got it, so it means that we do definitely need cygwin in order to run this on WindowsI think you forgot to post the image.
What exact command(s) did you use to repack the image? Also what is the version of the ROM?
What do you mean by PE? Preinstalled environment? I have never used that. Unfortunately, there is currently no Windows support.
Note:I am sorry I can't post this in the Android development thread because my number of posts is low. Hopefully some mod can move it there.
Introduction
Since this project (Android_IMG_REPACK_TOOLS) is dead for 2 years now (last supported version is Marshmallow). I decided to do a new rom repacker that supports up to Android Oreo.
Supported OS
Linux
Supported Android Versions
android-5 (Lollipop)
android-wear-5
android-6 (Marshmallow)
android-7 (Nougat)
android-8 (Oreo)
android-9 (Pie) beta
Binaries included
append2simg
img2simg
simg2img
simg2simg
make_ext4fs (Google removed it for android 9. I will add a replacement in the future)
mkbootfs
mkbootimg
unpackbootimg (For android-wear-5, you can use the one in android-5)
sefcontext_compile
sefcontext_decompile
Usage
Check this post out for some use case. You'll need img2simg and make_ext4fs from my post.
sefcontext_compile and sefcontext_decompile:
ROMS since Android 7 (Nougat) come with a binary file_contexts but you need a text based file_contexts when you need to repackage the ROM. You'll need it for make_ext4fs. sefcontext_decompile converts the binary file_contexts into text version.
Code:# file_contexts (human readable text file) -> file_contexts.bin (PCRE formatted binary file) sefcontext_compile [-o <output_file>] <text_file> # file_contexts.bin (PCRE formatted binary file) -> file_contexts (human readable text file) sefcontext_decompile [-o <output_file>] <binary_file>
Source code
Repository
android-5
android-wear-5
android-6
android-7
android-8
android-9
Download links for Linux
Download page
android-5
android-wear-5
android-6
android-7
android-8
android-9
Change Log:
v3:
v2:
- Added android-5 and android-wear-5 support
- Added android-9 beta support
v1:
- Added sefcontext_compile and sefcontext_decompile: converts between file_contexts.bin and file_contexts
- Static linking to libc++: No need to install 3rd party libraries to use the binaries.
- Added append2simg img2simg simg2img simg2simg make_ext4fs mkbootfs mkbootimg unpackbootimg
credits:
@A.S._id
android.googlesource
LineageOS
Created: 2018-03-16
Updated: 2018-08-18
Good day to you
Installed Ubuntu 18.10
Now tell me please HOW TO PREPARE IT FOR SUSPECTING AND ASSEMBLING sysrem.img.ext4.
And even better describe the full instructions how to use the ANDROID-ROM-REPACK-TOOLS for firmware SAMSUNG for only the pre-installed Ubuntu 18.10
./simg2img system.img my_new_system.img
Where to get the updated sgs4ext4fs file for SAMSUNG system.img.ext4 firmware?
What exactly does make_ext4fs_def do differently than make_ext4fs? I can't seem to find it documented anywhere.
Also, is there anything new we need to do when building sparse images in OREO?
I've been using the same script with make_ext4fs and a decompiled file_contexts.bin from the boot image on Nougat system images with no problems, but running it on an OREO firmware causes a hang during boot. The same images flash and run fine in raw format, but there's something about the conversion to sparse that's causing problems. I was guessing it was a file contexts issue, but I've got one from the latest OREO OTA update. I've noticed that OREO has split the file contexts into separate files (plat_file_contexts, non-plat_file_contexts, etc.). Do I need to merge these into one file for make_ext4fs?
Update: Well, it seems on Project Treble firmware that you do need to merge the two file_contexts (plat_file_contexts & non-plat_file_context) for make_ext4fs. But more importantly, you need to set the label (-L) and android (-a) arguments to "vendor" or "odm", as appropriate. My script had them all as "system". (Still no idea what make_ext4fs_def does differently, though.)
I think you forgot to post the image.
What exact command(s) did you use to repack the image? Also what is the version of the ROM?
What do you mean by PE? Preinstalled environment? I have never used that. Unfortunately, there is currently no Windows support.
Thank you.
I tried differents ways but download functions aren't working. I changed cmake file to 3.6 compatibility because cygwin only is updated with cmake 3.6.
I found an updated repo for oreo, here. Now I'm going to test and tell you. Thanks.
Have you found a fix or workaround for this for cygwin?
i found a 3.10 cmake version from here but to compile you need to set USE_SYSTEM_ZLIB to OFF and USE_SYSTEM_CURL to OFF
I still cant get a successful compile of the binaries but im close
# file_contexts (human readable text file) -> file_contexts.bin (PCRE formatted binary file)
sefcontext_compile [-o <output_file>] <text_file>
# file_contexts.bin (PCRE formatted binary file) -> file_contexts (human readable text file)
sefcontext_decompile [-o <output_file>] <binary_file>
hi bro i want extract oreo system.new.dat.br and also repack dat to .br in windows
please help me bro
and im unable to convert oreo file_context.bin to readable in windows
please help thanks in advance