Develop my own rom - Galaxy S II Q&A, Help & Troubleshooting

Hey guys, i was just wondering if i could make my own rom, or at least compile my personal build of an existing rom, i d love in the future to make a hole working rom with things i like from all roms, but i really dont know where to start.
i dont know much about programming, but i m learn quickly. i d just finished my first year studying sistems engeneering but im still a noob about programming so i d love some help, where to start how to build what language do you use, what IDE, etc, how to compile etc.
at least i ll love to start downloading the source of any of the wonderful roms in this forum and try to compiled it myself, but really i dont know where to start.
thanks a lot guys
pd:sorry i know my english sucks T_T
maybe some tutorials or things to read that helped you when you guys where starting

Raagh said:
Hey guys, i was just wondering if i could make my own rom, or at least compile my personal build of an existing rom, i d love in the future to make a hole working rom with things i like from all roms, but i really dont know where to start.
i dont know much about programming, but i m learn quickly. i d just finished my first year studying sistems engeneering but im still a noob about programming so i d love some help, where to start how to build what language do you use, what IDE, etc, how to compile etc.
at least i ll love to start downloading the source of any of the wonderful roms in this forum and try to compiled it myself, but really i dont know where to start.
thanks a lot guys
pd:sorry i know my english sucks T_T
maybe some tutorials or things to read that helped you when you guys where starting
Click to expand...
Click to collapse
First start to build a rom by modifying samsung roms.
Use dsxida android kitchen
Sent from my GT-I9100 using Tapatalk 2

Raagh said:
Hey guys, i was just wondering if i could make my own rom, or at least compile my personal build of an existing rom, i d love in the future to make a hole working rom with things i like from all roms, but i really dont know where to start.
i dont know much about programming, but i m learn quickly. i d just finished my first year studying sistems engeneering but im still a noob about programming so i d love some help, where to start how to build what language do you use, what IDE, etc, how to compile etc.
at least i ll love to start downloading the source of any of the wonderful roms in this forum and try to compiled it myself, but really i dont know where to start.
thanks a lot guys
pd:sorry i know my english sucks T_T
maybe some tutorials or things to read that helped you when you guys where starting
Click to expand...
Click to collapse
check the below guide links hope it will be a good starting point for u
http://forum.xda-developers.com/showthread.php?t=1957219
http://forum.xda-developers.com/showthread.php?t=1908008
good luck!

corruptionfreeindia said:
First start to build a rom by modifying samsung roms.
Use dsxida android kitchen
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
sorry dont want to be rude but i dont want to try a custom kitchen, i already read about them a lot and they actually dont require any skill or knowledge, they re great to build your rom without knowing anything but they actually dont teach anything in the process.
dont get me wrong, they re amazing. but i want to learn how to build, compile,starting coding and maybe one day be a full developer. that kitchen d only make me feel that im doing something while actually im just pressing keys and moving some files. and getting a rom in return
Sun90 said:
check the below guide links hope it will be a good starting point for u
http://forum.xda-developers.com/showthread.php?t=1957219
http://forum.xda-developers.com/showthread.php?t=1908008
good luck!
Click to expand...
Click to collapse
thanks a lot men, i ll read today at home, now im pretending im working ahahaha. i also gonna read all that googles web has about development, particularly im going to install sdk and android plugin on eclipse,
i know java isnt great to start but well. i have a really good book from university that involves c(for structured programming) that i already finished
and java(programming oriented to objets) that i didnt read and its supposed to be for second year but what the hell . im on vacation im gonna give it a shot.

