FORUMS
Remove All Ads from XDA

 View Poll Results: Is ring volume loud enough?

Yes
 
11 Vote(s)
73.33%
No
 
4 Vote(s)
26.67%

[ROM] Unofficial Lineage 16.0 (updated 2019-4-10)

1,842 posts
Thanks Meter: 2,308
 
By tomascus, Recognized Developer on 29th December 2018, 08:07 AM
Post Reply Email Thread

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:
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
.
.
Older releases:

Code:
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: This graph)
- 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 2019-04-10
The Following 40 Users Say Thank You to tomascus For This Useful Post: [ View ]
 
 
29th December 2018, 08:07 AM |#2  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 2,308
 
Donate to Me
More
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)  
....
....
The Following 8 Users Say Thank You to tomascus For This Useful Post: [ View ]
29th December 2018, 08:07 AM |#3  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 2,308
 
Donate to Me
More
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)
The Following 5 Users Say Thank You to tomascus For This Useful Post: [ View ]
29th December 2018, 11:01 AM |#5  
Senior Member
Flag Utrecht
Thanks Meter: 187
 
More
Thanks a lot man. As the ROM scene is very quiet for our device this is extremely welcome! Can't wait to try this out.
The Following User Says Thank You to rajackar For This Useful Post: [ View ] Gift rajackar Ad-Free
29th December 2018, 11:30 AM |#6  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 2,308
 
Donate to Me
More
Quote:
Originally Posted by miffymiffy

Legend, Gonna jump on this now!
Got a dual Sim so I'll let you know.

Mate, it bootloops back into recovery and I can't even get a log.

Quote:
Originally Posted by rajackar

Thanks a lot man. As the ROM scene is very quiet for our device this is extremely welcome! Can't wait to try this out.

Can you guys using the dual sim variant try this build:

https://mega.nz/#!5FFBhCgZ!BR1ktarVF...pqMIPPrPGS2KVg
The Following 5 Users Say Thank You to tomascus For This Useful Post: [ View ]
29th December 2018, 11:32 AM |#7  
Senior Member
Flag Utrecht
Thanks Meter: 187
 
More
Can't flash my phone right now as I need it but will try later.
29th December 2018, 12:25 PM |#8  
Quote:
Originally Posted by tomascus

Can you guys using the dual sim variant try this build:

Exact same mate.
29th December 2018, 01:24 PM |#9  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 2,308
 
Donate to Me
More
Quote:
Originally Posted by miffymiffy

Exact same mate.

Slim boots though Yea?
The Following User Says Thank You to tomascus For This Useful Post: [ View ]
29th December 2018, 01:33 PM |#10  
Senior Member
Flag Việt Nam
Thanks Meter: 52
 
More
1 issues bro...
.
when touch screen. all big cores and all min cores always run at 1056mhz & 1036mhz.... help u can fix it bro.
29th December 2018, 01:48 PM |#11  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 2,308
 
Donate to Me
More
Quote:
Originally Posted by ValKyre

1 issues bro...
.
when touch screen. all big cores and all min cores always run at 1056mhz & 1036mhz.... help u can fix it bro.

It's not an issue. The PowerHAL boosts the CPU frequency on interaction to prevent dropped frames/stutter. You can see the same behaviour on stock if I recall correctly.
The Following 3 Users Say Thank You to tomascus For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
android p, lineageos, rom

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes