ROM Development: Which is where - XDA-University

Hello Everybody
I want to make a Custom ROM from three ROM's.
1) The most folder in /System I know, but the bin and the etc, I don't know.
2) I mix the files from a stock based and a cm based ROM. Which folder determine if the ROM ist cm or stock based?
3) How I can open the files in the bin and the framework folder?
Regards heubergen1

heubergen said:
Hello Everybody
I want to make a Custom ROM from three ROM's.
1) The most folder in /System I know, but the bin and the etc, I don't know.
2) I mix the files from a stock based and a cm based ROM. Which folder determine if the ROM ist cm or stock based?
3) How I can open the files in the bin and the framework folder?
Regards heubergen1
Click to expand...
Click to collapse
1. /bin and /etc are located in the /system subdirectories on most roms.
2. Not sure what you are doing here. With the exception of "some" files, most CM files cannot be mixed together.
3. You must decompile the files in the framework folder. Like framework-res.apk, services.jar, android.policy.jar before you can edit the xml files. You need to get apktool to do this.
MD

Thanks for your Answer.
1) I mean, what is there? What lose Android when I delete it? (e.g: In the system/lib folder are files there use many Apps and for the Performence and a clearly Code that will outsource.
2) I extract the ZIP for X-Gamer, CM7.2 and the Smart Xperia ROM. Then I take e.g. the Bluetooth files from CM, the charging driver from X-Gamer and the libary for share from the Smart Xperia ROM. Which files I must take from the same source? I hope it's no understandable.

Do NOT delete etc and bin folders
You can read the 'Introductionary Zip tweaking' guide in XDA-U.I have given a brief description about them there which you might found to be useful
printf("random signature because I have got nothing else in my mind right now");

Thanks for your answer.
Have somebody one for my second Question?

Related

How to get the original camera.apk back?

I'm modifiying my own rom, and tring to find a way to recover the HTC camera to the stock one.
I did the following step but failed:
1. delete the /system/app/camera.apk and HTCAlbum.apk
2. paste the original camera.apk to /system/app
3. repack the rom and flash
But nothing happened, even there is no camera icon in the menu.
How should I get the stock one back? There is some bug with the HTC camera...
You can just push it. If you change it within the ROM and flash you must resign it.
alritewhadeva said:
You can just push it. If you change it within the ROM and flash you must resign it.
Click to expand...
Click to collapse
Is there any way to resign it? I want to cook my own rom instead of pushing it every time.
zhouzian said:
Is there any way to resign it? I want to cook my own rom instead of pushing it every time.
Click to expand...
Click to collapse
What OS are you using? Windows or Linux
alritewhadeva said:
What OS are you using? Windows or Linux
Click to expand...
Click to collapse
I'm on Windows...
Now I have find the way to resign the package. But I find there is a odex file following the same name apk file. Should I copy the odex file along with the apk file into the app directory?
My rom does not contain any odex file while another rom have many of them. Could any one tell me why?
zhouzian said:
I'm on Windows...
Now I have find the way to resign the package. But I find there is a odex file following the same name apk file. Should I copy the odex file along with the apk file into the app directory?
My rom does not contain any odex file while another rom have many of them. Could any one tell me why?
Click to expand...
Click to collapse
Odex optimization is just optimization. Copy the .odex file along with the .apk if its available.
The HTC camera has a bug that if you half-push the camera button, it will not only focus but also take a photo, not like the original one does.
I have done the following and both of them failed,
1. copy the camera.apk from JF 1.5, resigned the rom, and flash... There is no icon appearing in the menu
2. copy the camera.apk and odex file from ION build, resign and flash... The phone can not start up at all. It freeze at ANDROID logo.
I'm wondering if I have done in the wrong way... Could you offer some help?
Thanks in advance.
try to get the camera from the crc1 build
The problem is where to get...
All the other builds from CRC1 contain the odex file, which will broke the startup process.
could anyone send me the camera.apk and libcamera.so from CRC1?
just mail me: [email protected]
get it here http://forum.xda-developers.com/showthread.php?t=538456 donwload one of those ROMS
NO...it doesn't work. There is an odex file coming alone with the apk file. If I copy the apk and odex files into the CM rom, it will fail to startup. Seems CM rom can only accept standalone apk file.

I Need Helping Making A Custom update.zip

