Acceder

Ver la Versión Completa : Crear tu ROM (English)


xuban
23/08/11, 15:24:48
Hilo original: http://forum.xda-developers.com/showthread.php?t=1199896

This is how I made ROM, I'll try to write the steps as simple as I can. For advanced users only!

Update 22/08/11:
Revised packaging steps.

Update 13/08/11:
Removed unwanted method for ROM cooking.

Update 04/08/11:
Modified extract and repack ROM guide and added extracting system.rfs guide.

Things you need:


Base firmware
Archiver software (7zip recommended)
Any Linux environment to build ROM or Cygwin
APK Manager (http://forum.xda-developers.com/showthread.php?t=695701) to optimize and decompile *.apk files
MagicISO (http://magiciso.com/) (Optional) if you want to extract system.rfs
And the last thing is... You need enough experience in android world http://media.xda-developers.com/images/smilies/wink.gif


So, here is the steps to cook a ROM:

Flash your phone with your desired base firmware
Make required modifications
Pull system.rfs from your phone by running this command on adb shell or Terminal Emulator:
Code:
dd if=/dev/stl12 of=/sdcard/system.rfs
Extract any *.tar.md5 files from your base firmware to your working folder with 7zip
Replace the current system.rfs with your modified one
EDIT: Pack your ROM by running this code via terminal or just pack it with 7zip/WinRAR as *.tar
Code:
tar -H ustar -c * >> ROMNAME.tar
change ROMNAME to your desired, well, ROM name.


Here is (yet) useful guide to modify your ROM.

Extract system files on system.rfs to make modding easier:

Extract PDA file (*.tar.md5) files with 7zip
Open system.rfs with MagicISO
To extract it, just drag and drop


NOTE: Never edit your ROM with MagicISO because the file permissions will be ignored, use MagicISO only for extracting files from system.rfs

Deodex, and Zipalign (optimize) your ROM apk files:

Ready to use deodex + root for KPN: http://forum.xda-developers.com/show....php?t=1196230 (http://forum.xda-developers.com/showthread.php?t=1196230)
Ready to use deodex + root for KPH and other firmware: http://forum.xda-developers.com/show....php?t=1118048 (http://forum.xda-developers.com/showthread.php?t=1118048)
Open APK Manager
To zipalign your apk files, in apk manager folder /place-apk-here-to-batch-optimize put your:
framework-res.apk, twframework-res.apk and all system apk
but not these:
AxT9IME, Calculator, Camera, Email, MMS, Phone, Screen Capture, Settings, Swype, Thinkdroid, Voice search
Choose Choose option 15
Then choose both (zp)
Let it run and done.
Now put back the apk files where they belong in the ROM.
How to put these apk files to my ROM? Copy these files to appropriate locations, such as /system/app to your ROM's /system/app, and etc.


Another handy modification guide:

Unpack and repack boot.img - http://forum.xda-developers.com/show....php?t=1173427 (http://forum.xda-developers.com/showthread.php?t=1173427)
Convert firmware filesystem to ext4 - http://forum.xda-developers.com/show....php?t=1202049 (http://forum.xda-developers.com/showthread.php?t=1202049)
Overscroll glow for any firmware - http://forum.xda-developers.com/show...php?t=1215933" (http://forum.xda-developers.com/showthread.php?t=1215933%22)


Give thanks to all dev who made that possible! http://media.xda-developers.com/images/smilies/biggrin.gif

If you have more guides to put here, please PM me.

pohlaco
23/08/11, 19:24:12
Alguna posibilidad de que la pases a espaņol?? soy muy malo para el ingles jajaja

xuban
23/08/11, 19:56:13
Luego en un rato que ahora voy a andar liado ;)

origis94
24/08/11, 00:07:27
xuban En un rato mas lo pruebo pero tengo una duda
No puedes publicar un tuto pero para hacer una rom .zip??
Saludos :ok:
Origis out