[ROM][OMS7][Experimental]LineageOS 14.1 with extra open commits

What type of builds for the futur?

  • Stock LineageOS with only OMS

    Votes: 10 22.7%
  • Stock + open commits like today

    Votes: 34 77.3%

  • Total voters
    44
  • Poll closed .
Status
Not open for further replies.

matssa

Senior Member
Jan 8, 2015
1,817
1,898
153
Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * We are 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 us for messing up your device, we will laugh at you.
 *
 */
This thread is no longer supported or updated! You can maybe still find new builds on my AFH, but no guarantees! I will let the original first post only for information.

Important information:

I made this thread in order to avoid the off topic in the official LineageOS thread by @dianlujitao (http://forum.xda-developers.com/oneplus-3/development/rom-cyanogenmod-14-1-oneplus-3-t3496850).

The ROM that I propose is an experimental build using the official LineageOS 14.1 commits with some extra stuff that are not yet merged for testing. In order to avoid issues with repopicking, I use my own repos that are forked from the official repos. You can find them at the end of the post.

The commits that are included which are not merged are:
  • Kernel modification in order to pass SafetyNet CTS check
  • OMS / Substratum (fully included using n-mr1 tree)
  • 160327 160328 (kernel) --> Postponed
  • 160726 163935 (device)
  • 161956 (OMS extra stuff)
  • 161709 (hardware_cyanogen)

Please be aware that I might be missing some commits, the easiest way is for you to check the repo commits

All new builds will be in LineageOS_OOS4.0.3_OMS. I will keep including basic OMS functionality until issues arrive. At that time, I will remove and stop supporting OMS.

Please be aware that this is for advanced users!

I share all of my building information in order to help the users know what is included and how to reproduce. However, if you share your builds, please quote this thread in order to give the correct credits to the correct persons.



New builds (after 2017/1/15) uses F2FS backported from 4.10 kernel, you may meet compatibility problems such as deadlocks. If you do, flash the modified TWRP from @arter97 or from @dianlujitao and choose "Wipe -> Format Data" to format (not just wipe) your /data partition. This will clean the entire /data partition, including the emulated sdcard, so don't forget to backup your data!. After that, your data partition will be formatted into ext4, if you want to keep using f2fs, just convert fs type normally in TWRP.
It is highly recommended to use the modified TWRP from dianlujtao because the TWRP kernel is the same as the Android kernel, including 4.10 F2FS, which keeps 100% compatibility with LineageOS 14.1. There's no guarantee that other TWRP author will use the right kernel. Btw, NEVER choose the outdated OFFICIAL TWRP, it's out of maintenance!



The following will not be supported here:
  • Custom kernels
  • Mods
  • Xposed

I am not a dev, I only build the ROM. This can be read by the real dev, @dianlujitao. If you find a bug, please attach a logcat. You're kindly invited to not report bugs if you:
  • Flashed a custom kernel
  • Installed or did mods from untrusted sources
  • Modified system files


Known bugs:
  • F2FS ROMs can have deadlocks or other issues, please use the new TWRP
  • Some OMS themes apparently don't work, can be linked to missing root for masquerade or substratum app (use SuperSU, not in-built root, uninstall and install Substratum app again)
  • Built-in root removed by LineageOS, flashable addon exists (https://download.lineageos.org/extras), only needed once apparently
  • Wifi calling doesn't work after reboot or airplane mode --> Need to toggle the switch in Settings to make it work again
  • OOS Camera port doesn't work (no postprocessing, low quality photos) --> Use HAL 1 with flashable zip (https://forum.xda-developers.com/showpost.php?p=70983628&postcount=1879)
  • other stuff ;)



Installation:
  1. Download the zip
  2. Install a compatible Recovery (Modified TWRP)
  3. Perform a nandroid backup of your current ROM (Optional)
  4. Wipe data/factory reset unless you want to dirty flash
  5. Flash LineageOS
  6. Optional: Install the Google Apps addon package (if clean flash)
  7. Reboot

Roomservice + Building process
Here is the roomservice.xml of this ROM:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="LineageOS/android_device_oppo_common" path="device/oppo/common" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-14.1" />
  <project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_device_oneplus_oneplus3" path="device/oneplus/oneplus3" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_kernel_oneplus_msm8996" path="kernel/oneplus/msm8996" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_vendor_nxp-nfc_opensource_Nfc" path="vendor/nxp-nfc/opensource/Nfc" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_vendor_nxp-nfc_opensource_frameworks" path="vendor/nxp-nfc/opensource/frameworks" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_vendor_nxp-nfc_opensource_libnfc-nci" path="vendor/nxp-nfc/opensource/libnfc-nci" remote="github" revision="cm-14.1" />
  <project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
  <project name="TeamSubstratum/masquerade" path="packages/apps/masquerade"  remote="github" revision="n" />
</manifest>
Here is the rough building process (all the repo updating, repopick conflicts, etc... are not shown):

  • Use LineageOS roomservice
  • Cleaning output directory
  • Sync repo and prepare repopick commands
  • Repopick open commits from LineageOS
  • Clean build directory (sometimes necessary)
  • Generate changelog
  • Prepare build
  • Config jack server + start server
  • Build ROM
  • Copy zip file to host and cleanup
  • Kill jack server


Download:
https://www.androidfilehost.com/?a=show&w=files&flid=75317


Version Information
Status: Nightly
Created : 2016-12 -13
Latest build: 2017-03-05

Changelog
Code:
Project name: device/oneplus/oneplus3/
  * df7c1db Revert "op3: remove highspeed recording profiles"
  * 13e4b5d op3: disable wpa_supplicant log spam

Project name: hardware/qcom/audio-caf/msm8916/
  * 1e33348 hal: dolby: Only set C_KEY if ACDB License is enabled.

Project name: vendor/cm/
  * 3a03129 OMS: Add masquerade for Substratum OMS themes

Credits
Source Code:
https://github.com/LineageOS
https://github.com/Matssa56
 
Last edited:

matssa

Senior Member
Jan 8, 2015
1,817
1,898
153
currently, I'm running CM13 on my OP3, want to update to CM14, but I can't find any issue log. What are the current knows issues? Thanks
I didn't out any issue log since the build is experimental. For now, the issues are the same as the official nighties without the echo problem.

An issue that can be present concerns the volume, it goes up or down in some apps or when you change the audio of the notifications in some apps, but I didn't experience it yet.

Other than that, there was the dev option that was freezing, but it is apparently fixed, don't know if it was a oneplus3 issue or if it was multi device.

That is about it on my end, didn't take a chance to look at the logs yet. Pleas be aware that this is an experimental build, it has some fixes that are not yet merged in the official CM build, for example the echo and GPS fix.
 

bay91

Senior Member
Aug 19, 2013
321
110
63
Gave this a go, but for me after flashing there were some strange things with the home key not responding that i hadn't had in previous builds. For me the 13th nightly seemed a bit more ineffective than previous so I'm back on the official 12th for now, but will keep an eye on this thread with interest. Thanks for contributing!
 

matssa

Senior Member
Jan 8, 2015
1,817
1,898
153
@matssa FYI you can now use cm vendor_nfc repos as they have merged caf code.
So Developer options freeze is fixed or you just messed up with blobs :) ?
Haha it has been fixed in my build ;) it was already ok before it seems, I saw that @dianlujitao didn't ship something that was needed.