So I guess my question is, "Can anyone help me?"
I used custom ringtones, and I don't like using them from the SD card, it creates lag, takes longer to load the ringtone, etc, so I keep them on my /system/media folder. Normally to accomplish this, when I install a new ROM update, I edit it and resign it, with my media folder, rather than the ROM's.
My predicament however, is that I don't know how to change the file structure for the update, I know there are files in the update that say, this and this folder exist, where this goes, etc. This is what I don't know how to do.
All I need the update to do is contain the media (/system/media) folder, so I can just add all my ringtones and notifications to this update, and flash it after I flash whatever update/rom, etc, instead of always having to be at my computer to create a custom version of every rom I use.
Could anyone please care to help? I'd be ever grateful.
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
ID# said:
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
Click to expand...
Click to collapse
is this just to be used for signing? i already know how to sign files. i need someone to edit w/e files are inside the rom that tell its structure (this folder exists, and gets flashed here, this folder goes here, etc). i cant just take a cm rom and delete everything i dont need then flash it. it will get errors in recovery.
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
cloverdale said:
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
Click to expand...
Click to collapse
Thanks man, but my buddy actually just helped me out with this, but yeah thats exactly what I needed to know. Thanks a ton mate

[Q] Integrating a language with a ROM .zip?

Hi,
I have a ROM, for example Enomther's. and I also have the arabic language libs. how can I integrate the arabic libs into the ROM's zip file so I don't have to flash another zip for arabic libs? I have attached the arabic libs.
Bump! anyone?
Come on, what kind of answer do you expect?
Here's the answer: you need to substitute the files in the original ROM zip and resign it - that's it.
Now you're going to ask, how to do it, because you have no clue - and the explanation is a lot of work to try and put in one post, and setting up signing applications involves installing Java SDK and some knowledge. If you're asking the question you're asking - it seems like you're far from being skilled enough in Android depths to do what you're asking to do, and that's why you see no answer. After all, if you'd want to do it - you'd have to search anyway, Google "sign apk zip" and here you go, a lot of tutorials show up. And if you didn't search and posted instead - it speaks for itself.
By the way, there's no good reason to integrate the libs into a standard ROM, moreover - it's a bad idea. ROMs tend to be updated, and the work that needs to be done setting up the environment for signing APKs and ZIPs is way more than flashing one update right after updating the ROM to a newer version. And ROMs are updated quite often.
Yeah i'm not skilled. I'm trying to learn... I am trying to make my own customized ROM for my country's users. And I didn't mean editing ROM files, I was saying how to push the lib into the ROM zip so people don't have to flash the arabic zip lib when they flash my customized ROM. So I hope you haven't missunderstood my question...
Ah, I see, you want to customize and share the ROM. In that case, you have to have the setup I'm talking about. The update.zip contains folders and files, which directly replace the files in the same folders in ROM, so if you have a ROM zip - you need to replace those files. The easiest way would be just extracting your update.zip, opening a ROM zip in 7zip / WinZip / WinRar / etc, putting those extracted files from update.zip in the right place into ROM zip by drag-and-drop, and then resigning the ROM file.
Please do some googling as to how to sign ZIP and APK files. There are some pretty good tutorials.
I have done that before, and I replaced the lib file with the ROM default lib. it's libskia.so, but I think because I didn't know I have to sign it it gave me an error while flashing through recovery. so after I replace the lib I have to re-compress the file and then sign the zip right?
You don't have to re-compress if you replace the file without decompressing the original ROM archive, by dragging-and-dropping the file into the archive.
And yes, you have to re-sign the ZIP after any changes you make to anything inside it.

[Q] Where are system files required for UOT Kitchen located and how to extract them?

Hello guys.
Could anyone could be so kind and tell me where I can find and how to extract required files (framework-res.apk, systemUI.apk and twframework-res.apk) to upload them in OUT Kitchen to cook my own status bar?
P.S. Used to use the option to choose from ROM list for my old HTC DHD but now there is not any of SGN ROMs listed. Or have I missed anything?
Thanks in advance!
The files are in the /system/framework/ and /system/app/ folder of your internal SD card, as far as I can see. You need something like Root Explorer to extract them from the running ROM.
derhannes1983 said:
The files are in the /system/framework/ and /system/app/ folder of your internal SD card, as far as I can see. You need something like Root Explorer to extract them from the running ROM.
Click to expand...
Click to collapse
Thank you. I cooked my own status bar using these files but it is not working. Status bar has disappeared
It looks like custom ROMs have probable different files from the originals. I have taken these files from stock XXKK9, cooked my own and installed on AntoniomistrettA XXK9 Lite v.2.
So I should probably take same files but from custom ROM and cook using them instead of stock ROM´s files, right?
Yes, you need the data from your recent Rom, not from the stock Rom.

[Q] Rom Development Help

Hi.
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.
4]Will this work if I unzipped from md5 file(stock rom) and then Linux reader I extracted all files and modify it?
because in tutorials the mention to extract from rom using terminal emulator
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.....:crying:

Categories

Resources