Raagh said:
sorry dont want to be rude but i dont want to try a custom kitchen, i already read about them a lot and they actually dont require any skill or knowledge, they re great to build your rom without knowing anything but they actually dont teach anything in the process.
dont get me wrong, they re amazing. but i want to learn how to build, compile,starting coding and maybe one day be a full developer. that kitchen d only make me feel that im doing something while actually im just pressing keys and moving some files. and getting a rom in return
thanks a lot men, i ll read today at home, now im pretending im working ahahaha. i also gonna read all that googles web has about development, particularly im going to install sdk and android plugin on eclipse,
i know java isnt great to start but well. i have a really good book from university that involves c(for structured programming) that i already finished
and java(programming oriented to objets) that i didnt read and its supposed to be for second year but what the hell . im on vacation im gonna give it a shot.
Click to expand...
Click to collapse
So u want to compile a rom.
http://forum.xda-developers.com/showthread.php?t=2060017
http://forum.xda-developers.com/showthread.php?t=2302780
Also look at the below site
Developer.android.com
Sent from my GT-I9100 using Tapatalk 2

corruptionfreeindia said:
So u want to compile a rom.
http://forum.xda-developers.com/showthread.php?t=2060017
http://forum.xda-developers.com/showthread.php?t=2302780
Also look at the below site
Developer.android.com
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
thanks a lot men i ll read them tonight

Today i succesfully set up a ubuntu virtual machine and now its on repo sync(pacman rom). Today ll make my first build. I also installed eclipse and sdk, started remembering some c basic coding and maybe some day i ll start with java.
My next plan is to learn how to compile the rom with apolo kernel, instead of standard pacman kernel directly from source.
Enviado desde mi GT-I9100 usando Tapatalk 2

Related

profsional advice needed plzzzzzz

1st am sry for beeing of the topick but i need an advice , i have been a user for pocekt pc for a l;ong time and a memper in xda developers for also a long time and i have been using roms from here for a long time and i became well known with almost evry thing exsept one thing howa 2 make my owne rome so is there is some how a site or somthing or some one who kan teach me how to cook my owne rom plzzzzzzzz if there is a site or some body ar a tool or some thing plzzzzzzzz tell me
Gotta start somewhere... The rest of us learned how by reading and doing. Start here and READ: http://wiki.xda-developers.com/index.php?pagename=HTC_Raphael#cooking
nate731 said:
gotta start somewhere... The rest of us learned how by reading and doing. Start here and read: http://wiki.xda-developers.com/index.php?pagename=htc_raphael#cooking
Click to expand...
Click to collapse
i know man that the best way to learn is by reading and that i was asking for becouse i didn't find any where any thing to read some thnx u very very much am so greatfull for u man
Also i am so grretfull for u but can u be more specific about what i am looking for in that link u supported in ur qoute because i have been there once before and i didn't find any thing hellpfull that may help me learning to cook my own rom plzzzzzzzzzz
Try looking at this:
http://wiki.xda-developers.com/index.php?pagename=Da_G's_6.5_Kitchen
You can download the related app and mess around. Unfortunately creating your own ROM requires a lot of knowledge- and most of it you'll have to figure out for yourself.
ok i have downloaded this kitchen but there is a problem , i have a lot of 6.5wm roms but the kitchen dose not load any of them and i have downloaded several other roms but also non of them is loaded it gives me an error saying that i have to spacifay the ext buled 1st but i can't and when i load one of the 2 roms that comes woth the kitchen it loads and spcofay the ext aoutomatacly so can any body plz help
Read the tutorial and follow the steps exactly. You will have create the EXT and a few other folders manually before you can load the ROM

[Q] pls help im a new noob in this

