[Q] How to begin developing android ROM - Android Q&A, Help & Troubleshooting

I am new in XDA developer forum. I knew java and android at the immediate level. Now I'm interested in creating my own Android smartphone ROM. After searching in google, I see that there are a thing which is called "Default ROM" released by google. Base on this ROM, different companies created different ROM in their own style such as Sense, Motoblur, TouchWiz, etc.
So where could I download such a default ROM, and how could I begin with ROM developer. It is kind from my if anybody could give me a tutorial.
(Sorry if the question is exist in the forum, because I could not find it)
Thanks a lot.
Best regards,

me too, i have the same question, can someone help? thx

Your best bet is to have a look at compiling the aosp from source which you will need a Linux os for. The android sdk is a good place to start.

zelendel said:
Your best bet is to have a look at compiling the aosp from source which you will need a Linux os for. The android sdk is a good place to start.
Click to expand...
Click to collapse
Also are there no different way but Linux OS?
I still have the Android SDK, but do not know how to begin to custom a ROM via code.
Regards,

detno29 said:
Also are there no different way but Linux OS?
I still have the Android SDK, but do not know how to begin to custom a ROM via code.
Regards,
Click to expand...
Click to collapse
Yes to build android from Google's source you will have to have a Linux os. Either stand alone Linux or a version like ubuntu

zelendel said:
Yes to build android from Google's source you will have to have a Linux os. Either stand alone Linux or a version like ubuntu
Click to expand...
Click to collapse
In your experience, which linux os should i used. I m also a bit confuse because i did not have to much experience with linux...

detno29 said:
In your experience, which linux os should i used. I m also a bit confuse because i did not have to much experience with linux...
Click to expand...
Click to collapse
Me too, trying to learn. Just installed dual boot Ubuntu 10.1 to my comp and trying to figure it out. Big change coming from win7. Ubuntu 11 I couldn't figure out
Sent from my Desire HD using xda premium

One place you can start by checking and has a lot of good info is http://freeyourandroid.com/
I learned how to port from them although I still need to ask questions but it can get you started.

If you just want to get Ubunto going in a virtual machine for now and have NO IDEA take a look at this: http://theunlockr.com/2010/03/26/ho...om-for-android-part-1-setting-up-the-kitchen/
Old release links but Ubunto will update itself

Related

[INFO] UBUNTU for any arm based devise..

ubuntu can be designed from the scratch for any arm based device .
this is just a humble request to senior devs to check it out and try to port it on our wave.
even if modem would not work for arm ubuntu it would be useful in other aspects like usb hosting, full pc based firefox experience,full doc editing,and something new that our wave would have.
htc-linux.org/wiki/index.php?title=Ubuntu/Leo
https://wiki.ubuntu.com/ARM/RootStock/RunNative
https://wiki.ubuntu.com/ARM/RootfsFromScratch
even android porting is on half stage. I think dev's are gonna handle the android thing. Maybe they will after android but Android has priority
furkey said:
even android porting is on half stage. I think dev's are gonna handle the android thing. Maybe they will after android but Android has priority
Click to expand...
Click to collapse
Well, a working Ubuntu port can be easier than the Android, as one don't have to pay attention to the modem (however determining the battery level still would be a problem...). But I run some rounds with the current kernel to make console available and all my atepts failed, I was not able to get it work... What would you do without console?
anghelyi said:
Well, a working Ubuntu port can be easier than the Android, as one don't have to pay attention to the modem (however determining the battery level still would be a problem...). But I run some rounds with the current kernel to make console available and all my atepts failed, I was not able to get it work... What would you do without console?
Click to expand...
Click to collapse
may be this may help you
https://wiki.ubuntu.com/ARM
https://wiki.ubuntu.com/ARM/n900
Hmmm i think all guys are busy in porting android and making voluntas browser etc also they have their own life so let them work on other things first.
Also did u tried ubuntu through badadroid ?? Did it worked.??

Android OS

Is there any way that someone can either point me to where I can learn how the Android OS works or to a book. I am interested in makeing a custom rom but want to learn about the OS first.
A general curiosity with the code can get you far. Have you download the source yet. If not I'm sure cyanogen can help.
As for really learning the internals.....
Stick to the forums and read, read, read!
mgardner323 said:
Is there any way that someone can either point me to where I can learn how the Android OS works or to a book. I am interested in makeing a custom rom but want to learn about the OS first.
Click to expand...
Click to collapse
See here: http://en.wikipedia.org/wiki/Android_(operating_system) and browse around here: http://developer.android.com/index.html.

Attempting to start developing

