[ROM][UNOFFICIAL][microG][root][OTA][WireGuard][enchilada][9] LineageOS 16.0

Search This thread

AndroidBolder

Member
Jan 30, 2019
25
58
http%3A%2F%2Fi.imgur.com%2F2okPze5.png


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

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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

This build includes microG, a free and open implementation of the Google Play Services Framework. It allows applications calling proprietary Google APIs to run on AOSP-based ROMs like Replicant and LineageOS. Acting as a replacement for the closed-source Google Apps (GAPPS), it is a powerful tool to reclaim your privacy while enjoying Android core features such as Google Cloud Messaging.

It also includes WireGuard, a next generation secure VPN tunnel for the Linux kernel, with modern yet conservative cryptography and simple design principles. It is meant as a replacement for OpenVPN and for IPsec, and generally has better performance and security characteristics than both. It also is much easier to use. The whitepaper was peer reviewed for NDSS17 and the protocol itself has been formally verified. Since it lives in the kernel, it not only is very fast, but it is able to integrate in clever ways that are quite nice for battery life and overall smoothness. There are already commercial VPN providers offering services using WireGuard, and it is very easy to run your own WireGuard servers as well.

I probably won't do other types of builds unless somebody has a really terrific suggestion. These builds exists for my own convenience and I thought I'd share it with the XDA community where I've been lurking and leeching for years.

Features
  • Embedded root (can be enabled in Developer Settings)
  • Restricted (system-only) signature spoofing
  • microG (FakeStore, GmsCore, GsfProxy, legacy mapsv1 implementation)
  • Mozilla Location Services + Nominatim for network-based location
  • FDroid (+Privileged Extension)
  • WireGuard-enabled LineageOS kernel
  • Monthly automagical OTA updates (signed builds, https)

Reporting Bugs
I just build using the latest official LineageOS (also see this thread), wireguard patch, TheMuppets proprietary files and microG prebuilts. Report any "regular" bugs to those threads and/or Git pages unless you're sure the problem is unique to these builds.

Initial installation
NOTE: TWRP gets replaced by the stock recovery every time you install a ROM zip. Either use fastboot to boot TWRP or flash the TWRP zip file every time after you flash a ROM zip.
OnePlus firmware must be installed on your device on both A/B slots. Hence the instructions below tell you to flash OxygenOS twice.
  1. Wipe system, data and cache.
  2. Flash latest OxygenOS using TWRP.
  3. Reboot to TWRP
  4. Flash OxygenOS again using TWRP.
  5. Reboot to TWRP
  6. Flash the newest build using TWRP.
  7. Reboot to TWRP.
  8. Flash the newest build using TWRP again.
  9. Reboot and enjoy!
OTA Updates
For OTA updates, use the built-in Updater app. Everything should JustWork(TM) without any TWRP/recovery magic.

Downloads
https://lineage.darwinkel.net/builds/full
Delta/partial updates are not supported.

I recommend Aurora Store if you want to download and install apps from Google Play.
 
Last edited:

AndroidBolder

Member
Jan 30, 2019
25
58
Hi,
Many thanks!
What's the process if we want to install opengapps, magisk and custom kernel?
Will they survive to OTA?

This build has a free software alternative to opengapps baked-in. This ROM is probably not what you're looking for if you want to install the regular Google Play Services. No clue about Magisk or a custom kernel surviving OTA.
 

Master One

Senior Member
Jan 31, 2011
706
223
Europe
I don't use Magisk so I'm not certain, but I don't think it should cause any problems. Do give it a try!
I would have omitted embedded root, to be taken care of by Magisk instead, because of certains apps that just do not work on rooted phones (that's what Magisk Hide is for).

Can somebody please try how it does with embedded root disabled in Developer Settings and Magisk installed?
 

AndroidBolder

Member
Jan 30, 2019
25
58
I would have omitted embedded root, to be taken care of by Magisk instead, because of certains apps that just do not work on rooted phones (that's what Magisk Hide is for).

Can somebody please try how it does with embedded root disabled in Developer Settings and Magisk installed?

I'm not that fond of Magisk and neither are the LineageOS devs. I don't use any apps that use SafetyNet and this works for me personally (I mainly use root for Yalp Store and WireGuard). I have, however, tested it. I enabled DroidGuard and microG's SafetyNet attestation and tested it with an app. Unfortunately, it didn't seem to pass even with root disabled in developer settings. Magisk Hide might help, though.


perhaps it's a stupid question but i can install google play to log in my games or restore the apps after install?

I'm pretty sure you can install a Google Play Store APK, but you would have to disable or remove FakeStore for it to work, I think. I personally use Yalp Store to download apps from Google Play (including paid ones).


EDIT: download speeds have been fixed.
 
Last edited:

Master One

Senior Member
Jan 31, 2011
706
223
Europe
@AndroidBolder, I have done some extended research concerning VoLTE & VoWiFi today. I have found a way to explicitly enable VoLTE & VoWiFi using build.prop and both are working on LineageOS, but the problem is that it does not show the VoLTE & VoWiFi symbols in the display (which is a problem if you are abroad and can not be sure if you are indeed using VoWiFi without going to airplane).

FYI It's fully working on OOS, partly working on HAVOC OS (only VoLTE, but not VoWiFi) and not working at all on OmniROM.
 

AndroidBolder

Member
Jan 30, 2019
25
58
@AndroidBolder, I have done some extended research concerning VoLTE & VoWiFi today. I have found a way to explicitly enable VoLTE & VoWiFi using build.prop and both are working on LineageOS, but the problem is that it does not show the VoLTE & VoWiFi symbols in the display (which is a problem if you are abroad and can not be sure if you are indeed using VoWiFi without going to airplane).

FYI It's fully working on OOS, partly working on HAVOC OS (only VoLTE, but not VoWiFi) and not working at all on OmniROM.

Sounds really interesting, but the way you're putting it, it seems somewhat unstable/unreliable. VoLTE works fine with my carrier so I have no way to test it. If multiple people can confirm it works without causing instability then I'll consider changing build.prop.


@AndroidBolder, what's the easiest way to remove su from your build? Can the file addonsu-remove-15.1-arm64-signed.zip from the offical Extras repo be used (although it's for 15.1)? Or would you be so kind to create a flashable su removal for your build?

I presume addonsu remove would work, no clue if the 15.1 version works on Pie. Did a quick search but I can't find one for LOS16. Bingo! uploaded by Luk1337, one of the LOS devs.

This is exactly what I've been waiting for. One question though before I flash it, how is the battery life?

Like most custom roms slightly worse than OxygenOS, but completely fine otherwise!
 
Last edited:
  • Like
Reactions: admiralderp

nksonfire

Senior Member
Mar 29, 2013
415
156
Pune
Noob question, need forgiveness, does google maps work with it as I've tried microg on other roms but maps were not working. That's all I need from google(maps).
 

fre0n_

New member
Feb 1, 2019
1
2
Thank you a TON for providing these builds. This finally gives me a path to move off of OxygenOS. Installed, tested, everything working beautifully *including VoLTE and VoWiFi* (on U.S. T-Mobile).

1 Question, how to get snapchat and chromecast work?
I have managed a way to get at the very least Snapchat working on this ROM.
  1. Flash as normal.
  2. After that, flash Magisk from TWRP.
  3. Add the *Nanodroid*, not official, microG repo to F-Droid and install the DroidGuard Helper from there. You'll have to web-search "nanodroid fdroid repo" as I cannot provide external links on this new account.
    (I've not tested any of this with the official repo's DroidGuard Helper, but there are issues on microG's Github repo suggesting that SafetyNet will only pass with Nanodroid's version of DroidGuard Helper.)
  4. Install a file manager with root capability (such as Amaze on F-Droid) and navigate to /data/app where you will find the DroidGuard Helper under "org.microg.gms.droidguard-randomstringhere". Move this folder to /system/priv-app and reboot.
  5. Make sure SafetyNet is on in microG Settings and ensure it is using the official server (by hitting the three dots in the corner, selecting Advanced and selecting "Use official server".)
  6. Enable Magisk Hide in Magisk Manager and enable hiding for Snapchat and DroidGuard Helper.
  7. Try SafetyNet attestation under Magisk Manager. Hopefully both checks should pass.
  8. Enjoy.
I did a test OTA (the current 1/30/19 version is available there, so I just downloaded and installed it again) and the only changes to be made were to re-flash TWRP and Magisk then re-install DroidGuard Helper and move it to /system/priv-app. All microG and Magisk Manager settings were retained.
 
Last edited:

sgroimax

Senior Member
Aug 11, 2008
699
194
46
Turin - Piemonte
As your post says, I have a really terrificant suggestion.
Why don't you try to port Sailfish Os on op6?
If you think that my suggestion is not terrificant I will understand. I would like to port it but I can't do that. For many reasons. Bye and congrats for this build. it looks like great.
Ceers
 

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png


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

    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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    This build includes microG, a free and open implementation of the Google Play Services Framework. It allows applications calling proprietary Google APIs to run on AOSP-based ROMs like Replicant and LineageOS. Acting as a replacement for the closed-source Google Apps (GAPPS), it is a powerful tool to reclaim your privacy while enjoying Android core features such as Google Cloud Messaging.

    It also includes WireGuard, a next generation secure VPN tunnel for the Linux kernel, with modern yet conservative cryptography and simple design principles. It is meant as a replacement for OpenVPN and for IPsec, and generally has better performance and security characteristics than both. It also is much easier to use. The whitepaper was peer reviewed for NDSS17 and the protocol itself has been formally verified. Since it lives in the kernel, it not only is very fast, but it is able to integrate in clever ways that are quite nice for battery life and overall smoothness. There are already commercial VPN providers offering services using WireGuard, and it is very easy to run your own WireGuard servers as well.

    I probably won't do other types of builds unless somebody has a really terrific suggestion. These builds exists for my own convenience and I thought I'd share it with the XDA community where I've been lurking and leeching for years.

    Features
    • Embedded root (can be enabled in Developer Settings)
    • Restricted (system-only) signature spoofing
    • microG (FakeStore, GmsCore, GsfProxy, legacy mapsv1 implementation)
    • Mozilla Location Services + Nominatim for network-based location
    • FDroid (+Privileged Extension)
    • WireGuard-enabled LineageOS kernel
    • Monthly automagical OTA updates (signed builds, https)

    Reporting Bugs
    I just build using the latest official LineageOS (also see this thread), wireguard patch, TheMuppets proprietary files and microG prebuilts. Report any "regular" bugs to those threads and/or Git pages unless you're sure the problem is unique to these builds.

    Initial installation
    NOTE: TWRP gets replaced by the stock recovery every time you install a ROM zip. Either use fastboot to boot TWRP or flash the TWRP zip file every time after you flash a ROM zip.
    OnePlus firmware must be installed on your device on both A/B slots. Hence the instructions below tell you to flash OxygenOS twice.
    1. Wipe system, data and cache.
    2. Flash latest OxygenOS using TWRP.
    3. Reboot to TWRP
    4. Flash OxygenOS again using TWRP.
    5. Reboot to TWRP
    6. Flash the newest build using TWRP.
    7. Reboot to TWRP.
    8. Flash the newest build using TWRP again.
    9. Reboot and enjoy!
    OTA Updates
    For OTA updates, use the built-in Updater app. Everything should JustWork(TM) without any TWRP/recovery magic.

    Downloads
    https://lineage.darwinkel.net/builds/full
    Delta/partial updates are not supported.

    I recommend Aurora Store if you want to download and install apps from Google Play.
    5
    Hey all,

    While cleaning up my PC I managed to accidentally remove a file that is critical for the virtual machine file system. I have therefore lost my build script and signing keys. Big oof. On the positive side, it looks like the microG team has updated their cicd-docker build and I won't have to use my own custom hacky buildscript anymore. Sadly, because I lost my signing keys I will either have to create an unsigned migration build or a migration zip file. Will take a look at it sometime soon when I have time.
    4
    Well guys, take a look here: https://download.lineage.microg.org/enchilada/

    Looks like official support.
    2
    Hey all, am still alive. It's been a while since I last checked the XDA forums (turned off email notifications). I try to do monthly builds that include the respective security patches.
    2
    Is battery life comparable to stock?

    After installing the blu_spark kernel on this ROM with default configs, battery life has improved greatly for me.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone