[Q] Roms structure - Android Q&A, Help & Troubleshooting

Hello!
Can someone explain to me what differences are between these roms? (see attachements):
I have MT6755 device and it's stock ROM has inside a boot.img, system.new.dat, system.patch, META-INF, etc..
And then I found a device which ROM has inside just boot.img, META-INF and system folder.
What's the difference?
If I want to port a custom rom, does my device need to have in a custom rom these files(system.new.dat, system.patch...) too, or can I use a "structure" of the ROM zip with just boot.img and system?

As far as i know You just need only System,boot.img and meta-inf also data if you wish to add an app as user

sohamsen said:
As far as i know You just need only System,boot.img and meta-inf also data if you wish to add an app as user
Click to expand...
Click to collapse
So if I want to port a ROM from device that has (system.new.dat, etc..), I need only to extract system.new.dat to get system folder and just use it?

Adreno306™ said:
So if I want to port a ROM from device that has (system.new.dat, etc..), I need only to extract system.new.dat to get system folder and just use it?
Click to expand...
Click to collapse
Ya

sohamsen said:
Ya
Click to expand...
Click to collapse
Ok, I will try it.
Thank you for your answer

Adreno306™ said:
Ok, I will try it.
Thank you for your answer
Click to expand...
Click to collapse
best of luck

Related

Does Dsixda's ROM Kitchen work with Galaxy S3?

