Compiling ROMs for the non-beginner - General Questions and Answers

I'd like to get some opinions/resources on compiling custom ROMs, only been able to find beginner guides involving Linux basics and the Android kitchen etc.. I'm more interested in starting from scratch, extracting specific components (system/bootloader/kernel etc) and partition breakdowns.. Like leaving out the kernel or bootloader, only compiling system files. I know a little Java, pretty well versed in C and practically fluent in PHP, use it every day at my job.. Want to get into the whole ROM scene but am having difficulty finding in-depth resources. Any help is much appreciated, thanks in advance!
Sent from my SCH-I535 using Tapatalk

Bump
Sent from that one XDA App

Shibby87 said:
I'd like to get some opinions/resources on compiling custom ROMs, only been able to find beginner guides involving Linux basics and the Android kitchen etc.. I'm more interested in starting from scratch, extracting specific components (system/bootloader/kernel etc) and partition breakdowns.. Like leaving out the kernel or bootloader, only compiling system files. I know a little Java, pretty well versed in C and practically fluent in PHP, use it every day at my job.. Want to get into the whole ROM scene but am having difficulty finding in-depth resources. Any help is much appreciated, thanks in advance!
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
I am too interested in this very same thing. If you do manage to find any good resources I would love a PM or a link.

I know one article,which explain porting ROM to different hardware. But it's written on Russian. Are you interested in that article?
Sorry for my bad English.
Sent from my MT27i using XDA Free mobile app

hey
Shibby87 said:
I'd like to get some opinions/resources on compiling custom ROMs, only been able to find beginner guides involving Linux basics and the Android kitchen etc.. I'm more interested in starting from scratch, extracting specific components (system/bootloader/kernel etc) and partition breakdowns.. Like leaving out the kernel or bootloader, only compiling system files. I know a little Java, pretty well versed in C and practically fluent in PHP, use it every day at my job.. Want to get into the whole ROM scene but am having difficulty finding in-depth resources. Any help is much appreciated, thanks in advance!
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
for getting/dumping/extracting read this http://forum.xda-developers.com/showthread.php?t=2450045
search for and get ,parted and, flash_image:good:

Related

I want to develop

