[G2 Original Android Development] dr4stic:
[IMG="CyanogenMod Logo"]http://i.imgur.com/5ZlbRXW.png[/IMG]​

CyanogenMod 12.1 is a free, community built, aftermarket firmware distribution of Android 5.1 (Marshmallow), which is designed to increase performance and reliability over stock Android for your device.

#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

CyanogenMod 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 restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

The source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

The following CyanogenMod 12.1 builds are based entirely on CyanogenMod code. Please refer to the official XDA thread for CM-12.1 on the LG G2 for basic information on installation and usage. It has the same requirements. It has many of the same limitations, except for those expressly listed updates listed in the Changes list below.

Why are you doing this, why do I want these builds?:

The last release of an OS from LG for the G2 was Lollipop. Since we need to use the proprietary binaries from LG to make our devices functional, and since CM-12.1 is based on Lollipop, the 12.1 release of CyanogenMod is regarded as the most stable for our device simply because they function natively at similar API levels.

Sadly, the LG G2 was one of the very first devices transitioned to the Marshmallow release of CM (CM-13.0) and it's never been quite the same since. The last official 12.1 nightly for most G2 devices is from November of 2015, and since then there have been many stabilizations to the CM-12.1 code base, as well as many security patches from Google. Therefore I thought it would be important to offer people the ability to run a more recent CM-12.1 nightly, rather than force them to transition to CM-13.0 in order to be up to date. And since CM-12.1 is not really changing, except for Google security level patches, I can make this offering once every few months without leaving people to far behind.

These builds are based entirely on CM source code. They are, for all intents and purposes, official CM-12.1 nightlies for the G2. I did make a few very small, but important changes that I thought most people would benefit from. Namely I backported the Snap camera from CM-13.0, as well as fixes to the IR Blaster permissions (so it'll work without having to switch to permissive mode) and changes to the volume that most people were constantly asking for. These builds are what CM-12.1 would have looked like had we waited a few months for CM-13.0 to become mature.

You should know that I built this originally for my mom and a friend of mine. I do not run this on a daily basis. You should consider support relatively non-existent, except for the help you get from the other people on the forums.

Changes since Official 2015-11-17 CM-12.1 Snapshot, About these builds:

Official CM-12.1 sources

Current as of 20161114

October 1, 2016 Android security patch level

CVE-2016-5195 (Dirty COW) kernel vulnerability fix (change 170897)

Integrated CM-13.0 Snap Camera w/ working HDR mode

IR Blaster fixes (build 2016-06-14 or newer, change 149554)

Audio volume adjustments from cm-13.0 (build 2016-06-14 or newer, change 149563)

I DO NOT give any guarantees on this working. PLEASE make a full backup before installing this zip. This rom comes with ABSOLUTELY NO SUPPORT (that's right, I don't really care if it works or not). That being said, I hope it works for you and you enjoy it :)

Downloads:

All features, unless otherwise noted, are cumulative. It is safe to assume that if a feature is added to a release, all subsequent releases likely have that feature.

Final Build 2016-11-14: October 1, 2016 Security Patch Level

These builds incorporate the latest security patches for Lollipop (CyanogenMod 12.1) as of October 14, 2016. They additionally incorporate a fix for the Dirty COW vulnerability. And since it seems the CM builds are over for CM-12.1, I ran a build for the ls980 as well. These are my final builds for this ROM. I will not be releasing any more after this.

d800: 1e2b77f689f1812e05cbc6cce5f0e0a6

d801: 9845a9bbef8a1721b8dd90e962ecfda9

d802: 16edad3b455bcb39f2ae5f20a3b04842

d803: f2f5602c080973417f065048d9f6d2ef

ls980: efc40e09538a483af2af1373b66b3ea2

vs980: 4f1379e03b62875f42b0599b8490f6e7

Please reference the above md5sums when verifying downloads from other sites.

Download 2016-11-14 for d800, d801, d802, d803, ls980 and vs980.​

Build 2016-08-19: August 1, 2016 Security Patch Level

These builds incorporate the latest security patches for Lollipop (CyanogenMod 12.1) as of August 19, 2016.

d800: c6161c397b4333010e1aa0bb799ebd11

d801: 94fc86c21677380cd68a2b8809133189

d802: 1633e4feb08ac3a003219153b70d1a63

d803: de0abb09091eff724f09db92bc3e782c

vs980: afce5b1e4e67ec7aafb5f16fb883d0d6

Please reference the above md5sums when verifying downloads from other sites.

Download 2016-08-19 for d800, d801, d802, d803 and vs980.​

Build 2016-06-14: June 1, 2016 Security Patch Level

These builds add proper IR Blaster sepolicy changes for properly working IR. They also add audio volume changes to increase the device volume output.

Note: Some builds list the build date as 2016-06-15. The builds are all identical, they take a little over an hour to run each one, and the date changed between builds. I did not update my sources between builds, they are NOT DIFFERENT AT ALL.

IMPORTANT NOTE: This build contains a modified and BOOSTED mixer_paths.xml file. Please be careful when upgrading to adjust volumes. I am not responsible if you blow your speaker. These changes were made to CM-13.0 (change: 138749) and have been backported. They are assumed safe.

Download 2016-06-14 for d800, d801, d802, d803, ls980 and vs980.​

Build 2016-03-28: March 1, 2016 Security Patch Level

The builds include the version of Snap included with CM-13.0. They also include a fix so HDR works with it (I don't believe my old Snap builds worked w/ HDR before).

Download 2016-03-28 for d800, d801, d802, d803 and vs980. No build was done for ls980 as it was still receiving CM-12.1 nightlies.​