Help with creating a custom rom[modifying system.img etc] - Android Q&A, Help & Troubleshooting

Hello there,
I am new here and I would like to modify system.img for my phone which is XIAOMI MI A2
i can't really find any way to do that,some posts are too old,and others I understand nothing:silly:
First of all I would like to know if there is any tool available for modifying .img files
I would also appreciate if you guys could explain me how that works,I mean I just unpack and repack the image file and done,I can just flash it with TWRP?
:fingers-crossed::fingers-crossed::fingers-crossed:
Thanks in advance ?

Related

LENOVO P780 modify or build custom Flash rom

Hi all. I want to open this post for those who want to modify or make a wonderful ROM for this wonderfull Lenovo P780 phone. Let me be excused for my not so good English language.
Let's cut to the chase: I want to create or modify a ROM specifically composed of all archives in this picture.
As you can see there are more archives to modify ... lets say .. Of course all these shall be modified inside in linux or windows environement. I have them both.
The first archive boot.img. With what opens what shall be modified inside and with what tools?
EBR1 and EBR2 if tabs can someone post modified partitions from from 1 to 2 to 2.5 and to 3 GB. Or maybe post a tutorial better than those found here in the forum.
Logo.bin how to remove and add your own custom image inside.
Recovery.img how to add updated TWRP or CWM directly.
System.img how to edit this file without damaging something inside and not start the phone after flash.
What system.img is better odexed or deodexed img, and why?
I do not want a zip file to update from recovery, i vant this kind of rom witch can be flashed with FlashTools.
If you want to help us, all of you who are good at this things, we who dont know all of this things, thanks you very very much for teaching us.
Iff you like this post pushing Thanks button will be mutch appreciated .
Hi
i'm with you i need to know how to cook a custum rom
every one have thought which can make a good rom..
stympy said:
Hi all. I want to open this post for those who want to modify or make a wonderful ROM for this wonderfull Lenovo P780 phone. Let me be excused for my not so good English language.
Let's cut to the chase: I want to create or modify a ROM specifically composed of all archives in this picture.
As you can see there are more archives to modify ... lets say .. Of course all these shall be modified inside in linux or windows environement. I have them both.
The first archive boot.img. With what opens what shall be modified inside and with what tools?
EBR1 and EBR2 if tabs can someone post modified partitions from from 1 to 2 to 2.5 and to 3 GB. Or maybe post a tutorial better than those found here in the forum.
Logo.bin how to remove and add your own custom image inside.
Recovery.img how to add updated TWRP or CWM directly.
System.img how to edit this file without damaging something inside and not start the phone after flash.
What system.img is better odexed or deodexed img, and why?
I do not want a zip file to update from recovery, i vant this kind of rom witch can be flashed with FlashTools.
If you want to help us, all of you who are good at this things, we who dont know all of this things, thanks you very very much for teaching us.
Click to expand...
Click to collapse
check This thread Beginners
Guide to Android ROM Development
http://forum.xda-developers.com/showthread.php?t=1272270
I saw that post. Thank you. I already have Android Kitchen. As far as I'm concerned I'm looking to make a ROM like the one in picture, or change some things inside. I am looking how to unpack an image or bin, to delete or add applications, to change boot picture, or logos, to odex or deodex apps in system.img, to modify partitions, etc etc.
For repartition mod you can check my guide here :
http://forum.xda-developers.com/showthread.php?t=2602089
It's for Oppo R819, same MediaTek 6589 chip like P780. I own both Oppo R819 and Lenovo P780.
My mod is derived from P780 - 4GB edition repartition mod by Xakep from lenovo-forums.ru. Xakep's mod only modified EBR1, my mod modified both EBR1 and EBR2.
In my guide above you could see how to edit EBR files, which segment to edit and how to change the partition size value and also a bit info on how to modify Aroma Installer used in CWM / TWRP.
Xakep's mod only works for 4 GB though, I guess because he only modified EBR1 and left EBR2 untouched.
Sent from my R819 using Tapatalk
distan7 said:
For repartition mod you can check my guide here :
http://forum.xda-developers.com/showthread.php?t=2602089
It's for Oppo R819, same MediaTek 6589 chip like P780. I own both Oppo R819 and Lenovo P780.
My mod is derived from P780 - 4GB edition repartition mod by Xakep from lenovo-forums.ru. Xakep's mod only modified EBR1, my mod modified both EBR1 and EBR2.
In my guide above you could see how to edit EBR files, which segment to edit and how to change the partition size value and also a bit info on how to modify Aroma Installer used in CWM / TWRP.
Xakep's mod only works for 4 GB though, I guess because he only modified EBR1 and left EBR2 untouched.
Sent from my R819 using Tapatalk
Click to expand...
Click to collapse
Hi. Thank you for the answer. I would like to know one thing: iff i extract 2gb EBR files from your file and put them in my custom ROM, who looks like in the picture, do you think it will work ? or should i use your program ?
stympy said:
Hi. Thank you for the answer. I would like to know one thing: iff i extract 2gb EBR files from your file and put them in my custom ROM, who looks like in the picture, do you think it will work ? or should i use your program ?
Click to expand...
Click to collapse
Only use EBR1 and EBR2 from your official ROM, not from other phones even using similar chipset since partition layout could be different.
Try to find official P780 ROM in Flash Tool Format. It doesn't matter which ROM version -- S112, S116, or even S123 as long as it has EBR1 and EBR2. And don't mix 4GB with 8GB files.
Sent from my R819 using Tapatalk
distan7 said:
Only use EBR1 and EBR2 from your official ROM, not from other phones even using similar chipset since partition layout could be different.
Try to find official P780 ROM in Flash Tool Format. It doesn't matter which ROM version -- S112, S116, or even S123 as long as it has EBR1 and EBR2. And don't mix 4GB with 8GB files.
Sent from my R819 using Tapatalk
Click to expand...
Click to collapse
OK. Ill try to edit my EBR files. I do not really know how to edit this file but I will try. If not too much trouble you can help me edit my two EBR1 and EBR2 file for partitions look like this? The first partition to be 3 GB and the second to be 500 MB.
The photo is from another phone. It is better to be bigger the partition where applications are installed..
Here are the EBR files extracted from P780_ROW_S123_131231 ROM
stympy said:
OK. Ill try to edit my EBR files. I do not really know how to edit this file but I will try. If not too much trouble you can help me edit my two EBR1 and EBR2 file for partitions look like this? The first partition to be 3 GB and the second to be 500 MB.
The photo is from another phone. It is better to be bigger the partition where applications are installed..
Here are the EBR files extracted from P780_ROW_S123_131231 ROM
Click to expand...
Click to collapse
Well, you're using Lenovo P780 - 4 GB version right ? Then I see no reason to reinvent the wheel. Such repartition mod is exist already, Xakep already made it. Check this thread here :
[P780][4GB][Mod][Root]Repartition Storage
You can use HxD to edit EBR files (or any files)
Hi all. Here are my EBR files. Please tell me what is to be modified so i can have the partitioning like in that picture.
Hi,
Can i use some language pack from other P780 ROM and how to add it?
Thanks
I'm going to move this into the General sub-forum for now, but if you guys get somewhere with this and have something you want to release then let me know. It may require a new thread by that point, but either way we can cross that bridge when we come to it
Archer said:
I'm going to move this into the General sub-forum for now, but if you guys get somewhere with this and have something you want to release then let me know. It may require a new thread by that point, but either way we can cross that bridge when we come to it
Click to expand...
Click to collapse
Ok. We wil continue our work here.
PreRoot ROM
Hi all again.
First: I would like to preroot original Lenovo P780 ROM. I was looking on the forum and found nothing to show me step by step how to doit. Please can someone show me or us how to preroot original firmware, step by step, or what tools to use ?
Second: Who can show me how to change recovery.img to replace the original recovery. A tutorial would be great. Thank you. Thank you.