Hi everybody i was wondering if there was any developer that could help me learn how to develop some roms and stuff for the sgs4g i really want to help. I'm 14 help me please need step by step instructions!!
mods delete please
another clutter prone to happen.
dear ssh678.
even though your ambition is highly admired, there are rules & regulations you need to read prior to posting.
this is probably what you're looking for.
~cheers
That thread is a dead end. What exactly are you trying to do? I can help you a little bit.
Sent from my Galaxy Tab running CM7
this is the wrong place to post questions. mod please move this thread.
chris.... said:
That thread is a dead end. What exactly are you trying to do? I can help you a little bit.
Sent from my Galaxy Tab running CM7
Click to expand...
Click to collapse
I'm just trying to learn how to make roms and kernels so if i wanted to make a rom my way with everything i want with a kernel that i made i would post it and let everybody try im a noob sorry... im just trying to make roms and kernels
ssh678 said:
I'm just trying to learn how to make roms and kernels so if i wanted to make a rom my way with everything i want with a kernel that i made i would post it and let everybody try im a noob sorry... im just trying to make roms and kernels
Click to expand...
Click to collapse
Any programming experience?
Sent from my Galaxy Tab running CM7
chris.... said:
Any programming experience?
Sent from my Galaxy Tab running CM7
Click to expand...
Click to collapse
along with you wanna learn linux?
cause linux experence cough helps tons cough
RaverX3X said:
along with you wanna learn linux?
cause linux experence cough helps tons cough
Click to expand...
Click to collapse
Yeah, plus Linux is awesome anyway
Sent from my Galaxy Tab running CM7
well knowing how to read configure and install via source helps along with compileing kernels.. Hince why linux exp is a major plus
You need either Linux or a Mac to build from source anyway
Sent from my Galaxy Tab running CM7
I'm gonna hijack the thread since the OP is taking too long to reply.
I have some experience with Linux. Programming experience with HTML, Javascript, PHP, Java and C/C++.
Any tips?
FBis251 said:
I'm gonna hijack the thread since the OP is taking too long to reply.
I have some experience with Linux. Programming experience with HTML, Javascript, PHP, Java and C/C++.
Any tips?
Click to expand...
Click to collapse
get eclipse get the android sdk set them up also get the samsung sorce code from Samsung have a look at it
get fimmilar with complying your own kernels from source so on so forth read learn ask questions.
Dont be afraid of soft bricks
chris.... said:
You need either Linux or a Mac to build from source anyway
Sent from my Galaxy Tab running CM7
Click to expand...
Click to collapse
ok i will dual boot linux with windows but i have no programming experience i will be taking classes in highschool but for now nothing so i need some major help thanks for helping! Any linux OS? Which one? i need link thanks! Also need to learn c++ Thanks......HELP!
ssh678 said:
ok i will dual boot linux with windows but i have no programming experience i will be taking classes in highschool but for now nothing so i need some major help thanks for helping! Any linux OS? Which one? i need link thanks!
Click to expand...
Click to collapse
Ubuntu is pretty easy to use
Sent from my Galaxy Tab running CM7
ubuntu is easy to learn.. Read read everything best advice i can give the reason i stated eclipse is u can test of a fake phone via the program without fear of killing ur own device for apps and what not lol thats always a plus
ssh678 said:
ok i will dual boot linux with windows but i have no programming experience i will be taking classes in highschool but for now nothing so i need some major help thanks for helping! Any linux OS? Which one? i need link thanks! Also need to learn c++ Thanks......HELP!
Click to expand...
Click to collapse
You'll wanna learn Java, specifically, Object Oriented Programming. Stick to one of the more popular Linux distributions since it'll be easier to get your computer set up and deal with driver problems and the like. For now, maybe Ubuntu would be your best choice.
Come on, don't blame on me,but do you have any ideas of Linux otherwise this will be a thread with only HOW-TO install Linux and how to fetch repo and mod them to destroy the main reason they were build. TO WORK ON YOUR PHONE !
I don't want to be rude! Im only think that it is senseless to learn first android devin, when you never used Linux befor :/
Sent from my Nexus S using XDA Premium App
Borky_16 said:
Come on, don't blame on me,but do you have any ideas of Linux otherwise this will be a thread with only HOW-TO install Linux and how to fetch repo and mod them to destroy the main reason they were build. TO WORK ON YOUR PHONE !
I don't want to be rude! Im only think that it is senseless to learn first android devin, when you never used Linux befor :/
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
hate to say it he does have a point with 0 prior experence u might wanna start learning linux first and foremost and work from there
Yeah but this thread is a good idea for people who are halfway there and want to learn
Sent from my Galaxy Tab running CM7
never said it wasnt

[WIP]Brand New ROM Kitchen In The Works

Alright guys. Dsixda's kitchen has helped me a lot as I'm sure it has a lot of others... but its a little out dated and lacking a lot of newer developments... that's why I am here.
My name is Austin Conn and I am working on a new android rom kitchen... but I need help...
I am asking for users to post what they want in the kitchen. Throw up anything you can. Tweaks. Tools. Source. Whatever. Post a reply with your request and a link to the guide for it and I will look into it. Once I have the basic framework built, ill re update this op but I need ideas...
Thanks guys...
Sent from my Droid2Global using Tapatalk
windows supported/ help menu/ galaxy s I and II compatibility / tutorial based on porting guide/ rules of thumb section and linked to an irc support channel/ custom recovery cooker/ glossary and faq links
Via OG Epic 4g Cm9 & NYGiants 2012 Champions!!!!!
build a zImage on windows. you could unpack it with a perl script previously.
thanks!
Galaxy tab 7+ support/ exynos
What language are you developing in? Are you going CLI again or GUI? I'm currently developing a wrapper-like assembly of the adb binary for .NET and going to distribute as a dll. Pm me, as I would like to help out on this project if you need the extra hands.
Right now its only for Unix systems. Its written in bash however will have a nice GUI to use
Sent from my Droid2Global using Tapatalk
Pm me, I think we can have a good talk about including the tools I made
Greets!
After a crap ton of research a GUI is NOT possible right now WITHOUT learning a new language. Also. Windows support does not look like a possibility either. Sorry guys. However i believe this will be an amazing tool.
Sent from my Transformer TF101 using Tapatalk
atc3030 said:
After a crap ton of research a GUI is NOT possible right now WITHOUT learning a new language. Also. Windows support does not look like a possibility either. Sorry guys. However i believe this will be an amazing tool.
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
This guy....xD....ohh man im rolling.

