[Nexus 5 Android Development] Alexandroid99:
Hello everyone!

I finally got a build environment working. Originally this started out with wanting to have CAF CM for my phone and to start building myself because I've heard that CAF can allegedly be better than pure AOSP (although granted the effect may be purely homeopathic, but while I'm at carving my own customisations, may as well take something extravagant), so I started these builds as practice for future projects and am sharing the results with you. The main goal is to stick as close to the original builds as possible, but introduce minor tweaks and changes that may improve the user experience indirectly from various sources (while hopefully maintaining the ability to flash back and forth between my builds and official. No guarentees)

I will aim for a monthly build cycle (or when I feel like building) rather than building nightlies, since I don't have a build bot nor the time to do builds that frequently.

Expect to see builds in a two-weeks interval at the very least, monthly at the very most. I'll keep these builds up as long as I see any usefulness in having this particular constellation since I've started it pretty much only because I wanted to fill in a gap and to also have the freedom of even more control over my phone.

Disclaimer:

I DO NOT GUARENTEE A CONTINUOUS BUILD CYCLE. YOU MAY HAVE TO FLASH BACK TO CM OFFICIAL IN ORDER TO GET UPDATES IF I HAVE TO RETIRE THESE BUILDS. I CANNOT ASSIST YOU WITH BUGS OR CRASHES AS I HAVEN'T CODED ANYTHING IN THIS BUILD. THIS IS SIMPLY A SHARE. THESE BUILDS ARE PROVIDED AS-IS WITHOUT ANY GUARANTEE THAT THEY WORK. THEY ARE TESTED AND USED AS DAILY DRIVERS, HOWEVER I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE IN ANY MANNER. WHAT YOU DO WITH YOUR PHONE IS YOUR THING. IF YOU B*LLOCK IT UP THEN THAT'S YOUR PROBLEM.

CM14 Info:

Even against my predictions, there is even a CAF version again, so I'm sticking to that like on CM13. The edits made to the ROM will be the same as the CM13 CAF version. As of 23/11 I've become inspired to experiment with a few cherry-picks of features I find useful or have been requested. What you get in the package is:

Minimal cherry-picks without a bloat of features that noone uses cluttering up the settings (list coming up once the experiments are done, current version is still pure CM14.1, scroll down to the more recent pages of the thread to see what I'm planning)

Mods under the hood preinstalled that came to be included through my laziness while updating my phone, for now just SELinux V4A support and stereo audio output (suggestions welcome)

A better kernel than CM stock if I happen to stumble over one. This one is more a "could be".

An actual OTA mechanism through a modded CMUpdater if enough people end up using the ROM and start donating to me (I can't afford a server).

The petty cosmetic change that is having it say "Nexus 5" in the "About Phone" section instead of "Nexus 5 CAF". Was just a finger exercise in the beginning of my work.

Some more Info:

I am not an actual developer yet and just getting familiar with building from source, over cherrypicking to eventually creating my own ROM from scratch. Therefore I cannot squash any bugs yet, even though I would love to. Yes, I'm a noob. If a bug disappears then that's purely because the guys whose open source code I'm using fixed it brilliantly. I do not take any credit for fixed bugs since I know as much about programming Android as a politician knows about keeping their promises: I know it could be possible, but it's not happening (yet).

Please do not clutter this thread with any bugreports. That don't seem related to my changes (i.e. random reboots when a new kernel is being tested). If you spot a bug then tell the actual developers. However if you stumble upon something that would benefit this ROM that isn't a feature (like an even better kernel or some other cool thing) then please do tell me (PM preferred) or if any mod I introduced is giving you trouble, sound off here in this thread.

I've already mentioned it, but I like to stress it again: There is no guarantee that builds work. I'm playing around with things and at some point things may go "BOOM" and be broken until I fix it. So far the builds have all booted up and operated just fine under a daily driver condition, but this may change for one or the other new build that I'm putting out. It's a risk I can't eliminate. We're working on the cutting edge here, you see. Either be in for the adventure or play it safe and decide that my ROM isn't for you. Nightly stays Nightly for a reason.

The V4A stuff is a pretty dirty hack that removes a whole bunch of neverallow policies in order to have the mediaserver policy that V4A requires in order to work. That means a huge sacrifice in security. But:

Your phone is already rooted to the teeth when you have installed CM basically, which when we get real makes it pretty easy for rogue apps to go wild if you grant root access to the wrong apps. SELinux enforcing wouldn't make much of a difference. One command and SELinux is in permissive mode allowing all naughty stuff.

I can't tell if you will have to wipe your device when updating to the cherry-picked builds once they are out or when flashing back to official CM14.1. You'll just have to make a backup and try.

Downloads:

Last legacy CM13 build: 28/09/16 codename "Debuggering"

https://drive.google.com/folderview?id=0Bw-aZKY98vPCcG5wRmE3UWlaYVU&usp=sharing

CM14.1 20/11/2016 codename "Renaissance":

https://www.androidfilehost.com/?fid=385035244224399989

Alexandroid0.1 codename "HelloWorld" (EXPERIMENTAL!):

http://xdaforums.com/showpost.php?p=69960899&postcount=203

Requirements:

Radio / Baseband: M897A-2.0.50.2.30

Bootloader: HHZ20h

Screenshots

https://imgur.com/a/I0FB8

Installation:

CM14.1 Installation:

Install TWRP hammerheadcaf

Wipe /data (without internal storage if you like), /cache & /system if coming from an incompatible ROM

Flash zip

Flash Gapps from opengapps.org

Perform a rain dance

Profit

CM14.1 BUGS:

Lol which bugs?

Sources and Credits / Special Thanks:

CyanogenMod (ROM source):

http://github.com/CyanogenMod

http://github.com/CyanogenMod/android_device_lge_hammerheadcaf

http://github.com/CyanogenMod/android_device_lge_hammerhead

http://github.com/CyanogenMod/android_device_qcom_common

http://github.com/CyanogenMod/android_kernel_lge_hammerhead

https://github.com/Alexandroid99/android_device_lge_hammerheadcaf
​

TheMuppets (vendor blobs):

http://github.com/TheMuppets/proprietary_vendor_lge​