yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 Questions & Answers] alecxs:
red state means the avb protection does not accept unsigned partition images. the Volume Up key is for booting straight into recovery. that sounds like it is not possible to boot into TWRP with locked bootloader. you can fix this by flashing original boot + recovery

you can try combination of original boot + twrp, or magisk_patched.img + original recovery, but i am afraid it is not possible to pass red state

however, magisk has option to keep avb/dm-verity. if (avb signed) magisk_patched.img passes secure boot (with stock recovery), you have following options

a) modify boot with adb enabled

b) sign twrp with avb signature

(i will upload the necessary files later, but i need the original boot + recovery from readback first)

if (avb signed) magisk_patched.img doesn't work (red state) you are left with one last option

c) create a full ROM dump, factory reset, unlock bootloader (official way), flash twrp, restore userdata + metadata and try to decrypt/recover your files
[Xiaomi Redmi Note 4 Questions & Answers] BushraXiaomi:
[MENTION=4646731]Alecxs[/MENTION] see the above post please. I just realized starting with capital A tags another person
[Xiaomi Redmi Note 4 Questions & Answers] BushraXiaomi:
Any quick solution if I want to go for full factory reset without getting the data back? [MENTION=4646731]Alecxs[/MENTION]
[Xiaomi Redmi Note 4 Questions & Answers] alecxs:
if you don't care about data it is of course easier, just flash original boot + recovery and do a factory reset from Xiaomi Miflash while in recovery -> Wipe & Reset -> Wipe All Data -> Yes
[Xiaomi Redmi Note 4 Questions & Answers] BushraXiaomi:
But my phone is stuck in Red state and boot loop. Not being able to do anything at all.
[Xiaomi Redmi Note 4 Questions & Answers] alecxs:
you must flash original boot + recovery (from readback)

please also note options a) b) c) on my previous post
[Touch Diamond, MDA Compact IV ROM Development] amir77a:
I am missing the UC compliant ROMs from the Kaiser, which enables simple installation of my software after ROM update.

Any chance we will see here UC compliant ROMs?
[Touch Diamond, MDA Compact IV ROM Development] theloanranger:
No reason why not I don't think?

I'll add UC compliance to my next ROM.
[Touch Diamond, MDA Compact IV ROM Development] boinger66:
UC is not currently "internal storage"

compatible i believe

it needs to look in internal storage instead of sd card

i made a request about it earlier today
[Touch Diamond, MDA Compact IV ROM Development] amir77a:
Very good to hear that.

I hope other chefs will assimilate it in their ROMs as well.

This is just click and forget installation :)
[Touch Diamond, MDA Compact IV ROM Development] timn2087:
sorry for the noob question, but what is UC?
[Touch Diamond, MDA Compact IV ROM Development] Big_rhymz:
Check this link, you can learn everything about UC:

http://xdaforums.com/showthread.php?t=366337
[P8 Lite (2017) Development] DarkJoker360:
Hi,

LineageOS 17.1 for Huawei P8 Lite 2017

*** Stable Version ***

About

