[Q] What to know for rom development? - General Questions and Answers

Android is a great OS, and flashing new roms is one of the best experiences when it comes to your device
I know how to root, flash roms, kernels, and radios, but I want to know more. I'd like to get into rom development, mainly from source code.
I do have experience with computer languages. I can build a nice website in Notepad using HTML. JavaScript is no problem either. I also dabbled in CSS.
What exactly should I know to eventually know the ins and outs of rom development? What languages, PC environments, etc?

KayxGee1 said:
Android is a great OS, and flashing new roms is one of the best experiences when it comes to your device
I know how to root, flash roms, kernels, and radios, but I want to know more. I'd like to get into rom development, mainly from source code.
I do have experience with computer languages. I can build a nice website in Notepad using HTML. JavaScript is no problem either. I also dabbled in CSS.
What exactly should I know to eventually know the ins and outs of rom development? What languages, PC environments, etc?
Click to expand...
Click to collapse
You will need a Linux distro to build rom source and most of it is in Java C+ and C++

Or u can just use dsixda's online kitchen. It the UOT kitchen

QuantumFoam said:
Or u can just use dsixda's online kitchen. It the UOT kitchen
Click to expand...
Click to collapse
He asked about learning Tom development and those are not even close
Sent for a corner cell in Arkham

zelendel said:
He asked about learning Tom development and those are not even close
Sent for a corner cell in Arkham
Click to expand...
Click to collapse
Yes. But he didn't ask about making a rom from source. He could take an existing rom, modify the ui and release it as his own version :
Oh well. Who am I to contradict a senior mod

QuantumFoam said:
Yes. But he didn't ask about making a rom from source. He could take an existing rom, modify the ui and release it as his own version :
Oh well. Who am I to contradict a senior mod
Click to expand...
Click to collapse
No he didn't but what you described is coming to an end very soon.
Sent for a corner cell in Arkham

zelendel said:
No he didn't but what you described is coming to an end very soon.
Sent for a corner cell in Arkham
Click to expand...
Click to collapse
Really? The ROM kitchens are closing?

QuantumFoam said:
Really? The ROM kitchens are closing?
Click to expand...
Click to collapse
No but posting roms done this way will be. Remember this is a development site. Focusing on real development
Sent for a corner cell in Arkham

zelendel said:
No but posting roms done this way will be. Remember this is a development site. Focusing on real development
Sent for a corner cell in Arkham
Click to expand...
Click to collapse
Well you're right.
I hope op got his answer

Hey, so the best way is to jump right into development. Go and download the official AOSP tree. This side will guide you:
http:
//source.android.com/source/downloading.html
So you need to be able to handle a linux machine, should know about java and c/c++, git and repo. Do not get frustrated it is really a lot of stuff that you will need on your way. But it is worth it.
I recommend that you start with stock AOSP as this is staight forward and should build stable. A google development device is a must have to verify your roms as those are official supported and as newbie you really do not want to start hacking/porting/steeling/manipulating device drivers to get things working .
If you passed this hurdles you can start to modify small parts of the system an so on...
Good luck and have fun

Much appreciation. Thanks have been given.
Sent from my iPad using Tapatalk HD

Related

[Q] Hi, i'm a noob.