[Q] Need some help with modifing kernel

Hello,
I'm not sure if this is just a dumb noob question or not,
but if i unpack my boot.img file from my moto g, using android kitchen (cygwin) and if i repack it again, without modifying anything, the size of my kernel goes from 10MB to 6MB, and the created boot.img can't be used anymore.
Does anybody have an idea what i do wrong? I need this to port a kernel (replace bootclasspath)
Thank you in advance!

[Q] [QUESTION] Cooking for MTK6592?

Hi, I've cooked a rom for android, but never for mtk. I write because I have several dududas / problems when you create a custom rom for Elephone P8 is MTK6592.
Esque theme I followed several tutorials to create a. Flashable zip from the oringinal rom, but all I have created or give error md5 or installed but when I restart the mobile is as estava.
I came to think that after unpacking the system.img and work it, package it and flash back from sp flash tools, but I find tutorials for repacking the system.img
I wanted to know what the best way to cook for this mobile.
Already, thanks in advance
Up?
Enviado desde un Cigarrillo Electrónico
nadie sabe?

[Q] [need help] how i can repack update.app huawei rom after edit?

hi to all
i have an update.app for huawei y625-u32 that i extracted it and edit and now i want to repack it to update.app for original flashing but after compress files with win-rar and rename it to original name while flashing say signature error and dont write to phone .
any one have any idea or solution for this problem?
excuse me for bad English and thanks for replying.
hi guys
i searched in world forums but not found any information about this.(repack huawei update.app rom)
now my question is this that really no any way to repack edited update.app files?
thanks

Lollipop logo.img edited?

Hi guys,
I have extracted a logo.img file from a lollipop ROM and I'd like to change some of the images if possible. I've been hunting around but can't find any tools or information to help.
Does anyone know how this can be done?

Categories

Resources