[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

[CENTER]* Touchscreen
* Adb / Mtp
* Audio
* Boot
* Bluethoot
* Internal/External storage
* Sensors
* Wifi
* RIL
* Camera
* Android 10 gestures
* NFC
* FP gestures
[/CENTER]

Not Working

[CENTER]* Offline charge (It works by switching to permissive selinux)
[/CENTER]

Installation

[CENTER]* you must also have this recovery version installed : [URL="https://xdaforums.com/p10-lite/development/recovery-twrp-huawei-p10-lite-t3953890"]TWRP[/URL]
* go to TWRP and do a full wipe (system, data, cache, dalvik/art cache) !
* reboot to bootloader
* extract Lineage.zip
* run: fastboot flash system <drag system.img here>
* reboot to TWRP
* reboot to TWRP
* flash gapps(optional)
* flash root(optional)
* flash los_patches_prague.zip
NOTE: this zip is needed for having a working build. DO NOT IGNORE IT !
* reboot system
* Enjoy !!![/CENTER]

Update

[CENTER]* extract the new update of AOSP
* reboot device to : TWRP
* wipe cache, dalvik cache and system
* reboot to bootloader
* extract Lineage.zip
* run: fastboot flash system <drag system.img here>
* reboot to TWRP
* install gapps(optional, needed it you previously had it)
* install los_patches_prague.zip
* NOTE: this zip is needed for having a working build. DO NOT IGNORE IT !
* reboot to System
* Enjoy !!![/CENTER]

Download

[CENTER][URL="https://sourceforge.net/projects/darkjoker360-developements/files/Huawei/P8%20Lite%202017/Android-10/LineageOS/"]LineageOS 17.1 and los_patches_prague[/URL]
[URL="https://opengapps.org/"]Gapps[/URL]
[URL="https://xdaforums.com/attachment.php?attachmentid=4882825&d=1574332554"]Magisk Phh v19.3[/URL][/CENTER]

Credits:

@phhusson

@Flex1911

@haky 86

@DIl3mm4

@Hami_Do

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: http://github.com/DarkJoker360

ROM OS Version: Android 10

ROM Kernel: Linux 4.x

ROM Firmware Required: Emui 8.x with Unlocked bootloader and TWRP installed

Based On: LineageOS

Version Information

Status: Stable

Current Stable Version: 17.1

Stable Release Date: 2020-03-09

Created 2020-03-09

Last Updated 2020-03-09
[P8 Lite (2017) Development] DarkJoker360:
** Reserved **

NOTE: If get error 70 while flashing gapps resize system in TWRP !

Screenshots
[P8 Lite (2017) Development] ronnie92:
gapps?

hi thk for your work

which version of gapp should you download? the andriod 10 version is not downloadable
[P8 Lite (2017) Development] DarkJoker360:
On opengapps website you can download nano and pico versions which are the best.
[P8 Lite (2017) Development] -CALIBAN666-:
short question,can we flash only via ADB fasboot and when yes, why?Thanx.
[P8 Lite (2017) Development] ronnie92:
help me plz

I need help please, I am novice to installing custom rom :confused:.

When I install a custom rom on my phone p8 lite 2017 (I try DarkJoker360 AOSP 10 and [ROM] [10] LineageOS 17.1) I have a problem with the storage , installation of certain google play application , when open camera have message "insertsd card before using camera" and my files in my phone no longer look like anything I have known with the original rom, no music, dcim, download folder ...) see my screenshot.

edit:

impossible to put link or image because I am new on the forum

htt ps ://w w w.zupimages.net/viewer.php?id=20/11/68ke.jpg

htt ps ://w w w.zupimages.net/viewer.php?id=20/11/bum7.jpg

htt ps ://w w w.zupimages.net/viewer.php?id=20/11/ydye.jpg

htt ps ://w w w.zupimages.net/viewer.php?id=20/11/qnl3.jpg

htt ps ://w w w.zupimages.net/viewer.php?id=20/11/utmn.jpg

htt ps ://w w w.zupimages.net/viewer.php?id=20/11/n4sl.jpg

remove any space and sorry for bypasses forum lock
[P8 Lite (2017) Development] plarfman:
y square icons?
[P8 Lite (2017) Development] DarkJoker360:
Because on Android 10 the zip file is not compatible with our TWRPs and it is giving flashing errors or bootloops for some. Also you can flash as img through TWRPs.

Go back to emui, decrypt and reflash all.

You can change shapes, I used it in mt personal setup only.
[P8 Lite (2017) Development] ronnie92:
Go back to emui, decrypt and reflash all???

how i do that? sry i am novice where i decrypt ? emui is huawei erecovery menu ?
[P8 Lite (2017) Development] DarkJoker360:
Check AIO thread in this section.
[P8 Lite (2017) Development] rajaumarfarooq:
[MENTION=7019289]DarkJoker360[/MENTION] is there any chance of building this rom with gapps included like in phhusson gsi
[P8 Lite (2017) Development] Chueven:
just installed this rom after repairing my display and replacing the battery. The rom is smooth and don't seem to have problems till now.

