Build stock rom from source - ONE Q&A, Help & Troubleshooting

Hello XDA gurus,
I wish to build a version of the rom closest to current stable cm12s. As I understand, cm12s source is proprietary / closed source.
Can you please point me to the cm12 build/commit closest to cm12s? Please point me to some links where I can build from this source.
I wish to do this because bluetooth doesn't work in my car head unit and is a known issue with a patch in cm12.1 branch. I wish to merge this patch so I can move to lollipop from cm11s.
Thanks in advance.

Related

[Q] Where to find Kernel Source for CyanogenMod 9 v4.0.3 v2.1?

Good Evening,
I am modifing the kernel source (the wifi part specifically) working on a CM7 system and I want to migrate to CM9 because of the improvements on the system and kernel.
I know I can get the CM9 source code from CyanogenMod Github repo, but the kernel comes pre-compiled. So my question is:
Where I can find the "official" kernel source code that comes with CyanogenMod 9 v4.0.3 v2.1?​
KalimochoAz's samsung-kernel-crespo repo has been last updated 2 months ago, so I guess the kernel updates must be somewhere else.
Thank you in advance,
Renzo

[Q] Building stable rom with kernel sources

Hi, may I ask somebody experienced with ROM building, if it is possible to build fully functional and stable build from AOSP sources if i have kernel sources for my device from vendor?
Nigfire said:
Hi, may I ask somebody experienced with ROM building, if it is possible to build fully functional and stable build from AOSP sources if i have kernel sources for my device from vendor?
Click to expand...
Click to collapse
Hi, yes. I've compiled lollipop nexus4 from aosp in ubuntu 14.04.1 x64 in vmware.
I've downloaded the source, included the proprietary files, and compiled android, compiled with make and make otapackage to generate the zip.
After that i've rooted the device, installed twrp.
Finally, i've downloaded the source kernel and compiled to generate the .img. I've flashed this to the device with fastboot, and
yeeeeeeh perfect!!!
obviously, after this, i've downloaded the gapps and installed.
But, which version would you compile? And which device? All the sources are available and open source?
i wana make AOSP build for Huawei Ascend G6, I have only kernel sources from vendor... I suppose that kernel will work with any version of android or not?
Nigfire said:
i wana make AOSP build for Huawei Ascend G6, I have only kernel sources from vendor... I suppose that kernel will work with any version of android or not?
Click to expand...
Click to collapse
Ok, you have the sources, very good.
mmm, i'm not sure that every kernel + android combinations work perfectly together.
For example, on my nexus4 i've kernel 3.4 and lollipop. Now, if android lollipop requires some modules/functionalities/"other magic stuff" to work properly from the kernel, and you install kernel 2.x.x without this feature, probably you'll have problems.
I mean, i'm not sure, but is only a logic hypothesis.
You can solve this problem using the latest official version of android from Huawei and your compiled kernel from Huawei sources. If this works, try to update android to another version with a custom rom. It works? Perfect!, It not works? Damn, restore the backup and use another older android version
To build android/kernel you must transform into a researcher :laugh:

Read this and help if you can. Thank you

Dear XDA users..Sorry for my English but i am trying my best. I don't know what am i doing wrong. So many times i followed directions and guides found on the google and xda but have no luck compiling ROM for our device from the latest branch CM12.1 and Euphoria repo.
Currently i still use on my device Euphoria OS unofficial built dating from November of last year. It is by far the most stable ROM i have ever used on my OPO. In terms of battery life, performance and bugs. And i have try all of them . CM 13 is just not stable as CM12.1 is.
One of the users here on XDA creates almost a daily unnoficial CM 12.1 nightly vanilla build from the CM branch. Awesome ,stable but it is missing Euphoria features.... Thank you for your work adlx.xda! Link down
http://forum.xda-developers.com/one...rom-continuing-cm12-1-builds-patches-t3288460
I want to do the same thing. Compile a CM 12.1 ROM from the branch baked with all Euphoria OS goodies. Bring it all up to date. and share work here on XDA. Apparently it looks like Euphoria OS development has stop and there are no updates from the September of last year. But there is enough stuff to sync with latest CM branch to bring everything UP TO DATE in terms of security and all of updates from the time when CM 12.1 nightly stop to roll out.
IF ANYONE CAN BAKE UP TO DATE EUPHORIA OS ROM I CAN MAKE DONATION FOR BEER AND COFFEE .
Thank you for reading!
Before all, I can't help you and that isn't the correct section where you can ask these things.
@adlx.xda : I would love to get a unofficial euphoria build ,is it possible?
dejan1979 said:
Dear XDA users..Sorry for my English but i am trying my best. I don't know what am i doing wrong. So many times i followed directions and guides found on the google and xda but have no luck compiling ROM for our device from the latest branch CM12.1 and Euphoria repo.
Currently i still use on my device Euphoria OS unofficial built dating from November of last year. It is by far the most stable ROM i have ever used on my OPO. In terms of battery life, performance and bugs. And i have try all of them . CM 13 is just not stable as CM12.1 is.
One of the users here on XDA creates almost a daily unnoficial CM 12.1 nightly vanilla build from the CM branch. Awesome ,stable but it is missing Euphoria features.... Thank you for your work adlx.xda! Link down
http://forum.xda-developers.com/one...rom-continuing-cm12-1-builds-patches-t3288460
I want to do the same thing. Compile a CM 12.1 ROM from the branch baked with all Euphoria OS goodies. Bring it all up to date. and share work here on XDA. Apparently it looks like Euphoria OS development has stop and there are no updates from the September of last year. But there is enough stuff to sync with latest CM branch to bring everything UP TO DATE in terms of security and all of updates from the time when CM 12.1 nightly stop to roll out.
IF ANYONE CAN BAKE UP TO DATE EUPHORIA OS ROM I CAN MAKE DONATION FOR BEER AND COFFEE .
Thank you for reading!
Click to expand...
Click to collapse
Read this and understand where to post..
http://forum.xda-developers.com/showthread.php?t=2731521
Thank you..

