[ROM][OFFICIAL][anne][9] LineageOS 16.0

Search This thread

-Alf-

Senior Member
Sep 28, 2017
2,220
743
Huawei P9 Lite
Huawei P10 Lite
Im asking nicely because I did flash the TWRP via adb but its not working it says phone locked because my bootloader was lock. If you can't answer my question you better ignore it.

Sorry brother just a correction on my reply to your post,
there is no doubt in the fact that unlocking the bootloader is the first step needed to install Custom Recovery.
 

CJ2311

Senior Member
Jan 1, 2015
89
28
HTC U11
OnePlus Nord N10 5G
My own experience only, not universal guide :)

- Install TWRP - I tried several TWRP with result "error 7", finally tried TWRPm from the link and it worked (idk why, it's for Oreo)
https://mega.nz/#!Fgd0xa4R!1o5ejzDnkLJLG2tAZG-STtlJ4nnNCHfwwZdOlmOkrVw
- boot in TWRP > Wipe > Format data , Reboot system and boot back in TWRP
- Wipe > Advanced Wipe > Wipe Dalvik, Cache, Data, System, Internal storage > Swipe to wipe and go back to the TWRPs main menu
- Flash LineageOS 16.0
- Do Factory reset from STOCK RECOVERY (I would recommend installing TWRP over eRecovery, it makes things easier :))
- Enjoy

Thanks, I will give it a shot later, it's funny though because these look like the instructions for the P Smart, even the twrp download is for that model, not for the p20 =o
 

CJ2311

Senior Member
Jan 1, 2015
89
28
HTC U11
OnePlus Nord N10 5G
My own experience only, not universal guide :)

- Install TWRP - I tried several TWRP with result "error 7", finally tried TWRPm from the link and it worked (idk why, it's for Oreo)
https://mega.nz/#!Fgd0xa4R!1o5ejzDnkLJLG2tAZG-STtlJ4nnNCHfwwZdOlmOkrVw
- boot in TWRP > Wipe > Format data , Reboot system and boot back in TWRP
- Wipe > Advanced Wipe > Wipe Dalvik, Cache, Data, System, Internal storage > Swipe to wipe and go back to the TWRPs main menu
- Flash LineageOS 16.0
- Do Factory reset from STOCK RECOVERY (I would recommend installing TWRP over eRecovery, it makes things easier :))
- Enjoy

Compare software:
P20 lite = P Smart = Honor 9 lite :)

Makes sense lol.
Well either way, hitting a bit of an issue from the starting point :

Code:
>fastboot flash erecovery_ramdisk TWRP-oreo-smart.img
Sending 'erecovery_ramdisk' (24790 KB)             OKAY [  0.677s]
Writing 'erecovery_ramdisk'                        FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

All I can flash is the regular recovery_ramdisk partition, which would overwrite the stock recovery :|

EDIT : Trying to relock and unlock the bootloader to get around that, since that seems to be the issue here.
EDIT2 : Welp, that didn't work either, still can't touch the erecovery partition, starting to lose hope over here lol.
 
Last edited:

-Alf-

Senior Member
Sep 28, 2017
2,220
743
Huawei P9 Lite
Huawei P10 Lite
Makes sense lol.
Well either way, hitting a bit of an issue from the starting point :

Code:
>fastboot flash erecovery_ramdisk TWRP-oreo-smart.img
Sending 'erecovery_ramdisk' (24790 KB)             OKAY [  0.677s]
Writing 'erecovery_ramdisk'                        FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

All I can flash is the regular recovery_ramdisk partition, which would overwrite the stock recovery :|

