Noob Question - Custom ROM Developer - Upgrading, Modifying and Unlocking

How would one go about development of a custom rom for the Nexus one. Are there good resources, developers out there that can help?
Thanks - Dave

This is one of those things that just happens there are no steps and guide for being a developer, take a look at the stock rom and see what you can do.
You will be better off teaching yourself than having too much guidance. Plus trial and error happens when you play around with something..If you have your build envi setup that will help and you should be using linux on your pc, you can barely do anything major from windows.
Can look at this for an idea:
http://forum.xda-developers.com/showthread.php?t=566235
You dont need to use this ---> in your title--> this is better
Please try to post here,people use this section for winmo roms and other hacks
http://forum.xda-developers.com/forumdisplay.php?f=456

Related

Information regarding creation of a custom ROM

Hey, new to the forums, recently purchased a GSM Hero.
I have done some development for free software (think freedom, not price) projects, and have become accustomed to git repositories and structured development.
Upon entering the world of custom Android ROMs (at least Hero ROMs) I have been sorely disappointed with the development practices going on, releases on file sharing sites and the like.
On top of this, none of the ROMs available suit my needs.
This is all fine, as I'm not developing those ROMs.
I have decided that I need to start working on my own custom ROM, however guides and documentation regarding this process are in short supply.
It would be much appreciated if someone could link me to some guides to starting my own custom ROM.
I intend it to be a light vanilla ROM, with none of the bloat that seems to perpetuate other ROMs, I'm aware other such ROMs do exist, however none of them support all features, and even those that claim to do so, often require me to FC
naivemonarch said:
I'm aware other such ROMs do exist, however none of them support all features, and even those that claim to do so, often require me to FC
Click to expand...
Click to collapse
Have you tried this one ? >[2.1] aychteesees-vanilla-cupcake< NOT the [3.0.1]verison ..this is still @dev
http://android.modaco.com/content/h...96/3-0-1-aychteesees-vanilla-cupcake-rom-gsm/
Give it a try [2.1] ! and tell us how it went ...
Yeah I tried that one, it claims to have full functionality, however I frequently had to FC various applications.
I'm downloading 3.0.1 as we speak, however I'd still like some resources on making my own ROM.
I'm interested on this documentation too....thanks
naivemonarch said:
Yeah I tried that one, it claims to have full functionality, however I frequently had to FC various applications.
Click to expand...
Click to collapse
That's weird , I have used almost everything ( apps ) with that ROM [2.1] ... and never get FC's
Did you flashed from Zero .. I mean with all he possible wiping . inlcuding SD ext partition wipe
???
That is a MUST ..!
Before this gets too off-topic, I too would like to concur with what OP is saying. I'd love some info on where to begin with custom ROMs, and I think it would be great if we could create a community repo for code for a custom ROM.
This leads me to another question: all these custom ROMs that we see available for download -- are they free/open source? Like, do they have source code available? I certainly don't think they do, but if they don't, then aren't they violating the terms of the GPL by not providing source code?
FunkTrooper said:
Before this gets too off-topic, I too would like to concur with what OP is saying. I'd love some info on where to begin with custom ROMs, and I think it would be great if we could create a community repo for code for a custom ROM.
This leads me to another question: all these custom ROMs that we see available for download -- are they free/open source? Like, do they have source code available? I certainly don't think they do, but if they don't, then aren't they violating the terms of the GPL by not providing source code?
Click to expand...
Click to collapse
There's Paul's (modaco) online kitchen, but if you want to compile by yourself, there's a plethora of gits on github (cyanogen, lokx, kiall to mention just a few).
Good question. Yeah it would be nice if there was a 'Cooking Class' thread on this forum like in some of the other forums. There is a decent tutorial however at HTCpedia.com under the HTC Hero ROM Development section, it's in the stickies there. However, I still have questions and that forum is not visited as much as xda.
Link to cooking thread:
http://htcpedia.com/forum/showthread.php?t=1404
FunkTrooper said:
Before this gets too off-topic, I too would like to concur with what OP is saying. I'd love some info on where to begin with custom ROMs, and I think it would be great if we could create a community repo for code for a custom ROM.
Click to expand...
Click to collapse
As a start, I would read that thread I just linked above. Once you can dump the contents inside the system.img and then combine it with the boot.img to build an update.zip, then you are already halfway there - that's actually fairly easy. But knowing how to add custom kernels to the update.zip, making the custom ROM rooted, etc. are all stuff that I'm still working on. There's supposed to be a lot of info in the Dream/Magic forums, so I'll keep reading.
Android is still fairly new and very few people know how to use Linux, thus there's less support and less interest in wanting to cook for one's own Android device.
BTW, that thread I linked above is also found here.. Doh!
http://forum.xda-developers.com/showthread.php?t=551711
Thanks for the link, a good read.
Anyone know what the process is for using a custom kernel? There are a few things I'l like to enable that aren't in the HTC kernel (like FUSE).
naivemonarch said:
Thanks for the link, a good read.
Anyone know what the process is for using a custom kernel? There are a few things I'l like to enable that aren't in the HTC kernel (like FUSE).
Click to expand...
Click to collapse
If I eventually manage to find out I will post it here. My most important concern is making a rooted ROM from those shipped ROMs, as some people have been doing here.