Building android from source

Dear all,
I was wondering, if I build Android from the AOSP source (and build in all the kernels etc. so it works on my LG G4), will all the security patches be applied by Google, or will I have to do it manually?
Thanks for your help (I'm new to building custom roms)

[ROM][8.1.0][THEA] Unofficial LineageOS 15.1 [ALPHA][UNIFIED]

WARNING: Broken RIL. THIS ROM IS NOT A DAILY DRIVER AND IS TOTALLY OBSOLETE. EMERGENCY CALLS ARE NOT POSSIBLE.
Use gothicVI's ROM which includes a working RIL and the latest O security patches.
If you want a daily driver Oreo ROM, flash LuK1337's LineageOS 15.1, which is the only alternative right now.
Because our thea deserves to be loved too!
LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), which is designed to increase performance and reliability over stock Android for your device.
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
This is an unofficial LineageOS 15.1 build made from LuK1337 et al's source trees for the Motorola Moto G 2014 LTE, synced to the latest Lineage codebase with some changes. I have to fix a lot of stuff to make it a stable ROM and therefore development help is wanted and welcome. This ROM is a work in progress and it's purpose is to serve as a reliable base to port over other ROMs to the device, or just to be a smooth daily driver for Lineage fans.
Working: Those features are stable.
Boot
Sensors
WiFi
Bluetooth
Media
Camera: Photos
Status & Flash LED
Touchscreen
Broken: Feedback is wanted.
Video Recording
RIL: telephone calls, SIM, SMS, VoLTE, mobile data, emergency calling.
SELinux is permissive for now.
How to report issues:
Please follow this template. If you don't follow this template you will be ignored. Also feedback MUST be posted here and not as private messages unless I explicitly say so. And don't report issues that already appear here.
Code:
What is your...
* Phone model (XT107*):
* ROM version (0x**):
* GApps version if you use them:
* Xposed or Magisk:
* Kernel:
logcat:
* Link to Pastebin or similar
dmesg:
* Link to Pastebin or similar
Download:
Get the ROM here
Changelog:
Code:
## 20180619: release 0x01 ##
* Initial release.
## 20180627: release 0x02 ##
* Built against OPM6.171019.030.B1
* Fixed vendor image mismatch errors
XDA:DevDB Information
LineageOS 15.1 for Moto G 2014 LTE , ROM for the Moto G 2014 LTE
Contributors
Wattsensi, the Moto G 2014 Dev Team
Source Code: http://github.com/motog2014devteam
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
ROM Firmware Required: Bootloader 0x4821 or higher, unlocked.
Based On: LineageOS
Version Information
Status: Alpha
Current Stable Version: 0x02
Created 2018-06-20
Last Updated 2018-06-28
Any progress?
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
---------- Post added at 18:39 ---------- Previous post was at 18:38 ----------
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
gothicVI said:
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
---------- Post added at 18:39 ---------- Previous post was at 18:38 ----------
Hi @Wattsensi how did you fix the vendor image mismatch? There was no push to the repo you list as sources.
Click to expand...
Click to collapse
Oh, hi there. I didn't know that there was somebody still interested in developing for this device. I switched to a Huawei P9 my father gave me, but I still have my Thea saved. That said I tried everything but I couldn't get the RIL to work.
I fixed the vendor image problems by getting the vendor image strings in a terminal emulator in the phone, then going back to my PC and changing the init_thea.cpp file in the init folder of the thea device tree. Check RenanQueiroz' titan device tree, go to init_titan.cpp and get a guidance. I made a dual_override() function too to save space.
I am not a ROM cook though. Just a builder.
Wattsensi said:
Oh, hi there. I didn't know that there was somebody still interested in developing for this device. I switched to a Huawei P9 my father gave me, but I still have my Thea saved. That said I tried everything but I couldn't get the RIL to work.
I fixed the vendor image problems by getting the vendor image strings in a terminal emulator in the phone, then going back to my PC and changing the init_thea.cpp file in the init folder of the thea device tree. Check RenanQueiroz' titan device tree, go to init_titan.cpp and get a guidance. I made a dual_override() function too to save space.
I am not a ROM cook though. Just a builder.
Click to expand...
Click to collapse
Would you mind sharing the file you changed?
I'm just building myself - not much experience in Android development (yet).
Gesendet von meinem Moto G (5) Plus mit Tapatalk
gothicVI said:
Would you mind sharing the file you changed?
I'm just building myself - not much experience in Android development (yet).
Gesendet von meinem Moto G (5) Plus mit Tapatalk
Click to expand...
Click to collapse
Please share with us a build with basic functions working
Eddy Stark said:
Please share with us a build with basic functions working
Click to expand...
Click to collapse
Here you go. Any feedback on what is working and what not would be highly appreciated!
This ROM is officially discontinued. Please close the thread mods.

Categories

Resources