EDIT : Trying to relock and unlock the bootloader to get around that, since that seems to be the issue here.
First flash TWRP , run command
fastboot flash recovery_ramdisk (TWRP's_name).img
Since A8 and above you can not install TWRP over eRecovery from fastboot, only from TWRP:
- Copy TWRP file to the SD card, and also copy to card Stock Recovery_ramdisk, download here:
https://mega.nz/#!M0FHlYhb!4yWz8Onr3D1NATel4mZSK4SNdd5B3p6dnPg6oXPGWl8
Boot in TWRP, select storage - SD Card, select "Install image", find TWRP file and mark eRecovery, swipe. Go back, find recovery_ramdisk-9.1 file , mark Recovery, swipe. Reboot system.
 
Last edited:

CJ2311

Senior Member
Jan 1, 2015
89
28
HTC U11
OnePlus Nord N10 5G
First flash TWRP , run command
fastboot flash recovery_ramdisk TWRP-oreo-smart.img
Since A8 and above you can not install TWRP over eRecovery from fastboot, only from TWRP:
- Copy TWRP file to the SD card, and also copy to card Stock Recovery_ramdisk, download here:
https://mega.nz/#!M0FHlYhb!4yWz8Onr3D1NATel4mZSK4SNdd5B3p6dnPg6oXPGWl8
Boot in TWRP, select storage - SD Card, select "Install image", find TWRP-oreo-smart file and mark eRecovery, swipe. Go back, find recovery_ramdisk-9.1 file , mark Recovery, swipe. Reboot system.

Your method worked, prior to this no matter what TWRP version I used, I got stuck with the google play certification thing, using BroMite WebView and registering on the google site didn't help, except this time. So thanks again.

So far the only issue I found with the ROM is that contacts sync does not work, using open_gapps-arm64-9.0-nano-20200926 (which I managed to fix). Mindthegapps and the su addon still would not install via this TWRP either but hey at least it's progress. :D
 

-Alf-

Senior Member
Sep 28, 2017
2,220
743
Huawei P9 Lite
Huawei P10 Lite
Oops I thought I mentioned it in my post, but magisk also fails to flash : When I flash it through twrp it goes through almost all steps but at the end it comes up with a "cannot mount vendor partition" error. And Magisk Manager cannot see it
I'll try with other TWRP versions tomorrow I guess, for now this is progress enough, heh

Hey dude try this way out...
- Download Magisk manager apk. , patched recovery_ramdisk and TWRP for 9.1:

https://mega.nz/#!ohkgwSzb!xD32btG_3Sax-V7bn6xbWR5fH0crPrry06cCxusf5Hg

https://mega.nz/#!tkcTlATI!A8UJGPBGtxJbLcUOJoxCGJj5PFZXzCnjbb3OkwqKTP8

https://mega.nz/#!xkd2ibKY!JCLNMNKRI1e0FI1bJ4YI5Lr9Hdg9eo4A9kv0MhxgIdA


Transfer TWRP and patched recovery_ramdisk to SD Card, install Magisk manager apk., boot in TWRP, replace your current TWRP with downloaded 9.1 (over eRecovery!) , reboot in TWRP 9.1 , and flash patched recovery_ramdisk over Recovery. Go back > Reboot > Reboot recovery. Phone will reboot via Recovery , but not in Recovery mode. Open Magisk manager and voilá , you have installed Magisk v19.3 . Enjoy :)
P.S.:
Now every time you want to boot phone with root access must hold volume up and power at the beginning (because of patched recovery_ramdisk).
You may also boot in Recovery from Mag.manager (from TWRP).
P.S 2.: If you aren't sure whether you want to update Magisk, then open Mag. manager > Settings > Update channel* > Custom > Insert a custom URL:
https://raw.githubusercontent.com/topjohnwu/magisk_files/master/canary_builds/canary.json
 
Last edited:

CJ2311

Senior Member
Jan 1, 2015
89
28
HTC U11
OnePlus Nord N10 5G
Hey dude try this way out...
- Download Magisk manager apk. , patched recovery_ramdisk and TWRP for 9.1:

https://mega.nz/#!ohkgwSzb!xD32btG_3Sax-V7bn6xbWR5fH0crPrry06cCxusf5Hg

