[Q] How to Build My Own Custom ROM - ONE Q&A, Help & Troubleshooting

So, how to build my own custom rom version ?
I want to build CM and cherrypicks some feature.
Does anyone have a guide or maybe anyone could teach me? Because i can't really follow the tutorial on CM wiki page.
Thanks a lot !

You need fairly decent specs internet and specs to compile. You can rent a linux VPS to compile to get rid of most of the headaches, or install a Linux distribution on your pc. Then you can follow https://wiki.cyanogenmod.org/w/Build_for_bacon#Build_CyanogenMod_and_CyanogenMod_Recovery if you have a Debian based Linux(Ubuntu) install, just substitute the branch in "repo init -u https://github.com/CyanogenMod/android.git -b cm-12.1" with cm-13, if you want to build cm13 nighties. If you want to cherry go to the root of the build directory and copy and paste the commands from the cm gerrit. You can find the command under the download tab.

Hello since I'm kinda new to xda , I cant create a thread
Quick question
How can I implement kexec hardboot patch in my kernel ,
I found this kernel by the mod developer
github. com/ davidepianca98/android_kernel_oneplus_msm8974-kexec
But cm-13.0 branch isn't available

https://github.com/davidepianca98/a...mmit/af5ef3d76f863f02c51cf860702b01536620ebf5 this commit tells you how to modify your kernel to implement it. You can possibly cherrypick it too.

Related

[Q] Managing code modifications on top or Repo and GIT

Hi everyone,
To learn more on Android and to have fun, I'm creating a Kang based on
Cyanogenmod 7.2 for the HTC Glacier.
I got the source using repo and I was able to build a "vanilla" CM7.2 without issue.
Now I want to make some modification but I'm not sure
how you guys / gals are managing the source code.
I see 3 ways to organize my work :
1- Fork each part I want to work on and change the default manifest to fetch update from my github instead of cyanogenmod.
Pros : easy, can track my change using git
Cons : to fork every part just to change a text file is beurk...
2- Create local branch with git in every project I want to change.
Pros : easy
Cons : My commit are only local. Need to merge each project with CM branch.
3- Work outside cyanogenmod source folder and applied my change before building my kang.
Rollback everything (git reset) once my build is done.
Pros : no effort to stay in sync with CM sources. Can create a project on github with all my changes.
Cons : Need to use a kind of script to apply my mod every time I want to build.
Any opinions ? How are you managing your sources ?
I'm quite new with Android development, so feel free to suggest tutorial or better working technique.
Regards.
Hello,
Bump! :-D
I will try solution 3 but I am still interested to get opinions.
Regards
Sent from my HTC Panache / Darkside CM7.2 using xda premium.

[Q] How to add new device/project to CM build?

Hello all,
I've forked a CM9 repo for the HTC One X and am able to successfully compile and build but I'd like to add my own repo to the build process. I'm not quite sure how everything works together yet but it seems that the default.xml may be the place where I need to make the change. Is that true? If not, how can I go about adding my own source to my CM9 workspace in order to compile and build a ROM based on my source changes.
Thanks!

[Q] Downloading kernel source code from custom ROMs

I want to download the source code for the kernel in my custom ROM because I want to compile something that may have dependencies with it.
So, I own a HTC Desire en lets say, I am using the following ROM:
http://forum.xda-developers.com/showthread.php?t=1863780&highlight=download+source
De binairies I can simply download and flash, no big deal.
But I cannot compile anything on my phone.
I have found a site where it is explained that I need to point the compiler to the source of the kernel, and then I can compile it on a Linux computer.
Thus, I need the source.
I've tried posting in the thread mentioned, but it giving me a message that I cannot post there because I am a new user
Btw. The thing I am trying to compile is C code.

AOSP downloading just one flavour (ICS) source code

This might be a trivial question but I dont know the answer to it. Looking for android gurus. My task is to compile android kernel and run on a pandaboard. I cannot just take the uImages there are drivers which I need to modify..
Now one way is to download every thing from AOSP by repo init... and downloading 3-4 Gb of git from day 1 of android git init. Is there a way to just get the source files for ICS. It is easy for linux just go to git.kernel.org and get the snapshot of the tag like 3.0 , is there a same git snapshot available in android ?
Any help is welcome....
manishjg said:
This might be a trivial question but I dont know the answer to it. Looking for android gurus. My task is to compile android kernel and run on a pandaboard. I cannot just take the uImages there are drivers which I need to modify..
Now one way is to download every thing from AOSP by repo init... and downloading 3-4 Gb of git from day 1 of android git init. Is there a way to just get the source files for ICS. It is easy for linux just go to git.kernel.org and get the snapshot of the tag like 3.0 , is there a same git snapshot available in android ?
Any help is welcome....
Click to expand...
Click to collapse
Are you downloading from codeaurora?
If yes, then there are separate sections for kernels and snapshot is available too.

[Q] Help with building CM12

So I am a newbie in android development. I do root phones and play around with the system but I never cooked any rom yet. Now I am desperate to build cm12 for my pico. I have set up everything as per Galaxyfreak's guide.
Now I am confused with what should I take as sources? Should I use Kirmaniarslan's sources or wait for cm to officially release?
If I take Kirmaniarslan's sources,in the init repo command what should I link to? Local manifesto, device tree or something else?
Any guide would be helpful! Thanks

Categories

Resources