[ROM][OTA][8.1] LineageOS 15.1 for Huawei P8 Lite 2017

Search This thread

piterconlai

Senior Member
May 23, 2014
77
10
Hello i have a problem. I install for a first time. I have an error .
E3004 : this package is for device : hi6250; this device is prague.
Updater process ended with error 7
Error installing zip file '/external_sd/lineage-15.1-20201027-UNOFFICIAL-hi6250.zip
Is not compatible with p8 lite 2017?
Or i check the last build is lineage-15.1-20190718-UNOFFICIAL-prague.zip ?

Sory for my english i am french :)

EDIT I will test DarkJoker360 AOSP 10 for Huawei P8 Lite 2017

I have the same problem as you

how did you solve?

EDIT : I solve with a FORMAT DATA in TWRP after Flash
 
Last edited:

piterconlai

Senior Member
May 23, 2014
77
10
I've been struggling with bootloops and infinite boot animation trying to install this ROM, flashing different TWRPs and kernels, but finally managed to run it.

1. Prepare MicroSD with all the files needed for LOS 15.1 and RECOVERY_RAMDIS.img pulled from any stock ROM's update.zip
2. Run Huawei Recovery and let it install stock EMUI ROM
3. Boot stock ROM, pass the first configuration
4. Restart into bootloader;
fastboot flash recovery_ramdisk twrp-3.4.0.0-v1-hi6250-emui8.img
5. Boot into TWRP;
adb pull /vendor/etc/fstab.hi6250
cut out encryption line from it
adb push fstab.hi6250 /vendor/etc/
6. Boot into bootloader;
fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
7. Reboot into Huawei's recovery and do factory reset and wipe cache
8. Reboot into fastboot;
fastboot flash recovery_ramdisk twrp-3.4.0.0-v1-hi6250-emui8.img
9. Reboot into TWRP;
install LOS 15.1 .zip and Gapps
10. Reboot to system

I hope that anyone struggling with install will make it following this procedure.
I guess after installing other ROMs before, something stubborn persisted in memory and didn't wanted to let go untill stock EMUI ROM reinstall.

Going to test the ROM now. I find Android 10's too buggy atm. Thank you for your work DarkJoker360.







Edit: One bug I find - headphones not detected. 4-pin PC headset works fine, but 3-pin earphones or 3-pin AUX cable aren't detected. I used "Lesser AudioSwitch" to workaround that issue. Please fix if you could :)


I have infinity bootloop please can you help me ?

i nedd this file that you write

"6. Boot into bootloader;
fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img"

Where i can find it ?

EDIT : I solve with a FORMAT DATA in TWRP after Flash
 
Last edited:

piterconlai

Senior Member
May 23, 2014
77
10
hello I have installed the rom. everything works except bluetooth does not recognize bluetooth headphones.

do i need to install some zip?
 

Sanqian lin

New member
Feb 3, 2021
1
0
Why can't I view my screen recording file?Could you help me?
IMG_20210320_224523.jpg
 

Amum

Member
Sep 25, 2019
8
0
i flashed twrp 4.2.0
i unintentionally deleted firmware
i have emui erecovery
do i need the firmware, where can i get it?
how can i get p8 running again?
this is my first huawei phone.
thanks for help
 

danibus

Senior Member
Sep 5, 2012
78
20
Samsung Galaxy S8
Hi folks! I just installed LineageOS 15.1 in my Huawei P8 Lite 2017.
I'm using a SD card and activate adaptive storage.
After activate and format SD for adaptative, when finishing it showed a Java error in screen, but message dissapear in few second so I can't post that message. But I think adaptative storage it's working properly.

Now I will put google account and some apps.

Thanks @DarkJoker360 for your job. I choose 15.1 as someone told me in other thread this is last rom to support adaptative storage, also this devide is not for me, it's for grandma and she only needs few apps (mainly whatsapp, and few more), so better to use staaaaable rom (actually she is using moto x with android 4.4).
 

moleskin

Member
Feb 8, 2022
10
1
Dears,