As the title says, i'm a noob.
I wanna make a such Custom ROM for my Xperia Active since... i tried GingerDX on my X8, i really wanted it to be on the newer Xperia's... so i was thinking of using something called CyanongenMod for this project...
Idk wat im gonna call this project but maybe Xperiabreak (Reference to Jailbreak)?
And i really wanna have permission to do this... even i don't a know a single chocolate balls.
So.. this is the question, how do i make a custom rom?
It involves a series of certain things, most importantly, an understanding of how android works and performs, you need an understanding of linux...computer programming languages like c++\c+ and Java
Than you have to learn how to build from source code ie..froyo, ICS, or even cyanogenmod...
There are serious developers who build from source than just noobs who take the work of someone else, throw a few scripts in, and call it making a new rom, but that is simply cooking a rom with uot kitchen...
Google is your friend, use your resources, learn about the inner workings of android, learn a language and start developing. Its all a trail and error process
Sent from my Optimus One using xda premium
Jrhodes85 said:
It involves a series of certain things, most importantly, an understanding of how android works and performs, you need an understanding of linux...computer programming languages like c++\c+ and Java
Than you have to learn how to build from source code ie..froyo, ICS, or even cyanogenmod...
There are serious developers who build from source than just noobs who take the work of someone else, throw a few scripts in, and call it making a new rom, but that is simply cooking a rom with uot kitchen...
Google is your friend, use your resources, learn about the inner workings of android, learn a language and start developing. Its all a trail and error process
Sent from my Optimus One using xda premium
Click to expand...
Click to collapse
OK, for the first: I know Linux, I've been using it too and i know it's commands..
for the second: ICS maybe or CyanogenMod... Mostly CM.
for the third: I gonna try build and compile it from source...

Galnet MIUI Banned From XDA

Since Galnet MIUI has been banned from XDA because of 'rule violations' will there be another site where someone will post it like rootzwiki or something? or should i got back to original MIUI?
Just go to the Galnet website.
they have to be ported to the infuse, man this sucks.
if you want to make an impact, sign up on Galnet. Try and get them to support the infuse. Sorry guys.... I tried to help out thanks for supporting me and my efforts.
boostnsubaru said:
if you want to make an impact, sign up on Galnet. Try and get them to support the infuse. Sorry guys.... I tried to help out thanks for supporting me and my efforts.
Click to expand...
Click to collapse
thank you so much for all your work, if anything can you please keep the work going on the original MIUI so we atleast have something? Again thanks for trying!
fabrizio494 said:
they have to be ported to the infuse, man this sucks.
Click to expand...
Click to collapse
yeah it sucks, i loved using it!
Great work bro...sorry bout this..
Sent from my SAMSUNG-SGH-I997 using xda premium
dman3285 said:
Great work bro...sorry bout this..
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
Thanks man. Its up to u now to keep popping out these sick Rom's!
Sent from my SAMSUNG-SGH-I997 using Tapatalk
anyone know what "rules" does the galnet rom violet? just curious.
tylermaciaszek said:
thank you so much for all your work, if anything can you please keep the work going on the original MIUI so we atleast have something? Again thanks for trying!
Click to expand...
Click to collapse
Yea I will until it gets banned... its MIUI that is the issue. They won't release their source. Which violates BS.
Sent from my SAMSUNG-SGH-I997 using Tapatalk
ZELENDEL said this in another post....
It means that the android kernel is protected by GPL laws. Which means the source code has to be made available. MIUI breaks these laws and refuses to post the source. So all MIUI roms have to have a custom kernel not made by the MIUI team.
Sent from my SAMSUNG-SGH-I997 using Tapatalk
Weird, I didn't know kernels were covered by GPL laws. I learn something new every day.
Are there any other kernels that will work?
Sent from my SGH-I997 using xda premium
skatin707 said:
Weird, I didn't know kernels were covered by GPL laws. I learn something new every day.
Are there any other kernels that will work?
Sent from my SGH-I997 using xda premium
Click to expand...
Click to collapse
yes all kernels need to have their source code released
for example remember the HP touchpads that shipped with android well they didn't release their source code to the kernel on this devices so they are in violation of the GPL and can be sued and i believe they are being sued now.
Also no other kernel will work with MIUI only the kernel they built
boostnsubaru said:
ZELENDEL said this in another post....
It means that the android kernel is protected by GPL laws. Which means the source code has to be made available. MIUI breaks these laws and refuses to post the source. So all MIUI roms have to have a custom kernel not made by the MIUI team.
Sent from my SAMSUNG-SGH-I997 using Tapatalk
Click to expand...
Click to collapse
MIUI should really release the source it's not that hard and will make everyones life easy because i hate CM well not hate but its not my favorite.
Well maybe i can try one of dan's ROM they are always good
boostnsubaru said:
ZELENDEL said this in another post....
It means that the android kernel is protected by GPL laws. Which means the source code has to be made available. MIUI breaks these laws and refuses to post the source. So all MIUI roms have to have a custom kernel not made by the MIUI team.
Click to expand...
Click to collapse
Considering that the source for the kernel that is used in your MIUI build is actually available, perhaps you can get the thread re-opened. Just sayin. Doesn't make sense to close a thread because the original kernel isn't open sourced, and you clearly link to the source of the kernel in your thread.
I'm confused...just earlier today, there was a link in the Galnet thread to the source of the custom kernel posted with the ROM. Actually, boostnsubaru pointed it out to me and I looked through it when trying to narrow down some weird CPU governor behavior. Now that the thread is closed, the link to the kernel source is gone.
Okay that sucks and I just flashed MIUI 1.11.9 to my infuse!
If there are some parts of the MIUI rom that has been made independent from the Android OS, then those parts who's source is not released under the GPL must be distributed separately, as per section 2 of the GPLv2.
I have looked all over and it I cannot find any of the source for this ROM. This is in clear violation of the license in witch Android is released.
There could be something MIUI is trying to hide as there have been theories about data stealing before, i would say MIUI is violating GPL and should fix this and if they don't then they are trying to hide something
GPLv2
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
Click to expand...
Click to collapse
so basically they need to release changes they made to the ROM and then it will be out of violation
But I thought only the kernel was under GPL? Isn't Android under the Apache license?

[Q] SGS4 custom rom on emulator

Hi,
Is the above possible? I found some guides for CYM but none for our phone...
any advice would be highly appreciated
10x
Alon
They aren't finished building cm for our phones yet... They are working on it though. Add for
an emulator, I asked that question a long time ago and I was told since there are so many Android devices and each one is different it would be useless for the manufacturer to build an emulator... The only way we could have one for our phone is to build it ourselves... Which would required a butt load of time and knowledge of many different things like Java, Linux, kernel building, scripting, etc...
Sent from my SGH-T959V using XDA App
thomas.raines said:
They aren't finished building cm for our phones yet... They are working on it though. Add for
an emulator, I asked that question a long time ago and I was told since there are so many Android devices and each one is different it would be useless for the manufacturer to build an emulator... The only way we could have one for our phone is to build it ourselves... Which would required a butt load of time and knowledge of many different things like Java, Linux, kernel building, scripting, etc...
Sent from my SGH-T959V using XDA App
Click to expand...
Click to collapse
so currently there is no way we can test our ROMs on emulator?
alon2 said:
so currently there is no way we can test our ROMs on emulator?
Click to expand...
Click to collapse
Well you can try to build the samsung sources against the aosp source code. The AOSP source code comes with the android emulator pre-compiled so you can test out your roms.
FBis251 said:
Well you can try to build the samsung sources against the aosp source code. The AOSP source code comes with the android emulator pre-compiled so you can test out your roms.
Click to expand...
Click to collapse
can you please elaborate on this one?I'm not sure I followed
alon2 said:
can you please elaborate on this one?I'm not sure I followed
Click to expand...
Click to collapse
http://source.android.com/source/building.html
FBis251 said:
http://source.android.com/source/building.html
Click to expand...
Click to collapse
OK...I'll see what I can understand from that
10x

Hi :) T-Mobile gave me this phone for free.

Hi guys im new to XDA but not new to Android development i used to have Cricket service (which sucked) and signed with T-Mobile and got this phone for free After spending all week reading all these threads i can say im one of the lucky ones since i got the good chip and good screen and rooted my phone and im running Sysnthetic_Aospx great rom btw. Any other good roms that i should try? Anywho im rooted and this isnt another "which rom is better" im actually a developer and i want to get my hands dirty and try and compile kernels any guides out there for me to start compiling and building my kernel environment?
I know my way around developing roms and wanted to know what developers develop for this device im willing to give you guys a hand if u need it or just be a tester.
Btw my name is Mr. Iffy ill try to help when i can hopefully one of the devs can help me with an Ice cream kernel to develop for this device. If someone can also tell me what devs are here i only see like 4 of them Synthetic and elginsk8r and awesome and cnote. Thanks guys hopefully i can be more of help around here.
Welcome! It's great to have another dev among us. Unfortunately, we have lost many of our devs to other devices, but a few talented ones remain. Hopefully you and the remaining devs will be able to bring a fully functional ICS Sense ROM to our little community.
Again, welcome!
4Orr said:
Welcome! It's great to have another dev among us. Unfortunately, we have lost many of our devs to other devices, but a few talented ones remain. Hopefully you and the remaining devs will be able to bring a fully functional ICS Sense ROM to our little community.
Again, welcome!
Click to expand...
Click to collapse
Thanks, i hope so too i sent a private message to elgins8r and synthetic hopefully they can help me build a kernel.
Welcome to the party, what do you know about building kernels?
THEindian said:
Welcome to the party, what do you know about building kernels?
Click to expand...
Click to collapse
Nothing really but is willing to learn if u give me the terminal code to compile the kernel environment I know my way around
Sent from my ROOTIE TOOTIE FRESH 'N FRUITY GLACIER
Hey welcome, we have a developer among us!
You know how to compile and port ROMs?
Sent from my Streak7 Honeycomb using xda premium
Yes I know how to port, build cyanogen roms from source not ics yet that's still new to me but I want to learn to compile kernels and such
Mr. Iffy said:
Yes I know how to port, build cyanogen roms from source not ics yet that's still new to me but I want to learn to compile kernels and such
Click to expand...
Click to collapse
Kernels are difficult, i dont really know enoguh to teach you but there are plenty of guides. It tooks me 3 hours to compile 10% of a kernel and the process failed due to one of the files. We should collarborate.
THEindian said:
Kernels are difficult, i dont really know enoguh to teach you but there are plenty of guides. It tooks me 3 hours to compile 10% of a kernel and the process failed due to one of the files. We should collarborate.
Click to expand...
Click to collapse
Definitely can u post which guide u followed
Look forward to your work
Devs wise, there is a few, like the ones you listed. You also have my; Team Inferno an another team call AndroidInsomnia (killer miui builds).

|ROM||AOSP||JB||4.2.1||Perfect Android 2.1

Perfect Android is a redistribution of the Android Open Source Project and Google software code that I have lightly modified to make as a daily driver for myself that I'm sharing with the community. This project doesn't have and won't focus on adding a ton of features and mods but instead focus on stability, and reliability so yes basically this is a stock like rom but not just stock my only efforts will be to make it run better, and be more polished, and complete.
GOOGLE APPS ARE INCLUDED
DOWNLOAD:
https://hotfile.com/dl/181925379/d84644d/perfect_grouper_ota_2012-12-01.zip.html
Mirrors:
If you have an error or something pops up I ask that before you post about it please make sure that you are running the ROM as provided. I cannot troubleshoot anything that is related to using other kernels, mods, or themes.
This ROM is basically like a stock rom of jelly bean so there is not a need for screen shots ........
Always remember that XDA started out as a great place and will remain a great place as long as we are great to each other anything used in this ROM is available upon request and feel free to use this as a base rom for any other project my ROM is un-branded just give me some mention .......
WANT TO CUSTOMIZE THIS ROM READ THIS:
Like the ROM and want to add or remove anything or customize for yourself use this http://forum.xda-developers.com/showthread.php?t=633246 DSIXDA's Kitchen. Its a great kitchen for customizing prebuilt ROMs
CREDITS:
CyanogenMod Team
Google - I used their apps
AOSP - of course
Probably gonna add a changelog here
AOSP 4.2 ROM so quickly? That will be interesting
Can you have some screenshots?
yep its uploaded
it looks just like stock I built it to be at least as good as what you get from google if everything is working correctly that is when I will begin modifying but for now it looks like the stock ROM so I didn't think screenshots would be needed
first of all you have to give us changelog, then i'll flash it, because now i don't know exactly what are the differences between Your rom and stock, so is it worth flash it?
Patroy said:
first of all you have to give us changelog, then i'll flash it, because now i don't know exactly what are the differences between Your rom and stock, so is it worth flash it?
Click to expand...
Click to collapse
Its solely up to you guys if you want to flash it as this is an expensive hobby for me I'm just sharing what I do with the community so is it worth it, for me yeah, for you I really don't care, I hope I'm not coming off as an ass but I have to draw a line somewhere. I not making any claims with this ROM I just sharing it if you use it fine if not fine, I don't get into the whole screenshots large claims huge changelog thing I just post and share I also maintain this ROM for the Sprint Galaxy Nexus which it has done just fine so if you want you can do a search here and see what and where I come from .......
I'm very happy when see any new rom in N7 development, because nexus need fresh look from developers, so i was thinking that You could push some new tweaks into ours devices. Almost all roms here are just "cleaned" or "minimalistic" or "performanced" in real these rom are almost stock with the same user experience. So do not get angry when I want to know if there will be something more here...
Does it work with twrp?
After flash with twrp, I see the information is Android 4.2 JOP40C. I dont know whether it is flashed or not?
I will happily try your rom to see how it compares to CleanRom, give my feedback tomorrow
Patroy said:
I'm very happy when see any new rom in N7 development, because nexus need fresh look from developers, so i was thinking that You could push some new tweaks into ours devices. Almost all roms here are just "cleaned" or "minimalistic" or "performanced" in real these rom are almost stock with the same user experience. So do not get angry when I want to know if there will be something more here...
Click to expand...
Click to collapse
I'm not getting angry with you in fact I agree however, regardless of how you feel about those roms someone still put that effort into them. Honestly for me the N7 is a new device and before I go making claims that my ROM can start your car and end world hunger I want to make sure that it at least meets stock standards. AOSP has done a lot of work to somewhat remove google entries in their code so it has taken me a few days to re-build AOSP code to work correctly with G-APPS and other Google code I do NOT claim to be an over the top developer I just do this as a pastime I have certain things that I do not like and thats why I have started making my own ROMs so that I always get what I want. Now I can tell you this and I know this as a fact THIS IS NOT A WINZIP KITCHEN ROM IT IS BUILT FROM SOURCE it took hella work to get it up to a win zip ROM and thats where we're at so far lol. When I learn all the changes to the 4.2 coding I will start to add small feature to my ROM.
SuperBoUDS said:
Does it work with twrp?
After flash with twrp, I see the information is Android 4.2 JOP40C. I dont know whether it is flashed or not?
Click to expand...
Click to collapse
yes it works with TWRP and the information in the About screen is correct
There isn't developer section in setting menu. Is this normal?
SuperBoUDS said:
There isn't developer section in setting menu. Is this normal?
Click to expand...
Click to collapse
Tap on the build in settings>about phone 7 times and it appears.
Paul
Sent from my Nexus 7 using xda app-developers app
PAULO76 said:
Tap on the build in settings>about phone 7 times and it appears.
Paul
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Thank you! I dont know this.
This ROM doesn't include busybox. I think jakdillard should install busybox by default .
Testing this ROM with LeanKernel.
SuperBoUDS said:
Thank you! I dont know this.
This ROM doesn't include busybox. I think jakdillard should install busybox by default .
Testing this ROM with LeanKernel.
Click to expand...
Click to collapse
lol who knows I might depends on how things go with this
Installed thid yesterday and so far no problems, nice deep sleep of 96%. Nice work
With leanKernel, I just have 86% batterry overnight :crying:. I charged it fully the night before.
SuperBoUDS said:
With leanKernel, I just have 86% batterry overnight :crying:. I charged it fully the night before.
Click to expand...
Click to collapse
haven't checked for myself but is leankernel updated for 4.2

Categories

Resources