[Q] Compiling HTC desire roms from AOSP

Hi,
Apolgies if this is in the wrong place, but this is the only forum I would expect to get my answer.
I need someone to point me in the right direction please. I'm thinking of compiling an ASOP for personal use from source. I have looked at the google tutorials and even though Linux isn't my weapon of choice, being an IT systems engineer I do not feel following the tutorial will be too difficult.
However, is there a more specific guide for the desire?
The tutorial builds for the development handsets eg Nexus one. Is it just a case of supplying the correct drivers, RIL and editing the product code, or is there a bit more to it than that?
Any help / direction greatly appreciated.
You could start with building ROMs from Oxygen or CM source. That way you can familiarize yourself with the AOSP project without worrying about drivers etc. (DevNull source is completely stock AOSP with drivers for the Desire etc.)
Later on, when you know how everything works, you can start your own project.
If you want to start building AOSP from Google source, you might want to read the tutorials over at Google for a couple of times + checking the wiki's over at CM. They pretty much explain everything that there's to it.
If you're looking for a guide specific for the HTC Desire, then I think you're out of luck. Most dev's over here start off with the tutorials over at android.com and even with tutorials etc. at CM.
Is DevNull definitely 100% AOSP + drivers? If so, then it would be pointless compiling from source anyway.
I already ran that through dsixda, but the options there are quite limited.
What I had hoped I could do was make a tiny tiny AOSP. DevNull is pretty small though, so maybe it can't get much smaller.
rootSU said:
Hi,
Apolgies if this is in the wrong place, but this is the only forum I would expect to get my answer.
I need someone to point me in the right direction please. I'm thinking of compiling an ASOP for personal use from source. I have looked at the google tutorials and even though Linux isn't my weapon of choice, being an IT systems engineer I do not feel following the tutorial will be too difficult.
However, is there a more specific guide for the desire?
The tutorial builds for the development handsets eg Nexus one. Is it just a case of supplying the correct drivers, RIL and editing the product code, or is there a bit more to it than that?
Any help / direction greatly appreciated.
Click to expand...
Click to collapse
Hi Dan, for a start, the best place to start would be building a Cyanogen Rom from source as per Cyanogen's guide here. This guide is specific for the Desire
My suggestion is to build/modify this source first, since it's actively supported by a community. Once you get a fair idea, you could move on to the vanilla source..
Btw..Linux knowledge isnt crucial for building it, and you can easily follow the guide
Edit: Oops, just reallized that I just mirrored Pyr0wl's advice

[Noob Guide] Read before you open any other thread