I've been wanting to try the kitchen out to see if I can try deodexing and zipaligning etc on the stock touchwiz ROM I'm running.
Do you think it would work? (despite it being discontinued)
yes it works still, works on ics & jellybean (i use it myself to deodex and zipalign)
Theshawty said:
I've been wanting to try the kitchen out to see if I can try deodexing and zipaligning etc on the stock touchwiz ROM I'm running.
Do you think it would work? (despite it being discontinued)
Click to expand...
Click to collapse
Yes dxixda kitchen works but you will need to add another file with gs3 parameters in the edify_defs folder with name m0..still the updater-script does not work . It gives me errors in the installing boot.img stage.. . Anyways you can use the kitchen to create your rom and then package your rom manually using updater-script and update-binary from some other working rom.. Then sign it..
If you or anyone finds a solution to that problem do let us know..
:thumbup:
Sent from someone in the Milky Way
zoot1 said:
but you will need to add another file with gs3 parameters in the edify_defs folder with name m0
Click to expand...
Click to collapse
Where do I find such file?
zoot1 said:
Yes dxixda kitchen works but you will need to add another file with gs3 parameters in the edify_defs folder with name m0..still the updater-script does not work . It gives me errors in the installing boot.img stage.. . Anyways you can use the kitchen to create your rom and then package your rom manually using updater-script and update-binary from some other working rom.. Then sign it..
If you or anyone finds a solution to that problem do let us know..
:thumbup:
Sent from someone in the Milky Way
Click to expand...
Click to collapse
I have a file for myself will upload it here once I reach home.. On my way back.. Hopefully you can see what is wrong.. I tried to get help from wanam also but we could not find the problem..
Edit: here you go..put the m0 file in the edify_defs folder..check if you can find any problem with it..
Sent from someone in the Milky Way
zoot1 said:
I have a file for myself will upload it here once I reach home.. On my way back.. Hopefully you can see what is wrong.. I tried to get help from wanam also but we could not find the problem..
Edit: here you go..put the m0 file in the edify_defs folder..check if you can find any problem with it..
Sent from someone in the Milky Way
Click to expand...
Click to collapse
I don't know anything about stuff like that
I'm a complete noob and just wanna try to deodex and stuff
Theshawty said:
I don't know anything about stuff like that
I'm a complete noob and just wanna try to deodex and stuff
Click to expand...
Click to collapse
Deodexing will work just fine..no probs..some times you might get an error with one or two apps..just use the option to deodex a single app and you will be good to go..
:good:
Edit:
Most important change the api level to 16 before deodexing..
just make a copy of your zipped rom, drop it into the working folder, deodex the files you want to and then pull those files out of the working folder and drop them into the original rom zip folder (minus the original odexed files)
no need to change anything, no need to drop new files in or mess with update script
as you will use your existing update script/meta inf folder blah blah blah, it means you can say yes to the mods the kitchen wants to make as you will only be taking the deodexed files from there, nothing else
(does that make sense? - im guessing you will ignore this anyway like my previous post))
Darkside Agent said:
just make a copy of your zipped rom, drop it into the working folder, deodex the files you want to and then pull those files out of the working folder and drop them into the original rom zip folder (minus the original odexed files)
no need to change anything, no need to drop new files in or mess with update script
as you will use your existing update script/meta inf folder blah blah blah, it means you can say yes to the mods the kitchen wants to make as you will only be taking the deodexed files from there, nothing else
Click to expand...
Click to collapse
Thanks, will try this.
Darkside Agent said:
(does that make sense? - im guessing you will ignore this anyway like my previous post))
Click to expand...
Click to collapse
Uh, sorry about that. I totally missed your post!
Did you get it all sorted in the end?
Darkside Agent said:
Did you get it all sorted in the end?
Click to expand...
Click to collapse
Nah, I basically said "f*ck it and deleted the whole thing.
Gonna let someone else deal with zipaligning, deodexing and all that.
Theshawty said:
Nah, I basically said "f*ck it and deleted the whole thing.
Gonna let someone else deal with zipaligning, deodexing and all that.
Click to expand...
Click to collapse
You need Patience my friend..
zoot1 said:
You need Patience my friend..
Click to expand...
Click to collapse
One of many things I lack and will probably always lack.
Sorry for dragging out an old thread but I thought I would have a go with this. I have the kitchen installed, I have put I9300XXDLI5_I9300OXADLI5_I9300XXDLI5_BTU.zip in the original_update and have the m0 file in tools/edify_defs
I then try and extract the ROM but I get an error Error: No system folder found!
How can I not even get started? I must be missing something basic here!
Kangburra said:
Sorry for dragging out an old thread but I thought I would have a go with this. I have the kitchen installed, I have put I9300XXDLI5_I9300OXADLI5_I9300XXDLI5_BTU.zip in the original_update and have the m0 file in tools/edify_defs
I then try and extract the ROM but I get an error Error: No system folder found!
How can I not even get started? I must be missing something basic here!
Click to expand...
Click to collapse
IIRC, the archive file must be a tar archive containing at least a system.img.
Sent from my GT-I9300 using Tapatalk 2
Theshawty said:
IIRC, the archive file must be a tar archive containing at least a system.img.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Kangburra said:
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Click to expand...
Click to collapse
Extract the tar file and put the system.ext4.img and boot.img in the update folder.. Then Dxixda kitchen will recognize it..
Sent from the iPoop killer ==>>>
Kangburra said:
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Click to expand...
Click to collapse
Oh yeah, I forgot, the system.img must be coverted from yaffs img to an ext4 file. I believe the utility is called ext2fs (or something like it)
Dsixda's tool should provide that program anyhow.
Well I unzipped the ROM and untarred the md5 and then it at least got me started. I am now just working out what I can do and what I need to get. Thanks for your help.
[edit]Well I built the ROM and tried both the update and updater scripts but both fail. Will go and re-read the help. [/edit]
Kangburra said:
Well I unzipped the ROM and unatarred the md5 and then it at least got me started. I am now just working out what I can do and what I need to get. Thanks for your help.
[edit]Well I built the ROM and tried both the update and updater scripts but both fail. Will go and re-read the help. [/edit]
Click to expand...
Click to collapse
Well that is the problem which I am not to work out yet.. As Dxixda kitchen does not support s3
Best way it to use meta-inf folder from other rom..
Sent from the iPoop killer ==>>>

[Q] Rom Development Issues

Hi.
I am trying to build custom rom for Galaxy Note(N7000)
I am trying to build a custom rom with base as stock rom(XXLT5)
I went through some tutorials on XDA, but they were only some basic stuff.
I had lot of questions in mind,and after searching for hours didn't get some help,so posted so maybe some one can help.
I flashed my own rom with some build.prop tweaks and changed wallpaper in framework-res.apk.
But it flashed with no problems.
1] I had lost root but I used Philz kernel(copied all stuff into respective folder)
2]I don't get about the META-INF Folder because I tried to put some s4 mods such as sec.settings.apk,s4 status bar,they also had META-INF but I didn't know what to do with it. I copied the apk of sec.settings into preload /syslink/system/app.
3]When the rom started default-wallpaper didn't changed and any mods didn't applied,so don't know what to do.
Can please any-one say what should I do,and where to put META_INF folder,because all apks aur mods has META_INF folder and will replace every time I put a mod in it.
Please Help Guys.....
please explain it more, didn't get you, what you actually want to do ?
TroubleShooter™ said:
please explain it more, didn't get you, what you actually want to do ?
Click to expand...
Click to collapse
What is use of META_INF, if want to replace some system apk,there is a meta inf folder in that too, so If I extract it in rom,so it will replace the META_INF folder in the rom.
Azharkanorwala said:
What is use of META_INF, if want to replace some system apk,there is a meta inf folder in that too, so If I extract it in rom,so it will replace the META_INF folder in the rom.
Click to expand...
Click to collapse
META-INF of .apk or zip ?
TroubleShooter™ said:
META-INF of .apk or zip ?
Click to expand...
Click to collapse
Both.

I need developer HELP

Who here is developer? i need to modify one nexus 4 for rom it's very simple what i have to modify but i still need a help i will be pleasurable if anybody offer for help me :victory:
Acfanderson said:
Who here is developer? i need to modify one nexus 4 for rom it's very simple what i have to modify but i still need a help i will be pleasurable if anybody offer for help me :victory:
Click to expand...
Click to collapse
what do you want to modify?
ricky310711 said:
what do you want to modify?
Click to expand...
Click to collapse
Is it very simple man i would like to replace launcher2.apk in the nexus 4 factory image to googlehome.apk becouse thia is TVE nexus 5 launcher. Van you help me to do this?
Acfanderson said:
Is it very simple man i would like to replace launcher2.apk in the nexus 4 factory image to googlehome.apk becouse thia is TVE nexus 5 launcher. Van you help me to do this?
Click to expand...
Click to collapse
Remove launcher2.apk and replace it with googles? i released a modpack for the s3 that includes the requirements, just pluck them from the package(i grant permission) and done
ricky310711 said:
Remove launcher2.apk and replace it with googles? i released a modpack for the s3 that includes the requirements, just pluck them from the package(i grant permission) and done
Click to expand...
Click to collapse
Yes this is what i have to do =D can you help me?
Acfanderson said:
Yes this is what i have to do =D can you help me?
Click to expand...
Click to collapse
Hahahaha why do you need help? The task is simple? Delete the launcher2.apk and grab all the apps from my modpack? Its easy!
ricky310711 said:
Hahahaha why do you need help? The task is simple? Delete the launcher2.apk and grab all the apps from my modpack? Its easy!
Click to expand...
Click to collapse
of course is simple, but i need to moodify the STOCK ROM .TGZ file (factory image) when i extract this file i have some file with .IMG extension and one of this files is System.IMG in this file haver the folder called Priv-apps and the old launcher is it there so i need to replace this apk and repack the rom to original FORM but i don't have idea for do this
Acfanderson said:
of course is simple, but i need to moodify the STOCK ROM .TGZ file (factory image) when i extract this file i have some file with .IMG extension and one of this files is System.IMG in this file haver the folder called Priv-apps and the old launcher is it there so i need to replace this apk and repack the rom to original FORM but i don't have idea for do this
Click to expand...
Click to collapse
Look up how to decompile .img files, im pretty sure you use unyaffs.exe to do it! I done it once but I dont remember how
ricky310711 said:
Look up how to decompile .img files, im pretty sure you use unyaffs.exe to do it! I done it once but I dont remember how
Click to expand...
Click to collapse
is it necessary have LINUX for use this method and my computer use WINDOWS and i can't run a virtual machine here
Acfanderson said:
is it necessary have LINUX for use this method and my computer use WINDOWS and i can't run a virtual machine here
Click to expand...
Click to collapse
No need for linux, also consider using my rom kitchen for windows, cygwin isnt needed!
ricky310711 said:
No need for linux, also consider using my rom kitchen for windows, cygwin isnt needed!
Click to expand...
Click to collapse
who will do this for me my computer is LOW and i don't have idea for do this =\ THX for try to help me =D

[Q] how to change kernel before flashing rom?

i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
FarrukhQadri said:
i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
Click to expand...
Click to collapse
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
C13v3r0n3 said:
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
Click to expand...
Click to collapse
Thanks buddy
hi
extract zimage using kitchen and rebuild with the modified zimage.
omarrana said:
extract zimage using kitchen and rebuild with the modified zimage.
Click to expand...
Click to collapse
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
FarrukhQadri said:
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
Click to expand...
Click to collapse
thanks for answering

wifi wont turn ON after update to 4.4.2 (galaxy s4 i9505)

Hello,
i recently upgraded to kitkat using following http://forum.xda-developers.com/showthread.php?t=2372286,, after this, my wi-fi wont turn ON..,, made complete wipe, re-installed 4 times using stock kernel, stock with permissions, AEL but none works,,
And also flashed non-hlos.bin modem.
Please help. Thank you.
I'm unable to reply to that thread mentioned due to forum rules.
coolvipcandy said:
Hello,
i recently upgraded to kitkat using following http://forum.xda-developers.com/showthread.php?t=2372286,, after this, my wi-fi wont turn ON..,, made complete wipe, re-installed 4 times using stock kernel, stock with permissions, AEL but none works,,
And also flashed non-hlos.bin modem.
Please help. Thank you.
I'm unable to reply to that thread mentioned due to forum rules.
Click to expand...
Click to collapse
i think your wifi modules are currupted or not working in the rom
so how to make it work now ??
copy from stock ?? or can't do that n have to install whole package ?
coolvipcandy said:
so how to make it work now ??
copy from stock ?? or can't do that n have to install whole package ?
Click to expand...
Click to collapse
if you have back up of your modules then replace with the current modules
if not work then flash the stock rom
I have a complete backup created via recovery as well as stock odin fw,, will it be the one in system>priv-app> or somewhere else ?
coolvipcandy said:
I have a complete backup created via recovery as well as stock odin fw,, will it be the one in system>priv-app> or somewhere else ?
Click to expand...
Click to collapse
you need to extract system.img file
long process
i think you should apply whole backup
system.img extracted,, whats next ?
making full backup restore will again take phone FW back to JB,, so i guess saving it as last resort.
coolvipcandy said:
system.img extracted,, whats next ?
making full backup restore will again take phone FW back to JB,, so i guess saving it as last resort.
Click to expand...
Click to collapse
replace wifi modules to system/lib/modules from your backup
Vaibhav Chauhan said:
replace wifi modules to system/lib/modules from your backup
Click to expand...
Click to collapse
Thanx for reply,, but which libs to be copied to be precise ??
there are many there !
coolvipcandy said:
Thanx for reply,, but which libs to be copied to be precise ??
there are many there !
Click to expand...
Click to collapse
in lib folder there is module folder
you must replace ath.ko and ath6kl_sdio.ko files from modules folder
Vaibhav Chauhan said:
in lib folder there is module folder
you must replace ath.ko and ath6kl_sdio.ko files from modules folder
Click to expand...
Click to collapse
No file found under that name, although i replaced other files in that folder, n rebooted device,, Negative.
Although i used a custom kernel "AEL" n this did the job for time being but still looking for solution as i do want the new kernel.
coolvipcandy said:
No file found under that name, although i replaced other files in that folder, n rebooted device,, Negative.
Although i used a custom kernel "AEL" n this did the job for time being but still looking for solution as i do want the new kernel.
Click to expand...
Click to collapse
means your rom contain no wifi modules
place that files in that folders

Categories

Resources