LOSQ/LiR - LineageOS 17.1/18.1-UNOFFICIAL-GSI

Search This thread

-Alf-

Senior Member
For those who want to try LineageOS 17.1/18.1-UNOFFICIAL-GSI . IMO stable enough to be used as your daily driver.

LOSQ/LiR is not developed nor maintained by me!
Credits: @eremitein

Requirements: basically full stock EMUI 9.1, with stock recovery_ramdisk.

Note: I prefer to install in fastboot mode, it's quick, easy and most importantly, safe.

IMPORTANT! Before booting up the ROM, you will need to perform a factory reset in stock recovery!
Install arm64-b.. only!

1. LOSQ - LineageOS 17.1-[10]-unofficial-GSI
with the GAPPS
GAPPS
without GAPPS
Vanilla
-----------------------
LiR- LineageOS 18.1-unofficial-[11]-GSI
Download

2. Extract the ROM .img file from the compressed file.
3. Flash extracted losq/lir... .img from fastboot , use command
fastboot flash system (file_name).img
4. Run command fastboot reboot, unplug your phone, when appears on screen yellow warning, press and hold for 3 sec Volume Up . In eRecovery select 'Wipe data/factory reset'.Reboot .

NFC patch:

https://forum.xda-developers.com/t/losq-lineageos-17-1-unofficial-gsi.4219291/post-84394147

Magisk root (23.0):

(Note: If you don't plan to use TWRP, simply install patched Recovery_ramdisk in fastboot mode. Run command
fastboot flash recovery_ramdisk magisk_patched-23.img ),

- download and install Magisk manager-23.apk:
https://mega.nz/file/go0m2RiR#M5UTv6FPjWPtDaGPr-u2tpJMCwdf8uwnniZg69LiGfw

- Install TWRP-9.1
https://mega.nz/#!tkcTlATI!A8UJGPBGtxJbLcUOJoxCGJj5PFZXzCnjbb3OkwqKTP8
over eRecovery (it's necessary on EMUI 9.1):

- copy TWRP file to the SD card, and also copy to the SD card patched Recovery_ramdisk:
https://mega.nz/file/lp1kHLxJ#htCMaPjSsg_dy0w_jNOft-t_DZRAPwhOvwy_Wr2cjX8

- flash TWRP - run command
fastboot flash recovery_ramdisk (TWRP's_name).img
- boot into TWRP, select storage - SD Card, select "Install image", find TWRP-9.1.img file and mark eRecovery, swipe. Go back, find magisk_patched-23.img file, mark Recovery, swipe. Go back to the TWRP's main menu, select Reboot > Recovery. Done.
Note: you then need to boot your phone every time via Recovery. It'll boot into android as normal but with root.

( Note: for those who want keep the erecovery as a fail-safe:
https://forum.xda-developers.com/t/...-erecovery-with-twrp-installed-on-it.4357127/ )

To remove Magisk reinstall stock recovery_ramdisk via TWRP or fastboot , download Here

How to boot into TWRP:
- Turn off your phone, connect to the PC (or charger), then press and hold Power + Volume Up, device will reboot into eRecovery (= TWRP).

How to boot into patched Recovery :
- Restart your phone, when appears the yellow warning on the screen, press and hold Volume Up for ~ 2 sec,
release the button and immediately press and hold again for ~ 2 sec. Repeat it 6-7 times, the device will reboot into Stock Recovery (you can perform Wipe cache or Factory reset).

Tips:
https://forum.xda-developers.com/t/treble-gsi-favorite-gallery-camera-and-file-manager.4246019/
 
Last edited:
I have tried this rom - but without the magisk as I don't really care for root.. However.. This rom still has one big missing feature.. Fingerprint unlock. I can go to register fingerprint. Add the finger multible times to complete the circle.. however.. every time it misses just the last part - it will fail. If anyone has a fix for this I would be happy to use this as my daily driver as it works just fine.
 

horqai

Senior Member
Sep 6, 2011
78
27
Can confirm that so far everything works flawless. Fingerprint sensor is working on the phone too.

Thank you Alf.

Just two additional questions:
How will updates be perform in future?
How to switch from LOS 16 to this rom - the other P20 lite we have is still on v.16?


Cheers
Horqai
 

-Alf-

Senior Member
  • Like
Reactions: horqai

XRealX

Member
Jan 19, 2021
14
0
Last edited:

-Alf-

Senior Member
[/QUOTE]
Ugh, is there a way to install emui 9 without it locking my bootloader?
OTA update, via HiSuite, you can try also through eRecovery ...
make sure to have the stock recovery flash.

I unlock my bootloader via the @huaweihax method.
Idk how huaweihax method works, but the BL unlock
code is permanent, it wont expire, you use the same bootloader code to unlock if your device is relocked.
Btw, with EMUI 8 installed with May 2018 security patch you should be able to use DC-Unlocker or hcu-client to get BL unlock code for 4euros.
Or, you can also unlock BL for free using
PotatoNV method
 

XRealX

Member
Jan 19, 2021
14
0
OTA update, via HiSuite, you can try also through eRecovery ...
make sure to have the stock recovery flash.


Idk how huaweihax method works, but the BL unlock
code is permanent, it wont expire, you use the same bootloader code to unlock if your device is relocked.
Btw, with EMUI 8 installed with May 2018 security patch you should be able to use DC-Unlocker or hcu-client to get BL unlock code for 4euros.
Or, you can also unlock BL for free using
PotatoNV method

There's no way I'm paying for unlocking!

The huaweihax method works this way: you give some information about your device and you flash a slock file to the ramdisk. It unlocks your phone.
To prevent EMUI 9 from re-locking your device, you can flash a zip file to have a custom bootloader unlock code.
Btw, I have hyperlinked the thread that describes this in the "thingy" word.
I guess that custom code should work even if my device is re-locked.
 

itrisev

Member
Jan 1, 2015
19
0
I do not start the phone only in loop TWRP mode, what solution do I have to revive the phone
 

itrisev

Member
Jan 1, 2015
19
0
How can I repair the factory erecovery I am using the phenix program but it gives me recovery error
 

An3skmbi

Senior Member
Nov 25, 2010
83
27
Centurion
Thanks @-Alf-

I followed all your advice in the LOS 16 thread to get 16 installed, but couldn't get gapps to work. So I thought lemme give LOS 17 a shot since it includes gapps, and it works great! However I get the same issue with fingerprint as @whitetigerdk. During fingerprint enrolment it works up until the last time you have to finger it, after which I get popup "Enrolment was not completed: Fingerprint enrolment didn't work. Try again or use a different finger". I can provide a screenshot but it's literally just that text.

Apart from that everything seems to work fine. Haven't installed magisk yet, will do that next.
 

-Alf-

Senior Member
During fingerprint enrolment it works up until the last time you have to finger it, after which I get popup "Enrolment was not completed: Fingerprint enrolment didn't work.
Tested on 9.1.0.132.
Install Service ROM using dload method (9.1.0.132 recomm.)
Most of custom ROMs require lower build number, on latest build number may or may not work correctly.
If you have followed this guide to the letter and it didn't work, i'm afraid I cant help you .
I've not had any major issue with this LineageOS.
P.S.:
If all this has worked on my device, it does not mean that it goes with everyone else, and vice versa (we are talking about Huawei devices :p).
 

An3skmbi

Senior Member
Nov 25, 2010
83
27
Centurion
@-Alf- Thanks, that might be it. I'm on firmware 9.1.0.200(C185E4R1P8T8) as that was the recommended one for LOS 16. Let me give it a shot with 132, will update with results.

Edit: With "Clean OS" I assume you mean a clean install of the stock ROM? My approach is to install 132 via dload, unlock bootloader, then follow your installation steps.
 

-Alf-

Senior Member
With "Clean OS" I assume you mean a clean install of the stock ROM? My approach is to install 132 via dload, unlock bootloader, then follow your installation steps.
Yes, but I'm afraid there's no .132 build number for region C185 on androidhost.ru :(
IMO you can get it via paid service only, for 17euros , hm...look here
.132
The difference between .132 and .200 is google patch - may 2019 vs. july 2019.
 
Last edited:

An3skmbi

Senior Member
Nov 25, 2010
83
27
Centurion

An3skmbi

Senior Member
Nov 25, 2010
83
27
Centurion
This guide is valid for Android 6 . Huawei-firmware is a really reliable website :) .
What do you mean really reliable when the guide is for Android 6? Is there a way to flash the 132 ROM from huawei-firmware?

Also, magisk installation worked perfectly by following your instructions. I can pass safety net with the universal safetynet fix module 💪 and got google play certification with the props module.

Is there a way to now boot into TWRP (erecovery)? Currently when booting it doesn't show the option to hold volume up to enter erecovery, it immediately says your phone is booting now. The only way to get into TWRP is to fastboot flash recovery twrp, do stuff there, then flash magisk_patched-ane-v21 over recovery and reboot.

Edit: I captured a logcat while getting the fingerprint enrollment error, there are some exceptions about the enrollment, not sure if that could mean something to the devs to help fix it?
 
Last edited:

-Alf-

Senior Member
Is there a way to flash the 132 ROM from huawei-firmware?
Nope.
Is there a way to now boot into TWRP (erecovery)?
Oops I thought I mentioned it in my post, mea culpa.
You have two options:
1. Turn off phone, connect to PC (or charger), then pres and hold Power + Volume Up, device will reboot into eRecovery (= TWRP).
2. Restart phone, when appears the yellow warning on screen, press Volume up, hold for ~ 2 sec,
release the button and immediately press and hold again for 2 sec, repeat it 6-7 times, the device will reboot into Stock Recovery , then you can do normal restart - Reboot system now.
 
  • Like
Reactions: An3skmbi

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    For those who want to try LineageOS 17.1/18.1-UNOFFICIAL-GSI . IMO stable enough to be used as your daily driver.

    LOSQ/LiR is not developed nor maintained by me!
    Credits: @eremitein

    Requirements: basically full stock EMUI 9.1, with stock recovery_ramdisk.

    Note: I prefer to install in fastboot mode, it's quick, easy and most importantly, safe.

    IMPORTANT! Before booting up the ROM, you will need to perform a factory reset in stock recovery!
    Install arm64-b.. only!

    1. LOSQ - LineageOS 17.1-[10]-unofficial-GSI
    with the GAPPS
    GAPPS
    without GAPPS
    Vanilla
    -----------------------
    LiR- LineageOS 18.1-unofficial-[11]-GSI
    Download

    2. Extract the ROM .img file from the compressed file.
    3. Flash extracted losq/lir... .img from fastboot , use command
    fastboot flash system (file_name).img
    4. Run command fastboot reboot, unplug your phone, when appears on screen yellow warning, press and hold for 3 sec Volume Up . In eRecovery select 'Wipe data/factory reset'.Reboot .

    NFC patch:

    https://forum.xda-developers.com/t/losq-lineageos-17-1-unofficial-gsi.4219291/post-84394147

    Magisk root (23.0):

    (Note: If you don't plan to use TWRP, simply install patched Recovery_ramdisk in fastboot mode. Run command
    fastboot flash recovery_ramdisk magisk_patched-23.img ),

    - download and install Magisk manager-23.apk:
    https://mega.nz/file/go0m2RiR#M5UTv6FPjWPtDaGPr-u2tpJMCwdf8uwnniZg69LiGfw

    - Install TWRP-9.1
    https://mega.nz/#!tkcTlATI!A8UJGPBGtxJbLcUOJoxCGJj5PFZXzCnjbb3OkwqKTP8
    over eRecovery (it's necessary on EMUI 9.1):

    - copy TWRP file to the SD card, and also copy to the SD card patched Recovery_ramdisk:
    https://mega.nz/file/lp1kHLxJ#htCMaPjSsg_dy0w_jNOft-t_DZRAPwhOvwy_Wr2cjX8

    - flash TWRP - run command
    fastboot flash recovery_ramdisk (TWRP's_name).img
    - boot into TWRP, select storage - SD Card, select "Install image", find TWRP-9.1.img file and mark eRecovery, swipe. Go back, find magisk_patched-23.img file, mark Recovery, swipe. Go back to the TWRP's main menu, select Reboot > Recovery. Done.
    Note: you then need to boot your phone every time via Recovery. It'll boot into android as normal but with root.

    ( Note: for those who want keep the erecovery as a fail-safe:
    https://forum.xda-developers.com/t/...-erecovery-with-twrp-installed-on-it.4357127/ )

    To remove Magisk reinstall stock recovery_ramdisk via TWRP or fastboot , download Here

    How to boot into TWRP:
    - Turn off your phone, connect to the PC (or charger), then press and hold Power + Volume Up, device will reboot into eRecovery (= TWRP).

    How to boot into patched Recovery :
    - Restart your phone, when appears the yellow warning on the screen, press and hold Volume Up for ~ 2 sec,
    release the button and immediately press and hold again for ~ 2 sec. Repeat it 6-7 times, the device will reboot into Stock Recovery (you can perform Wipe cache or Factory reset).

    Tips:
    https://forum.xda-developers.com/t/treble-gsi-favorite-gallery-camera-and-file-manager.4246019/
    3
    Okay, I have enough gps to use that phone I think with google precision location. But I think if I had to daily dive a car I would get back to stock lol
    Hello, maybe I found how to fix GPS (I'm running Lir again :p ).
    I tried replace some files with default extracted from stock, and it worked :oops: .
    - Download files:
    1
    2
    3
    - Go root/system/etc
    - Replace gps.debug.conf with downloaded gps.debug.conf file
    - Copy to system/etc also second file gps.debug
    - Open system/etc/permissions and copy here android.hardware.location.gps.xml file.
    Restart.
    Screenshot_20210510-133144_GPS_Test.pngScreenshot_20210510-133201_GPS_Test.pngScreenshot_20210510-133229_GPS_Test.png
    2
    Did anyone testet LineageOS 18.1 as their daily driver and can give a review?
    I use it for about a week as daily driver.

    I think it's a lot smoother in daily handling than stock ( I use it with nova launcher). After some tweaking every thing I need is working:
    • I get full safety net with magisk and hide props plugin. I also use systemless host. I do not see netflix in playstore, but I could install the app from apkmirror and start it . I don't have an account, so I can't tell if it really works.
    • NFC fix is installed and works. To use it with the german ausweisApp I had to install xposed and nfc extended module. My finding was, that enabled xposed kills safetynet status, so it's not active until I need it.
    • The german bank app dkb tan2go has a very aggressive root detection, it works while magisk is frozen (with titanium).
    • All other banking apps I tried did work with magisk hide (I don't use garmin pay with my watch, so I did not try google pay)
    • Switching audio after inserting / releasing wired headsets does work.
    • Fast charging works (did not try offline charging, I just switch my phone to flight mode if I don't use it)
    I just found two minor issues until now:
    • Bluetooth is sometimes a bit buggy: Headphones disconnect after starting to play audio - but this happens only for 1- 4 times, then the connection is stable. This affects different receiver, so I think it's a problem with the rom / the phone.
    • Signal meter for mobile radio does not work, but you can use apps/widgets from play store to show signal strength
    Hope this helps
    :cool:
    2
    LineageOS 18.1- unofficial GSI my experience: for huawei owners, this is basically the same ROM as 17.1 except of dynamic root (Z) - 18.1 is pre-rooted with the SuperUser (you can enable/disable superuser root without rebooting).
    Download:
    GAPPS
    Vanilla

    Screenshot_20210302-225526_Settings.png
    Screenshot_20210302-225652_Trebuchet.png
    Screenshot_20210302-225032_PhhTrebleApp.png
    Screenshot_20210302-224902_Settings.png
    Screenshot_20210302-225157_Trebuchet.png
    Screenshot_20210302-225132_Trebuchet.png