[ROM] LineageOS 18.1 UNOFFICIAL - 2.0 (Update: 2021-01-20)

Search This thread

landsome

Senior Member
May 4, 2015
292
69
And you're not rooted?
Maybe there's a problem with my GPS chip
I've just found out that I can't use google pay also. Suggestion seems to be to flash magisk and then enable magisk hide. Does that sound right?
I am rooted, but I do not see the connection with gps.
 

kentchristopher

Senior Member
Nov 16, 2007
134
22
If you're coming from LineageOS 17.1 you can simply update! No need to wipe anything.

First, thanks for the great ROM.

Just want to point out that this text in the original post is misleading if one is using Google apps: Because of the jump to LOS 18 (from Android 10 to 11), one also needs to flash open gapps for Android 11 in order to boot. Flashing from 17.1 to 18.1 without also flashing gapps 11 results in failed boot (reboots back to TWRP). IMO the original post should be edited to reflect this.

Also, as a warning to anyone considering upgrading, it seems I'll have to re-enter all by cards in Google Pay. Not sure if that's because of the version change or because I wiped Dalvik cache after it wouldn't initially boot (didn't think it would be affected by that).
 
Last edited:
  • Like
Reactions: LQ.DGQ

mstrnemo

Senior Member
Feb 1, 2021
50
4
@modpunk

Excuse me but can u give me a download link to the android 10 version ?
I only see the one for android 11 ? or is 11 stable already with no bug to be ironed out ? to be used daily device?

I am new to this sorry if it is a stupid qeustion.

Edit - also i read that i should not flash roms or magisk modules wich set selinux to permissive or you welcome malware on your device ?

Does this rom have set selinux enforcing ?

And is there a way i can see it what status it us and or change it per skillset of a new guy?
 
Last edited:

DaniJaponezu

Member
Apr 6, 2019
12
1
This 18 is heavy. Slows the phone.
17 has a major bug to me. Sometimes when receive a call NOTHING appear on screen, just ringing.
I want 16 back but after wipe and flash, the phone boot back into twrp recovery. Its the same 16 ROM i used. Do i need to format before flash? Or what?
Thanks in advance!
 

mstrnemo

Senior Member
Feb 1, 2021
50
4
There is an app on f-droid called SELinuxModeChanger which you can use to check and change mode on boot (if you are rooted).

Thanks again for the fast reply defentlly gonna try that out first gonna try root for the first time with an older phone first just in case.

One last qeustion for you why dont the developers do that as standard why leave that open ? Is that because of a technicall thing or something else?
I ask out of curiosity.

Edit: Did a little bit searching and see that if enforcing is on can cause problems with root. No it kinda makes sense why not i geuss
 
Last edited:

gartensofa

New member
Jun 29, 2010
1
1
Thanks again for the fast reply defentlly gonna try that out first gonna try root for the first time with an older phone first just in case.

One last qeustion for you why dont the developers do that as standard why leave that open ? Is that because of a technicall thing or something else?
I ask out of curiosity.

Edit: Did a little bit searching and see that if enforcing is on can cause problems with root. No it kinda makes sense why not i geuss

It's a security thing.
As the OP says it is NOT recommendet to set SeLinux to permissive.
 
  • Like
Reactions: mstrnemo

j6jr

Member
Oct 26, 2020
12
16
Having worked for the company that developed SELinux, I can say that it provides a much adequate security wall outside of just user permissions. If an application was to ever "break out" of its current context, it is SElinux which sets what context that application is able to perform at the object level. So the app cannot even access things like directories, network sockets, etc at the kernel level even if it becomes that user. That's why I suggest leaving it alone
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    As I haven't heard anything yet I'll just dump this here: https://androidfilehost.com/?w=files&flid=324301

    LOS 17.1 built with the device sources from modpunk & derf elot with latest LOS upstream sources (Patch level 2021-03-05) and the 4.4.261 kernel (from the 18.1 branch)

    Again this is 17.1 NOT 18.1, so only install from previous 17.1 or stock.
    No warranty or any questions, I just compiled this (for myself and using it) and providing this for anyone who wants to use an updated 17.1

    I'll provide updated versions occasionally, but again: Don't ask when. Likely around middle of the month but maybe not.

    All credits (except compiling) go to @modpunk and @derf elot so a big thanks to them!
    4
    May i ask how i get microg on this lineageos? I want to refurbish my old xz1c... :)
    Excuse me butting in, but I have built a LineageOS for microG ROM for xz1c. It's based on the LOS 17.1 version of this ROM and is available from AndroidFileHost

    Please note that the ROM has had very little use or testing as I built it back in January to debug a problem with my unofficial builds of /e/ OS. But it seems to be mostly functional, and I could be persuaded to build a more up-to-date version of you find it meets your needs.

    My unofficial /e/ OS builds for xz1c are also available on AndroidFileHost <https://www.androidfilehost.com/?w=files&flid=322415>

    All of these are based on @modpunk and @derf elot 's great work on this LOS ROM - thanks
    3
    Thanks a lot, it's very welcome.

    But why not also tell us a little about your /e/ ROMs. Are they fully functional, what works, what doesn't etc.
    Everything you need to know is on the /e/ Web site and Forums

    Details of my most recent unofficial ROM for XZ1 Compact in this forum thread

    Pretty much everything is working for me, subject to reported issues
    2
    Hi, cool stuff here. Thanks @modpunk

    now I am the proud owner of a (used) XZ1, taget is to get TWRP & LOS18 running (no gapps, no root). I do not care about the DRM key either.

    Bootloader is open.
    EMMA helped to get to G8441 47.2.A.2.33 UK
    USB debugging works. adb works. fastboot works.

    fastboot boot twrp-3.5.0-0-20210117-lilac.img
    downloading 'boot.img'...
    OKAY [ 1.080s]
    booting...
    OKAY [ 5.750s]
    finished. total time: 6.830s
    -> ends in a white screen with blue LED :-(

    fastboot flash recovery twrp-3.5.0-0-20210117-lilac.img
    target reported max download size of 536870912 bytes
    sending 'recovery' (33824 KB)...
    OKAY [ 1.080s]
    writing 'recovery'...
    OKAY [ 0.260s]
    finished. total time: 1.340s
    -> when booting into recovery (fastboot reboot, adb reboot recovery) - boot to stock.
    -> when forced (vol down and USB) -> black screen, green light.

    Meanwhile I have read a lot but cant see the way ahead.
    - Is there a 101 how to install LOS18 from scratch somewhere?
    - Is Newsflasher requrired, as suggested here https://www.mechanotronikum.de/index.php/Stichworte/xz1-compact ?
    - Good old Sony Mobile Flasher 0.9.33.0 seems to work but Xperifirm is broken? (Domain not available?)

    Any help widely welcome.

    ==========================

    Edit::
    Allright, found the path.
    Allow OEM, switch on USB debugging
    Open Bootloader (see Sony Website)
    Reboot , switch on USB debugging
    Vol down and USB gets to green light
    Use Emma to get to Version 47.2.A.10.107 (Software Update Content Erase)
    USB debugging on. check adb devices
    Reboot to fastboot
    fastboot devices.
    fastboot boot twrp-3.2.3-0-lilac-pie-1.img
    -> boots to TWRP - yea!
    copy twrp-3.5.0-0-20210117-lilac.img and lineage-18.1-20210120-UNOFFICIAL-v2.0-lilac.zip to a sdcard, add into the slot (no OTG)
    Wipe - Factory reset
    Advanced wipe - Davlik System Cache Data (some errors happen)
    Install - Install image - twrp-3.5.0-0-20210117-lilac.img
    Install - Install zip - lineage-18.1-20210120-UNOFFICIAL-v2.0-lilac.zip
    reboot to system - works
    reboot to recovery - works
    smile!

    Edit2:
    Allright, found the better path.
    Allow OEM, switch on USB debugging
    Open Bootloader (see Sony Website)
    Reboot , switch on USB debugging
    Vol down and USB gets to green light
    Use Emma to get to Version 47.2.A.10.107 (Software Update Content Erase)

    USB debugging on. check adb devices
    Reboot to fastboot
    fastboot devices.
    fastboot flash recovery twrp-3.5.0-0-20210117-lilac.img
    Power off, vol down and usb -> boots to TWRP - yea!
    copy lineage-18.1-20210120-UNOFFICIAL-v2.0-lilac.zip to a sdcard, add into the slot (no OTG)
    Wipe - Factory reset
    Advanced wipe - Davlik System Cache Data (some errors happen)
    Install - Install zip - lineage-18.1-20210120-UNOFFICIAL-v2.0-lilac.zip
    reboot to system - works
    reboot to recovery - works
    smile!
    1
    Finally, I would like to tweak the theme color customization (LOS 17.1), but I have no hint on where to start from (stock colors provided with the release doesn't match my phone color, so I wanted to change them). If anyone can provide any help, it would be extremely appreciated.
    About this question, I have found a way to update the colors in a custom way. Maybe someone else might find it useful. It only requires adb root access.
    1. Enable adb debug as root on the developer options menu
    2. From this you can find some samples. I have cloned the repo, and i kept only the accents, only one of them (e.g. black) to be edited.
    3. I have edited the Android.mk, adjusting the names for the LOCAL_RRO_THEME, LOCAL_PACKAGE_NAME and LOCAL_OVERRIDES_PACKAGES. to avoid collisions with existing themes.
      Then, on the AndroidManifest.xml i have changed the package and the android:label.
      Finally, on the res/values/strings.xml I have updated the string tag content and attribute.
      For LOS18.1, this has to be done also for res/values-night folder.

      All of those modifications involved only changing the color from (for example) "black" to "MyCustomColor".

      You could follow other guides and simplify the package setup, but I wanted to keep them in the same format of other default LOS accents.
    4. Change the res/values/colors_device_defaults.xml (and res/values-night/colors_device_defaults.xml too if present) by replacing the #hexnumber with the proper color number.
      To find the color number, I'd suggest to use a color picker app/website on your device to see how does it look on the XZ1 Compact screen. The color number should be indicated as HTML color. I had used as color #8db3a6 .
    5. Build the package, sign it and align it
      1. You can find here how to do it (at step 3. Generate an apk). If you don't have a key:
        aapt package -M AndroidManifest.xml -S res/ -I ~/Android/Sdk/platforms/android-28/android.jar -F myoverlays.apk.u keytool -genkey -v -keystore themeKey.keystore -alias themeKeyAlias -keyalg RSA -keysize 2048 -validity 10000 jarsigner -keystore ./themeKey.keystore myoverlays.apk.u themeKeyAlias zipalign 4 myoverlays.apk.u myoverlays.apk
        Replace 28 with your Android API version.
    6. To install it (which is the only part that differs from many tutorials), start with an adb reboot, then:
      adb root && adb remount && adb push myoverlays.apk /system/product/overlay/
    7. Reboot again, and you should have your color in the theme menu, ready to be set.
  • 79
    LineageOS 17.1 for Sony Xperia XZ1 Compact

    logo.png


    RELEASE

    This is an alternative ROM for the Sony Xperia XZ1 Compact. It offers several privacy features and F-Droid App Store preinstalled. If you're coming from LineageOS 17.1 you can simply update! No need to wipe anything.

    FEATURES
    • Signed with dev keys
    • FDroid preinstalled
    • FDroid Privilege Extension
    • Well tested but some bugs maybe included

    DOWNLOAD

    You can download the latest release here. Check the ChangeLog below for firmware requirements!

    INSTALLATION

    Put the zip file of the ROM on you sdcard or internal store and boot into recovery. If you use my TWRP recovery, you should use that one to flash the ROM.

    Make sure you select Zip signature verification.

    This will make sure the zip file has not been altered!

    KNOWN ISSUES

    • UnifiedNlp doesn't work with LineageOS 18.1 yet
    • Spell checking doesn't switch if you change keyboards

    Contributors
    modpunk, derf elot
    Source Code: https://github.com/whatawurst/

    ROM OS Version: Android 11
    ROM Kernel: Linux 4.x
    Based On: LineageOS

    Version Information
    Status:
    Stable
    Current Stable Version: 2.0
    Stable Release Date: 2021-01-20
    39
    REQUIRED FIRMWARE: 47.2.A.11.228

    CHANGELOG


    2020-01-20 | 2.0 | 47.2.A.11.228
    • Update to LinageOS 18.1/Android 11
    • Update to Linux Kernel 4.4.251
    • Updated sdfat Kernel driver
    • Update Wireguard to v1.0.20201221
    • XperiaParts improvements
    • Stock camera is gone due incompatibility of camera libs in android 11, alternatively you can use OpenCamera or Snap (in-built) for stock quality photos
    • WFD is still work in progress

    2020-12-17 | 1.7 | 47.2.A.11.228
    • Update to Linux Kernel 4.4.243
    • Updated WireGuard to .0.20201112 snapshot
    • Added XperiaParts app
    • Improved IMS support

    2020-10-26 | 1.6 | 47.2.A.11.228
    • Update to Linux Kernel 4.4.240
    • Updated WireGuard to 1.0.20200908 snapshot
    • Added Seedvault (Video)
    • Fixed bluetooth regression
    • Removed LOS Snap in favor of stock camera. That fixes issues with launching the camera from lockscreen using the camera button.
    • Added IMS support (again) (thanks again to @Rooted_Ansh and also @Shujath for the help)
    • Boot improvements


    2020-09-11 | 1.5 | 47.2.A.11.228
    • Update to Linux Kernel 4.4.235
    • Updated graphics stack
    • Fixed GPS issues
    • Fixed DRM issues
    • Fixed issues with bluetooth audio

    2020-08-09 | 1.4 | 47.2.A.11.228
    • Update to Linux Kernel 4.4.232
    • Fixed camera memory leak
    • Updated camera app to the one from XZ2c
    • Fixed GPS issues

    2020-07-14 | 1.3 | 47.2.A.11.228
    • Update to XZ2 stock camera app (does not fix the memory leak)
    • Update to latest LinageOS security release

    2020-06-07 | 1.2 | 47.2.A.11.228
    • Update to latest LinageOS security release

    2020-05-29 | 1.1 | 47.2.A.11.228
    • Update to Linux Kernel 4.4.224
    • Update to Wireguard 1.0.20200520
    • Fixed wifi driver (should be fast again)

    2020-04-11 | 1.0 | 47.2.A.11.228
    • Update to Linux 4.4.214
    • Updated Wireguard to 1.0
    • Updated wifi driver
    • Moved to AOSP bluetooth audio HAL v2
    • Enabled wifi 2.4GHz channel bonding (increase wifi speed)

    2020-02-28 | RC0 | 47.2.A.11.228
    • Update to kernel 4.4.213
    • Initial release
    26
    I've just released version 1.7.

    This will be the last release for lineage-17.1. The next release will be lineage-18.1 ...
    20
    Version 1.4 is out with fixes for camera and GPS.
    18
    Version 2.0 based on LineageOS 18.1 is out! Have fun.
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