Post: [HOW TO] Beginners Guide to Android ROM Development
05-19-2013, 08:20 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});

Who is this tutorial for?

  • Absolute Beginners like me You must login or register to view this content.
  • People with little or no programming skills


This is a very basic tutorial!!

Step one: Setting up the Android kitchen
First you will need to set up You must login or register to view this content.
(All credit for the kitchen to dsixda's)


Go to dsixda's thread for a list of supported devices.
Here is a summary of the installation process
( I recommend you read the tread first)


1. Before you do anything install the java jdk(find it in dsixda's thread)
2. Download and extract the cygwin_packages.zip provided by dsixda on You must login or register to view this content.
3. Run the set up(make sure there is no previous cygwin installation)
4. Follow the kitchen read me txt!!!
5) local package directory *must* be the path to the cygwin_packages folder that you just extracted
You must login or register to view this content.
6) when it shows all the package names, go to the top and select "all <-> default" until it changes to "all <-> install" (you must click on the arrows)
You must login or register to view this content.
7. Run the cygwin at least once and close, now you will see a folder inside the cygwin installation like this: Home\your user name\

8. Download the kitchen and extract to the home\your user name\
9. Rename the dsixda-android-kitchen-*** folder to just "kitchen"
10. Now your ready to run the kitchen type:
Code:

cd kitchen(enter)./menu(enter)

You must login or register to view this content.
11. If you did things right you should see this:
You must login or register to view this content.
congratulations!!

Step Two: Setting up a working folder

1. First our folder structure should look like this:
Code:

cygwin folder/home/your user name/kitchen

2. Inside the kitchen it should look like this:
You must login or register to view this content.
3. Now we need a rom to work on, for this tutorial i will use my own rom but you can use any hd2 rom. Place the original rom zip in theoriginal_update folder inside the kitchen.
4.run the cygwin.exe again type:
Code:

cd kitchen(enter)./menu(enter)

5.now enter option 1, enter again. You should see your rom listed, choose and enter
6.you will be asked about changing the working folders name, at this point it makes no difference so just continue.
7.you will be asked to convert to update-scrip do it and continue
8. Now you can view the roms info
9. congratulations you have a working folder!!!
You must login or register to view this content.

Step Three :change/modify/update!


First I will be covering basic changes you can make to your rom, later I will be adding more helpful hints.






Adding new boot animation
1. Just replace the bootanimation.zip located in "workingfolder/system/media" with the boot animation of your choice.
You must login or register to view this content. is a sample of my bootanimation to try.
You must login or register to view this content.

Edit the gps script for your country/location
1. In the workingfolder/system/etc/ you will find a file named gps.conf, you can
edit this file with You must login or register to view this content. or even word.
2. using the right gps script in this file can speed up gps lock, you can
find some from You must login or register to view this content., download extract and replace the gps.conf.
You must login or register to view this content.


Changing the default wallpaper
1. Be very careful doing this, do not edit,delete or modify an apk without knowing what it is or does.not all things are as simple as copy and paste.
2. go to the workingfolder/system/framework/
3. Install You must login or register to view this content. and open the framework-res.apk
4. With in the framework-res.apk with 7zip go to "res/drawable-hdpi/" and look for the default_wallpaper.jpg. You can extract modify and replace with new one.
5. Make sure its the same file format and image dimensions.(in some roms you can also modify the default_lock_wallpaper.jpg)
You must login or register to view this content.

MMS Fix for T-mobile
1. *I Have only tested this on MIUI Roms*
2. Go to "workingfolder/system/app"
3. Find MMS.apk
4. Right click and open with You must login or register to view this content.
You must login or register to view this content.
5.Inside mms.apk go to "rex/xml/"
6.replace the "mms_config.xml" with this "You must login or register to view this content."
You must login or register to view this content.


modifying build.prop

"build.prop" is a file that contains various system-vital "parameters"
Some can be modified with little risk, some can cause havoc. So Please do this Carefully!!!!!!


1. Locate the file "workingfolder/system/"
2. Open with You must login or register to view this content.
You must login or register to view this content.

There is several simple changes that can be done, I will start with some and add more later.


LCD Density
1. If you dont know anything about this topic You must login or register to view this content. is some info to get started
2.Locate this line inside the build.prop "ro.sf.lcd_density=240"
You must login or register to view this content.
3.The only value you will modify is the "240" to your preference.
You must login or register to view this content.

Difference is simple and visible!







-there are several other options provided by You must login or register to view this content. for that I recomend you go to the tread and read


Step Four: repackage the rom


Now that you have made some changes it's time to test!!
1. Run the kitchen and enter option 99 - "biuld rom from working folder"
2. Choose mgldr or clk
3. I recommend that you go with all default options until you get more experience with the kitchen.
4. When its all done you will find a folder inside "cygwin/home/yousername/kitchen" called output_zip
5. Inside the folder is your new rom ready to be flashed and tested!!!
You must login or register to view this content.


UPDATER-SCRIPT



I had a couple of request on how to get custom txt during the ROM installation in CWM,
the updater-script basically tells CWM what steps to take during the installation(flashing rom).
If you don't have any experience please don't edit anything other than what is in this simple tutorial.

1.First once you have your Rom ready in .zip format, Open with You must login or register to view this content.
2.Go to META-INF/com/google/android
3.Extract the updater-scrip file
4.Open with You must login or register to view this content.
5.Any text that would appear during the CWM install should be in this format :
Code:

ui_print("Put your text in HERE");


You must login or register to view this content.






congratulations!!

There is allot more that I did not cover, didn't even scratch the surface.
This was not intended for porting roms or any mayor scripting, this wont help you
with writing drivers, kernels, libs etc. Just tried to make it as simple as possible for
beginners like me, so we can understand the amount of work devs go through.
Please! please! before you release any Rom, test and test again!!!!!!

The following user thanked DoT eXe for this useful post:

ImAzazel
08-04-2013, 09:39 PM #2
ResistTheSun
In Flames Much?
Nice tut Smile
Would like to see some more and if you have any sources please add.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo