Creating a Rom and Kernel. - XPERIA X10 General

So as everyone has probably noticed alot of people have opted-out of the X10 community, developers and consumers alike.
I have this phone for another year so I would like to learn how to create rom's and kernels so I can contribute back to those who have help fed my flash addiction.
Where do I start??
Thanks in advance for the input,
Vader
Sent from my X10i using XDA App

I would also like to learn how to make my own ROM and kernels to contribute to the site and phone.

It won't come to you automatically guys .
Read through the forum , Read Read & Read .
Experiment things .. You'll get lots of headaches , But it'll be worth it .
& Then ask for help , There should be a issue to solve right .

Thanks Oodie. I didn't know there was an entire section of the forum dedicated to this as well.
Nathvader check this out.

Oh well would you look at that! Ok everybody I should have ICS port and kernel up and running by tomorrow...
hehe jk will start small thanks for the help Oodie love your roms btw!
Also good luck Dragon Outlaw King!

(Maybe) this could be useful too: http://forum.xda-developers.com/showthread.php?p=17788748

can you use windows to create roms i was told you can only do so with linux and mac

Da_Reaper said:
can you use windows to create roms i was told you can only do so with linux and mac
Click to expand...
Click to collapse
I believe you can develop in whatever environment/OS you want, but you will need a working knowledge of linux to be able to work on kernels especially and ROMs too (someone correct me if I'm wrong).

unburleyvable said:
I believe you can develop in whatever environment/OS you want, but you will need a working knowledge of linux to be able to work on kernels especially and ROMs too (someone correct me if I'm wrong).
Click to expand...
Click to collapse
For kernel stuff I think you have to be on Linux, because of the required dependencies and libraries.
Sent from my Snapdragon.

Can anyone get me a link for rim making like what programs I need
Sent from my Nexus S 4G using Tapatalk

Da_Reaper said:
Can anyone get me a link for rim making like what programs I need
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
There's a whole sub-forum on this site for Android Rom Cooking, why don't you have a look in there...
Sent from my Snapdragon.

First u need a fast internet connection to download stuff(kitchen,sdk.etc)
Then a Linux machine(u can get it for free)
Then its not easy as u put popcorn in ur microwave and it comes out cooked
U need to learn commands(Different commands are required for different things)
Like u have to type many commands to compile(correct me if i m wrong)
And if u get errors their are different commands to solve that error
I know only this much but i don't know any command

I have windows
Sent from my Nexus S 4G using Tapatalk

Related

[Q] How to port/cook an Android ROM for HD2 (chefs please help)

Hello
I'm looking for some hints about the subject: how anyone can take a shipped, let me say, HTC Desire rom and let it work on HD2.
I'm not talking about doing heavy tweaks, modifications and so on... just to take a stock Android ROM and have it working on HD2.
I asked to some chefs and received some hints but It's not enough.
I don't want to think that this is a "secret" and I think would be great if some chef would share his experience/step-by-step instruction on how to do this.
As I said before, I think we could start just with simple porting of a stock htc desire ROM, just to understand all the steps. I think that further steps on how to customize and tweaks will be explored later and anyone could experiment itself.. but we need a basic starting point.
Some step by step instruction will be great like:
1) Download shipped rom from here .........
2) unrar it in linux folder
3) copy this folder, rename the other one, dowload this file, copy this...
4) execute shell command XXXXX
5) copy on your sd card
6) boot...
of course I know it's not so easy, but is just an exaple on what I ask here. I think there are a lot of other perople looking for this.
Thanks to any chef/dev that would to explain to our noobs how to get the "magic"
p.s.
I ask the moderators to keep, if possible, this thread in the Dev forum... this because we need help from devs here and in the Q&A forum it will be never noticed.
I came across this the other day that maybe of use:
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2
Tallon said:
I came across this the other day that maybe of use:
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2
Click to expand...
Click to collapse
Yes, I was pointed to that thread too. If you look at the end there are some questions I did. The problem is that is based on MIUI... That is already a custom ROM.
I think the better way to understand the process (not just do it) is to have hints on how to port a standard/stock HTC DESIRE rom.
rafpigna said:
Yes, I was pointed to that thread too. If you look at the end there are some questions I did. The problem is that is based on MIUI... That is already a custom ROM.
I think the better way to understand the process (not just do it) is to have hints on how to port a standard/stock HTC DESIRE rom.
Click to expand...
Click to collapse
Ideally the same way. In theory it should work...I never tried because sense builds (especially hd ones) are very laggy
domineus said:
Ideally the same way. In theory it should work...I never tried because sense builds (especially hd ones) are very laggy
Click to expand...
Click to collapse
Hello, I was just replying on the other thread to thanks you for the answers
I will try to follow your guide to port a stock desire rom (strange that are laggy for you... for me they fly...)
Anyway it's still something not clear about the donor files... If it's ok to take them from an already HD2 working rom or not.. but I will ask on your thread, avoid to make confusion
no one tip from the devs?
I'm start thinking that instructions on rom cooking for hd2 is like a secret
I've asked this many times, but as you said, no one seems to want to share this "secret"...
the_scotsman said:
I've asked this many times, but as you said, no one seems to want to share this "secret"...
Click to expand...
Click to collapse
go to the link...
it pretty much puts how to port and even where to get the files for a working miui/cm 6 build on hd2
literally it can't get that much easier...
domineus said:
go to the link...
it pretty much puts how to port and even where to get the files for a working miui/cm 6 build on hd2
literally it can't get that much easier...
Click to expand...
Click to collapse
I think you are the only one that shared your findings.. Hope others will do.
Anyway I'm trying just know your guide.. I'll let you know.
good thread and wish everyone to share your cooking knowledge here.
its good for the XDA community.
i am a newbie to android system and trying to cook my own rom too.
pls ask/share your question here, lets make it easier to cook/modify android for everyone.
of course this cannot success without chefs support.
hi there, i m newbie too want so bad to change my hd2 winmo to androis cos winmo is really suck!!! thanks a million to chefs in advance!
most appreciated if there is step by step info
ahuh said:
hi there, i m newbie too want so bad to change my hd2 winmo to androis cos winmo is really suck!!! thanks a million to chefs in advance!
most appreciated if there is step by step info
Click to expand...
Click to collapse
you can start with one of the hunderd rom that chefs already cooked. This thread is just to ask help with cooking a rom, you have not to wait.. you already can use android daily on your phone.
I have had success building with this guide but cannot get it to work with cedesmith's new initrd.gz. Does anyone have done tips on how to build with the new initrd.gz?
Sent from my HTC HD2 using Tapatalk
tyween said:
I have had success building with this guide but cannot get it to work with cedesmith's new initrd.gz. Does anyone have done tips on how to build with the new initrd.gz?
Sent from my HTC HD2 using Tapatalk
Click to expand...
Click to collapse
Did you cook a MIUI rom or a Sense rom or a stock android rom?
For the cedesmith's initrd.gz I was thinking the same thing.. maybe we have to ask directly to him.
wow, both tyween, and rafpigna, started from this, to now:
Rafroid
Typhoon
best roms on xda. Really nice work guys!
But still, no one shares the "secret" I have tried several things myself, but it didnt work. Would really appreciate if someone could share how to port a rom to the hd2.
Yeah would be great if tyween and rafpigna let us know how they managed it, what guides/reference they started of on or if they have any tips for us etc
I totally agree, I would definitly cook my own rom if I knew how to...

[CMC] Missing CM7 Nightlies? Do it yourself ______!

Compile CM yourself.
http://forum.xda-developers.com/showthread.php?t=1415661
Have fun, and please try to learn something too!
lithid-cm said:
Compile CM yourself.
http://forum.xda-developers.com/showthread.php?t=1415661
Have fun, and please try to learn something too!
Click to expand...
Click to collapse
I've been following that thread and was inspired to install ubuntu so I could join in the fun. This in turn lead me to updating my BIOS, & modifying my power supply to allow a second hdd. Now, I'm stuck at properly installing GNU make haha.
Thanks for the contribution Lithid. One request unrelated to CMC, could you post the tools necessary in ubuntu to compile an HTC kernel? EVO's got an OTA update to 4.67.651 Android 2.3.5 this included a new kernel and I'd like to play with modding it. I am aware this is above my pay grade so to speak, but enjoy the challenge of learning something new.
Once again thanks Lithid.
Sent from my PC36100 using xda premium
jamieg71 said:
I've been following that thread and was inspired to install ubuntu so I could join in the fun. This in turn lead me to updating my BIOS, & modifying my power supply to allow a second hdd. Now, I'm stuck at properly installing GNU make haha.
Thanks for the contribution Lithid. One request unrelated to CMC, could you post the tools necessary in ubuntu to compile an HTC kernel? EVO's got an OTA update to 4.67.651 Android 2.3.5 this included a new kernel and I'd like to play with modding it. I am aware this is above my pay grade so to speak, but enjoy the challenge of learning something new.
Once again thanks Lithid.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
The thread has a list of needed tools, those will do. Also, remember it takes a while for HTC to release kernel source.
Sent from my SGH-I777 using xda premium
lithid-cm said:
Compile CM yourself.
http://forum.xda-developers.com/showthread.php?t=1415661
Have fun, and please try to learn something too!
Click to expand...
Click to collapse
Good stuff..
Sent from my PC36100 using xda premium
I am missing CM nightlys. Anyone figure out how to compile?
welshwarriorsf said:
I am missing CM nightlys. Anyone figure out how to compile?
Click to expand...
Click to collapse
Ummm read the guide in the link lithid posted
We are legion, for we are many.
Yeah I did dumbass but I know nothing of the programs needed nor do I have a computer to even run them on. So ill ask again. Has anyone been able to compile CM7?
Well dumbass then you can't compile the nightlies you need a computer to do it ffs if you don't know how to do something learn if you don't have the tools then you can't learn this thread was for people to compile the nightlies for themselves alot of ppl have gotten it to work if you read the thread you'd know that, your question really makes no sense since you don't have the tools to compile are you asking someone to do it for you, being vague in your question then calling ppl dumbass and having a smartass response isn't going to get you a handout. I can compile from source, but with your response I'd tell u to shove it before I compiled anything for you
We are legion, for we are many.

[MINI GUIDE] Phone Vocabulary - x8 Specific

This thread is being created to explain, in short, a few common phone 'terms.' Now although there are many threads explaining the same thing they are 'thicker' and written differently. A different guide will help a different person. I think it is valid that there is more than one explanation of the same thing. If you have ANY suggestions, please leave them in post form below. I have explained this relative to the Xperia x8 and this is why it is in our territory.
Remember that this is a MINI guide. So not every term in the android language will be explained. For a more complicated guide see HERE or on the everything x8 w8 thread here. Both guides are different.
Anyway Here is a mini guide about phone terms:
A ROM stands for Read Only Memory, ususally on this site referring to the phone's internal memory where your apps are stored. It's like an operating system. (OS) When people say they're flashing a new ROM, it usually means they are installing a new 'operating system'. A custom rom may have new features different to the STOCK rom.
The term Stock usually means the version of something installed by the manufacturer. Or in other words, the stuff already on that thing.
An .APK is a Package on Android. Usually you will meet these when installing apps on your phone. This is, simply put, just a file extension, like .exe on windows.
Rooting is simply giving your phone administrators rights. No roms or anything. Once rooted you could install clockworkmod which would allow you to install a rom that would work on you STOCK kernel (the one that comes with xperia).
A kernel is a set of instructions to a phone. different kernels or custom kernels (not stock) enable you to flash some more advanced roms as not all roms will work on STOCK kernel.
Also, in most cases, different kernels allow overclock and undervolt. These things allow you to make your device run faster.
Unlocking your BootLoader is required to install a custom kernel. Unlocking a bootloader can be difficult and if done wrong, can brick your device completely.(make it useless like a brick) This is why I did not do it until a few weeks ago - because I was scared. If you do however find yourself bricked, look to my guide no further than HERE.
You flash kernels with Flashtool. But you MUST have an unlocked BootLoader to do this.
If I was to recommend a rom, I would say MiniCyanogenmod (CM for short). The developer, nAa, focuses on getting the galaxy nexus android - pure version. Check out my review on the stable ever wonderful MiniCM9 HERE.
Links to Flashtool, ROMS and other things mentioned will be in my other guides hyperlinked in the article.
Please be generous with the 'Thanks' if you appreciate my effort.
Special Thanks to I Am Nice for his consistent helpful feedback
You should better explain what kernel is. Like conection between hardware and ROM
Sent from my E15i using xda app-developers app
Godra said:
You should better explain what kernel is. Like conection between hardware and ROM
Sent from my E15i using xda app-developers app
Click to expand...
Click to collapse
Please elaborate
All this is explained in "Everything X8/W8". Please, make something new instead.
Sent from my E15i using xda app-developers app
IAmNice said:
You only explained 3 easy terms. Im not 100% sure if this would help noobs? I like your guides but this one is not really helpful.
Sent by a nice guy with a nice phone
Click to expand...
Click to collapse
Since this comment I have started improving.
Chris95X8 said:
All this is explained in "Everything X8/W8". Please, make something new instead.
Sent from my E15i using xda app-developers app
Click to expand...
Click to collapse
Please Read Again
A different guide will help a different person. I think it is valid that there is more than one explanation of the same thing.
Good work.
Sent from my X8 using Tapatalk 2
Deftone said:
Are you illiterate to my Post?
A different guide will help a different person. I think it is valid that there is more than one explanation of the same thing.
Click to expand...
Click to collapse
Pls don't disrespect chris. I can tell you he knows what he's saying (he didn't get to become RT for nothing).
I admire your efforts, but please add more definitions. For example: you didn't really explain what "bootloader" means. And like chris has said, it's already explained (in morr detail) in another thread. Hopefully you'll add more jargons in the near future. Good job though. :beer:
Edit: you may want to report those users thay are stalking you.
Sent from my E15i using xda premium
cascabel said:
Pls don't disrespect chris. I can tell you he knows what he's saying (he didn't get to become RT for nothing).
I admire your efforts, but please add more definitions. For example: you didn't really explain what "bootloader" means. And like chris has said, it's already explained (in morr detail) in another thread. Hopefully you'll add more jargons in the near future. Good job though. :beer:
Edit: you may want to report those users thay are stalking you.
Sent from my E15i using xda premium
Click to expand...
Click to collapse
Thankyou. After reading this again. I see that I have crossed the line on that one. Apologies to Chris and thanks to you. :fingers-crossed: I was quite tired and wasn't really paying attention. But I have typed that same line so many times that those keys on my 'board are worn out. Just a bit angry. But sorry again. No disrespect was intended.
Deftone said:
Thankyou. After reading this again. I see that I have crossed the line on that one. Apologies to Chris and thanks to you. :fingers-crossed:
Click to expand...
Click to collapse
Sorry if i sounded harsh. I support what you're doing (we need guys like you willing to contribute). Please take it as constructive criticism.
Sent from my E15i using xda premium
Thanks for this awesome thread

[ INFO ] Links to Get you Started Working with Android

Ok so I've gotten a few ( quite a few ) PM's about wanting to get started doing some " Dev " type stuff. Since I'm not the even close to the being able to teach . I'll do the next best thing I can. I'll Link you guys to Guides, Tools, and anything I can think of that you may need to get going in the right direction. Just remember READ, READ, and READ some more. Don't be afraid to use the search feature . Oh and BTW this is just the ones I know of, and can think of right now ( It's been a long day ). If anyone else knows of any feel free to post up. I know I'm forgetting stuff. I'll change the OP as it needs to be adjusted.
One last thing. Although by all means I encourage you hitting the THANKS Button for the Links . I would also remind you to hit the THANKS Button for the authors of the Guides Linked. They put a lot of work and Effort into them, and I'm sure they would appreciate it .
Thank you Gentleman for the suggestions and Additions to the Links. It is much Appreciated.
A Chronicled History of Android Operating System
Android Terms, Slang & Definitions
ADB Workshop and Guide for everyone
What Is ClockworkMod Recovery And How To Use It On Android
Noob Guide To Set File Permission's
How To Use Titanium Backup For Android
Noob Guide To Set File Permission's
How To Logcat
Android CPU governors explained
SetCpu guide on how to use
dsixda's Android Kitchen
TUT for NOOB editing updater-script for noobs!
Beginners Guide to Android ROM Development
How to use Apktool Apk manager Baksmali and Adb
Android Utility - [apktool|dex2jar|smali|more][Mac & Linux]
Jar/Apk baksmali smali compiler and decompiler
Better Draw9patch Program
UOT ( Ultimate Online Theme Kitchen )
Building Your First Kernel
APKtool
M10 Tools
M10 Virtuous Ten Studio
APK Manager
Much appreciated. I'm nowhere ready to start on any significant dev work, but i'd like to try my hand at it after the first of the year. I know the basic basic basic basics of programming in general and i can follow logic well enough, its just time consuming to sit down and actually try it out. But i absolutely love the shift and would love to see things continue with it.
nice collection you got going on there prboy, im sure a lot of people will find this very helpful
Just trying to help out .
I would also link to baksmali & dot9 compiler, don't have links handy right now since I'm at work
Sent from my HTC Evo Shift using xda app-developers app
BigSplit said:
I would also link to baksmali & dot9 compiler, don't have links handy right now since I'm at work
Sent from my HTC Evo Shift using xda app-developers app
Click to expand...
Click to collapse
Thanks . Added them to the OP. But if you know of better ones, let me know .
Looks really good prboy!
This should help noobs like myself get started
Sent from my PG06100 using xda premium
prboy1969 said:
Thanks . Added them to the OP. But if you know of better ones, let me know .
Click to expand...
Click to collapse
The best Linux tool I've used is by Tommytomatoe called android-utility and I'm almost sure there is a mac version.
Has adb functions to push and pull,a logcat function uhm will do apks and jar files.
Another Linux tool I've tried was something along the lines of studio android and the last I checked that tool would set ones Linux box up to compile from source in a gui I'm guessing something like lithids.
Maybe a Windows tool to have would be win merge if it let's you compare text files and directory's to see what's different
Sent from my miTouch-4G-Slide using Tapatalk 2
Kool . I was thinking about TT's Android Utility. Will add it to the OP.
EDIT : Added
TEAM MiK
MikROMs Since 3/13/11
Here's a noobs guid to file permissions I've used. http://forum.xda-developers.com/showthread.php?t=1857648 maybe it can be useful.
Sent from my PG06100 using xda premium
Chad The Pathfinder said:
Here's a noobs guid to file permissions I've used. http://forum.xda-developers.com/showthread.php?t=1857648 maybe it can be useful.
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Added . Thanks.
Bumpity bump.
--
If I have helped you in ANY way, feel free NOT to hit the thanks button
Found a good one for n00bs. Like me
http://forum.xda-developers.com/showthread.php?t=1459945
Here's another good one. http://forum.xda-developers.com/showthread.php?t=1931585
Thanks guys . Will add those later tonight.
TEAM MiK
MikROMs Since 3/13/11
Updated links in the OP . Thank you gentleman for the Additions.
Here's another updater-script and Edify guide
http://forum.xda-developers.com/showthread.php?t=1265120
Sent from my PG06100 using xda premium
Thanks cnexus for this. I've been wanting to figure a few things out about updater scripts. I'll be reading this later when I have some time.
Chad The Pathfinder said:
Thanks cnexus for this. I've been wanting to figure a few things out about updater scripts. I'll be reading this later when I have some time.
Click to expand...
Click to collapse
No problem, I found it through xda-university
Sent from my PG06100 using xda premium
CNexus said:
No problem, I found it through xda-university
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Yeah that is a pretty nifty site. I think noobs should have to go through it before posting in the development section lol

[HELP] My made Custom ROM wont boot

I recently started a project of a ROM with my Dev Team but the main problem we are facing is that the ROM gets flashed but when we restart it gets stuck on the Galaxy Y screen :crying: pls. Help
wrong section.... post in ques and ans
Sent from my GT-S5360 using xda app-developers app
want me to report the Captain??
logcat will help...
Sent from my GT-S5360 using Tapatalk 2
Ganesh A said:
logcat will help...
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Yes provide the log cat
ROM EVOLUTION X3
KERNEL HELL FUSION
ALINS JB THEME + EVOLUTION S3 STATUS BAR.
Want To Ask Question? Ask Here
technosavie said:
Yes provide the log cat
Click to expand...
Click to collapse
And
Code:
if (!logcat) you_broke_the_kernel;
Why would you start a ROM project with a "dev team" if you don't even know how to debug boot problems?
arnavsynergy said:
I recently started a project of a ROM with my Dev Team but the main problem we are facing is that the ROM gets flashed but when we restart it gets stuck on the Galaxy Y screen :crying: pls. Help
Click to expand...
Click to collapse
Chk Ur framework or kernel most times problem in framewrk ...some time kernel not supported some init.d like hell lock kernet not booted if 99complete tweak present in init.d folder .. so i thnk problem in these two...!!
Sent from my GT-S5360 using xda app-developers app
this question is asking the same logic as "why is my computer slow?"
there are 78,644,223,887 available reasons why,
i'd suggest broadening your "team's" knowledge of the principles and basics of the software industry,
Did you cook your rom with kitchen...If yes then youm must sign your rom and all apps inside it.To My thoughts the rom does'nt even start this is the most common case.Check whether your rom contains boot.img and build.prop as if Kitchen din't report any error.If you modified framework please sign it with Jarsigner and other modified apps also.Now sign your rom with kitchen and then flash it.....
Gud luck,
Im awaiting your rom..
optimusinc
Best I can say is try installing the modded apps one by one..c if they work..then test ur tweaks to b if they work..n finally make the zip file correctly by comparing to other zips..mostly probably u messed up ur updater script..
Thanks....
Sent from my GT-S5360 using xda app-developers app
MarcoToo said:
And
Code:
if (!logcat) you_broke_the_kernel;
Why would you start a ROM project with a "dev team" if you don't even know how to debug boot problems?
Click to expand...
Click to collapse
What is the problem.... I am a Rookie! Still, I am new to the ROM business
Sent from my GT-S5360 using xda app-developers app
arnavsynergy said:
What is the problem.... I am a Rookie! Still, I am new to the ROM business
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
i understand that you are a budding developer,
however i've seen you making threads recently on issues that could be solved be either doing research and proper utilization of the search function,
if you really want to learn i'd suggest learning it the proper way by researching the basics and understanding how the android system works, making question threads won't help you at all and it never did for everyone else,
as you can see you need to look for the answers on your own,
considering google and xda has both a search engine,
please care to look into those matters which confuses you,
try first building your own updater-script and making a flashable zip file,
proper ROM building is not easy so i'd suggest keep your heads up and learn it the right way,
also,
people will just probably troll and ridicule you with threads like this
deathnotice01 said:
i understand that you are a budding developer,
however i've seen you making threads recently on issues that could be solved be either doing research and proper utilization of the search function,
if you really want to learn i'd suggest learning it the proper way by researching the basics and understanding how the android system works, making question threads won't help you at all and it never did for everyone else,
as you can see you need to look for the answers on your own,
considering google and xda has both a search engine,
please care to look into those matters which confuses you,
try first building your own updater-script and making a flashable zip file,
proper ROM building is not easy so i'd suggest keep your heads up and learn it the right way,
also,
people will just probably troll and ridicule you with threads like this
Click to expand...
Click to collapse
Thanks bro, And I got what you are saying! Thanks Again!

Categories

Resources