Tutorial: Android Internals - Building a Custom ROM, Pt. 1 of 2

This for those this a great , aw some step by step tutorial with in depth nareation on how to truly build Android . I have yet to see a tutorial that is deeper than ripping and repackaging a Rom. This teaches it all to you
Android Development.
http://www.youtube.com/watch?v=1_H4AlQaNa0
In this two-part series, Marko is going to show you how to build a custom Android ROM from scratch. This series will cover:
Building Android From Source
- Setting up your machine
- Getting the source code: git and repo
- Building the source code
- Android project layout - what is what
Building Custom Android ROM
- Customizing the build
- Adding and removing applications
- Rooting the device and modifying users
- Modifying startup process
- Installing native libraries
Modifying Android Frameworks
- About Android frameworks and services
- Sensor service
- Telephony service
- Multimedia framework
I glad to engage in this work. I now start learning
PrakashGD said:
I glad to engage in this work. I now start learning
Click to expand...
Click to collapse
Look here:
http://forum.xda-developers.com/showthread.php?t=1404442
This was way too much. Still didn't help with other problems.
See what it was trying but for a newb want the best tutorial.
Sent from my SPH-L710 using xda app-developers app
This tutorial is brilliant im surprised there isnt more like this!
fabzbear said:
This was way too much. Still didn't help with other problems.
See what it was trying but for a newb want the best tutorial.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
No offence but If this tutorial is way to much, you should even be considering building a custom rom
JoinTheRealms said:
This tutorial is brilliant im surprised there isnt more like this!
No offence but If this tutorial is way to much, you should even be considering building a custom rom
Click to expand...
Click to collapse
Let me rephrase what I said because I'm reading it now and I can see why it came across like that.
The tutorial is ok and it shows a couple in depth stuff but it doesn't fully cover everything, not the little things I've had to go around xda to find to make my build work.
Simply put it not a full tutorial but it comes close.
Sent from my SPH-L710 using xda app-developers app
AWESOME and thanks for posting, definitely checking this out =D =D =D
i will definitely check this out! thanks!
Does it work on Windows Vista?
Thanks for sharing!
fabzbear said:
This was way too much. Still didn't help with other problems.
See what it was trying but for a newb want the best tutorial.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I feel your pain bro.
Wasnt that long ago when I was a noob too
However, I suggest you check out this dudes post. Helped me a lot back then.
peace B|
http://forum.xda-developers.com/showthread.php?t=1862782
Does this really helped anyone??
I just wanna know because i own a non famous android phone which has very less roms and mods so i just wanna use this method to compile
ROMs for my phone from sources like cm repos.
i used to make pots roms for the lg p500, i tried to make one for my atrix 2 and nothing, i asked to some developers of atrix 2 (very famous by the way) and i tell them how i make those ports and they tell me that it was other metod for our atrix 2, and NEVER TELL ME WHAT WAS THAT METOD, I ASK LIKE 3 MORE TIMES AND NEVER GET AN ANSWER. It was depressing :crying::crying::crying:
Hi thanks for posting this tutorial and for your work. One thing would like to ask is if anyone no's of some more links or books as I would like to learn how to code and correct bugs and add features to ROMs or build my own. I would greatly appreciate any help thanks in advance.

Building roms

