What are the benefits? Compiling from source vs. Cooking? - Samsung Galaxy Nexus

Hey!
I want to start getting into developing roms, but I am wondering (this may sound very n00bish but...)
What are the benefits of compiling android from source vs. going and getting a factory rom and baking my modifications into it?
Thanks for any help!

:thumbup:
Sent from my Galaxy Nexus using xda app-developers app

I guess you could do more by compiling from source,

Cooking is done when there's no source available; why would you cook when you can bake and lunch?
This is why people get an aosp supported device.

bk201doesntexist said:
Cooking is done when there's no source available; why would you cook when you can bake and lunch?
This is why people get an aosp supported device.
Click to expand...
Click to collapse
So are you saying it is better to compile from source?
If so, why?

Do you really want to learn smali hacking? Modding from source is WAAAY easier that modding through smali hacking, just ask most of the devs out there.
Sent from my Galaxy Nexus using Tapatalk 2

JacobLukeWood said:
So are you saying it is better to compile from source?
If so, why?
Click to expand...
Click to collapse
Because you get a more stable rom, done right.
Whats better?
Buying a tuned car that has been setup correctly from the factory, or taking your car to a local half-bit tuner and have them slap on bolt-ons and call it good?

Modifying and building from source is much easier, faster, and better to learn and do. Plus since this is a nexus, full AOSP source is available for the device. Smali modding is for proprietary ROMs like HTC Sense or Samsung Touchwiz.

Compile from source is clearly the best way, you can add features as if it came from the factory. Not using source is dirty hacking and not clean like a compiled ROM.

Related

Samsung has open sourced i9000 source code

Hi everyone,
Just read that Samsung has open sourced GT i9000's source code at...
Code:
hxxp://opensource.samsung.com/reception/reception_main.do?method=reception_list&menu_item=mobile
.. and search for GT-I9000 on this page.
I am already downloading the zip
Looking forward to some awesome mods.
Thanks for all of your hard work!
--
Maku
Wow, this is great news, any any idea if the video drivers are included?
Sent from my GT-I9000 using Tapatalk
Not too sure, how do I check?
Any file/name to look for?
Not too sure, I will check when I go on my pc
Sent from my GT-I9000 using Tapatalk
Welcome to last month.
ConceptVBS said:
Welcome to last month.
Click to expand...
Click to collapse
lol, same sentiment here, I thought someone dug up some old thread
The recent thing they posted was the source of the AT&T Captivate aka SGH-I897...(don't know if it has anything new in it compared to last months Galaxy S source)
ok, what does this source contain basically ?
just curious
As far as I can tell, the full kernel source including drivers (but a couple are currently precompiled), and the changes to the base Android system compared to Eclair AOSP, although I'm no expert in this.
I'm no expert but even precompiled drivers should be usable to port gingerbread should samsung choose to skip it for our precious gems, right?
Sent from my GT-I9000

[Q] ROM Kitchen for Galaxy Nexus

Does anyone have any information on whether a kitchen is available that will work with the Galaxy Nexus? I've tried the DSIXDA ROM Kitchen but haven't been able to get it to work properly. Would love to have something to make customizing ROMs a little easier.
Thanks!
dawynkoop said:
Does anyone have any information on whether a kitchen is available that will work with the Galaxy Nexus? I've tried the DSIXDA ROM Kitchen but haven't been able to get it to work properly. Would love to have something to make customizing ROMs a little easier.
Thanks!
Click to expand...
Click to collapse
It's been a while since anyone responded to this, but I would like to bump this page and ask if there is a kitchen app out there to help with customizing ROMs on the Galaxy Nexus.
Thank you in advance.
dsixda's kitchen works fine. The only thing that it has trouble with is deodexing things. I've had to deodex the files just using smali/baksmali myself.
Why not just build the ROM from source to your liking? Isn't that the purpose of AOSP?
imnuts said:
Why not just build the ROM from source to your liking? Isn't that the purpose of AOSP?
Click to expand...
Click to collapse
i tried using the cmcompliler for linux but it is too difficult for my skill level. I know a lot about android/roms/kernels/etc but not enough about coding to build a rom from scratch. Or is it easier than I think? I would rather use windows if there is an easy way to compile or build a rom on windows.
sd0070 said:
i tried using the cmcompliler for linux but it is too difficult for my skill level. I know a lot about android/roms/kernels/etc but not enough about coding to build a rom from scratch. Or is it easier than I think? I would rather use windows if there is an easy way to compile or build a rom on windows.
Click to expand...
Click to collapse
Unfortunately not possible on Windows. Android can only be built from source on Linux.
Sent from my Galaxy Nexus using Tapatalk 2
sd0070 said:
i tried using the cmcompliler for linux but it is too difficult for my skill level. I know a lot about android/roms/kernels/etc but not enough about coding to build a rom from scratch. Or is it easier than I think? I would rather use windows if there is an easy way to compile or build a rom on windows.
Click to expand...
Click to collapse
It's easier than you think. It's a great project for learning a bit more about Android and learning a bit about Linux if you aren't familiar with it.
Sent from my Galaxy Nexus using XDA
efrant said:
Unfortunately not possible on Windows. Android can only be built from source on Linux.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
You could build it on Windows if you wanted to, but it would be more of a hassle than it would be worth. It's faster and easier to just install Virtualbox or similar and setup a VM to compile Android on. It may not be quite as fast as doing it via a native OS install, but it gets pretty close.

[Dev Discussion] Paranoid Android

I know that we are still early in development but what about paranoid android? When can we start building this?
From what I've seen, after cm is complete, ROMs like PA become easier to build. Most of the common devices can use the same base code and are forked from cm repos. Patience my friend. It will come soon enough!
Sent from my LG-LS970 using xda app-developers app
I have a port for paranoid android almost ready for testing. Yes, I'm still working the port for LG sense for all those who are wondering.
I've actually been trying to get this to compile since the first CM nightlies but I've never compiled PA before and have been running into issues. I think I was nearly done but then I left on a vacation and had to leave my development VM behind (laptop-only since I was flying).
Glad to see you're having more success.

[discussion] aosp and cm

why dont u people try to build an AOSP rom instead ofa CM....coz probably cm is sumthing that is modifications made to AOSP....and even the touchwiz ui is modified AOSP so if we can have a AOSP build itll probably be easier for us to build these roms..
...if sum one is ready to help me learn about building roms from source ill sure try making CM's and AOKP and paranoid and what not
is better but its based on AOSP.....its like imagine AOSP as a stock rom and CM as a custom rom...wait why imagine..its actually like that....so the basic idea is to improve performance...where CM show up...but whats the base CM uses??...its AOSP....so if we have a perfect AOSP which is obv possible...coz Samsung wouldn't be able to build TouchWiz withouta base...for obv reasons...so why not try building an AOSP first and then continuing with CM
do u even know whatcha sayin?
tl;dr
Here's some math:
No sources = no base
No base = no sources
No sources = no cm
No cm = no aosp
So unless you try to find a way to make those proprietary sources available then I'd suggest doing some research.
Also even if you tried you'll fail, we have the best devs for sgy working hard for that goal and we're honestly not making good progress. Well except for percy and his cm9 and psycho's cm7 but still a long way from "stable as stock".
This post is in compliance with the national potato safety regulation.
[Galaxy S 4 LTE]
My information might not be correct. A friend of mine told me this.
See cm is made by aftermarket developers keeping in mind that it can support lot of different phones.
On the other hand aosp was made for nexus phones so they don't give a damn that it works on other phones or not. They are just selfish lol.
So building pure aosp is tougher compared to cm. Cm has modifications on aosp to support different phones.
Sent from my HTC Desire X using xda app-developers app
prototype-U said:
My information might not be correct. A friend of mine told me this.
See cm is made by aftermarket developers keeping in mind that it can support lot of different phones.
On the other hand aosp was made for nexus phones so they don't give a damn that it works on other phones or not. They are just selfish lol.
So building pure aosp is tougher compared to cm. Cm has modifications on aosp to support different phones.
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Naman...we haven't tried making AOSP yet so we cant just confirm this and it cant be that it was made for nexus only coz its an open source project so they must have probably kept in mind that many dev's will try to have it on different devices ..... the Gingerbread that our SGY uses is nothing but a custom rom of the aosp which we call as stock....
for obv reasons...samsung would not have made their own android os right...they have used google sources....the point is...the time dev's have spent on making CM if would have been focused on AOSP we might just have a build close enough to psycho's work!
and what ive learned or i might be wrong in this that psycho used aosp's sources for the fixes....Maybe wrong about this...i just read it somewhere here!.....and as our device has the largest community of awesome dev's why not we try the AOSP thing out??
we cant just conclude without trying...can we??......some months back people were like we wont have a CM....we have a working CM7 and CM9 which are working pretty fine except for the driver bugs....same way,we might just end up having an AOSP...
another hope to Young GT-S6310. need a great developers to make it true
prototype-U said:
My information might not be correct. A friend of mine told me this.
See cm is made by aftermarket developers keeping in mind that it can support lot of different phones.
On the other hand aosp was made for nexus phones so they don't give a damn that it works on other phones or not. They are just selfish lol.
So building pure aosp is tougher compared to cm. Cm has modifications on aosp to support different phones.
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Maybe you should see this. www.cyanogenmod.org/about
And also about android opensource project. Google gives aosp source to all manufacturers as part of aosp allience/programme which they further modify. And first phone running android was not nexus to say that they don't give damn about other devices. And the number of devices running CM is still very low.
Like I said, a friend told me about it.
Sent from my HTC Desire X using xda app-developers app
If we get a set of experienced Devs who want to help out we might get aosp
Also if stock is like a custom aosp
That means our phone must support AOSP!!
Only need some experience Devs :sly:
As i said its all about aosp....just need sum1 to teach me these sources and setup stuff....i would like to start working on it as soon as possible!
Sent from my GT-S5360 using xda app-developers app
Our devs are already experienced :sly:
Sent from my GT-N7100 using xda app-developers app
Reynaldi said:
Our devs are already experienced :sly:
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
he is trying to tell we need dev's who have experiance compiling source roms not dev's who are great with adding tweaks and theming the our samsung stock rom's.....source compiling is far different from the rom i made or many of the roms available in our threads....
SSSidGGG said:
he is trying to tell we need dev's who have experiance compiling source roms not dev's who are great with adding tweaks and theming the our samsung stock rom's.....source compiling is far different from the rom i made or many of the roms available in our threads....
Click to expand...
Click to collapse
There are very less people or maybe no one who has source development experience.
prototype-U said:
There are very less people or maybe no one who has source development experience.
Click to expand...
Click to collapse
i know...thats the reason ive been looking around google for sumthing that could get me some help .........its hard i guess ill have to take percy's help :?
How about making thread "all devs come here please help us to compile cm for our device" in another device board? Lol jk
Reynaldi said:
How about making thread "all devs come here please help us to compile cm for our device" in another device board? Lol jk
Click to expand...
Click to collapse
Veru funny dude! ( --..-- )
Sent from my GT-S5360 using xda app-developers app
Reynaldi said:
How about making thread "all devs come here please help us to compile cm for our device" in another device board? Lol jk
Click to expand...
Click to collapse
Really bro?._.
Sent from my SGY using XDA
I am new here.......
Don't be rude and hit thanks
Device : Samsung Galaxy Y
ROM : Hyperion 8 pre gm alsa build 0.2
KERNEL : Savie's
I say start saving money for a new phone.
prototype-U said:
I say start saving money for a new phone.
Click to expand...
Click to collapse
sorry naman but why buy a new phone? we have lots of roms and kernels. also we can oc the device to 1.25ghz and have a gpu. this is the best phone for a developer. even if it ends up bricking or lost, no regrets since a low cost phone. lets just finish what we started. perseverance is the key man.
sorry but i am not flaming you, i am a big fan of yours and i love the kernel
SaketJoshi said:
sorry naman but why buy a new phone? we have lots of roms and kernels. also we can oc the device to 1.25ghz and have a gpu. this is the best phone for a developer. even if it ends up bricking or lost, no regrets since a low cost phone. lets just finish what we started. perseverance is the key man.
sorry but i am not flaming you, i am a big fan of yours and i love the kernel
Click to expand...
Click to collapse
man.. they are just stock based roms.. everyone is upgrading these days, android 4.3 has been released and you are still on 2.3.6. Which makes you guys really outdated..
Kernel? yeah there are huge number of kernels here but if you notice that most of em have same features See other phones like nexus 4. They have whats called "real" kernel development.
Pico which is 1k more expensive is 100 times better than this phone and you also know it. Why not buy that? I sold my Y for 3.5k and another 3k can buy you a arm7 phone. Which wont get outdated for another year atleast..

[KERNEL][DEVELOPMENT] Adding msm8992/msm8994 support in msm-4.4 kernel

Are there any developers interested in adding(porting) msm8992/msm8994 support to the msm-4.4 kernel used by Qualcomm in sdm660/msm8998? I'm looking for some help in doing this, since it's not a one-man-job for sure.
I don't have a Nexus 5x but I have a Xiaomi Mi4c, which has msm8992 too.
Qualcomm's 4.4 sources are here if anyone wants to have a look. sdm660 tags are for SD660 and msm8998 tags for SD835.
Any help is appreciated.
Is 4.4 being used in new Snapdragon devices really? That's very good.
I haven't ever ported any kernel but I can test your kernel in my 5X if you want.
EvilHowl said:
Is 4.4 being used in new Snapdragon devices really? That's very good.
I haven't ever ported any kernel but I can test your kernel in my 5X if you want.
Click to expand...
Click to collapse
Yes, it will be used in the upcoming SoCs.
Well, I just cloned the kernel and I'm looking at the correct place for adding clk stuff. Will take some time.
Cozzmy13 said:
Yes, it will be used in the upcoming SoCs.
Well, I just cloned the kernel and I'm looking at the correct place for adding clk stuff. Will take some time.
Click to expand...
Click to collapse
If you get the kernel booting it will be incredible
Which advantages should this porting cause?
I wish I could help you but I don't know nearly nothing about kernel development. You could ask to @rachanta and @jollaman999 which are kernel developers only for this device, or Francisco Franco and flar2 which are developers for the main Android devices so they can provide you a really useful help, considering also that they're recognized as some of the best kernel developers on XDA.
Sent from my Nexus 5X using XDA Labs
edoardotavecchio said:
Which advantages should this porting cause?
I wish I could help you but I don't know nearly nothing about kernel development. You could ask to @rachanta and @jollaman999 which are kernel developers only for this device, or Francisco Franco and flar2 which are developers for the main Android devices so they can provide you a really useful help, considering also that they're recognized as some of the best kernel developers on XDA.
Sent from my Nexus 5X using XDA Labs
Click to expand...
Click to collapse
Future proofing, better performance, better battery, pretty much everything that has been optimized between 3.10 and 4.4. It's a considerable improvement if we're able to do this right. Sadly no one contacted me about helping, and I don't want to contact developers which might not be interested in doing this.
Cozzmy13 said:
Future proofing, better performance, better battery, pretty much everything that has been optimized between 3.10 and 4.4. It's a considerable improvement if we're able to do this right. Sadly no one contacted me about helping, and I don't want to contact developers which might not be interested in doing this.
Click to expand...
Click to collapse
Considering that it could be a mighty improvement, I could contact them for you if you're okay with that.
Sent from my Nexus 5X using XDA Labs
edoardotavecchio said:
Considering that it could be a mighty improvement, I could contact them for you if you're okay with that.
Sent from my Nexus 5X using XDA Labs
Click to expand...
Click to collapse
Well, it could be, it also could not be. That's why I'm reticent about contacting other devs, since some could consider this a waste of time because no one knows if it's do-able. It's possible, of course, but that doesn't make it easy.
The Nexus 5x community could also be dead when I do it, who knows.
I will give Francisco Franco a link to this thread. You can talk with others if you want.
Cozzmy13 said:
Well, it could be, it also could not be. That's why I'm reticent about contacting other devs, since some could consider this a waste of time because no one knows if it's do-able. It's possible, of course, but that doesn't make it easy.
The Nexus 5x community could also be dead when I do it, who knows.
I will give Francisco Franco a link to this thread. You can talk with others if you want.
Click to expand...
Click to collapse
I'll do.
Sent from my Nexus 5X using XDA Labs
Hello! I'm very interested in this, as I'm trying to port a msm8994 device to a newer Android version and the kernel is very old (based on 3.10.84). It doesn't have support for O_TMPFILE, which is necessary to build Lineage 16.0. O_TMPFILE started in kernel 3.11, so I also need to port my current version to a newer kernel. The newer, the better, of course. Did you guys make any progress on this? Thanks!

Categories

Resources