[ROM][11.0] LineageOS 18.1 (ocn) [UNOFFICIAL] (upd 2021-01-11)

Golv

Recognized Developer
Jan 17, 2012
2,068
4,348
203


LineageOS 18.1 is a free, community built, aftermarket firmware distribution of Android 11 (R), which is designed to increase performance and reliability over stock Android for your device.

Disclaimer
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.
*
*/
LineageOS 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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for Lineage OS is available in the LineageOS Github repo. And if you would like to contribute to Lineage OS, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.


Known Issues:

  • On dual SIM devices, a SIM cannot be re-enabled once it has been disabled
  • VOIP calling (problem with the microphone when making VOIP phone calls using Viber, Skype, Telegram, Facebook) - ???
  • Wi-Fi calling - ??? (checked it for mcc="310" mnc="260" only, but I cant check it for me. My carrier supports Volte only for our device and VOLTE works fine for me)
  • SeLinux permissive (will be fixed when the bugs are fixed)
  • WiFi Display (green screen with artifacts on wfd)
  • You tell me

Important: If you have any issues with rom (unresponsive buttons, cannot unlock with fingerprint, etc.) try to wipe delvik/cache in TWRP.

Instructions:

Take FULL backup first from your actual system!

Before instaling, make sure you are running the latest Oreo or Pie firmware from the latest HTC Sense.
If you are encrypted, take a full backup of all your data, boot into TWRP and format data (the option which requires you to type "yes") and clean flash accordingly. This is due to encryption changes. Do not skip this step or you will be locked out of your system by a password prompt.

  1. Download the latest updated TWRP recovery 3.3.1-1 ( thanks @Captain_Throwback ) or 3.4.0-0
  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, /cache and /data (complete FORMAT /data if you're having issues or were encrypted)
  5. Flash ROM zip in TWRP, reboot to system and make initial settings (don't enable option Lineage recovery during first setup after clean install, otherwise you will lose TWRP and you need to reinstall it again)
  6. Flash the latest magisk (optional) after make one reboot
  7. When system is booted, reboot to TWRP and flash gapps (optional)
  8. Reboot and check apps permissions
  9. Enjoy (as much as currently possible)


Downloads:

LineageOS builds: download link

These builds for OREO or PIE firmware ( DSP.img patch is required for PIE firmware ONLY - *** HERE ***) !!!
(the patch is applied once and NOT NEED to reinstall patch after ROM update).

GAPPS: NikGApps-R (I use OMNI) and NikGapps-Addon-R-SetupWizard (Flash Over Core/Basic/Omni Package To Get Google Setup Wizard)
For more info visit NikGapps page or NikGapps thread on xda.

Magisk for R: Magisk-v21.2.zip (optional)

TWRP recovery: 3.3.1-1 or 3.4.0-0


Changelog:

Latest from LineageOS team - here

Code:
----------------------------------------------------
2021-01-11
----------------------------------------------------

- Januaryr 2021 Security patch

f921c88      ocn: manifest: Remove Trust interface entry
ab26d97      ocn: Use CodeAurora ImsService implementation for RCS
e2a2ad7      ocn: Deduplicate handheld_core_hardware.xml copy rule
3c15e34      ocn: Remove [email protected]
1656c8e      ocn: update extract-files and setup-makefiles scripts
c715b08      ocn: Sign Tether RROs with default cert
9aaad0d      ocn: Don't sign Wifi RROs with platform cert
b5e4c30      ocn: Clean out BT related cruft
a38f7e8      ocn: Enable AOSP bluetooth audio HAL v2
b96b202      ocn: Cleanup BT A2DP HAL entries from manifest
d326b43      ocn: bluetooth: Disable clean turn on
cbeb279      Revert "ocn: Force enable mobile network settings v2"
04394c0      ocn: prop: Rework on system props
cbc20dd      ocn: Choose between Virtual or External WFD display
0d9ec67      ocn: prop: disable ubwc
----------------------------------------------------
2020-12-23
----------------------------------------------------

- December 2020 Security patch
- Initial beta release LOS 18.1(Android R) for HTC U11

Bug report:

Bug reports without a proper description of the issue and a logcat will be ignored!
You don't know howto take a logcat - see here:
https://forum.xda-developers.com/showpost.php?p=78642205&postcount=2
https://goo.gl/UcTM9 and https://goo.gl/J4CSEP

See post 3 for details.

Credits:

  1. LineageOS Team & Contributors
  2. Code Aurora Forum
  3. TWRP Team
  4. Magisk Team
  5. All HTC U11 contributors

Special thanks:

@tomascus
@Flinny
@Captain_Throwback
@tarkzim
@fagyi

*** and many others ***

Source code:

LineageOS Gerrit Review
Kernel source
Device source
Vendor source

XDA:DevDB Information
LineageOS 18.1 Unofficial ROM for HTC U11, ROM for the HTC U11

Contributors

Golv
Source Code: https://github.com/LineageOS

Donations
Donations are not mandatory but very welcome.
If you like my work and want to support development or buy me a coffee: My PayPal or my profile on AFH

ROM OS Version: Android 11
ROM Kernel: Linux 4.x
ROM Firmware Required: Oreo firmware or Pie firmware (with Oreo DSP patch)
Based On: LineageOS

Version Information
Status:
Beta
Beta Release Date: 2020-12-23

Created 2020-12-23
Last Updated 2021-01-11
 
Last edited:

Golv

Recognized Developer
Jan 17, 2012
2,068
4,348
203
So just a quick note to people who dirty flash a lot.
THX @tomascus
So just a quick note to people who dirty flash a lot. You might randomly experience longer app launch times after flashing a ROM and the only apparent way to fix it was to do a clean flash.
I experienced this a few times and decided to investigate and saw that it had something to do with how dex2oat works after you dirty flash (it refuses to optimise properly?). What I found fixed the issue was to manually run dex2oat on everything after it booted into the system, and after it has finished the process (could take super long depending on how many apps you have), everything went back to its speedy state.

How to:
If you have root/magisk:
1. Open terminal and enter the following commands:
Code:
su
cmd package bg-dexopt-job
If you don't have root:
1. Enable root for ADB only in developer settings
2. On your computer, enter the following commands in a console/terminal window:
adb root
adb shell "cmd package bg-dexopt-job"
 
Last edited:

Golv

Recognized Developer
Jan 17, 2012
2,068
4,348
203
Reporting Bugs
  • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
  • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
  • If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
  • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

Code:
What is your--
LineageOS version:
LineageOS Download url:
Gapps version:

Did you--
wipe:
restore with titanium backup:
reboot after having the issue:

Are you using--
a task killer:
a non-stock kernel:
other modifications:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
 
Last edited:

Golv

Recognized Developer
Jan 17, 2012
2,068
4,348
203
New stable Beta build Android 11 (R) is up!

This is my little Xmas and New Year gift for you. ✌


Code:
----------------------------------------------------
2020-12-23
----------------------------------------------------

- December 2020 Security patch
- Initial beta release LOS 18.1 (Android R) for HTC U11

Enjoy! ;)
 
Last edited:

coderch123

Member
Aug 5, 2011
26
16
23
Santiago
Hi, I'm stuck trying to boot again to TWRP (after installing Lineage) because every time I try to boot into recovery I end up in LineageOS default recovery. Since I'm unable to boot into TWRP I cannot install neither Gapps or Magisk.

EDIT: I fixed it by flashing TWRP again.
 
Last edited:

stranger-mj

Senior Member
Nov 5, 2009
78
23
38
Oss


LineageOS 18.1 is a free, community built, aftermarket firmware distribution of Android 11 (R), which is designed to increase performance and reliability over stock Android for your device.

Disclaimer
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.
*
*/
LineageOS 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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for Lineage OS is available in the LineageOS Github repo. And if you would like to contribute to Lineage OS, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.


Known Issues:

  • On dual SIM devices, a SIM cannot be re-enabled once it has been disabled
  • VOIP calling (problem with the microphone when making VOIP phone calls using Viber, Skype, Telegram, Facebook) - ???
  • Wi-Fi calling - ??? (checked it for mcc="310" mnc="260" only, but I cant check it for me. My carrier supports Volte only for our device and VOLTE works fine for me)
  • SeLinux permissive (will be fixed when the bugs are fixed)
  • WiFi Display
  • You tell me

Important: If you have any issues with rom (unresponsive buttons, cannot unlock with fingerprint, etc.) try to wipe delvik/cache in TWRP.

Instructions:

Take FULL backup first from your actual system!

Before instaling, make sure you are running the latest Oreo or Pie firmware from the latest HTC Sense.
If you are encrypted, take a full backup of all your data, boot into TWRP and format data (the option which requires you to type "yes") and clean flash accordingly. This is due to encryption changes. Do not skip this step or you will be locked out of your system by a password prompt.

  1. Download the latest updated TWRP recovery 3.3.1-1 ( thanks @Captain_Throwback ) or 3.4.0-0
  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, /cache and /data (complete FORMAT /data if you're having issues or were encrypted)
  5. Flash ROM zip in TWRP, reboot to system and make initial settings
  6. Flash the latest magisk (optional) after make one reboot.
  7. When system is booted, reboot to TWRP and flash gapps (optional)
  8. Reboot and check apps permissions
  9. Enjoy (as much as currently possible)


Downloads:

LineageOS builds: download link

These builds for OREO or PIE firmware ( DSP.img patch is required for PIE firmware ONLY - *** HERE ***) !!!
(the patch is applied once and NOT NEED to reinstall patch after ROM update).

GAPPS: NikGApps-R (I use OMNI) and NikGapps-Addon-R-SetupWizard (Flash Over Core/Basic/Omni Package To Get Google Setup Wizard)
For more info visit NikGapps page or NikGapps thread on xda.

Magisk for R: Magisk-v21.1.zip (optional)

TWRP recovery: 3.3.1-1 or 3.4.0-0


Changelog:

Latest from LineageOS team - here

Code:
----------------------------------------------------
2020-12-23
----------------------------------------------------

- December 2020 Security patch
- Initial beta release LOS 18.1(Android R) for HTC U11

Bug report:

Bug reports without a proper description of the issue and a logcat will be ignored!
You don't know howto take a logcat - see here:
https://forum.xda-developers.com/showpost.php?p=78642205&postcount=2
https://goo.gl/UcTM9 and https://goo.gl/J4CSEP

See post 3 for details.

Credits:

  1. LineageOS Team & Contributors
  2. Code Aurora Forum
  3. TWRP Team
  4. Magisk Team
  5. All HTC U11 contributors

Special thanks:

@tomascus
@Flinny
@Captain_Throwback
@tarkzim
@fagyi

*** and many others ***

Source code:

LineageOS Gerrit Review
Kernel source
Device source
Vendor source

XDA:DevDB Information
LineageOS 18.1 Unofficial ROM for HTC U11, ROM for the HTC U11

Contributors

Golv
Source Code: https://github.com/LineageOS

Donations
Donations are not mandatory but very welcome.
If you like my work and want to support development or buy me a coffee: My PayPal or my profile on AFH

ROM OS Version: Android 11
ROM Kernel: Linux 4.x
ROM Firmware Required: Oreo firmware or Pie firmware (with Oreo DSP patch)
Based On: LineageOS

Version Information
Status:
Beta
Beta Release Date: 2020-12-23

Created 2020-12-23
Last Updated 2020-12-23
Woohoo!!! Gonna get it!!! Thanks!!!

ONE question, to which I don't think you wrote an answer to (and if you did, I can't find it - which would probably be caused by lack of sleep, been a few crazy days at work in the datacenter in the middle of the night): Can I dirty flash over your LOS 17.1 version?

Merry Christmas!!! 🎄
 
Last edited:
  • Like
Reactions: Golv

Golv

Recognized Developer
Jan 17, 2012
2,068
4,348
203
Hi, I'm stuck trying to boot again to TWRP (after installing Lineage) because every time I try to boot into recovery I end up in LineageOS default recovery. Since I'm unable to boot into TWRP I cannot install neither Gapps or Magisk.

EDIT: I fixed it by flashing TWRP again.
Don't enable option Lineage recovery during first setup after clean install.
 

Salvio66

Member
Dec 4, 2013
26
10
23
Cento ( FE)
Hello everyone and merry christmas, I downloaded the rom, the gapps and magisk, I cleaned the cache, dalvik, system and data from the previous 17.1 ... after the flash of 18.1 and the basic settings I rebooted to install magisk ... ..but the TWRP recovery has disappeared ... there is only the base of Lineage 18.1 ..... luckily I had a nandroid backup ... now I have restored 17.1 .... I'll try calmly in the afternoon ... did I do something wrong ??? help me please ...
THX Salvio66

sorry but I use a translator because I don't know English well .... i'm a dummy ...

Sorry I'm just a fool ... I have now read the solution ... and it was also very easy ... LOL !! ... ok in the afternoon I'll try to reset everything for this new Rom ...
 
  • Haha
Reactions: Golv

konfuzius4u

Member
May 17, 2012
48
27
48
Stuttgart area
so far everything is doing fine, Magisk works fine, only Google Play services always wants to have the permission SMS but somehow clicking on allow does not save these two permissions (SMS and for call logs), the other permissions that Google Play services did want to have could be given without problems. This problem is only there for Google Play services. Other apps and even Google Play Store I could give these permissions, very strange.
I will try to find out later today or tomorrow what is going on and get some logcat.
 

onukomer

Senior Member
Dec 10, 2009
339
54
58
istanbul
so far everything is doing fine, Magisk works fine, only Google Play services always wants to have the permission SMS but somehow clicking on allow does not save these two permissions (SMS and for call logs), the other permissions that Google Play services did want to have could be given without problems. This problem is only there for Google Play services. Other apps and even Google Play Store I could give these permissions, very strange.
I will try to find out later today or tomorrow what is going on and get some logcat.
+1
 
  • Like
Reactions: Golv

bamn

Senior Member
Jul 23, 2010
179
51
48
Same here, not possible to restore google apps through google backup due to no SMS permission possible.

After trying a couple of things it seems "Fix contents" (or something like this as my TWRP is not in English) and a couple of reboots made it possible to allow SMS permission.

Phone is now restoring apps.

@Golv much appreciate all your work! Enjoy the holidays!
 
  • Like
Reactions: konfuzius4u