Sorry if this is in the wrong section,but all I really want to know is what I need to learn in order to properly take an ruu img and build my own Rom from it. What code language? What do I need on a pc? Where should I start? I have no real background in coding, but would love to learn, and I pick things up pretty quickly. Once again sorry if this is wrong place to ask. Thanks in advance for any help and direction given.
Sent from my HTC One X using Tapatalk 2
I would also like to know this.
Sent from my One X using xda app-developers app
Nrod0784 said:
Sorry if this is in the wrong section,but all I really want to know is what I need to learn in order to properly take an ruu img and build my own Rom from it. What code language? What do I need on a pc? Where should I start? I have no real background in coding, but would love to learn, and I pick things up pretty quickly. Once again sorry if this is wrong place to ask. Thanks in advance for any help and direction given.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
SkizzMcNizz said:
I would also like to know this.
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
Sent from my HTC One X using xda premium
Here is a tutorial for building custom rom
http://forum.xda-developers.com/showthread.php?t=1663594
You need to post in Q&A
ROMs built off the RUUs are not "coded", they are the final product zip.
People use kitchens/manually deodex, zipalign, and others before adding their own tweaks and stuff by decompiling the APKs and editing the smali code (which is annoying as hell, FYI)
The other type of ROM is AOSP ROMs. Thats primarily what I work with, since we have the source code. AOSP is in C, C++, and Java.
If you want any help with the latter option, feel free to PM me.
rohan32 said:
ROMs built off the RUUs are not "coded", they are the final product zip.
People use kitchens/manually deodex, zipalign, and others before adding their own tweaks and stuff by decompiling the APKs and editing the smali code (which is annoying as hell, FYI)
The other type of ROM is AOSP ROMs. Thats primarily what I work with, since we have the source code. AOSP is in C, C++, and Java.
If you want any help with the latter option, feel free to PM me.
Click to expand...
Click to collapse
Go to this guy, he is a pro.
Sent from my HTC One XL using Tapatalk 2

[COMMUNITY PROJECT] [DEV] New Android Emulator for Testing/Developing Custom Roms