The only thing i noticed is the fingerprint doesn't work.. but i can't say if it's a my problem, i could've attached bad the flat cable.
[P8 Lite (2017) Development] karas1que:
Successfuly installed this ROM on clear emui 8.0 honor 6x 4/64.But after install all thing I installed stock recovery and wiped cache and do factory reset
[P8 Lite (2017) Development] Alex19Gam:
Can you post step by step you did? Please
[P8 Lite (2017) Development] ronnie92:
rm -rf process ended with error:1

I followed this post https://xdaforums.com/showpost.php?p=76985321&postcount=6 for decrypt but when i want delete "fstab.hi6250" for remplace with fstab.hi6250 (modified with delete line ,fileencryption=aes-256-xts:aes-256-cts) i have error in trwp "rm -rf process ended with error:1" or "cp"/external_sd/fstab.hi6250" "/vendor/etc" process ended with error:1" when copy

somebody have solution ?

edit: resolved with wipe data in twrp ( when wipe data twrp uncrypt system )
[P8 Lite (2017) Development] karas1que:
Installed emui 8 with hwota

installed darkjoker twrp

did full wipe

installed system image through fastboot

tried to boot but got bootloop

installed stock recovery and wipe cache partition, tried to do factory reset but got error

successfully boot into rom

again installed darkjoker twrp
[P8 Lite (2017) Development] mr_bahrami77:
i install

3 problems

less battery

lost my storage

and error camera need sd card to use the camera

plz fix

thanks for this project
[P8 Lite (2017) Development] ronnie92:
wipe data

i have same problem resolved with wipe data in twrp ( when wipe data twrp uncrypt system )
[P8 Lite (2017) Development] mr_bahrami77:
for hi256 best rom is stock

on custom rom you dont have full power of battery

or other problems..

back to stock rom and enjoy ...
[P8 Lite (2017) Development] ronnie92:
i have p8 lite 2017

this is my first custom rom that i install i have no problem can be a slight higher battery consumption compared to the original huawei rom
[P8 Lite (2017) Development] Traceur017:
Hi

Glad you can get in twrp now.

By the way i didn't provide a link. Some other guy did. I just said to use firmware finder;)

And before you said your phone is c464 and now c646. Which one is it?

I think now that you are on twrp use hurupdater to install a stock rom and then install a custom rom to make sure everything is fine with your phone.

Try doing factory reset with stock recovery or twrp and if it didn't work, use hurupdater.
[P8 Lite (2017) Development] royalford:
yeah,you noted two typos from me :D

it is 464, and yzena who shared links.

Yep, I used HuRUpdater and for now I am back with EMUI. But will try to flash lineage once I have time.

Thanks again mate!
[P8 Lite (2017) Development] yzena:
happy it helped you, just be carefull, the lineage os rom's kernel is sucking the battery, and the other's kernel disponible desactivate emition and reception of calls and as i tried magisk modules does not work.
[P8 Lite (2017) Development] royalford:
thanks for the tips mate!

I am considering the workarounds, but not sure yet. There are suggestions from [MENTION=7294734]DunoCZ[/MENTION] but I have no idea what those do and what are the implications (risks, security etc).. will have to do some research

Are there same issues with earlier versions of LineageOS?
[P8 Lite (2017) Development] yzena:
I think for now all phh's type rom have some problems, mostly cause phh's rom need a realy complicated adjustment to match perfectly all components of the phone. I had fiewer problems with los15 (reamining for me : BLE, safetynet, and = problems).
[P8 Lite (2017) Development] DunoCZ:
[MENTION=7019289]DarkJoker360[/MENTION] I founded new bug, Vulkan is glitchy af, try running PPSSPP, it artifacts as hell.
[P8 Lite (2017) Development] royalford:
I got this working. Leaving the procedure I followed for others:

(Check prerequisites like unlocking the bootloader)

1. Flash the stock recovery (called stockoreo.img, just search for it in the forum) using fastboot.

2. Go into recovery, factory reset and clear cache.