I do need some guidance for installing this rom (fyi, I've tried the following roms too, none of them worked : lineage-16.0-20210109-UNOFFICIAL-prague & lineage-17.1-20200309-DarkJoker360-prague).

First of all is not clear for me which TWRP I should use. There are so many mentioned and some many dead links.
The last one I've tried was twrp-3.6.1_9-0-prague.img from https://eu.dl.twrp.me/prague/

As far as I can tell the TWRP installs just fine (I cna use it)... after which :
1. I copy the rom zip fir to the sdcard
2. I wipe data, cache, system, dalvik
3. I try to install the "lineage-15.1-20190718-UNOFFICIAL-prague.zip"
At this point I get some errors saying "Updater process ended with ERROR: 7"

What am I doing wrong ?
Can somebody point me to complete install instruction list (that hopefully also mentions versions of twrp that is to be used...)
 

moleskin

Member
Feb 8, 2022
10
1
With both twrp's the result is the same.

Here is how I've installed the twrp's (one at a time of course then a lineage install) :

sudo ./fastboot flash recovery_ramdisk /data/misc/download/lineage/twrp_p8_lite_3.2.1-0_oreo.img
[sudo] password for thomas:
Sending 'recovery_ramdisk' (24778 KB) OKAY [ 0.856s]
Writing 'recovery_ramdisk' OKAY [ 0.610s]
Finished. Total time: 1.484s

sudo ./fastboot flash recovery_ramdisk /data/misc/download/lineage/TWRP-Askuccio.img
Sending 'recovery_ramdisk' (10816 KB) OKAY [ 0.354s]
Writing 'recovery_ramdisk' OKAY [ 0.270s]
Finished. Total time: 0.642s

After each twrp install I wiped the data/system/cache/dalvik then I've tried the lineage-15.1-20190718-UNOFFICIAL-prague.zip install. I got the same error :
E1001: Failed to update system image.
Updater process ended with error: 7

I forgot to mention before (but I suspect it's obvious based on the title of this thread) I have a Huawei P8Lite 2017 (PRA-LX1)
 

-Alf-

Senior Member
With both twrp's the result is the same.

Here is how I've installed the twrp's (one at a time of course then a lineage install) :

sudo ./fastboot flash recovery_ramdisk /data/misc/download/lineage/twrp_p8_lite_3.2.1-0_oreo.img
[sudo] password for thomas:
Sending 'recovery_ramdisk' (24778 KB) OKAY [ 0.856s]
Writing 'recovery_ramdisk' OKAY [ 0.610s]
Finished. Total time: 1.484s

sudo ./fastboot flash recovery_ramdisk /data/misc/download/lineage/TWRP-Askuccio.img
Sending 'recovery_ramdisk' (10816 KB) OKAY [ 0.354s]
Writing 'recovery_ramdisk' OKAY [ 0.270s]
Finished. Total time: 0.642s

After each twrp install I wiped the data/system/cache/dalvik then I've tried the lineage-15.1-20190718-UNOFFICIAL-prague.zip install. I got the same error :
E1001: Failed to update system image.
Updater process ended with error: 7

I forgot to mention before (but I suspect it's obvious based on the title of this thread) I have a Huawei P8Lite 2017 (PRA-LX1)
Look here .
Or use "Search this thread" , type "error 7"
 
Nov 28, 2012
27
1
Hello !
I succesfully installed the ROM using this process :
Format dalvik, system, data, cache. Flash LOS. Flash Gapps. Format data. (I get a bootloop if I don't.) Reboot.

Everything but access point works fine. 4G works. Access Point creates the network. But when I connect to the network, I don't get any internet.
Any idea how to fix this ?
I would like being able to avoid going back to stock and relock/unlock the bootloader if I can...
 

moleskin

Member
Feb 8, 2022
10
1
Hello !
I succesfully installed the ROM using this process :
Format dalvik, system, data, cache. Flash LOS. Flash Gapps. Format data. (I get a bootloop if I don't.) Reboot.

Everything but access point works fine. 4G works. Access Point creates the network. But when I connect to the network, I don't get any internet.
Any idea how to fix this ?
I would like being able to avoid going back to stock and relock/unlock the bootloader if I can...
To be honest there is very little chance that I can help but I would like to go through the same steps to check whether I end up with the same behaviour. Would you be so kind to share here the URLs you've used to download the TWRP & ROM ?
 
Nov 28, 2012
27
1

moleskin

Member
Feb 8, 2022
10
1
Apologies for the delayed response, I had to go through the proverbial "count to ten before react" in order not to just vent my frustation. No your fault of course, but this process of updating the OS is soooo frustrating... nothing works as it should.
The TWRP did not work when I did "./fastboot flash recovery TWRP-Askuccio.img".
The "./fastboot flash recovery_ramdisk TWRP-Askuccio.img" did (I have no idea what's the difference between the two...
In the end I was able to boot this TWRP.
Copied the lineage-15.1-20201027-UNOFFICIAL-hi6250.zip to the sd card after which I've format dalvik, system, data, cache.
Once done, I've tries installing the OS zip... failed miserably... and of course I've ended up with a bootloop.
Sorry I cannot help.
BTW, I've tried multiple TWRPs and OS images (15.1, 16, 17.1)... none of them worked. Waste of time.
 
  • Like
Reactions: AltairFR

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Hi,

    http%3A%2F%2Fwww.androidblog.it%2Fwp-content%2Fuploads%2F2018%2F02%2FLineageOS-15.1-620x311.png


    LineageOS 15.1 for Huawei P8 Lite 2017

    *** Stable Version ***

    About
    Code:
    [CENTER]LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), 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. Lineage OS does still include various hardware-specific code, which is also slowly being open-sourced anyway.[/CENTER]

    Working
    Code:
    [CENTER]* Touchscreen
    * Adb / Mtp
    * Audio
    * Boot
    * Bluethoot
    * Internal/External storage
    * Sensors
    * Wifi  
    * RIL
    * Camera
    * Video Encoder/Decoder
    * FP Gestures(Swipe Down for notification panel)
    [/CENTER]

    Installation
    Code:
    [CENTER]* you must also have this recovery version installed :  TWRP
    * go to TWRP  and do a full wipe (system, data, cache, dalvik/art cache) !
    * install LineageOS ROM 
    * boot the rom
    * reboot in TWRP and flash gapps and root (optional)
    * reboot system
    * Enjoy !!![/CENTER]

    Update
    Code:
    [CENTER]* copy the new update of LineageOS to Internal/External Storage
    * reboot device to :  TWRP
    * wipe cache & dalvik cache
    * install the new update of LineageOS
    * reboot to System
    * reboot system
    * Enjoy !!![/CENTER]

    Download
    Code:
    [CENTER][URL="https://sourceforge.net/projects/darkjoker360-developements/files/Huawei/P10%20Lite/Oreo/LineageOS/"]LineageOS-15.1[/URL]
    [URL="https://opengapps.org/"]Gapps[/URL] 
    [URL="https://github.com/ianmacd/MagiskBuilds"]Magisk for Treble[/URL][/CENTER]


    Credits:
    @DarkDroiddev
    @phhusson
    @AndroidpaX
    @haky86
    @ezio84

    Please support my work, it's very important! Thanks
    DONATIONS

    Regards !​


    XDA:DevDB Information
    LineageOS, ROM for the Huawei P8lite/P8 Lite

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

    ROM OS Version: 8.x Oreo
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Emui 8.x unlocked bootloader and TWRP
    Based On: LineageOS

    Version Information
    Status: Stable
    Current Stable Version: 15.1
    Stable Release Date: 2019-01-04

    Created 2019-01-04
    Last Updated 2019-12-12
    5
    Good news BT issues are fixed on both Android Version (O and P) !
    5
    Hello guys good news, video recording bug is finally fixed get ready for the stablest oreo build !
    5
    New LineageOS 15.1 stable update !

    https%3A%2F%2Fimg.xda-cdn.com%2F2zS0Xzc3uCosCW49VVzhs1P7L9A%3D%2Fhttp%253A%252F%252Fwww.androidblog.it%252Fwp-content%252Fuploads%252F2018%252F02%252FLineageOS-15.1-620x311.png


    Changelog
    Code:
    [CENTER]* February 2019 security patches
    * Based on LineageOS 15.1 code of 09 March 2019
    * Fixed photo with flash darker
    * Switched to Google media codecs
    * Fixed frontal camera lags on some apps EDIT: lags are reduced to the minimum on kirin 655, on kirin 659 is fully fixed
    * Added new stock media codecs[/CENTER]
    NOTE: It is better to don' t use latest magisk builds as them can maybe crash
    Check OP for more info and downloads !

    Announcement: Starting from now I want to provide security patches updates with some minor fixes to LineageOS 15.1 and I want to start with LineageOS 16.0. And yes I am dropping support of AEX,Aosp,PE and other treble roms for hi6250, maybe one day I can resume the support of them.

    5
    February build - status update for my findings on this ROM

    Here is my update with latest ROM from February (see post #290).

    Issue #1: uSD card formated as internal storage doesn't come up (mount) early enough, causing issues with missing storage
    UPDATE with new ROM build: no change with the new ROM. Since the SD card is formatted as internal storage, it is encrypted as base Android security requirement.
    I am not an Android specialist but I think the SD card (or at least part of it) is encrypted with a key that belongs to the user. I suspect that only when the user "logs on" (i.e. first unlocks the phone after power-on or reboot), will the key be made available, which is done in // with the initialization of the user session.
    Therefore, many applications set as "autostart" will not be available, or have (part of) their resources / user data unavailable, until the "mount with decryption" part of the uSD card bringup has been completed.
    So if my theory holds true, unless a significant change is made to LineageOS sources, I suspect nothing can be done.
    I guess I will simply wait for uSD card to mount after a (re)boot + unlock, and deal with a few FCs in the meantime.​

    Issue #2: Second SIM card PIN code request at boot gets killed and has to be triggered again manually
    UPDATE with new ROM build: I got frustrated with this issue in previous ROM build, I just deactivated both SIM card PIN codes. I don't know if the issue has persisted or not in the latest ROM build.​

    Issue #3: Fingerprint enrollment very difficult compared to EMUI8 (but once enrolled works flawlessly)
    UPDATE with new ROM build: I haven't had to enroll new fingerprints, so I don't know. See issue #6 below.​

    Issue #3.1: Surprising finding of '=' character when unlocking via fingerprint
    UPDATE with new ROM build: this strange behavior seems to have disappeared, nice! I haven't done anything on my side that would have solved the issue so I guess this is solved by the new ROM build itself.​

    Issue #4: No sound when playing music in default music player nor Musicolet (from Play Store)
    UPDATE with new ROM build: not tried yet. Will provide update next time I try listening to music, if anybody interested.​

    Issue #5: Local SIM card seems to be detected as foreign SIM card
    UPDATE with new ROM build: issue remains, but it is hard to characterize. Note that the issue didn't happen in EMUI8, it is something I have only had with this ROM (January build and February build).
    I have 2 SIM cards: LEBARA France and LycaMobile Switzerland.
    When I am in Switzerland, LEBARA SIM detected as roaming (OK) and LycaMobile SIM detected as roaming (NOT OK)
    When I am in France, LEBARA SIM detected as not roaming (OK) and LycaMobile SIM detected as roaming (OK)
    So there is something special about the LycaMobile Switzerland SIM/operator which LineageOS can't interpret correctly (EMUI8 did flawlessly).​

    Issue #6: NEWLY REPORTED - old EMUI8 fingerprints still able to unlock the phone and impossible to delete!
    Description: an issue found in January build already, still present with February build, is that the previously registered fingerprints (in EMUI8) still work. I have tried everything I could, including deleting fingerprint database files under /data/system/user/* (don't do that! I lost all content of SD card due to issue 1 behavior of storing per-user decryption key). Those fingerprints are not visible in the fingerprint enrollment UI, but they can successfully be used for unlocking the phone...
    Consequence: don't leave your phone locked near your ex-girlfriend if she had access to your phone previously (fingerprint enrolled) even if you have tried wiping the fingerprints, hoping that by starting over again with a different ROM and a full wipe they would disappear...​

    Issue #7: NEW - OpenGApps version
    Description: In a previous post, I explained how I had to follow an advice to flash old OpenGApps 20190913 as the recent .zip didn't detect the architecture (arm vs arm64 vs x86 & Android version) correctly. Well, that didn't work with February build and here is how I got it working (surely not the most straightforward way): when I got the notification about new February build for this ROM:
    -I installed (via menu, it rebooted in TWRP etc).
    -After reboot, phone was completely unusable (bootloop) and rebooted into Huawei's recovery (TWRP was killed by update) and asked me to Factory reset the phone, argh.
    -I flashed Askuccio's TWRP again and wiped Cache / Dalvik Cache, no better
    -I flashed OpenGApps 20190913, phone booted but was unable to start completely (no bootloop)
    -Rebooted in TWRP, wiped Cache & Dalvik Cache, flashed OpenGApps 20200215, wiped Cache & Dalvik Cache again - note that this time, recent OpenGApps installer worked, no wrong detection, which is good news!
    -Phone booted okay with lots of FC in Google Apps, but still it booted. Play Store not starting. All non-Google apps were working, but lots of FC notifications from Google Apps. In particular, Youtube and Gmail kept crashing every few seconds
    -Removed Youtube and Gmail via Settings -> Applications, less FCs, Play Store still not working, sideloaded Gmail from APKMirror, Gmail & Play Store working again
    -Had to wait a few days for Play Store updating Youtube for Youtube to work again.

    Consequence: Phone difficult to use, probably due to OpenGApps versions of some apps > previously installed updates​

    Since I got no answer or comment on my previous posts, I am not sure if in the future I will post such status information. I am not complaining, and not taking offense, but since it takes some time to write this, I may continue to do that as a service to the community (my contribution), only if it is considered useful.

    ---------- Post added at 05:12 PM ---------- Previous post was at 05:09 PM ----------

    Hi. I have a problem using your rom on PRA-LX1. Sometimes my SIM goes off and canot goes on. I have to restart phone to get SIM working again.
    Take a look at attachements. One is screenshot when it happend, second is log from network monitor app.
    Is there any simply solution to solve this problem?

    I had this when I was using dual-SIM, with PIN code on both SIM: sometimes, even after booting and logging successfully, one SIM card "disappeared" apparently without reason. Since I removed PIN code on both SIM (reducing security in case something steals my phone), both SIM cards seem to work flawlessly.