FORUMS
Remove All Ads from XDA

[EOL][ROM][SDCLANG-6][microg-ready][OMS Service Mode]NLOS-15.1 - 20190208

3,974 posts
Thanks Meter: 7,996
 
By nvertigo67, Senior Member on 25th February 2018, 11:07 AM
Post Reply Email Thread
NLOS is an unofficial LineageOS build with many additions. These additions started small and have grown large over the month. So, it's time to name it NLOS - which still is an UNOFFICIAL LineageOS build.

Thanks to @UnbracedTundra NLOS has it's own logo, bootanimation and wallpapers.

LineageOS is a free, community built, aftermarket firmware distribution of Android 8 (Oreo), which is designed to increase performance and reliability over stock Android for your device.
My priorities are stabillity, battery, performance - in that order. This build is optimized for oneplus3t - it will flash and run on a oneplus3, because it's an unified build, but it's optimized for 3t!
In addition this rom contains two patches (https://github.com/microg/android_pa...s_base-N.patch and https://github.com/microg/android_pa...s_base-N.patch, ported to Oreo) to be microG ready - this means freedom of choice to flash either gapps or install (microG How to use Android without Google Apps).

NLOS doesn't require any mods to work with @Arnova8G2's GoogleCamera Mod (more details in S4turno's thread ). Just install the modded Gcam - no need to flash twrp-front-fix-oreo-op3-3t.zip, nor to use the magisk module.

The kernel is prepared for Wireguard VPN - to use Wireguard for vpn-tunnels you need to get the WireGuard-apk from playstore. WireGuard developer @zx2c4 runs a dedicated Wireguard Thread.

NLOS features OMS Service Mode - the successor of ThemeInterfacer. This means you don't need root and/or andromeda to have full Substratum Theming! It's faster then andromeda and does not rely on a tethered pc-connection. It has more exposueres (items exposed to the themers) then the rooted solution. If substratum should ask for root previlegs, deny it.

Currently known issue can be found here.

If you find an issue, follow these instructions: https://forum.xda-developers.com/sho...77&postcount=3

Everybody has his very own definition of "clean flash" or "dirty flash". I use these phrases like descriped in this posting: https://forum.xda-developers.com/sho...77&postcount=2



Code:
#include <std_disclaimer.h>

/*
 * Your warranty isn't void: we are on an oneplus device.
 *
 * 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.


This thread is for Unofficial LineageOS 15.1 builds for oneplus3 and onepluy3t. The following will not be supported here:
Custom kernels
Mods
Xposed
gapps packages bigger then opengapps-nano

I don't support Xposed and any logcat which includes a Xposed module will be ignored. You're kindly invited to not report bugs if you:
Flashed a custom kernel
Installed or did mods from untrusted sources
Modified system files (i.e. by using gapps larger then opengapps-nano)


First time flashing NLOS 15.1 on your device, or coming from another ROM:
  1. Backup your current ROM and make sure you have backups of your data you want to keep.
  2. Download the ROM below in the downloads section.
  3. Download current MindTheGapps for arm64. If you insist on using gapps, don't use a package larger then nano.
  4. Download and flash twrp-3.2.3-0!
  5. Download and flash latest OxygenOS Oreo firmware.
  6. Format data: in twrp tap on wipe and then tap on format data. This will delete all data, remove encryption and leave you with ext4, which is highly recommended. If you are insisting to use f2fs see: https://forum.xda-developers.com/one...9#post75688089 - NOT recommended!
  7. Wipe system, data and caches.
  8. Flash NLOS.
  9. Flash Google Apps. If you want to use microG skip this step and install microG (How to use Android without Google Apps).
  10. Optional: flash Magisk (if you need root)
  11. Reboot (as usual: first boot takes loooooong )

Updating this rom
Dirty flashing should work just fine: reboot into recovery (if necesarry flash the firmware zip recommended by the release notes) and flash the updated NLOS zip - don't forget to wipe dalvik and cache. Settings, apps and even google apps are preserved.
Important: if you encounter any issues, a clean install is recommended and even required if you need support.


I won't build on a daily (or nightly) basis. I will publish new builds, if I fixed something, important upstream changes or new security patchlevels.

LineageOS changelog: https://www.cmxlog.com/15.1/

Build 20190208

Releasenotes:

NLOS-15.1 relays on Oreo firmware. OxygenOS 5.0.8 firmware or later is needed:
For a complete list of additional cherry picks see: current.pick.sh.

This is most probably the second last build. I'm planing one more build, when the Feb. security patch is merged. If somebody wants to continue building and supporting nlos-15.1, drop me a note.

Changelog (Last repo sync: 8 Feb 2019, 14:09:19 CET / 8 Feb 2019, 13:09:19 UTC):
  • Merge tag 'v3.18.134' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into linux-stable/merge-15.1 — Nvertigo
  • ARM: dts: msm: FIxup GPU 0mhz clock — Nvertigo
  • drivers: video: mdss: Fix direct references to HZ — celtare21
  • drivers: ipa: Fix direct references to HZ — Humberto Borba
  • drivers: platform: gsi: Fix direct references to HZ — Humberto Borba
  • drivers: hwmon: Fix direct references to HZ — Humberto Borba
  • drivers: i2c: Fix direct references to HZ — Humberto Borba
  • Convert few critical drivers to use msecs_to_jiffies insted of HZ — Dorimanx
  • msm: kgsl: Remove POPP — Sultan Alsawaf
  • current.pick.sh: O_asb_2019-02. — Nvertigo
  • current.pick.sh: introduce a safer repopick. — Nvertigo
  • op3/t: nfc: advertise support for extended length NFC — Paul Keith

NLOS-Bootlogo
nlos_bootlogo-v0.1.zip
back_in_black_bootlogo-v1.0.zip(pre ob16 OxygenOS Bootlogo)



Happy flashing!


History

Build 20190127

Releasenotes:

NLOS-15.1 relays on Oreo firmware. OxygenOS 5.0.8 firmware or later is needed:
For a complete list of additional cherry picks see: current.pick.sh.

This is most probably the second last build. I'm planing one more build, when the Feb. security patch is merged. If somebody wants to continue building and supporting nlos-15.1, drop me a note.

Changelog (Last repo sync: 27 Jan 2019, 13:01:40 CET / 27 Jan 2019, 12:01:40 UTC):
  • current.pick.sh: force picking abandoned battery customisation commits (220407, 220422, 219299) — Nvertigo
  • op3: Restore better load balancing after boot — Thomas Shum
  • WG: squash WireGuard-0.0.20190123. — Nvertigo
  • Merge tag 'v3.18.133' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into linux-stable/merge-15.1 — Nvertigo

NLOS-Bootlogo
nlos_bootlogo-v0.1.zip
back_in_black_bootlogo-v1.0.zip(pre ob16 OxygenOS Bootlogo)



Happy flashing!


Firmware
NVertigo's Oxygen Firmware Archive

TWRP
Latest official twrp
Thread for official twrp

Google Apps:
MindTheGapps-8.1.0-arm64-20180223_195845.zip

Source and toolchains
https://github.com/LineageOS/
https://github.com/nvertigo/local_ma...tree/nlos-15.1 (If you want to build this rom yourself, consult the file named README, it's outdated, but still helpfull)


Happy flashing!

XDA:DevDB Information
NLOS-15.1, ROM for the OnePlus 3

Contributors
nvertigo67, dianlujitao
Source Code: https://github.com/nvertigo/local_ma...tree/nlos-15.1

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
ROM Firmware Required: latest
Based On: LineageOS 15.1

Version Information
Status: Stable

Created 2018-12-04
Last Updated 2018-12-04
The Following 39 Users Say Thank You to nvertigo67 For This Useful Post: [ View ] Gift nvertigo67 Ad-Free
 
 
25th February 2018, 11:07 AM |#2  
OP Senior Member
Thanks Meter: 7,996
 
Donate to Me
More
Known Issues
  • fixed: NLOS can't initially encrypt f2fs data partitions (though ext4 is working flawlessly).
  • fixed: NLOS can't change the encryption passphrase for f2fs/ext4 data partitions (though ext4 is working flawlessly).
  • fixed: adb and mtp doesn't work out of the box. Workaround:
    • put in QS-tile "adb over network"
    • disable wifi
    • enable "adb over network" with the added tile (tile shows 0.0.0.0)
    • connect usb cable
    • an expandable notification shows up
    • expand it, tap it and select "file transfer": voila.
    If you've run through the above adb and mtp are working fine - even trough reboots... automagicaly...
  • If secure boot password, pin or pattern is set: LiveDisplay's Settings show color profile as "Standrad" after a reboot, though the configuered LiveDisplay's color profile is correctly aplied.
  • Notification lights have hickups.
  • fixed: With no substratum themes applied and dark mode enabled the qs edit page is in stealth mode (white text on white background). For reference see: https://forum.xda-developers.com/app...4#post76619564
The Following 10 Users Say Thank You to nvertigo67 For This Useful Post: [ View ] Gift nvertigo67 Ad-Free
25th February 2018, 11:07 AM |#3  
OP Senior Member
Thanks Meter: 7,996
 
Donate to Me
More
Where has "keep wifi on during sleep"?
Sadly this isn't working anymore.

The maker of betterbatterystats offers also a tool to accomblish this task and much more:
betterwifionoff

When switching from lineage-14.1 to lineage-15.1 I found idle bat usage doubled: what has been 0.4 % per hour on nougat increased on oreo to 0.8 to 1.0 % per hour.

On n I've always used "only if charging" for "keep wifi on during sleep", but the access to this setting has been vanished by google. So I exprimented with wifi conf file, kernel driver and wakelock blocking on kernel level. Nothing really solved the adsitional idle drain.

I'm still surprised, what I found while searching settings (cli): the setting "wifi_sleep_policy" is still there! Google has just droped the access via Settings->Network&Internet->Wi-Fi and makes "Always" the default , but the setting is still available and is working like on n.

Value: Function
  • 0: Never
  • 1: only when plugged in
  • 2: Always

To get restore my n setting (keep wifi on while sleep only when plugged in), I only need to connect via adb (I prefer adb over network, but it works as well with usb), and issue this command:
Code:
adb shell settings put global wifi_sleep_policy 1
After spending endless hours on kernel and debugging, this simple command brought back 0.4%/h idle bat usage.
The Following 11 Users Say Thank You to nvertigo67 For This Useful Post: [ View ] Gift nvertigo67 Ad-Free
25th February 2018, 11:08 AM |#4  
OP Senior Member
Thanks Meter: 7,996
 
Donate to Me
More
How To: format data with f2fs with current official TWRP
Current twrp (3.2.1-0) can't change the data fs to f2fs. The reason for this breakage is, that twrp expects a mkfs.f2fs command that knows "-r size" as cli-option, but the image is shipped with a version that doesn't know about "-r".

To get data formated as f2fs with space for the encryption footer, you just need to follow these simple steps:
  • Download attached mkfs-f2fs.zip.
  • Unzip and place the contained mkfs.f2fs in /sdcard/Download.
  • Boot to current twrp-3.2.1-0.
  • In twrp:
    • Home-Screen->Advanced->Terminal
    • Code:
      cp -vi /sdcard/Download/mkfs.f2fs /tmp
      chmod 0755 /tmp/mkfs.f2fs
      /tmp/mkfs.f2fs -t 0 -r 16384 /dev/block/bootdevice/by-name/userdata #for the lazy, if on op3/t can use /dev/block/sda15
    • flash rom (or use the installed rom, which is factory reseted by formating data), reboot t system amd encrypt your device.

The mkfs.f2fs binary is taken from the original twrp-3.2.1-0. This will only work for 64-bit devices:
Code:
file mkfs.f2fs
mkfs.f2fs: ELF 64-bit LSB pie executable ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /sbin/linker64, BuildID[md5/uuid]=46b5f32d88973c91f79744258599a19a, stripped
Attached Files
File Type: zip mkfs-f2fs.zip - [Click for QR Code] (10.4 KB, 172 views)
The Following 11 Users Say Thank You to nvertigo67 For This Useful Post: [ View ] Gift nvertigo67 Ad-Free
25th February 2018, 11:08 AM |#5  
OP Senior Member
Thanks Meter: 7,996
 
Donate to Me
More
stuff.
The Following 4 Users Say Thank You to nvertigo67 For This Useful Post: [ View ] Gift nvertigo67 Ad-Free
25th February 2018, 04:03 PM |#6  
OP Senior Member
Thanks Meter: 7,996
 
Donate to Me
More
UPDATE
Build 20180225

Releasenotes:

NLOS-15.1 relays on Oreo firmware. ob16 or later is needed, I strongly recommend using ob22 (because that's what I'm testing with): oxygenos-ob22-firmware.zip

beta03 users can just dirty flash beta02 (don't forget to wipt cache and dalvik after the dirty flash!) Since GCam is updated, I recooment wiping GCams data.

Changelog (synced lineageos 15.1 02/25 at 14:01:07 UTC):
  • Update GoogleCamera to GoogleCamera-Pixel2Mod-Arnova8G2-V6.apk — Nvertigo
  • Bring back busybox. — Nvertigo
  • Switch kernel branch to linux-stable/nlos-15.1. — Nvertigo
  • Merge tag 'v3.18.96' into linux-stable/merge-15.1 — Nvertigo

NLOS-Bootlogo
nlos_bootlogo-v0.1.zip
back_in_black_bootlogo-v1.0.zip(pre ob16 OxygenOS Bootlogo)



Happy flashing!
The Following 11 Users Say Thank You to nvertigo67 For This Useful Post: [ View ] Gift nvertigo67 Ad-Free
26th February 2018, 04:43 AM |#7  
Senior Member
Flag Manila
Thanks Meter: 209
 
More
set up wizard keeps crashing using the gapps on the OP, tried the lineage - mindthegapps and everything went fine
The Following 2 Users Say Thank You to vinoxflame For This Useful Post: [ View ] Gift vinoxflame Ad-Free
26th February 2018, 07:03 AM |#8  
crian's Avatar
Senior Member
Thanks Meter: 1,469
 
Donate to Me
More
Quote:
Originally Posted by vinoxflame

set up wizard keeps crashing using the gapps on the OP, tried the lineage - mindthegapps and everything went fine

If you're using open gapps just exclude "LSetupWizard" in the gapps-config file.
The Following 2 Users Say Thank You to crian For This Useful Post: [ View ] Gift crian Ad-Free
26th February 2018, 07:38 AM |#9  
Member
Thanks Meter: 26
 
More
With the version from 18th February the setup wizard is working, if you are going for a fresh installation.
26th February 2018, 07:58 AM |#10  
OP Senior Member
Thanks Meter: 7,996
 
Donate to Me
More
Quote:
Originally Posted by vinoxflame

set up wizard keeps crashing using the gapps on the OP, tried the lineage - mindthegapps and everything went fine

Quote:
Originally Posted by crian

If you're using open gapps just exclude "LSetupWizard" in the gapps-config file.

...if there is an issue, it's either sepolicy or gapps... (devs rule of thumb)

I was so happy, finding a 8.1 package that worked (on beta01 for me)...

It would be great, if we can share gapps info here. Please report which gapps package is working with uri, and which doesn't (uri not mandatory... ).
26th February 2018, 08:01 AM |#11  
Senior Member
Flag Hyderabad
Thanks Meter: 100
 
More
Quote:
Originally Posted by nvertigo67

...if there is an issue, it's either sepolicy or gapps... (devs rule of thumb)

I was so happy, finding a 8.1 package that worked (on beta01 for me)...

It would be great, if we can share gapps info here. Please report which gapps package is working with uri, and which doesn't (uri not mandatory... ).

Will this work on op3 too?
Post Reply Subscribe to Thread

Tags
microg, oms, oreo, sdclang, wireguard

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

Advanced Search
Display Modes