A tad curious about you mentioning NFC, I noticed there are some issues with NFC on Nougat builds in general and Android Pay, is that something that may have been fixed with the merged caf code?
The issue was heating and crashing of the NfC with the N blobs, but it has been fixed by merging the new version. I didn't test Android Pay because I don't have it in my country.
 
  • Like
Reactions: SamuelBegui

SamuelBegui

Senior Member
Jan 27, 2015
1,698
739
0
/home/coolbeans/
Haha it has been fixed in my build ;) it was already ok before it seems, I saw that @dianlujitao didn't ship something that was needed.



The issue was heating and crashing of the NfC with the N blobs, but it has been fixed by merging the new version. I didn't test Android Pay because I don't have it in my country.
I'm willing to give it a test! :good: I'll download your build and try it.
 
Last edited:

Giocarro

Senior Member
Dec 11, 2012
2,061
970
193
I'm facing some little issue that become showstopper as they break my daily usage:
1) HOME button long-press to turn OFF the display is not working consistently; most times I have to press it twice to trigger the action;
2) BACK button long-press is not customizable?!? I want it to trigger MENU action, but the option is not present;
3) there's no way to disable capacitive keys while gaming; not a deal breaker for most people I know, but my son yesterday went as far as crying because of false touches on capacitive keys during his brief gaming time.