3. Flash Dil3mm4's TWRP.

4. Proceed with the Original Post (I did not install gapps).

As mentioned above, it is consuming the battery quite a lot. I will stick with this version for few days (as I am home and battery is not a big deal) to test some workarounds. Then I might go to LOS 15.1 as it is patched quite often..

thanks [MENTION=7019289]DarkJoker360[/MENTION] for your job! I dont have paypal now but I will hopefully buy you a coffee or two if I create paypal.
[P8 Lite (2017) Development] yzena:
You can try kernels while waiting for a patch but you might not be able to have calls again :/
[P8 Lite (2017) Development] DunoCZ:
Just use call fix from thread about Morfuz kernel lmao.
[P8 Lite (2017) Development] yzena:
Tried, doesn't work, kernels are good anyhow
[P8 Lite (2017) Development] LENZFLIKER:
[MENTION=7019289]DarkJoker360[/MENTION] Do I have to flash EMUI 8 and then flash your LineageOS 17.1 OR will this work just fine if I flash it while on Haky86 LineageOS 14.1 w/ Android 7.1?

(I had EMUI 5 w/ Android 7.0 on my PRA-LX2 before LineageOS 14.1)
[P8 Lite (2017) Development] DunoCZ:
Sadly yes thank to new schema of partitions etc. (GSI).
[P8 Lite (2017) Development] Leolele99:
I installed it on my P8 Lite 2017 (PRA-LX-1) exactly like on the guide after fully resetting the phone's os with the eRecovery.

I also only installed the patch on top, no gapps or magisk or root.

It loads into the basic Lineage loadup animation, then goes black and reboots back into the default "You're device has been unlocked..." screen.

The next time it reboots it goes into eRecovery.

Any idea how to fix this?
[P8 Lite (2017) Development] DunoCZ:
Did you resized system partition and flashed patch by DarkJoker360 right?
[P8 Lite (2017) Development] Leolele99:
Yup, I did resize it and did install the patch.

I eventually got it working, after I redownloaded and extracted all files, used the eRecovery to reset everything to stock, install DarkJokers AOSP successfully, used the eRecovery to reset to tock once again, and then followed the guide again.

Not a single clue what I did differently this time, either a small extraction error in the zip files or the double reset to stock helped, I suspect.
[P8 Lite (2017) Development] LENZFLIKER:
Wait for a new patch or crDroid

I tried to re-flash stock with HuR so that I could flash LOS17.1 and messed up the file names. Even eRecovery failed so I went to Huawei customer service center and they fixed it and installed latest EMUI. Came here again and read every reply and decided its best to wait till [MENTION=7019289]DarkJoker360[/MENTION] releases crDroid. Thanks [MENTION=7294734]DunoCZ[/MENTION] for helping on this thread.
[P8 Lite (2017) Development] Emtecsus:
I wanted to say that i'm having problems wiping the cache partition. it says that it is unable to wipe the cache. Do you have any solution?
[P8 Lite (2017) Development] Ham1do:
Try this twrp , it will solve wiping cache issue

https://mega.nz/#!LLhBXSzY!3runNNoW9z1tOHSu-heIUhyy-4u8XHvc8rZMsn547so
[P8 Lite (2017) Development] Damians82:
Sorry guys, but I don't understand... Is the first update avalaible?
[P8 Lite (2017) Development] Elax46:
Unlock bootloader code

I would also like me to install this rom but how the heck do you for the question bootloader because Huawei does not release the codes?
[P8 Lite (2017) Development] Mrfunnysnake78:
Wow ! I tried everything, I had bootloop, system ui crashing every 2 second, all the problems in this thread... until I read your message and guess what? it worked!!! thank you so much [MENTION=10841265]royalford[/MENTION] for this working workaround and thanks [MENTION=7019289]DarkJoker360[/MENTION] for all your effort to make our PRA-LX1 still alive!

Btw, if you need some free coffee, don't hesitate to fix your "donate to me" button, it is not working ;)
[P8 Lite (2017) Development] Vairetz:
Huawei P9 Lite

Hi guys, I'm looking for a Linerage OS 17 or higher for Huawei P9 Lite. Is it possible to use that or I need a specific ROM? Maybe a P9 ROM is it ok?
[P8 Lite (2017) Development] DunoCZ:
Eeh... P9 lite and P9 lite 2017 are totally different phones, so simply no because treble is not available on P9 lite....

P9 lite have Kirin 650 and 2017 edition have Kirin 655 and fun fact, this phone is wrongly named as P8 lite 2017, this phone had been released specially for Czech Republic (reason for codename 'prague' that's our capital city) and Huawei released it anyway to others but because it wasn't good enought as refresh of P9 they named it as P8. So everyone this phone is not P8 but in fact P9 and also Huawei for wierd reason didn't released in Czech Republic 32GB version.
[P8 Lite (2017) Development] Vairetz:
This is a very bad news, I tried LOS 17 on my old Moto G 2014 and now I can't use a phone without this ROM. :D
[P8 Lite (2017) Development] DunoCZ:
In theoretical way if P9 lite have Oreo custom rom it could theoritically convert phone to GSI enabled so maybe it could work but seriously idk, if this phone isn't your daily driver it's worth to try.
[P8 Lite (2017) Development] Khan ubaid:
Can i use it on Honor 6x, kirin 655.

If yes.

What about the build info patch?
[P8 Lite (2017) Development] ncc1977d:
Nearly no customizations possible @ this rom. I switched back to AOSPE Pie (best rom EVER on this phone).

Seems like i have to buy a new phone for Android 10 or 11 to get a nice UI... ;-(
[P8 Lite (2017) Development] DunoCZ:
Yep it makes me kinda sad too, probably I will use some other rom like Havoc or Evolution X or RR and making it usable, because DarkJoker360 also didn't make any update to this rom so....
[P8 Lite (2017) Development] France079:
Just use DC unlocker, download DC unlocker on playstore for your phone and download the software for pc. On your phone install and open apk and create an account (it cost me R60.88 south African carency you get 4 credits. They give you a user name and password ) now goto to pc and open the software (DC unlocked) goto service put user name and password than goto unlock and then read unlock bootloader they give u in less than a minute. But make sure you phone in supported mine is Huawei p8 lite 2017 running Android 8.0
[P8 Lite (2017) Development] chonnamae:
Will this work on my Huawei Nova 2i?
[P8 Lite (2017) Development] France079:
Yes it will work.
[P8 Lite (2017) Development] Lar1s:
gps

gps is not working, finds satellites, but does not use them, shows the location only on the Internet but stands still while driving
[P8 Lite (2017) Development] DunoCZ:
[MENTION=7019289]DarkJoker360[/MENTION] are you alive? Or better, future updates and fixes?
[P8 Lite (2017) Development] royalford:
What app are you using?

I downloaded osmand and also thought I have an issue. but it was just matter of time.

It only starts showing the location after I spend few minutes outside.

Did you try to change the app?
[P8 Lite (2017) Development] scrapperxzy:
bro how did u pass safteynet?
[P8 Lite (2017) Development] DunoCZ:
In Magisk flash "ARCore/Playground Patcher" and reboot, also use magisk provided by [MENTION=7019289]DarkJoker360[/MENTION]. Don't forget to use Magisk hide (Search in it for google and tick every Google APP to be safe).
[P8 Lite (2017) Development] Lar1s:
I use Yandex maps, shows the position only with the Internet enabled,

And in the gps test app it says this

https://ibb.co/P1tfY3w

https://ibb.co/yYjb9Ht

https://ibb.co/tQ2Q1Hc

https://ibb.co/VH3n5vT

https://ibb.co/pvHk27V

https://ibb.co/cvnprgW

https://ibb.co/k9cvnHP

I have tried both Google maps and waze with offline maps, does not detect my location without the Internet

Now I use aosp from darkjoker the situation is the same

I tried to find out what you suggested and nothing happened

https://ibb.co/QvkkL1f

On stock firmware, gps connects to satellites and shows my location, I don't want to leave on 7.1.2 Android
[P8 Lite (2017) Development] FortMike:
Guys, this ROM is very far from being used daily. There are A TON of bugs and unfortunately it seems that the developer has abandoned this project. My advice is to not use this ROM, stay stock or use any other rom for your device
[P8 Lite (2017) Development] haky 86:
this platform survive too much for me.
[P8 Lite (2017) Development] Damians82:
[MENTION=7540175]FortMike[/MENTION] I think during a bad period like this it's not so simple to work to a ROM.

I don't know the future of this ROM but... Thank you [MENTION=7019289]DarkJoker360[/MENTION] and other people cited in credits. :)
[P8 Lite (2017) Development] scrapperxzy:
bro i cant fix the offline charging.i tried selinux permessive but it didnt work
[P8 Lite (2017) Development] ilakhnon:
Hi everyone,

A few days ago, I tried to install this ROM but I ran into a lot of issues: System UI constantly crashing, random reboots,... but I found a workaround. Here's how I successfully flashed this ROM :

Unlock the bootloader with DC-Unlocker as Huawei stopped giving bootloader codes (it is a paid service).

Copy the files provided by DarkJoker360 (the ROM and the patches) to your SD card.

Flash DarkJoker360's TWRP and reboot to recovery to wipe cache, Dalvik/ART cache, system, data partitions and to decrypt the data partition.

Then, reboot to bootloader and flash Dil3mm'4s TWRP.

Reboot to recovery and directly install the ROM from the recovery and not from fastboot. Go to Install > *where you put the ROM files*. First, install system.img (do not forget to click on "Install Image" to see the system.img file). Then, install the patch, GApps, and Magisk (Google Apps and Magisk are optional).

Reboot to system.

Your phone should now be running LineageOS 17.1 without a hitch. I also enabled Adoptable Storage by following these instructions. This ROM works pretty well but the battery only lasts half a day now. I'll try to fix that later.

Hope this post helps you. :good:
[P8 Lite (2017) Development] Tattico83:
Hi guys, my P8 Lite don't boot in Lineage, but it boot every time in TWRP.

I flash all as the guide may times, but I can't solve that problem.

What do you think could be the problem?
[P8 Lite (2017) Development] DunoCZ:
Problem is you don't have 2017 version.
[P8 Lite (2017) Development] Tattico83:
I'm sure is a P8 Lite (2017)...I've buy it :D
[P8 Lite (2017) Development] Rokuros1080:
Hello guys, just a quick question. Is it possible to switch back to the original rom? Do you have a procedure showing how to do so, just in case?
[P8 Lite (2017) Development] jelgervandijk:
Use eRecovery to download it.

Verstuurd vanaf mijn PRA-LX1 met Tapatalk
[P8 Lite (2017) Development] ashrafjaziri:
I have huawei gr3 2017(PRA-LA1) does it support this custom rom ?
[P8 Lite (2017) Development] DunoCZ:
Yes if you are currently on oreo (GSI implementation).
[P8 Lite (2017) Development] ashrafjaziri:
I am on android 8.0.0 EMUI 8.0.0
[P8 Lite (2017) Development] Friedensfurz:
Thanks for this ROM. Is it possible to also make an AEX release?

Regards
[P8 Lite (2017) Development] mr_bahrami77:
So I suggest not installing cutom ROM

The original ROM is the best ROM for this mobile

I tested many custom ROMs, but none of them had the efficiency and completeness of the stock and orginal ROM
[P8 Lite (2017) Development] DunoCZ:
Custom rom's are better BUT you had to play with cpu governor, i personally recommend kernel toolkit, if you buy it use interactive or ondemand with battery scenario, but still is question for me why do they use anyway too much battery, it look like phone lock battery to half of capacity when do you unlock it.
[P8 Lite (2017) Development] haky 86:
The most craziest thing I have ever read on this forum, keep using that outdated emui then.
[P8 Lite (2017) Development] DunoCZ:
How did you set it to permissive ? I tried Morfuz and Labyrinth kernel and still it is enforcing.