Im going to try and start to develop for the Rezound. Iv decided that I would to take on JB head on, i know its very unlikely that I will make a stable JB rom but i want to try at least, I have the SDK and jb source already i just dont know where to start with JB, if anyone could help that would be great thanks.
I think Joel has JB booting.
The best place to start is modifying other ROMs with the android kitchen. Gives you a feel for how things work.
GrayTheWolf said:
I think Joel has JB booting.
The best place to start is modifying other ROMs with the android kitchen. Gives you a feel for how things work.
Click to expand...
Click to collapse
Nope. jonman www.github.com/JB1tz
I knew it was jo-something.
Good luck! Glad to see you're getting your feet wet.
Looking forward to your JB ROMs in the near future.
The Beeb
Building from source is a lot different than building a kitchen ROM but as Wolf said you might want to start there to at least learn a few things and the program is pretty easy to learn. The kitchen requires a functioning ROM to build from so not sure you could do JB. The AOSP website has a lot of information about building from source but you'll find the directions they give are for building for the nexus devices. AOSP is strictly for Linux or MAC (maybe windows under a virtual machine) and is pretty straight forward for getting it setup, I used Ubuntu 12 but getting a Linux box setup is as far as I took it as I got bored of it all. One of the devs here should have a github repository for JB and maybe you can join in on that or find some instructions on how to use the JB source you have to build for the Rezound. I would contact wildstang83 he's a pretty friendly guy who likes to help. Also get on IRC and start asking questions.
AOSP for setting up a build environment:
http://source.android.com/source/initializing.html
Android Kitchen:
http://forum.xda-developers.com/showthread.php?t=633246
kzoodroid said:
Building from source is a lot different than building a kitchen ROM but as Wolf said you might want to start there to at least learn a few things and the program is pretty easy to learn. The kitchen requires a functioning ROM to build from so not sure you could do JB. The AOSP website has a lot of information about building from source but you'll find the directions they give are for building for the nexus devices. AOSP is strictly for Linux or MAC (maybe windows under a virtual machine) and is pretty straight forward for getting it setup, I used Ubuntu 12 but getting a Linux box setup is as far as I took it as I got bored of it all. One of the devs here should have a github repository for JB and maybe you can join in on that or find some instructions on how to use the JB source you have to build for the Rezound. I would contact wildstang83 he's a pretty friendly guy who likes to help. Also get on IRC and start asking questions.
AOSP for setting up a build environment:
http://source.android.com/source/initializing.html
Android Kitchen:
http://forum.xda-developers.com/showthread.php?t=633246
Click to expand...
Click to collapse
Thanks for all the info, I have linux mint and as far as i can tell everything is set up
gearlo said:
Thanks for all the info, I have linux mint and as far as i can tell everything is set up
Click to expand...
Click to collapse
Then you're pretty much at were I left off setting up my linux box. I was going to try building for the GTab 7+ and there is a github repository for it for CM9 and CM10. Was just starting to learn how to connect to it when I lost interest. There is supposed to be some type of tutorial on the github site but I couldn't find it. I am also not sure if you need eclipse installed or not to use it. This is where you would need the help of a dev or someone else who's set up a linux box. I also didn't see a github for JB for the rezound but I also didn't look all that well just did a quick search.
wildstang, joel, newtoroot, nilsp I know build from source, or at least they did for the incredible, so they would be good sources of information and I know they've helped others in the past so don't mind pm's.
https://github.com/
Here's a tutorial I found on building from source might be some useful info there:
http://www.xda-developers.com/android/compiling-from-source-the-easy-way/
Here's a tutorial for AOKP:
http://forum.xda-developers.com/showthread.php?t=1810297
Maybe antp or wolf would help you setup too as I noticed their posts in the AOKP build forum?

A Question About Android Development...

Hello Everyone,
Just had a simple question, do you all develop/code for Android for on Linux? Is it something of a must? This is just a precursor to my next question. Just wanted to get the general feel of things.
hell_storm2004 said:
Hello Everyone,
Just had a simple question, do you all develop/code for Android for on Linux? Is it something of a must? This is just a precursor to my next question. Just wanted to get the general feel of things.
Click to expand...
Click to collapse
either works. linux is easier but also a matter of opinion.
calisro said:
either works. linux is easier but also a matter of opinion.
Click to expand...
Click to collapse
Ok... I was trying to download the android source code, and when i run the repo command I get this:
fatal: unable to start c:\Users\sm187t\JellyBean\.repo\repo/main.py
fatal: [Errno 8] Exec format error
Till now haven't found anything to solve this. Googled since evening. I have Windows 7, Python 2.7 and running the commands on Git Bash.
I don't think compiling android source or any android Rom source is possible in Windows. You can use a vm and run Linux through that to compile but if possible it is best to do it through Linux itself.
You can develop android apps in Windows using the sdk and an ide such as eclipse.
Sent from my PACman GT-I9100 using xda premium
Hmmm.... interesting! I wonder why the ROM is so rigid that only Linux users can be free to use it. There goes my hope! I have an office laptop cant install Linux and VM. Not allowed. :crying:

[Q] Need Tutorial. Help?

I was wondering if someone could tell me what part of the android operating system deals with just the os part, (nothing else). And how would i go about making it into a rom?
hydroman202 said:
I was wondering if someone could tell me what part of the android operating system deals with just the os part, (nothing else). And how would i go about making it into a rom?
Click to expand...
Click to collapse
The just OS part as you are referring to that deals with the OS UI and surface is written in Java (Along with some XML and other aspects) using the Android SDK. I am a little bit confused by your wording but what I'm guessing your asking (If this isn't what your asking please elaborate some more and I'll be happy to help you out) is how to compile Android from source. To compile Android form source I would recommend taking a look at the official Google build guide as well as this great guide on how to compile Lollipop from source. Let me know if you have any additional questions I'll be happy to clear them up for you!

Categories

Resources