• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM+KERNEL][7.1.2] Unofficial LineageOS 14.1 with 3.4.0 kernel [Aug. 9, 2017]

Status
Not open for further replies.

CertifiedBlyndGuy

Retired Forum Moderator / Inactive Recognized Deve
Jun 11, 2014
1,936
2,983
0
Boulder
Hi everyone,

I will be maintaining this on Sultan's behalf. A huge thanks to him and his work here. I am mirroring the changes made to Bacon with my own very small additions. I will keep this up to date with the latest security patch updates, and all of that stuff.

Code:
/*
 * Your warranty is... still valid?
 *
 * 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.
 *
 * There is also a slight possibility that your device may go blind, or decide to leave
 * you altogether and rent out its own apartment, because you didn't allow it to
 * watch the latest episode of its favorite TV show
 */
This is an unofficial LineageOS 14.1 ROM for the OnePlus X that focuses on stability and the overall user experience. This ROM comes with a highly-customized kernel, as well as some other very custom modifications.

Custom kernels are not compatible with this ROM unless otherwise noted. I will NOT provide support if you install a custom kernel.

ROM features:

Based off latest LineageOS 14.1 sources (root access is NOT included)
OTA updates via built-in updater in Settings
Nougat Stagefright camera hardening (improves security; more info)
Custom camera app that comes with many unique features (such as high-speed video recording with audio)
Custom camera HAL featuring:
-Automatic anti-shake algorithm (reduces motion blur when capturing photos in moderate lighting)
-Faster autofocus in low lighting conditions
-No stuttering/frame drops in camera viewfinder (viewfinder frame rate won't go below 30 FPS)
-Slow-motion video recording at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p
-High-speed video recording with audio at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p (you need to use the included camera app in order to use high-speed recording)
-1440p video recording with the front-facing camera and back camera (only with the included camera app)
-4k video recording at UHD and DCI resolutions
-Manual focus control
-Manual ISO control
-Manual shutter speed control (ranging from 1/5000th of a second to 2 seconds)
-More picture sizes than plain OxygenOS, such as 9.7MP 16:9
AptX & AptXHD support
A superb CAF audio HAL
Many other misc. improvements under the hood


Kernel features:

Based off latest CAF Marshmallow kernel source from Qualcomm (LA.BF.1.1.3_rb1.15)
Removed lots of excessive bloat
Rewrote battery driver (for the BQ27541 fuel-gauge chip; battery % readings are more accurate, there are various
safety mechanisms now, and you may get better battery life)
Rewrote half of the Synaptics touchscreen driver (over 2500 lines of code modified; your touchscreen may work better)
Newest-available Synaptics touchscreen firmware
Dynamic CPU input boost driver (makes the phone feel smooth without destroying battery life)
CPU underclocked to 1958 MHz by default (you can disable this; see why this was done in the FAQ in the 3rd post)
Vibrator is automatically disabled when recording videos (so the buzzing noise doesn't get in the videos)
Custom thermal control driver (features 8 thermal throttle steps; keeps the phone cool)
LCD KCAL by Savoca
Westwood TCP congestion algorithm (enabled by default)
F2FS support
NTFS support
No placebo patches, features, or compiler "optimizations"
Many other misc. improvements not listed here


Source code:
Kernel (cm-14.1-sultan branch): https://github.com/CertifiedBlyndGuy/android_kernel_oneplus_onyx
Local manifest (contains the rest of the sources): https://github.com/CertifiedBlyndGuy/android/blob/master/onyx/cm-14.1/local_manifest.xml

Credits:

LineageOS and its contributors
CAF (aka Qualcomm)
myfluxi (lots of amazing contributions)
My closed testing group (loyal guinea pigs)
herna (Good friend, thank him for all of my work since May, and for getting AptX/HD working on the 8974 first)
Sultanxda (an amazing source of information who helped get this rolling)
ashwinr64 (he has done an awesome job maintaining Lineage)
Open GApps
If your name should be here and it isn't, then make me use an iPhone 4s running iOS 9


Installation instructions (for first-time installation):
First, perform a backup of your existing setup, and then perform a clean install (wipe /data and /system; TWRP is recommended). Next, try flashing the ROM and see if it installs; if it installs without any issues then congratulations! Now just flash a Google apps package, and then reboot.

If you get an error when trying to install ("oppo.verify_trustzone" error), then first you must install/use TWRP recovery 3.0.2-0. Next, download and flash the latest official OOS release. Then, without rebooting from recovery, wipe /system and flash my ROM. This process is necessary to update various firmwares (including TrustZone), as the updated firmware is needed by this ROM. After flashing this ROM, flash a Google Apps package, and then reboot.

Installation instructions (for updating to a newer release):
If you are already running this ROM, then you can update to a newer version of the ROM via the built-in OTA updater or by simply dirty-flashing the new ROM build without wiping anything. HOWEVER, do NOT reinstall Google Apps after installing a new update.

Downloads:
ROM:

Please read through the installation instructions before installing this for the first time.

Google Drive: https://drive.google.com/open?id=0B_3Cq8s3oPtRUFVteTFSNXA4SzQ
md5sum: https://drive.google.com/open?id=0B_3Cq8s3oPtRQ0Y5d2NyTDV4RFU
Google Apps (required): Platform: "ARM", Android: "7.1", Variant: "micro" or "nano" (I will not provide support if you install a different variant)


August 9, 2017:
ROM:
Merged with the latest Lineage sources.
Opt in for Cortex-A15 optimizations.
Kernel:
Merged with the Sultan's latest msm8974 sources.
Note: The build date is not the same as the date of posting it here just because I personally tested it so that there are no major issues! Hence, latest here is as of the build date.
Old Changelogs:

August 2, 2017:
ROM:
Merged with the latest Lineage sources!

July 7, 2017:
ROM:
*Initial release

Kernel:
*Initial release


XDA:DevDB Information
LineageOS 14.1 with fancy 3.4.0 kernel, ROM for the OnePlus X

Contributors
CertifiedBlyndGuy, anunaym14, Sultanxda
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.4.x

Version Information
Status: Abandoned
Beta Release Date: 2017-08-09

Created 2017-07-07
Last Updated 2017-08-25
 

CertifiedBlyndGuy

Retired Forum Moderator / Inactive Recognized Deve
Jun 11, 2014
1,936
2,983
0
Boulder
FAQ

1. Could you add camera slow-shutter times greater than 2 seconds?
Answer: No, I cannot. The reason why exposure times are capped at 2 seconds is due to the proprietary camera libraries from OxygenOS. Only OnePlus can modify the proprietary camera libraries, so there is no way for me, a regular consumer, to implement exposure times greater than 2 seconds.

2. Why did you underclock the CPU to 1958MHz?
Answer: At 1958MHz, the amount of heat generated by the CPU is quite a bit less than at 2265MHz, so the CPU is throttled less often (leading to better user experience), and battery life is better as well. The performance difference between 1958MHz and 2265MHz is also not really noticeable unless you use a benchmark application.

3. Will you ship OMS?
Answer: No. That would involve changing Lineage beyond the extent I would like to for something that I do not use.

3. Can Xposed be used
Answer: No. It is not out for Nougat, and even if it were, I would not provide support.

Note: If you report a bug with a custom kernel installed, I will ignore you.
 
Last edited:

W!ld

Senior Member
Dec 5, 2015
117
33
0
@CertifiedBlyndGuy This ROM is extremely smooth and fast af.
Front camera takes too dark images under low lit conditions in comparison to oos can something be done.
Secondly there is no option to disable camera shutter sound.
 
Status
Not open for further replies.