[]
So you got yourself a brand new, shining, awesome-as-hell HTC One X. And you want to root it. Good choice. Now, here's what you must read before you post in any thread, because this is your key to not getting flamed, or be subjected to the "roll eyes" emoticon.
So, let's get started-
A. Unlock your phone!
Go to
www.htcdev.com
Click to expand...
Click to collapse
, and unless your a noob to the web as well, the rest should be easy.
B. Root your phone and install a custom recovery-
Follow this guide-
http://forum.xda-developers.com/showthread.php?t=1577671
Click to expand...
Click to collapse
C. Okay, now here's how you've gotta flash a ROM-
http://forum.xda-developers.com/showthread.php?t=1809141
Click to expand...
Click to collapse
D. Your friends probably told you about this, or you've done it on windows. Overclocking. In my opinion, only one stable kernel supports it and it is Faux123's kernel.
There is no other kernel like it and you have got to try it out. But first, some fun facts-
1. You can find all of faux's latest kernels at http://faux.androidro.ms/ His thread title may be outdated, but that's because the ones not in the thread are betas
2. When you try out a beta you agree to post feedback with catlogs and last_ksmgs
3. Use only System tuner For undervolting or underclocking- Yes, it helps improve battery life. Only do it till -100uV or things will start bootlooping.
4. Use an app like acatlog to extract a catlog. to get a last_ksmg, use the following command in Command prompt- cat /proc/last_ksmg > /sdcard/last_ksmg.log or the following in terminal-
cat /proc/last_ksmg > /sdcard/last_ksmg.log (thanks owain94)
5. Immediately after flashing faux's kernel, Open this file using root explorer- /sys/kernel/debug/t3_variant
If your cpu_process_id=
"0"- Sorry, but your in for a world of hurt. I'd recommend only trying out his mainline edition, nothing else.
"1"- Well, you''ll do just fine, but it still sorta shaky. Don't think about overclocking though, unless you're on a beta or VF version
"2"- Knock yourself Out! ;p
"3"- Lock that phone in Fort Knox and, if you see faux lurking around your house, then just run . Jokes aside, your phone can do ANYTHING.
Click to expand...
Click to collapse
Now, for underclocking. It is a known bug that underclocked frequencies don't stick. However, n3ocort3x made a breakthrough and, using his kernel from here, you can underclock, undervolt, and set the number of cores the cpu should run on. Yes, it leads to MASSIVE battery life. Kudos, n3o.
Same rules apply- Provide a logcat and last_ksmg in case of a random reboot and be sure to provide tons of feedback! n3o spends a lot of time on these kernels and you gotta appreciate that.
Note: sense, AOSP versions are separate and have different downloads, so no need to repack.
http://forum.xda-developers.com/showthread.php?t=1873615
Click to expand...
Click to collapse
E. The ROMs:-
1. In my opinion, if you want Stability, Speed, and Smoothness without any tweaks, etc. then try out OrdroidX ROM
2.If customization (huge loads of it) is what you want, then try out ViperX ROM
3. For sense with AOSP look and feel- Renovate
4. Skinned sense- Coredroid
5. For the AOSP Experience-
CyanogenMod 10- Team EndeavorU
AOKP- LordClockan (try out the two to see the difference, it won't kill your phone!)
ParanoidAndroid- Floatshow- Tablet/Hybrid mode Android on your phone.
Domination- Owain94- A mixture of all of the above- Real Awesome ROM.Doesn't mean you don't try out the others, they got their specialities as well.
MIUI-dekkyy
4. Known bugs with all of these, don't post unless it's not according to changelog or Dev asks to know-
a. your keyboard will reset when you reboot your phone ie. swiftkey, swype, etc. will not stay default.
solution- Restore the keyboard via titanium backup, don't re-download it from the market
b. Status bar will be laggy only on the homescreen.
c. scrolling in Google Chrome may not be elastic.
Click to expand...
Click to collapse
The above is far from the actual number of roms out there and is only to simplify things for you. For a full list, please visit this link. http://forum.xda-developers.com/showthread.php?t=1832891
F. Miscellaneous things-
1. You don't need to repack Faux's, Franco's or N30cort3x kernels for sense based ROMs. REMEMBER THIS.
2. You need to repack the above for AOSP based ROMs (unless they have a specific version for AOSP like NCX).
3. Repack them yourself from here- www.nibble.cc/repack
4. Feel free to share your repacked kernels on the respective threads, but don't ask for any.
5. Don't post anything unrelated to Android Development here. This post itself is actually a great example of What shoudn't be here, but times are tough.
6. For those who previously owned an HTC, We don't yet have S-OFF. (yeah, Suckage majoris)
7. It is currently not possible to have beats audio or sense camera app on AOSP ROMs.
8. Do not ask for ETA's. I will personally destroy you.
9. Benchmarks do not indicate anything. If you think yours is impressive, then go aheaad and post it. But, do not judge the ROM based on it.
10. This forum is only for the INTERNATIONAL QUAD-CORE TEGRA 3 HTC One X.
11. Software cannot damage hardware. If your speaker is blown, screen has yellow spots, etc. HTC is who must contact. In the case of zero infinity's xloud mod, he did warn you and give a disclaimer.
12. If you don't see a download link, that's because it's not uploaded yet!
Click to expand...
Click to collapse
G. For those who dont know, here's how to flash a kernel-
originally posted by xxviperxx:
Download the file
Restart your phone into the bootloader (phone should display fastboot usb once connected to your PC)
Flash it using
fastboot flash boot boot.img
Also after flashing run
fastboot erase cache
Click to expand...
Click to collapse
There are atleast 3 times as many kernels and ROMs than those I've Posted here, and each is unique in it's own way, so check them out when you can and provide feedback. You don't become a senior member by being a silent flasher. Devs, please don't be offended I didn't post your work here, I just want it to be as simple as possible :angel:
May the force be with you :good::highfive: could someone post the last_ksmg command pls so I can addit.
MOD EDIT: SUGGESTIONS HERE ARE BASED ON THE OP EXPERIENCE, YOU MAY WANT TO TRY OTHER ROM´S OR KERNELS BY YOURSELF.
here you go buddy
from the computer in the terminal
adb shell cat /proc/last_ksmg > /sdcard/last_ksmg.log
from the temrinal on the phone
cat /proc/last_ksmg > /sdcard/last_ksmg.log
also mod please sticky this
.
Stickied for the time being, please stay on topic and with respect to others.
Thanks,
You forgot to add TeamNDVRu official CM9 and TeamNDVRu CM10
great job mate !
you should mention this thread for links to all ROMs, kernels, guides, mods, tools etc:
http://forum.xda-developers.com/showthread.php?t=1832891
Nice idea and your intentions are good but i don't think the sections D and E are complete and I don't want to be a pain but I
think it's wiser to leave your own opinion out.
There are many more kernel and rom Developers and they all deserve respect for there hard work.
About these 2 sections people should make there own choices I think,
you can't describe them in a sticky as everyone has a different opinion/experience about roms and kernels.
Laurentius26 said:
Nice idea and your intentions are good but i don't think the sections D and E are complete and I don't want to be a pain but I
think it's wiser to leave your own opinion out.
There are many more kernel and rom Developers and they all deserve respect for there hard work.
About these 2 sections people should make there own choices I think,
you can't describe them in a sticky as everyone has a different opinion/experience about roms and kernels.
Click to expand...
Click to collapse
If I simply listed all roms then the Noobs would ask, "which one for what?" so I did it this way instead.
vivek_bhoj said:
you should mention this thread for links to all ROMs, kernels, guides, mods, tools etc:
http://forum.xda-developers.com/showthread.php?t=1832891
Click to expand...
Click to collapse
Done. Thanks for the suggestion!
Sent from my HTC One X
Did what you said i'm now on my 6th ROM and by far the best Domination CM10 so its worth trying a few before finding the one
Faux link
abhijit1289, one small detail. The link to Faux kernels gives this message on Chrome "Oops! Google Chrome could not find www.faux.androidro.ms".
Maybe, as this is a guide for noobs like me, you could edit with this link - http://faux.androidro.ms/
Btw, an awesome post - I keep coming back to it. Well worth the sticky! :good: Have a great weekend.

[Q] Kernel Development for The Sprint Note 2

Hello Guys,
I am a developer of windows apps and I also do some web development stuff. I have also for the last couple of weeks been playing around with the android SDK and building apps for my phone. I have wanted to get into kernel development for my device, but I have had trouble finding a good place to start. I know I can follow the google directions and build a kernel, but that may not be specific to my device.
I was first wondering is there a kernel (Perferably AOSP like Cyanogenmod) that i can compile just get used to the build process. I belive I have already found that, it being this kernel right here:
https://github.com/CyanogenMod/android_kernel_samsung_smdk4412"]https://github.com/CyanogenMod/android_kernel_samsung_smdk4412
(Sorry, Im under ten posts.)
But this is where the confusion starts for me. I see this as a base of a lot of kernels for the note 2, but I notice the kernel is for the Galaxy S3. So in short, is there a good way to start learning how to build and modify android kernels for my Note 2? If so, do you have any recommendations on what kernel to base of of, or any tips or tricks, or etc?
PS: I am a "Newbie" by the forum standards so i can't post in the dev section.
R3liant said:
Hello Guys,
I am a developer of windows apps and I also do some web development stuff. I have also for the last couple of weeks been playing around with the android SDK and building apps for my phone. I have wanted to get into kernel development for my device, but I have had trouble finding a good place to start. I know I can follow the google directions and build a kernel, but that may not be specific to my device.
I was first wondering is there a kernel (Perferably AOSP like Cyanogenmod) that i can compile just get used to the build process. I belive I have already found that, it being this kernel right here:
https://github.com/CyanogenMod/android_kernel_samsung_smdk4412"]https://github.com/CyanogenMod/android_kernel_samsung_smdk4412
(Sorry, Im under ten posts.)
But this is where the confusion starts for me. I see this as a base of a lot of kernels for the note 2, but I notice the kernel is for the Galaxy S3. So in short, is there a good way to start learning how to build and modify android kernels for my Note 2? If so, do you have any recommendations on what kernel to base of of, or any tips or tricks, or etc?
PS: I am a "Newbie" by the forum standards so i can't post in the dev section.
Click to expand...
Click to collapse
You might want to start here http://forum.xda-developers.com/forumdisplay.php?f=1896
Check the Matrix thread, devil kernel and Garwyn's experimental kernel thread. These might give you some ideas
davidh59 said:
You might want to start here http://forum.xda-developers.com/forumdisplay.php?f=1896
Check the Matrix thread, devil kernel and Garwyn's experimental kernel thread. These might give you some ideas
Click to expand...
Click to collapse
Thanks! I have been testing around, but two problems have come up,
I have searched multiple threads and got as many dependencies as I could, but I still needed the toolchain. I got the android NDK, and used this guide:
http://xda-university.com/as-a-developer/getting-started-building-a-kernel-from-source
I used the arm-linux-androideabi- toolchain, is that ok? Even if it is, is there a better or recommended tool chain?
Another problem I had is when compiling the source I got a "error unknown pseudo-op .arch_extension" when it was compiling the devices section of the kernel.
Any thoughts and help would be appreciated.
Cheers,
R3liant

New kernal development.

I'm seeking help in knowledge to make a ROM and kernal for all distributions. A basic stripped down no hardware except CPU.
We will start with the kernal first. Extracted and repack for download and modifications.
I need to get a kernal for every version. I will provide download locations etc..
Next will come the basic stripped down version anyone can build onto. Using a kitchen etc..
You need to be able to know how to do a flash backup by yourself for the boot.img development aka kernal development.
My starting location is at
ixrom.wordpress.com
The basic guidelines will be there to get started.
Any coding help and all ideas are welcome.
I want to provide a extremely simple way to have someone download the coded or modified examples. To get up and running with a boot.img and then make it the same thing for the ROM. This way we can skip the manufacturing security and strange audits. I will make a good basis for all to work from.
If you know of good working already to go boot.img in this manner? the better. I will host the versions and the CPU compatibility as well. This way any ROM development can be built straight for any phone no matter what. I have already tested working models and yes this is possible. If you would like to participate and help me develop this?
Drop by the blog and or email me at
[email protected]
You can also sometimes get me on facebook... Do a search for [email protected]
Yes I have a hobby and business making soap
I will make this possible for all of us.
Thank you XDA for making this possible.

Categories

Resources