so yea i have dxisda kitchen and sdk and sgs2 and of that junk but i dont even know how to open sdk tools how to start ? how to make custom rom? how to open the f***ing .img?! you know bascis.. so yea thk for help and pls help...
solain said:
so yea i have dxisda kitchen and sdk and sgs2 and of that junk but i dont even know how to open sdk tools how to start ? how to make custom rom? how to open the f***ing .img?! you know bascis.. so yea thk for help and pls help...
Click to expand...
Click to collapse
I too would love the help and for possibly someone to take me under their wing. I am very eager to learn. I'm always on my phone, and always trying to read, but sometimes the forums just contradict themselves, and let's face it, with all the drama going on in the forum, it can sometimes get a little frustrating trying to ask for help, especially when someone doesn't want to be bothered by a noob. Thanks in advance
Sent from my PG06100 using Tapatalk
solain said:
so yea i have dxisda kitchen and sdk and sgs2 and of that junk but i dont even know how to open sdk tools how to start ? how to make custom rom? how to open the f***ing .img?! you know bascis.. so yea thk for help and pls help...
Click to expand...
Click to collapse
Not sure what you are asking. For the sdk tools, do you mean the android sdk? If so, follow the instructions on the sdk page. For the images, I assume you mean the boot.img and possibly system.img. You do not open these. If you have a system.img, that means you probably have a shipped rom. Use the kitchen to create working folder from rom, and choose this. It should auto extract the system partition. As for the boot.img, you don't generally need to extract this, but there is an option in the advanced settings of the kitchen. You can change your rom's kernel in the boot.img.
cbernardo13 said:
I too would love the help and for possibly someone to take me under their wing. I am very eager to learn. I'm always on my phone, and always trying to read, but sometimes the forums just contradict themselves, and let's face it, with all the drama going on in the forum, it can sometimes get a little frustrating trying to ask for help, especially when someone doesn't want to be bothered by a noob. Thanks in advance
Sent from my PG06100 using Tapatalk
Click to expand...
Click to collapse
Hey Guys!
First of all a bit of encouragement. The android kitchen sure as hell does not turn you into a rom developer. I decided i wanted to use the kitchen just over 2 weeks ago and run ubuntu in a virtual window. From then I decided I did not like windows anymore so installed linux as my main os and had to learn that (trust me getting the graphics card to work was a chore) I finally got the kitchen working tonight and decided to sign up to xda. Even with my limited knowledge I have been able to help someone on here tonight. Read Read Read and ask questions if you can not find the right answers on the forum. Research pays off eventually. (I now softmod nintendo wiis professionally from learning off a forum!!!!) Remember everyone has to start somewhere even if you are a noob and don't get disheartened if someone says you should have read this this and this. As long as you learn from ur mistake I'm sure people wont mind too much.
SFUK
aha... so let me understand i need ubuntu?
and i need to open system img fot the app edit
can someone pls answer yes im using android sdk and yes i use stock rom how to edit img? i need to edit system for app app folder edit i could open it at linux reader but icant edit its all written in hex
How long before bricked again...????
solain said:
can someone pls answer yes im using android sdk and yes i use stock rom how to edit img? i need to edit system for app app folder edit i could open it at linux reader but icant edit its all written in hex
Click to expand...
Click to collapse
Im about to take the dive myself, still rounding up the tools. Was about to dl virtual...unbuntu etc but read this just now and it makes sence so as much as i want to screwup my phine as fast as possible i think i will follow this advice.
You might have already seen and read but what the hell....
Originally Posted by cyanogen
I really dislike the "chef" moniker when it comes to Android, since we are more of an open-source community. I think it implies a "file pusher" mentality. But then again, I am biased against proprietary versions of Android like Sense, so feel free to disregard all of this.
Here's my advice for those looking to make their own Android ROMs.. Stop. Write an app or two first, learn how the system works from a developer standpoint. Learn some Java. Read the developer documentation. Learn how to use Git. Then learn how to build AOSP from source. Read the porting guides, and learn how the build system works (the links below have almost everything you could possibly want to know). Now try to put your new found skills to work on enhancing the platform by writing code or making theme overlays. And share! And put that **** on your resume. There is a *ton* of information out there but any kind of "step-by-step rom cooking guide" is going to be a complete fail- it's too broad of a subject.
Android Developer Guides: http://d.android.com
Working with AOSP source: http://source.android.com
Platform Developer Guide: http://pdk.android.com
Android Gitweb: http://android.git.kernel.org
Git Ready (Git tips and tricks): http://www.gitready.com/
Building CyanogenMod: http://wiki.cyanogenmod.com/index.ph...ng_from_source
How Dexopt works and what are those odex files: http://android.git.kernel.org/?p=pla...5936;hb=master
The PDK site is absolutely vital if you are going to work on custom ROMs. Read every single page. Twice. Some of the info isn't up to date, but you'll get a really good idea about what goes into actually configuring Android to work on a real device.
dmeadows013 said:
Not sure what you are asking. For the sdk tools, do you mean the android sdk? If so, follow the instructions on the sdk page. For the images, I assume you mean the boot.img and possibly system.img. You do not open these. If you have a system.img, that means you probably have a shipped rom. Use the kitchen to create working folder from rom, and choose this. It should auto extract the system partition. As for the boot.img, you don't generally need to extract this, but there is an option in the advanced settings of the kitchen. You can change your rom's kernel in the boot.img.
Click to expand...
Click to collapse
can u shoot me a couple links for the kitchen/other tools download
solain said:
so yea i have dxisda kitchen and sdk and sgs2 and of that junk but i dont even know how to open sdk tools how to start ? how to make custom rom? how to open the f***ing .img?! you know bascis.. so yea thk for help and pls help...
Click to expand...
Click to collapse
What version of Linux are you running? Are you running Ubuntu? I never had much luck using the Android Kitchen in a virtual environment for some reason. When I installed Ubuntu as my main OS, however, that made all the difference. From there you'll also need to make sure you have the Java Developers Kit (JDK) installed or at least open-jdk (Open source alternative) installed in order to run the Android Kitchen or the SDK for that matter.
There's a really good tutorial on how to set up the SDK on Ubuntu 10.10 or Ubuntu 11.04 which is what I had used to set up the SDK on linux for the first time. http://forum.xda-developers.com/showthread.php?t=921169
I prefer 10.10 just because I'm not huge on Ubuntu's newer Unity interface and my old laptop seems to run 10.10 a lot better than 11.04 or 11.10 but that's another story.
Once you have the SDK setup, you can then run the kitchen accordingly.
I use a tool called Android Utility by tommytomatoe which is essentially a collection of tools for creating custom ROMs, editing apk's, etc. It just happens to also include dsixda's kitchen which is a nice plus. You can download that here: http://rootzwiki.com/topic/3303-utility-android-utility-apktooldex2jarsmalimoremac-linuxoct09-2011/
Hope this helps. Good luck, dood!
**Edit** My bad... There's also a thread for Android Utility on XDA also....
http://forum.xda-developers.com/showthread.php?t=1167623