https://mega.nz/#!tkcTlATI!A8UJGPBGtxJbLcUOJoxCGJj5PFZXzCnjbb3OkwqKTP8

https://mega.nz/#!xkd2ibKY!JCLNMNKRI1e0FI1bJ4YI5Lr9Hdg9eo4A9kv0MhxgIdA


Transfer TWRP and patched recovery_ramdisk to SD Card, install Magisk manager apk., boot in TWRP, replace your current TWRP with downloaded 9.1 (over eRecovery!) , reboot in TWRP 9.1 , and flash patched recovery_ramdisk over Recovery. Go back > Reboot > Reboot recovery. Phone will reboot via Recovery , but not in Recovery mode. Open Magisk manager and voilá , you have installed Magisk v19.3 . Enjoy :)
P.S.:
Now every time you want to boot phone with root access must hold volume up and power at the beginning (because of patched recovery_ramdisk).
You may also boot in Recovery from Mag.manager (from TWRP).
P.S 2.: If you aren't sure whether you want to update Magisk, then open Mag. manager > Settings > Update channel* > Custom > Insert a custom URL:
https://raw.githubusercontent.com/topjohnwu/magisk_files/master/canary_builds/canary.json

Thanks again, you have saved me (and I'm sure others seeing the previous messages in this thread) hours of searching :eek:
 

Frax3r

Senior Member
May 18, 2016
71
52
Huawei P20 Lite
Hi, you updated the post as to use emui build 9.1.0.200 but that build is only available for L21 which is dual sim. androidhost.ru/1Lzq says L01 in title but it fails to install on my L01, makes sense because it lacks L01 folder inside dload. You can get 9.1.0.132 and 9.1.0.257 but you can't get 200 for L01 without going to shady firmware sites or paying for it. I'd appriciate anyone who throws build 200 on my way tho. I'll try to install LOS with 278 and if that fails to fix the wifi issue I'll try it with 257 since those builds are already on my drive. If I have to rollback further I'll have to use 132 which hisuite offers after rolling back to emui 8 and then updating it back to 9 again. I'll update this reply as to which builds work without problem.

ps. For those who skipped few pages of comments, installing LOS with latest emui build causes wifi to not connect passworded networks.

edit. My bad, if you are at latest build going back to emui 8, then updating it back to emui 9 will put you at build 9.1.0.132. If you check for updates again, it'll update to the target build which is 9.1.0.200. You could use one of 9.1.0.132 dloads from androidhost then update once to reach the same spot. I think this process should be at install instructions since newer builds has wifi problem.
 
Last edited:

-Alf-

Senior Member
Sep 28, 2017
2,220
743
Huawei P9 Lite
Huawei P10 Lite
Hi, you updated the post as to use emui build 9.1.0.200 but that build is only available for L21 which is dual sim. androidhost.ru/1Lzq says L01 in title but it fails to install on my L01, makes sense because it lacks L01 folder inside dload. You can get 9.1.0.132 and 9.1.0.257 but you can't get 200 for L01 without going to shady firmware sites or paying for it. I'd appriciate anyone who throws build 200 on my way tho. I'll try to install LOS with 278 and if that fails to fix the wifi issue I'll try it with 257 since those builds are already on my drive. If I have to rollback further I'll have to use 132 which hisuite offers after rolling back to emui 8 and then updating it back to 9 again. I'll update this reply as to which builds work without problem.

ps. For those who skipped few pages of comments, installing LOS with latest emui build causes wifi to not connect passworded networks.

edit. My bad, if you are at latest build going back to emui 8, then updating it back to emui 9 will put you at build 9.1.0.132. If you check for updates again, it'll update to the target build which is 9.1.0.200. You could use one of 9.1.0.132 dloads from androidhost then update once to reach the same spot. I think this process should be at install instructions since newer builds has wifi problem.

Maybe it's easier to convert to Dual SIM :confused:
 

geppone1970

Senior Member
Sep 5, 2013
60
8
Hi,

before installing I need to know something about this ROM:

- Is there a working huawei camera porting?
-Are SD card, bluetooth, GPS correctly working?
-Do Home banking apps work? (no root detected)

I'm from C432.368 (Last), Do i need to change version?

thanks in advance
 
Last edited:

othar.pl

Member
Sep 18, 2012
7
1
Thanks. Wasn"t able to install first time, need to try again as I did eRecovery to stock latest version.

Hi,

before installing I need to know something about this ROM:

- Is there a working huawei camera porting?
-Are SD card, bluetooth, GPS correctly working?
-Do Home banking apps work? (no root detected)

I'm from C432.368 (Last), Do i need to change version?

thanks in advance

---------- Post added at 09:19 PM ---------- Previous post was at 09:19 PM ----------

Main thing that doesn"t work if you move from latest EMUI is WiFi not authenticating with AP.
 
M

michelolvera

Guest
Adoptable Storage

I use this rom and it has not been possible to activate the adopted storage, the system freezes once I format the memory.

I have already tried to do the formatting from adb and from the same device with the command sm set-force-adoptable true
stock gapps installed.

Any idea about how to activate it?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    2okPze5.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.

    What's not working :
    • You tell me
    Instructions :
    • Download the latest build and gapps
    • Reboot to recovery
    • Flash the latest build and gapps
    • Reboot
    Downloads :
    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:

    XDA:DevDB Information
    LineageOS, ROM for the Huawei P20 Lite

    Contributors
    DarkJoker360
    Source Code: https://github.com/LineageOS

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x
    Based On: LineageOS

    Version Information
    Status: Stable

    Created 2020-08-21
    Last Updated 2020-09-03
    3
    You are a lifesaver! Thank you kindly.

    On a totally different note : Someone please remind me to never get a huawei device ever again, they are way more trouble than they are worth to unlock lol
    2
    official build download link is dead
    Maybe because https://metimetech.com/lineageos-re...ls-are-no-longer-compatible-with-popular-rom/

    You can try Lineage-16.0-20210215-nightly-anne-signed Link
    Working NFC, GPS, native call recording, offline charging etc.
    Note: EMUI 9.1 is required.

    Edit: internet browser doesn't work (due to missing webview) . Solution : simply install Google Chrome app
    2
    Makes sense lol.
    Well either way, hitting a bit of an issue from the starting point :

    Code:
    >fastboot flash erecovery_ramdisk TWRP-oreo-smart.img
    Sending 'erecovery_ramdisk' (24790 KB)             OKAY [  0.677s]
    Writing 'erecovery_ramdisk'                        FAILED (remote: 'Command not allowed')
    fastboot: error: Command failed

    All I can flash is the regular recovery_ramdisk partition, which would overwrite the stock recovery :|

    EDIT : Trying to relock and unlock the bootloader to get around that, since that seems to be the issue here.
    First flash TWRP , run command
    fastboot flash recovery_ramdisk (TWRP's_name).img
    Since A8 and above you can not install TWRP over eRecovery from fastboot, only from TWRP:
    - Copy TWRP file to the SD card, and also copy to card Stock Recovery_ramdisk, download here:
    https://mega.nz/#!M0FHlYhb!4yWz8Onr3D1NATel4mZSK4SNdd5B3p6dnPg6oXPGWl8
    Boot in TWRP, select storage - SD Card, select "Install image", find TWRP file and mark eRecovery, swipe. Go back, find recovery_ramdisk-9.1 file , mark Recovery, swipe. Reboot system.
    1
    Cool, where's the device trees?
    github.com/hi6250-dev

    Hi! Is factory reset with stock recovery still needed?
    Edit : yes is needed

    BUG : webview is missing , solved by installing it with apk , device is not certified by google play
    It is not missing, it is in system/product due to lineage changes and it is crashing just because it is there right now, I am working on it.