I know the SDK has AVD, but it's outdated and extremely slow. You can install custom roms on it but only older ones because its based on the yaffs2 filesystem and most current roms use EXT4. I had high hopes for bluestacks too but its locked down pretty tight and I don't see us being able to flash roms to it anytime soon. We have emulators for pretty much everything else, something like this shouldn't be too hard if we work at it. Dynamic recompilation seems to be the best way to go, but feel free to give input if you feel otherwise.
I guess our starting point should be here: http://fms.komkon.org/EMUL8/HOWTO.html
The man who wrote the guide above is some high-end developer that builds emulators for Android, but he seems to be pretty knowledgeable. He has an email you can contact him if you need help with a specific thing: [email protected].
As they come in, I'll list all the information regarding developments in this project in the post below.
Reserved
Reserved
Wow! Looks an excellent project for Devs
I have few questions
1. Will be there a possibility to define and emulate specific devices?
2. How ROMs are flashed, the emulator will have a recovery too?
3. How many of you are working on it?
varun.chitre15 said:
Wow! Looks an excellent project for Devs
I have few questions
1. Will be there a possibility to define and emulate specific devices?
2. How ROMs are flashed, the emulator will have a recovery too?
3. How many of you are working on it?
Click to expand...
Click to collapse
1.) One of the goals would be hardware and kernel emulation, I would imagine they could be set as variables where you could input your own kernel and we could make some predefined hardware options for you to choose from. It would be hard but I think it could be done.
2.) I don't exactly know, but seeing as that's how we already do it we could try. Early alphas would probably be more of a "kitchen" where your menu is in the terminal and you manually put your files in the respective folders.
3.) Just me at the moment, I haven't found anyone to help. I haven't really made too much progress either, right now I'm decompiling AVD to figure out how it runs.
If this works, it would be a lifesaver. I say we should PM you any predefined device settings we want, and have a drop down list that automatically sets it. And to emulate recovery I don't see happening like on our devices, but maybe some of the wipe features, and flashing over a current rom? Also anything you need for help I can do, just ask. I'm good at design, and UI, just can't create it myself. And can you possible make it cross platform? Because I switch between windows and Linux.
Sent from my NookTablet using xda app-developers app
evodev said:
If this works, it would be a lifesaver. I say we should PM you any predefined device settings we want, and have a drop down list that automatically sets it. And to emulate recovery I don't see happening like on our devices, but maybe some of the wipe features, and flashing over a current rom? Also anything you need for help I can do, just ask. I'm good at design, and UI, just can't create it myself. And can you possible make it cross platform? Because I switch between windows and Linux.
Sent from my NookTablet using xda app-developers app
Click to expand...
Click to collapse
I'm using Ubuntu 12.04 right now, so it's going to be Linux at first but once its stable enough the plan is to make it cross-platform. And I do need help, I need all the help I can get! Hence community project haha.
flapflip22 said:
I'm using Ubuntu 12.04 right now, so it's going to be Linux at first but once its stable enough the plan is to make it cross-platform. And I do need help, I need all the help I can get! Hence community project haha.
Click to expand...
Click to collapse
I can live with Linux at first. And I know, but I mean any help a non-coder can give. I will at least test it, and give some device specifics, but anything else that I can really do?
Sent from my NookTablet using xda app-developers app
evodev said:
I can live with Linux at first. And I know, but I mean any help a non-coder can give. I will at least test it, and give some device specifics, but anything else that I can really do?
Sent from my NookTablet using xda app-developers app
Click to expand...
Click to collapse
Either way, I appreciate the help! Ill PM you if I need a tester and you should pop in every once in awhile to see how things are coming along. I'm not going to lie, this is harder than I thought it was but it seems do-able the more I study AVD.
I'm thinking we might be able to change the filesystem on AVD to run EXT3/EXT4 and get it to run a little smoother and build it to run without eclipse, then modify it to fit our needs.
That's sound good. And anyone who would get the most use of it would be fine with a terminal based one right now, and you can work on a GUI later unless someone else helps you soon. I'll keep checking as this comes along, hopefully it won't take too long to get a preview working.
Sent from my NookTablet using xda app-developers app
I am too up for testing!
You can use Qt for GUI, its easy.
Its based on C++ and hence is very fast than other GUI libraries.
varun.chitre15 said:
I am too up for testing!
You can use Qt for GUI, its easy.
Its based on C++ and hence is very fast than other GUI libraries.
Click to expand...
Click to collapse
Any chance you would know how to use it and can help him?
Sent from my NookTablet using xda app-developers app
evodev said:
Any chance you would know how to use it and can help him?
Sent from my NookTablet using xda app-developers app
Click to expand...
Click to collapse
Yes I can
You can see my tool in my signature. It is based on Qt
varun.chitre15 said:
Yes I can
You can see my tool in my signature. It is based on Qt
Click to expand...
Click to collapse
That's good. And your sig isn't showing up in the tapatalk app.
Sent from my NookTablet using xda app-developers app
I feel pretty confident in this project, I'm going through Androids source code starting with 1.5
I've been thinking this over, it would be much easier to add EXT3 and EXT4 support to AVD and tweak it for speed. Im working on it now, ill try to get an early alpha out as soon as I can put it together.
flapflip22 said:
I've been thinking this over, it would be much easier to add EXT3 and EXT4 support to AVD and tweak it for speed. Im working on it now, ill try to get an early alpha out as soon as I can put it together.
Click to expand...
Click to collapse
Great
Do lemme know if you need any help with GUI
Originally Posted by flapflip22
I've been thinking this over, it would be much easier to add EXT3 and EXT4 support to AVD and tweak it for speed. Im working on it now, ill try to get an early alpha out as soon as I can put it together.
Click to expand...
Click to collapse
Great
Do lemme know if you need any help with GUI
Click to expand...
Click to collapse
Will do!
I'm not asking for an eta or anything, but have you got anything working yet, or still looking at the code? I really want to try this out soon.
Sent from my NookTablet using xda app-developers app
What is the status?

Categories

Resources