[Q] Which references you'll recommend for being an android developer?

After months using android i'm really wiling to be a developer, step by step. i want to know which reference and tutorials should i read and learn?
(i know c++ a little bit but not much, don't know if it helps)
Thanks
First of all you need to know Linux basics Try to get inside system files and APK's, try to decompile kernel and see how it works... Its a lot of tutorials in the web and on the XDA too. It's damn fun! And of course try to create some stuff, maybe it can be fairily simple project for to get started
i'll try and learning tutorials and as you said decompile some stuff in XDA. it'll be great if i find start point and i think i'm going to have it!
Thanks mate
nimbold said:
i'll try and learning tutorials and as you said decompile some stuff in XDA. it'll be great if i find start point and i think i'm going to have it!
Thanks mate
Click to expand...
Click to collapse
First learn C++ then go other things like compiling kernel because when you will compile apk,kernel will you understant? Anyway go by this way,first learn html language then javascript and at the end C language.
Sent from my WT19i using Tapatalk
XperianPro said:
First learn C++ then go other things like compiling kernel because when you will compile apk,kernel will you understant? Anyway go by this way,first learn html language then javascript and at the end C language.
Click to expand...
Click to collapse
So html and java scripts helps like c language. Should take off I think!
Thanks for your help
Sent from my ST15 using XDA App

[help] learn how to use the kichen

Hi
i wish to learn ho to make a rom and help to fox bug/errors.
i found many posts, but they are still too complicated for me,
if somone has a littel time to teach me ho to prepare and install the kichen tool and how to use them,
i have never programmed, the only language that i know is html asp css, the last time that i used them is years ago...
if nobody has time or will not help me then i ask to the Admin/Mod to delete this post.
Tks.
Pantx said:
Hi
i wish to learn ho to make a rom,
i found many posts, but they are still too complicated for me,
if somone has a littel time to teach me ho to prepare and install the kichen tool and how to use them,
i have never programmed, the only language that i know is html asp css, the last time that i used them is years ago...
if nobody has time or will not help me then i ask to the Admin/Mod to delete this post.
Tks.
Click to expand...
Click to collapse
You can't expect to build a ROM without the knowledge of Java, C++, C etc..
Sent from my LG-P500 using xda premium
Negi9 said:
You can't expect to build a ROM without the knowledge of Java, C++, C etc.. and trust me, nobody likes kitchen's ROM.
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
<--- for my useless post
Negi9 said:
You can't expect to build a ROM without the knowledge of Java, C++, C etc..
Click to expand...
Click to collapse
So to make a rom you need to know Java, C++, C etc...
is there an alternative ? because, it's not so easy for me or other thet doesn't have this knowledge to start learning this languages :S specially when the entire time is occupied by work.
Negi9 said:
You can't expect to build a ROM without the knowledge of Java, C++, C etc..
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
i have a good knowledge of C,C++,JAVA and learning php also....I'm an IT student....
but i don't have knowledge about devlopment m also need help...
@Pantx here's the link which will give you basic knowledge about how to setup kitchen....
http://forum.xda-developers.com/showthread.php?p=17758451
Pantx said:
Hi
i wish to learn ho to make a rom and help to fox bug/errors.
i found many posts, but they are still too complicated for me,
if somone has a littel time to teach me ho to prepare and install the kichen tool and how to use them,
i have never programmed, the only language that i know is html asp css, the last time that i used them is years ago...
if nobody has time or will not help me then i ask to the Admin/Mod to delete this post.
Tks.
Click to expand...
Click to collapse
> if you just want to know kitchen.. you dont even need any programming language to use it.
> if you want to mod stuff. basically or themming .. you need atleast basic knowledge on xml's , I know a little bit of C language.. but my majorities is on php and asp which is a little bit similar.
> but my point is.. using kitchen, you dont need anything.. just watch a youtube video.. and just follow the steps.. my be alittle bit of adb? if you decompile apks if your planning that too.. just watch a youtube tut.

Complete noob guide for compiling roms

Hi..im a quite fresh android user after having iphone for the last 4 years....i have a huawei ideos x5 pro that for me at least is a great phone for his price..but the major problem is that we don't have devs for our phone...only one chinese guy that develops roms for at least 7 phones so we aren't his major concern...so im asking if there is a complete noob guide for compiling rom..fixing rom.
i have to tell you and please don't flame that even that i have knowlage over pc's i haven't any knowlage over programming and coding!!so if any guide can't help me it will be ok...i try! but if there is a guide that can help me step by step to understand the basics and then with a bit of research can figure it out the rest it will be helpful!!
Thanks!!
Sorry for my english!
http://lmgtfy.com/?q=make+android+custom+ROM
thewadegeek said:
http://lmgtfy.com/?q=make+android+custom+ROM
Click to expand...
Click to collapse
Yeah i know that...im asking for a user's entirely noob guide...1st time user guide...google is full with guides but not so novice guides!!
There isn't a "type this, click this, A,B,C" guide. That would be called just copying somebody's work. What you need to do is start reading through ALL the guides you can find, compile a kernel, read smali, change colors, mod pictures, unpack-repack boot.imgs. I can't give you a link and say "Read this tutorial and you will be a developer", that's just not how it works.
thewadegeek said:
There isn't a "type this, click this, A,B,C" guide. That would be called just copying somebody's work. What you need to do is start reading through ALL the guides you can find, compile a kernel, read smali, change colors, mod pictures, unpack-repack boot.imgs. I can't give you a link and say "Read this tutorial and you will be a developer", that's just not how it works.
Click to expand...
Click to collapse
ill give it a try thanks!!!
After reading a lot of guides...i can say that i didnt find anything so hard but i haven't try it so far so i can say for sure...but i stuck in one thing...somewhere on all the guides it sais to find your device tree...and many guides that are from samsung or htc using some github and some cyanogen brances...i have an huawei ideos x5 pro...where i will find those trees?do i need them for making the android source work with my device or the source from google is universal meaning that when im build the rom from sources.android.com the rom will work in my device??
pikachukaki said:
After reading a lot of guides...i can say that i didnt find anything so hard but i haven't try it so far so i can say for sure...but i stuck in one thing...somewhere on all the guides it sais to find your device tree...and many guides that are from samsung or htc using some github and some cyanogen brances...i have an huawei ideos x5 pro...where i will find those trees?do i need them for making the android source work with my device or the source from google is universal meaning that when im build the rom from sources.android.com the rom will work in my device??
Click to expand...
Click to collapse
You must have a device tree... If not you have to build your own... The rom built from source.android.com will only work with google nexus devices...
adiles said:
You must have a device tree... If not you have to build your own... The rom built from source.android.com will only work with google nexus devices...
Click to expand...
Click to collapse
So my hands is tied...nice!!there is no way that i can make a tree i don't have so much knowlage!! :/ too bad!!
pikachukaki said:
So my hands is tied...nice!!there is no way that i can make a tree i don't have so much knowlage!! :/ too bad!!
Click to expand...
Click to collapse
look for a device with similar hardware and copy that device tree, then try to make adjustments to get it working and voila. and ask that one dev if he can give you his device tree
I have read all things in xda about my u8800, and xda helps me know about root, install cwm, uprom..etc. thank all of you, thank xda
-Sent from my u8800-
Me Too!
lemonade747 said:
I have read all things in xda about my u8800, and xda helps me know about root, install cwm, uprom..etc. thank all of you, thank xda
Click to expand...
Click to collapse
I'm actually reading everything about my new device, Sony Neo L. This is pretty amazing! XDA rocks!
CrisisCorE said:
look for a device with similar hardware and copy that device tree, then try to make adjustments to get it working and voila. and ask that one dev if he can give you his device tree
Click to expand...
Click to collapse
Hardware we need the same cpu gpu or everything?sensors bt wifi etc?
Sent from my U8800PRO using xda premium
How can i get source code for Vision, since huawei doesnt let you download it?
Sent from my Vision
if u r good at linux, u can try this guide >>> http://handycodeworks.com/wp-content/uploads/2011/02/linux_versus_android.pdf
I compile linux kernels for desktop, but the android kernel is not the same. Cyanogen team and GOOGLE Android developers provides a comprehensive guide on building ur own ROM. But to build ur own OS, u need to understand each component carefully. I don't know abt android, but i am making Linux OS from scratch. I have kernel compiled, tool chain set up, now i am putting apps on it. But android uses DALVIK VM for Java apps, also .... U refer the pdf it will tell u. Once i finish making this OS, i'll focus on Android ROMS. They r similar to Linux OS, but require patches in kernel, a light c lib, new fs, a different vm (dalvik) and different ways of managing i/o interrupts and much more..
this link is on porting android on nokia >> http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Porting-Android-to-a-new-device/
this one is on linux on embedded systems >> http://www.lindusembedded.com/blog/2010/12/07/android-linux-kernel-additions/
Also, sorry to say but learn C/C++/Java . To make ROMS, atleast to make modifications and to understand the kernel u'll need C. Not very hard to learn, Good tuts on Lynda.com and other sites. And be good at Linux. Happy Learning

Categories

Resources