Well, I guess I'm writing this to show appreciation for Matssa work and to ask whether you guys see any solution to these little but important glitches.
 

matssa

Senior Member
Jan 8, 2015
1,817
1,898
153
New nightly on AFH, first post was updated.

I'm facing some little issue that become showstopper as they break my daily usage:
1) HOME button long-press to turn OFF the display is not working consistently; most times I have to press it twice to trigger the action;
2) BACK button long-press is not customizable?!? I want it to trigger MENU action, but the option is not present;
3) there's no way to disable capacitive keys while gaming; not a deal breaker for most people I know, but my son yesterday went as far as crying because of false touches on capacitive keys during his brief gaming time.

Well, I guess I'm writing this to show appreciation for Matssa work and to ask whether you guys see any solution to these little but important glitches.
Mmmh got any logs?
For the Home button, I have the same issue, I find some fpc hall errors. @dianlujitao, you can find a log here. Best bet is that we need to wait for the updated hall and blobs from the official OOS N ROM.
For the Back button, apparently it isn't customizable yet, I suppose it is the same issue in the official nightly. If you want to trigger the menu, you can use the recent apps button.
For the disable capacitive keys, this option was never in CM before, I don't think it will appear one day. Did you try with the on-screen navigation bar? I think this disables the capa buttons and they should dissapear while gaming (not sure about that last point). It may be possible to do something like that, but I think in an Xposed module, which is still not possible for Android N :/
 

Attachments

  • Like
Reactions: Giocarro

matssa

Senior Member
Jan 8, 2015
1,817
1,898
153
Sounds exactly the same issues I was facing meaning I can't use as a driver for the moment
What issues do you have? Do you have the same issues with the official nightly without the extra blobs? If so, can you please give us some logs?
 

matssa

Senior Member
Jan 8, 2015
1,817
1,898
153
If "Developer settings" works in your build then you using old blobs.
How can it be possible??? Why, WHYYYY??? WHYYYYYYYYYY?? ;) Where do you think I may have gone wrong? In the building process? I know the commits have been taking into account since the GPS is working, it wasn't on the CM official.

EDIT///
Furthermore, when checking github, a "hax" was found by Scott Hart by removing the OEM unlock and another stuff, and it was made in android_packages_apps_Settings, which isn't touched by the commit from @dianlujitao, correct? So if my guess is correct, we should have the same issue on CM official and unofficial, even with the new blobs, what I saw from the post is that @dianlujitao didn't ship lksecapp in his build: "Nice catch, maybe OEM unlock, as I didn't ship lksecapp in my experimental build".

If you use your own experimental build, do you have the same issue?
 
Last edited:

ivanich

Senior Member
Nov 6, 2011
1,167
2,612
143
Odessa, Kyiv
How can it be possible??? Why, WHYYYY??? WHYYYYYYYYYY?? ;) Where do you think I may have gone wrong? In the building process? I know the commits have been taking into account since the GPS is working, it wasn't on the CM official.
cd to your BUILD_DIR/vendor/oneplus
and show output of
Code:
git status
and
Code:
git log -n 3
Official builds doesn't have this issue because using old blobs.
I have issue with Dev options only with new blobs.
 
Last edited:
Status
Not open for further replies.