• 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] Unofficial Lineage 16.0 (updated 2020-10-21)

Is ring volume loud enough?

  • Yes

    Votes: 11 73.3%
  • No

    Votes: 4 26.7%

  • Total voters
    15

tomascus

Recognized Developer
Jun 5, 2012
1,902
2,645
113
Melbourne

Post 1 - Introduction, download, and changelog
Post 2 - How to report bugs
Post 3 - How to build LineageOS from my sources

Disclaimer
Code:
/*
* 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 me for messing up your device, I will laugh at you.
*
*/
What it is
LineageOS is an open source operating system based on AOSP (Android Open Source Project) with many extra features and additions.

Screenshots


Known bugs
- On dual SIM devices, a SIM cannot be re-enabled once it has been disabled

Prerequisites
- Be on stock Oreo ROM (to have Oreo radio, dsp etc.)

Installation instructions
1. Download the updated TWRP recovery (thanks CaptainThrowback and RandomPooka): HERE
2. Reboot to download mode and flash it: "fastboot flash recovery name_of_file.img"
3. Download the latest ROM zip from the downloads section below
4. Wipe /system and /data (complete FORMAT /data if you're having issues)
5. Flash ROM zip in TWRP

Downloads
LineageOS builds: here
Gapps: here

Changelog

Latest:
Code:
[HIDE]
[code]
2020-10-21
---------------------------------------------------------------------------------------------------------------------------
- Android: October Security patch
- Please backup everything first!! if you get google play service crashing then reflash gapps
Older releases:

Code:
2020-9-21
---------------------------------------------------------------------------------------------------------------------------
- Android: September Security patch
- Please backup everything first!! if you get google play service crashing then reflash gapps

2020-8-7
---------------------------------------------------------------------------------------------------------------------------
- Android: August Security patch

2020-3-10
---------------------------------------------------------------------------------------------------------------------------
- Android: March 5 2020 Security patch
- Kernel: merged v4.4.177
- Kernel: merge CAF tag LA.UM.6.4.r1-12900-8x98.0, latest for Oreo kernel

2019-12-12
---------------------------------------------------------------------------------------------------------------------------
- Android: December 5 2019 Security patch

2019-8-15
---------------------------------------------------------------------------------------------------------------------------
- Android: August security patch
- Kernel: merge CAF tag LA.UM.6.4.r1-12900-8x98.0

2019-7-02
---------------------------------------------------------------------------------------------------------------------------
- gps: modify NTP server to hopefully improve GPS lock-on speed
- squeeze gestures: remove launch ambient display action
- android: merge 5 July security patches (yes, from the future)
- framework: merge min time between notification sounds feature
- ambient gestures: remove pocket mode and pick up gestures

2019-5-13
---------------------------------------------------------------------------------------------------------------------------
- android: 5 May security patch merged
- android: android 9.0.0 r37 merged
- nfc: fix mismerge causing read failures
- gestures: translated to Russian (thanks to Golv)

2019-4-10
---------------------------------------------------------------------------------------------------------------------------
- merge April security patch
- drm: Fix Widevine issues for some users (thanks to @Golv)
- overlay: remove carrier overlays
- kernel: merge CAF tag LA.UM.6.4.r1-12100-8x98.0
- kernel: merge HTC diag drivers 
- gestures: readd short squeeze to take picture
- mm: reduce ZRAM back to 512mb and lower swapiness back to 60

2019-3-17
---------------------------------------------------------------------------------------------------------------------------
- overlay: fix brightness slider having no effect at lower levels
- frameworks: expanded volume panel is back (buggy)
- frameworks: audioFX changes aimed at fixing sound issues with it enabled

2019/3/5
---------------------------------------------------------------------------------------------------------------------------
- ambient gestures: kang pocket mode and pick up gestures
- android: merge March security patches
- android: merge android-9.0.0_r34
- init: boot with performance governor for (hopefully) faster boot ups
- kernel: rebased yet again to fix poor code merges (thanks to nathanchance)
- kernel: other misc changes
- lights: workaround capacitive lights brightness issue
- overlay: increase ambient display brightness
- overlay: reduce minimum brightness
- power: don't boost big cluster on interaction
- screen gestures: decrease sensor sampling rate
- squeeze gestures: add ambient display action
- squeeze gestures: add turn screen on/off action
- squeeze gestures: decrease sensor sampling rate
- squeeze gestures: fix broken squeeze force setting
- squeeze gestures: fix incorrect squeeze force for long squeeze action activation
- squeeze gestures: revamp again. short squeeze vibration signals time to release (stock behaviour)

2019/2/25
---------------------------------------------------------------------------------------------------------------------------
- init: remove build fingerprint overrides in init (fix safetynet ctsProfile failure)
- kernel: merge CAF tag LA.UM.6.2.r1-11900-sdm660
- kernel: merge linux upstream 4.4.171 -> 4.4.175
- kernel: update EAS with kernel 4.9

2019/2/22
---------------------------------------------------------------------------------------------------------------------------
- NO MORE HMP BUILDS FROM HERE ON, I swear I'll stop switching
- gestures: fix edge sense not working in deep sleep
- gestures: seperate out edge sense and screen of gestures into different menus
- gestures: show selected options under their respective listpreference
- gestures: unregister EdgeSensorEventListener when screen is off to save power
- init: add idle_time permissions and set value to fix stuttering
- init: rework with radio props yet again (WIP)
- kernel: actually use BFQ iosched
- kernel: back to wahoo (Pixel 2) EAS
- kernel: misc changes from wahoo

2019/2/13
---------------------------------------------------------------------------------------------------------------------------
- Back to HMP builds
- Lessen frame drop issue with powerHAL changes
- Switch to Oneplus 5 perf stack
- Livedisplay updated to 2.0
- Network traffic monitor now working
- Crash in initial setup wizard with Gapps flashed fixed
- Use generic ACDB ids for bluetooth calls
- Fix wifi startup issue for some users

2019/2/9
---------------------------------------------------------------------------------------------------------------------------
- kernel: cleaned up the vast majority of HTC additions and changes
- kernel: misc changes
- fix livedisplay restart loop
- revert init radio prop cleanups
- increase notification, alarm, and ring volumes
- build Trust HAL (can be found in Settings->Security & Location->Trust->Privacy heading (Restrict USB)

2019/2/6
---------------------------------------------------------------------------------------------------------------------------
- Merged android-9.0.0_r31
- Android security patch level February 5, 2019
- Fix freezing on shutdown
- Fix detection of Mifare classic NFC tags
- Fix radio props not getting added on single-sim Australian variants (lol)
- Modify voice recording mic calibration to match stock
- Slightly lower volume of notifications, ringing and alarms
- Pin important apps and camera in memory
- Use Wi-Fi config from CAF
- Partly update audio configs with CAF
- Fix USB Dongle issues with EAS builds
- Switch to EAS only builds

2019/1/30
----------------------------------------------------------------------------------------------------------------------------
- Fix low bluetooth call volume
- Fix speaker volume being too loud
- Fix earpiece volume in-car being too loud
- Fix camcorder mic acdb
- Fix in-call mic routing

2019/1/29
----------------------------------------------------------------------------------------------------------------------------
- HMP and EAS variants available
- kernel (EAS): update EAS with 4.9 kernel commits
- kernel: up CONFIG_HZ to 1000
- kernel: patches from kernel-common that improve bluetooth connection stability
- kernel: merge linux upstream v4.4.171 
- Big cleanups in kernel and device tree
- Re-enable Adaptive LMK
- Revert wifi config to stock

2019/1/26 [EXPERIMENTAL]
----------------------------------------------------------------------------------------------------------------------------
- HMP build only
- Kernel rebased on CAF tag LA.UM.7.4.r1-04600-8x98
- Change Wifi config to match mata and remove HTC changes
- Fixed an IMS missing symbol error
- Reworked gestures
    - Toggle haptic feedback ignores ringer
    - Add ability to take screenshot with a squeeze gesture
    - Modify long squeeze behaviour: long squeeze action activates while held down instead of when released
    - Add configurable long squeeze activation time

2019/1/22
----------------------------------------------------------------------------------------------------------------------------
- Two variants released - HMP and EAS
- Update Adreno stack from LA.UM.7.4.r1-04100-8x98.0 
- Update SDM stack from LA.UM.7.4.r1-04100-8x98.0
- Phone can now be suspended in charge mode (charging while phone is off)
- Merged upstream linux v4.4.160 into kernel
- Disable Adaptive Low Memory Killer and revert minfree settings to default
- Cleanup device tree

2019/1/17
----------------------------------------------------------------------------------------------------------------------------
- Partially fix Type-C to 3.5mm dongle audio routing issue
- Kernel: rebased on clean tag LA.UM.6.2.r1-11600-sdm660.0
- Kernel: Revert all linux upstream patches (back to v4.4.78)
- Slightly increase autobrightness values for lower lux values

2019/1/15
----------------------------------------------------------------------------------------------------------------------------
- Blobs: Update proprietary blobs with stock 2.42.617.1, bringing vendor security patch level to 2018-11-01
- Gestures: seperate haptic feedback control for screen gestures and squeeze gestures
- Kernel: disable a lot of debugging options
- Kernel: remove force vibration on screen gesture detected
- Kernel: use CONFIG_HZ=300
- Overlay: reduce auto brightness response time
- Overlay: tweak auto brightness values to be less biased towards higher values (See: [url=https://drive.google.com/file/d/118JR8o5mQVRllbzqJs95XWMEOI3yfLoA/view?usp=sharing]This graph[/url])
- Revert "ocn: update gps from LA.UM.6.4.r1-11500-8x98.0" as it was causing GNSS to crash
- Update bthost_ipc with LA.UM.6.4.r1-11500-8x98.0
- Uprev health to 2.0

2019/1/10
----------------------------------------------------------------------------------------------------------------------------
- Selinux set to enforcing
- Enable sustained performance capability (see https://source.android.com/devices/tech/power/performance)
- move services to system-background cgroup to hopefully save power

2019/1/9
----------------------------------------------------------------------------------------------------------------------------
- Merged android-9.0.0_r30
- Android security patch level January 5, 2019
- Kang thermal blobs from Cheeseburger

2019/1/8 [TEST]
----------------------------------------------------------------------------------------------------------------------------
- Testing the use of EAS instead of HMP
- libperfmgr instead of the normal powerHAL to manage powerhints
- Edge sense and screen off gestures support (found in Settings -> System -> Gestures -> HTC Gestures and Edge sense)

2018/1/6
----------------------------------------------------------------------------------------------------------------------------
- merge tag LA.UM.6.4.r1-11500-8x98.0 into gps
- merge tag LA.UM.6.4.r1-11500-8x98.0 into data-ipa-cfg-mgr
- merge tag LA.UM.6.4.r1-11500-8x98.0 into kernel
- merge linux v4.4.167 into kernel
- build exfat in kernel
- double tap to wake support
- glove mode support
- basic screen off gestures (kanged from somewhere else)
- build Snap camera

2019/1/4
----------------------------------------------------------------------------------------------------------------------------
- Update graphics blobs (fixes Netflix force reboot)
- Add rest of the widevine blobs

2019/1/3
----------------------------------------------------------------------------------------------------------------------------
- Fix dual sim variant

2018/12/29
----------------------------------------------------------------------------------------------------------------------------
- Initial release
Sources
EAS branch: lineage-16.0
HMP branch: lineage-16.0_HMP (deprecated)
https://github.com/tomascus/android_device_htc_ocn
https://github.com/tomascus/android_kernel_htc_msm8998

XDA:DevDB Information
Unofficial Lineage 16.0, ROM for the HTC U11

Contributors
tomascus, Flinny
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x

Version Information
Status: Beta

Created 2018-12-29
Last Updated 2020-10-21
 
Last edited:

tomascus

Recognized Developer
Jun 5, 2012
1,902
2,645
113
Melbourne
HOW TO REPORT AN ISSUE
Firstly, try a clean flash with the data partition wiped to see if the issue still persists, if it does then continue below.

Checklist of information that should be provided:
  • Detailed description of the issue faced
  • Clear steps taken to reproduce the issue
  • The build which the issue has occured in
  • Last build where the issue didn't occur (if applicable)
  • Logs taken SHOWING the issue occurring (if applicable)
  • Expected behaviour (if applicable/not obvious)
  • Phone variant or CID
  • Any other important information which may assist in fixing the issue

HOW TO TAKE A LOGCAT:
The most important thing is to make sure only mostly relevant information is in the logcat.
1. Open a console/command prompt window
2. Input command: "adb logcat -c"
3. Input command to start logging: "adb logcat"
4. IMMEDIATELY reproduce the issue as soon as the command in Step 3 is inputted e.g make a call, play a song, click on a toggle which causes a crash
5. Stop the logcat as soon as the issue has run it's course e.g after an error message has appeared, or after something has crashed
6. Upload the log somewhere

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
AN EXAMPLE:
Hi, I have been experiencing an issue in calls where the other party can hear an echo of their own voice, this occurs in both earpiece and speaker mode. VOIP does not seem to be affected by this problem.
The issue can be replicated by simply making a call in the Dialer.
This issue has only started to occur on build X, but did not happen on older build Y. I have attempted to do a clean flash but the problem still persists.
My phone's CID is HTC__9999, if it's relevant.

I have attached the logcat below I've captured the instant I made a call, please have a look.
Code:
.....
.....
02-06 23:06:33.548   937  1016 D voice   : voice_start_usecase: enter usecase:voicemmode1-call                                                                                               
02-06 23:06:33.548   937  1016 D audio_hw_primary: select_devices for use case (voicemmode1-call)                                                                                            
02-06 23:06:33.548   937  1016 D audio_hw_primary: select_devices: out_snd_device(15: earpiece-voice) in_snd_device(98: voice-dmic-ef)                                                       
02-06 23:06:33.548   937  1016 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 36 device (earpiece-voice)  
02-06 23:06:33.548   937  1016 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)                                                               
02-06 23:06:33.548   937  1016 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 15                                                                        
02-06 23:06:33.548   937  1016 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 36 device (earpiece-voice)  
....
....
 
Last edited:

tomascus

Recognized Developer
Jun 5, 2012
1,902
2,645
113
Melbourne
HOW TO BUILD LINEAGE OS 16.0 FROM MY REPOS

A brief guide. Much of the information here has been directly taken from the lineageOS wiki. See https://wiki.lineageos.org for more information.

Brief requirements
- At least 16 GB of RAM
- Storage with over 100 GB of free space (SSD highly recommended)
- Working brain

1. Get Linux
- Download and install a Linux distribution, Ubuntu is one that's easy to work with so I recommend that

2. Set up build environment
- Follow the steps up to and including the "Initialize the LineageOS source repository" section here: https://wiki.lineageos.org/devices/dumpling/build (Yes, it says OnePlus)

3. Add my custom manifest
- Sync my development repos by adding the following in {LineageFolderHere}/.repo/local_manifests/mymanifest.xml (create the folders if they don't exist)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="tomascus/android_device_htc_ocn" path="device/htc/ocn" remote="github" revision="development" />
<project name="tomascus/android_kernel_htc_msm8998" path="kernel/htc/msm8998" remote="github" revision="development" />
<project name="tomascus/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="lineage-16.0"/>
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
</manifest>
4. Sync LineageOS sources
- From the main LineageOS folder, run:
Code:
repo sync -c --no-clone-bundle
- Wait for it to sync, it may take a few hours depending on your internet connection

5. Build the ROM
- Have a look at the section "Turn on caching to speed up build" at https://wiki.lineageos.org/devices/dumpling/build
- Run the commands to get variables and everything together to ready to build:
Code:
. build/envsetup.sh
lunch lineage_ocn-userdebug
To commerce building, run:
Code:
mka bacon
- Wait for it to build, output will be located at out/target/product/ocn/lineage-xxxxxx.zip

5. Doing incremental builds afterwards
- If drastic changes are made such as with vendor blobs, a full clean and full rebuild is recommended. A full clean can be done by running:
Code:
make clobber
- Otherwise, a installclean may suffice. run:
Code:
make installclean
- Then build with "mka bacon" as usual (Step 5)
 
Last edited:

tomascus

Recognized Developer
Jun 5, 2012
1,902
2,645
113
Melbourne

miffymiffy

Elite Member
Apr 25, 2007
1,296
350
83
36
Wollongong
So, i got it to boot. I flashed slim, let it set up. Then went back to los and it boots..
Seems as soon as my USB is unplugged, it shuts off and goes to recovery. I cant get a log of the error for obvious reasons. I can try something like syslog.

Now it doesnt let me boot! Frustrating.
On a positive note, it was working really well whilst plugged in
 

MadMungo

Senior Member
Nov 30, 2013
66
18
8
Sydney
Well I am back from testing on dual sim device.
Unfortunately I experianced the same as @miffymiffy, It boots to setup screen but instantly shuts down and reboots into recovery. Happens after a clean install and when installing over Slim 9 Alpha 6. Tried it with the single and dual sim versions
 
  • Like
Reactions: spoonymoon

tomascus

Recognized Developer
Jun 5, 2012
1,902
2,645
113
Melbourne
I couldn't resist and did a test too.
Exact same result. Slim is working ok.
Well I am back from testing on dual sim device.
Unfortunately I experianced the same as @miffymiffy, It boots to setup screen but instantly shuts down and reboots into recovery. Happens after a clean install and when installing over Slim 9 Alpha 6. Tried it with the single and dual sim versions
So, i got it to boot. I flashed slim, let it set up. Then went back to los and it boots..
Seems as soon as my USB is unplugged, it shuts off and goes to recovery. I cant get a log of the error for obvious reasons. I can try something like syslog.

Now it doesnt let me boot! Frustrating.
On a positive note, it was working really well whilst plugged in
Can you guys please flash the following ROM and get me a logcat from the point the phone starts booting up til the til it reaches the setup (lineage) window
Also, does it detect SIM card?
https://mega.nz/#!Vc1lVIQZ!aWuJobQ8EL2kYQ6UA9_PtEzB967Za3HapjVlkNN1WXU
 
  • Like
Reactions: amit_sen

rajackar

Elite Member
Feb 19, 2009
1,070
186
63
Utrecht