Need help to edit ROM for system.img - Android Q&A, Help & Troubleshooting

Greetings ,
I need help to edit rom for Samsung devices , Since after Lollipop there are 4 separate files for flashing. I want to extract and edit system.img file then add my own created app.apk into system/app and rebuilt the system.img.
after creating system.img can I use just a simple tar utility to build .tar file
I.E : tar -cf mycustombuild.tar system.img boot.img recovery.img userdata.img
All I need a unpack / repacker for that kind of roms , Looking forward to your kind response.
Regards
Net_Spy

Net_Spy said:
Greetings, I need help to edit rom for Samsung devices , Since after Lollipop there are 4 separate files for flashing. I want to extract and edit system.img file then add my own created app.apk into system/app and rebuilt the system.img...
Click to expand...
Click to collapse
The following thread may be helpful for what you are looking to do and don't be afraid to ask for some member guidance too.
https://forum.xda-developers.com/showthread.php?t=3616040
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

thank you so much , Ive tried that but I stuck in 28 or 32 bit, since now most of mobile using 64bit arm processor. any idea how to deal with that armv7 or armv8;
Regards

Try this..
https://forum.xda-developers.com/showthread.php?t=3601702
Sent from my N9515 using Tapatalk

Related

[Q] What after zimage??

Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
@[email protected] said:
Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
Click to expand...
Click to collapse
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
shimp208 said:
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
Click to expand...
Click to collapse
thanks buddy for your precious reply........

[Q] Need help on editing boot.img

I want to port lewa os. but i don't know what to edit on my boot.img
what to copy from my stock rom?
i know how to compress and decompress boot.img
thanks in advance.
Upp
please those who have successfully ported lewa on their device.
what did you do on your boot.img.
zeekforit said:
please those who have successfully ported lewa on their device.
what did you do on your boot.img.
Click to expand...
Click to collapse
if u take ur time an didt a search u will find info about that
thanks
thanks for your reply. just wanna know what is ramdisk files? is it the folder or the other file which is like a compressed file inside the boot.img

Unpack G850FXXU2ANHD_G850FOXX2ANH7_G850FXXU1ANHD_HOME.tar

Hi can someone help me to unpack
G850FXXU2ANHD_G850FOXX2ANH7_G850FXXU1ANHD_HOME.tar
i got problems to extract system.img
i tried to unpack with ext4_unpacker_exe
but unknown file error
It is not working I did try it also, and I think nobody because otherwise there was already someone that put a Rom here
dack23 said:
Hi can someone help me to unpack
G850FXXU2ANHD_G850FOXX2ANH7_G850FXXU1ANHD_HOME.tar
i got problems to extract system.img
i tried to unpack with ext4_unpacker_exe
but unknown file error
Click to expand...
Click to collapse
Maybe "Total Commander" does the trick? There is a free Demo Version available. TC helped me out a lot of times when nothing else worked...
First you need to run s2img (not sure about the name) it is part of the CM tree. After that you can mount it as a loopback device.
out/host/linux-x86/bin/simg2img system.img system.img.raw
mount -o loop system.img.raw /mnt
already done from beginning first Rom was out....
use Android Kitchen
Can anybody port a system dump then?
dajumper said:
Can anybody port a system dump then?
Click to expand...
Click to collapse
it will be easy to dl kitchen and do it, i have to build rom and upload it... not easy as i'm not a developer....
i have only deodexed stock rom to test apps on S4
_alex74_ said:
it will be easy to dl kitchen and do it, i have to build rom and upload it... not easy as i'm not a developer....
i have only deodexed stock rom to test apps on S4
Click to expand...
Click to collapse
Can you post the deodexed Alpha ROM?
Can someone send files from g850F - boot.img , recovery.img ,build.prop to this site ,
one m8 acepted to make recovery to us,be fast please
Could someone with a the phone please post /proc/mtd. My phone didn't arrive yet.
modpunk said:
Could someone with a the phone please post /proc/mtd. My phone didn't arrive yet.
Click to expand...
Click to collapse
post deleted, moved to correct thread.

can anyone resign this update please

hi guys after a little help please
have a original update file which I have modified the boot animation on am struggling to resign it so it installs could someone have a look for me
file name need to be
F-Cluster_Update_1.1.0.0.a(NotNavi)_full
this is for a excavator cluster that runs android
links for files below
original
https://mega.nz/#!fsh2wQBR!VnE-Q9oYjQR7UtJfqHGpZQ6Z8bkjXcONnps3KEbUpG0
modified
https://mega.nz/#!exh0BYoA!IbfQWA8PBKcOSJI8jmBOfWNsMYArh-_ZoEdIgDI5HhM
thanks in advance guys
shaggy296 said:
hi guys after a little help please
have a original update file which I have modified the boot animation on am struggling to resign it so it installs could someone have a look for me
file name need to be
F-Cluster_Update_1.1.0.0.a(NotNavi)_full
this is for a excavator cluster that runs android
links for files below
original
https://mega.nz/#!fsh2wQBR!VnE-Q9oYjQR7UtJfqHGpZQ6Z8bkjXcONnps3KEbUpG0
modified
https://mega.nz/#!exh0BYoA!IbfQWA8PBKcOSJI8jmBOfWNsMYArh-_ZoEdIgDI5HhM
thanks in advance guys
Click to expand...
Click to collapse
Do you have a flashable zip that works on your device? If you do, you can use the META-INF folder from that.
Sent from my Sony Xperia Z3 Compact using XDA Labs

[Q] How to pack System.new.dat from Android N rom ?

Hi guys,
In new Nougat roms there isn't the file_context file needed to repack system.new.dat file. Now there is the "file_context.bin" file but i cannot find any tools that works with this new file format.
So how i can repack the nougat system.new.dat ?!
Yeah please any dev, reply quick
Also i wonder how cyanogen and other tems pack their rom. I hope devs can provide a tool for that.
yattodettaman said:
Hi guys,
In new Nougat roms there isn't the file_context file needed to repack system.new.dat file. Now there is the "file_context.bin" file but i cannot find any tools that works with this new file format.
So how i can repack the nougat system.new.dat ?!
Click to expand...
Click to collapse
Go to these thread. Use these tool to unpack and repack system.new.dat and .IMG files.
http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
yattodettaman said:
Hi guys,
In new Nougat roms there isn't the file_context file needed to repack system.new.dat file. Now there is the "file_context.bin" file but i cannot find any tools that works with this new file format.
So how i can repack the nougat system.new.dat ?!
Click to expand...
Click to collapse
Did u figured a way out?
I need help the tool above does not work
that tool works Till Android 7 i guess

Categories

Resources