yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Development] La_Forge:
I have probably found a bug in this ROM. If you enable in the "phh treble" settings the option "Spoof Pixel 5", then you can not establish an ADB connection with the phone anymore?!

Does anybody know how to fix this?
[P8 Lite (2017) Development] tipp3r:
Hmm, I guess that's what I ran into too then... I couldn't figure out why adb was suddenly not working. Kept trying to delete adbkeys to no avail.. No way to get the authorization to pop up on the phone.

But I did not enable "Spoof Pixel 5", I am sure, I only enabled "SafetyNet".

Hopefully there's a way to fix it.

BTW, I went through a couple flashes figuring out how to get Google Wallet working.. I was trying to keep good SafetyNet status without rooting, so this last time I did not flash the Siberia kernel.. but turns out I still had to root and apply magisk SafetyNet fix to get SafetyNet status ok, the "SafetyNet" phh treble option on its own wasn't enough.. I still enabled it as according to my reading it was a required step.

Anyway, now that I found out I have to root anyway, could I flash the Siberia kernel without having to re-do all my setup again? Like will I have to wipe a partition that will make me have to setup Google acc, Wallet and everything again?

I would like to switch to it for the better battery life, even if there was more weirdness with SIM.. but fixed that previously by adding PIN code.

Thanks in advance for replies & massive thanks to @AltairFR for the wonderful ROM!
[P8 Lite (2017) Development] PufferDude:
Does the rom support signature spoofing for installing NanoDroid/microg? Also is it recommended to use magisk for rooting or there's another?
[P8 Lite (2017) Development] AltairFR:
Yes this rom support signature spoofing. For root you can use kernelsu or magisk
[P8 Lite (2017) Development] PufferDude:
@AltairFR To clarify, will I be installing twrp-3.7.0_9-0-prague.img from https://dl.twrp.me/prague/ ? Not the Android 11 Unofficial TWRP? I'm on EMUI 8.0.0.402(C432).

I already have the original bootloader unlock code for my device, so can I just skip the PotatoNV steps and EMUI 5 downgrade in the ...(en).pdf file in pages 4-6?
[P8 Lite (2017) Development] AltairFR:
Yes skip downgrade to emui5, potatoesnv and use official twrp
[P8 Lite (2017) Development] Lovecraf:
Hola. Quería preguntar si está Rom se puede instalar en una huawey Media Pad T5.

Modelo: AGS2-W09

Número de compilación 8.0.0.371

Versión Emui 8.0.0

Versión Android 8.0.0

CPU Hisilicon Kirin 659

Versión Kernel 4.4.23+

Esta desbloqueada y tenía otra Rom antes que no me funcionaba bien. Me daba errores cuando intentaba formatear la tarjeta SD para que trabajase como memoria interna. Es posible que fuera porque tuviera instalado EMUi 8.1. La lleve a modo fábrica y ahora no la actualizo a la espera de saber si puedo instalar esta rom.

En caso de que pueda instalar esta rom

debo redimensionar el sistema de particiones teniendo en cuenta que posiblemente antes tuviera instalada otra versión aunque ahora tenga 8.00.371?

Otra duda que tengo es para que sirven los archivos de autorizar o desautorizar encriptación. He leído a otro forero que preguntaba si había que instalar 4 archivos o dos. Eso me desconcierta ya que si se da autorización de encriptado habría que instalar 1 archivo y en caso contrario el otro pero nunca dos o cuatro.

Otra duda que tengo es que en otras instalaciones previas de roms se instalaba siempre un archivo llamado Huawey_decrypt emui zip pero en este caso no veo referencia a esto.

Muchas gracias

English traduction:

Hello, I wanted to ask if this Rom can be installed on a huawey Media Pad T5.

Model: AGS2-W09

Build number 8.0.0.371

Emui version 8.0.0.0

Android version 8.0.0.0

CPU Hisilicon Kirin 659

Kernel version 4.4.23+

It's unlocked and I had another Rom before that didn't work well. It gave me errors when I tried to format the SD card to work as internal memory. It is possible that it was because I had EMUi 8.1 installed. I took it to factory mode and now I do not update it waiting to know if I can install this rom. I should format and network mensaionar

In case I can install this rom

I must resize the partition system taking into account that possibly before I had installed another version but now has 8.00.371?

Another question I have is what are the files used to authorize or disallow encryption. I've read another forum member asking if you have to install 4 files or two. That puzzles me because even if I had to install such authorization I understand that only would have to install or authorize encrypted or unauthorized. So I only have n file.

Another doubt I have is that in other previous installations of roms always installed a file called Huawey_decrypt emui zip but in this case I see no reference to this.

Thank you very much
[P8 Lite (2017) Development] m_schmidt:
Hi!

Maybe someone can help me installing this ROM. I am running somewhat in circles following the instructions from the PDF of post #1.

I used PotatoNV to aquire the Unlock Code. Then, as mentioned on PDF page 6, I reverted the phone back to EMUI 5 as requirement for unlocking and unlock PHONE and FRP as explained on page 7 and 8.

With page 8 first trouble started. I could install the TWRP versions listed in #1, but they weren't booting. Then I read somewhere EMUI 5 needs another TWRP like EliteTWRP-3.2.1-0_2018-01-19.img for booting.

Then it is written in post #1 for flashing LeoOS at least EMUI 8.0.0.360 is needed due to differences in the storage layout. So I need to reflash a EMUI 8 version.

Now the next trouble started. As written on page 1 of the PDF I downloaded 8.0.0.402(C432) from the link on page 1. I copied the DLOAD folder to the phones SD card. Flashing via #+#+....+#+# was succesfull after unzipping /dload/update.zip for update.app, but installed a wrong version 8.0.0.046. Then I updated with TWRP and the update.zip.

Now phone is running 8.0.0.402(C432), but PHONE and FRP is locked, again? Shutdn't I use the stock rom of PDF page 1 for flashing back to EMUI 8?
[P8 Lite (2017) Development] amonpaike:
@AltairFR Hi, sorry if I bother you with these trivial questions, but I'm curious to understand, lineageos 18.1 is still in continuous development, these lineage os 18.1 changelogs are continuous fixes, they are advancements and improvements in functionality, or they simply no longer concern lineage os 18.1 but new versions, but are listed the same?

Finally finally one last question, will this your Leaos still have updates or is it time to consider obsolescence running its course?

I'm asking you because despite everything I love this phone, it's super performing with your OS and I'm sorry that it has to die from abandonment.

Greetings and thanks anyway
[P8 Lite (2017) Development] La_Forge:
Hi,

has someone found a fix for the ADB Connection issue after enabling in the "phh treble" settings the option "Spoof Pixel 5" ?

There is only a temporally fix on the following post, but you have to do it every 3 to 4 days:

[ROM][10] DarkJoker360 AOSP 10 for Huawei P8 Lite 2017

Hi, DarkJoker360 AOSP 10 for Huawei P8 Lite 2017 *** Stable Version *** About Android is an open source software stack for mobile devices and a corresponding open source project led by Google. This site and the Android Open Source...

forum.xda-developers.com
[P8 Lite (2017) Development] muxinghe:
I meet the same problem. I use CMCC, when I set network type without LTE such as TDSCDMA/GSM, I can call and answer. But whenever I choose the network type with LTE such as LTE/TDSCDMA/GSM ，the call ends the same as you, and otherone call me but it is no ring on the phone. my phone is Honor 6x. @AltairFR
[P8 Lite (2017) Development] Spiky73:
Hello, I need some help.

I was in the process of setting up the phone for the ROM but I am now stuck in a bootloop.

I have TWRP installed and bootloader unlocked.

Sucessfuly downgraded to emui 5.0 but stuck in a bootloop when trying to upgrade to emui 8.0.416 ot install LeaOS.

eRecovery competes but does nothing.

Tried "fastboot flash system LeaOS-20230407-iceows-pra.img" but it failled:

Sending sparse 'system' 1/6 (460798 KB) OKAY [ 26.486s]
Writing 'system' FAILED (remote: 'sparse flash write failure')

I cannot resize the system partion as the phone is not found in adb in TWRP.

When tring to reboot, TWRP says 'NO OS installed, are you sure you want to reboot ?'

Any ideas @AltairFR or someone else ?
[P8 Lite (2017) Development] Spiky73:
I was finally able to make dload work and un-brick the phone under EMUI 8.8.0.046 (after probably a dozen different fails) !

This locked both the oem and the bootloader and removed TWRP, but I nothing I can't fix.

I think I will take a small break before trying to intall LeaOS...
[P8 Lite (2017) Development] Iconium_:
i have to update from linage os 9 to this one or any other los with android 11. i flashed from emui 8 to linage 16 by using flash zip from twrp method, is there a gurranty that this will work?
[P8 Lite (2017) Development] Iconium_:
why is there no linage 19 or 20 yet?
[P8 Lite (2017) Development] PufferDude:
I'd like to know as well, or if its fine now on latest Magisk versions?
[P8 Lite (2017) Development] PufferDude:
I had the same experience as you but once you master how to dload using hardware keys, you'll realize how difficult it is to actually brick this device 😅

Just follow the guide
[P8 Lite (2017) Development] PufferDude:
Probably will end in bootloop

There's Android 13 being developed for this device by some pros over at Telegram.
[P8 Lite (2017) Development] PufferDude:
Not op, but I think op's prague device is preoccupied on android 13 development (LeaOS-OSS-20.0-20231116-prague.zip) at the moment. I hope for updates too
[P8 Lite (2017) Development] PufferDude:
Has any of you managed to use KernelSU for PRA-LX1 since then?
[P8 Lite (2017) Development] PufferDude:
I don't use wireless adb but I do get adb problems as well using usb cable. 'adb devices unauthorized' or there's no adb prompt appearing on my phone. That fix is also similar to my found solution, but not to phone but to pc (linux).
[P8 Lite (2017) Development] muxinghe:
could you give a tg link of Android 13 developed for this device?
[P8 Lite (2017) Development] Iconium_:
oh yea, i saw one file at soruceforge (leaos 20 prauge) but telegram is banned in my country
[P8 Lite (2017) Development] Iconium_:
i made a typo. sorry for that. but i found out that by installing the version that works (linage 9) on older firmware / newer firmware too, just install it as it says but dont install patches. then go to bootloader after first boot (do not configure or press get started) . On the bootloader type

fastboot flash system <system.img>

and reboot to twrp. then install patches and reboot
[P8 Lite (2017) Development] PufferDude:
nice, glad it worked regardless. your lineage 9 must have been installed with a supported emui 8, and fastboot flash system did its thing to wipe and replace previous system partition like a shortcut
[P8 Lite (2017) Development] m_schmidt:
Has anybody used this ROM over a longer period of time? Idea was to recycle the Huawei as a tiny Youtube video player.

But with this ROM it happend now for the second time the Huawei became very slow. A reboot then resulted in a boot loop. After some boot attemps a message appeared giving notice the file system has become corrupted and therefore the device needs to be factory reset.

Any ideas? Is there maybe something like a storage/memory checker available for this device?
[P8 Lite (2017) Development] DooSHeK:
I have the same. After a few reboots, data corruption.
[P8 Lite (2017) Development] PufferDude:
Did ya'll installed Magisk and which optional patches?
[P8 Lite (2017) Development] Iconium_:
happened to me. but not now. 1st thing is, follow the steps i said above. and lastly only install lite gapps no pixelify. most gapps have pixel launcher which can cause heating and all sorts of issues.

yes. ad blocker, thats it. pixelify and some gapps come with pixel launcher which can cause all sorts of issues (heating, battery drain, low charging rate and bootloops)
[P8 Lite (2017) Development] DooSHeK:
I installed Magisk Delta. Does Magisk can cause this problem? As for the gapps I insalled this one: LiteGapps_arm64_11.0_v2.7_official
[P8 Lite (2017) Development] Iconium_:
lite gapps doesnt seem to cause the heating. gapps with pixel stuff seems to. and yes, magisk can but is very rare to cause heating unless you have pixelify installed
[P8 Lite (2017) Development] PufferDude:
I just thought that maybe magisk cause conflicts with the prebuilt su binary. That's why I also flash securize.zip patch to remove it. I also avoid the fixpreavs.zip patch. And I use microg. I might also install all the uncrypt/decrypt.zip patches (for data, system, storage) later on when I reinstall the rom and see if it'll still corrupt any partition.

Now that I remember it, I also had that random bootloop issue before on RR Nougat. I think I had both bluetooth and ril on at that time, so idk if there's some driver issue going on or if its fixed and not the case here.

I also did a chmod 644 to the adb_keys. If you enable Disable adb authorization timeout in Developer Options, does it still revoke adb authorization every 3 to 4 days or no?
[P8 Lite (2017) Development] PufferDude:
@AltairFR Do you have/make Siberia KernelSU? That's what I really need right now.
[P8 Lite (2017) Development] m_schmidt:
I installed the GAPPS version linked in #1. Was it a problem I did not perform the partition resize step because after flashing there were around 10GB of 16GB free space available and used the unsigned version because the mobile wasn't encrypted right before the flashing (but maybe somewhen).

I don't need the newest android version as long Youtube is available throught the Play Store and the device does not run out of space at once like with the original Huawei firmware mess. Does this corruption problem occure with older Android ROM versions aswell?
[P8 Lite (2017) Development] Iconium_:
use lite gapps and install yt if it isnt in the package. ez

well it said that its for emui 8 and didnt specify and hard versions

link please? I cant find it.
[P8 Lite (2017) Development] PufferDude:
dm sent
[P8 Lite (2017) Development] PufferDude:
how many GB internal storage you had if you don't resize?
[P8 Lite (2017) Development] m_schmidt:
I tried to reflash the mobile with LeaOS 18.1 and later with LeaOS20, (Flashed it to System Image instead of System because TWRP did not allow it to be fashed to System?!), too. I also tried to resize the system partition (sometimes the option is not listed im TWRP) and flashed the decrypt script.

But the mobile is still in the boot loop. Should I try a Factory Reset through the Huawei Software even FRP and Phone are still unlocked?
[P8 Lite (2017) Development] Iconium_:
how did u get leaos 20?.

anyways yes you have to restore your device. read my post if erecovery doesnt work
[P8 Lite (2017) Development] m_schmidt:
You can find LeaOs 20 at AltairFR Sourgefoce account.

Is it save to perform the Huawei eRecovery through Wifi if FRP and Phone are unlocked? Doesn't it produce a 100% Brick?

Anyway. I tried a recovery with the Huawei Software Suite but it doesn't allow it due to the unlock changes.

I found old link for a Stockrecovery Image. But link is dead. Any ideas for a link bringing back the mobile to a working state? The startup crashes immedeatly, no Lineage bootscreen at all.

I found this Image "Huawei+P8+Lite+2017+PRA-LX1+PRA-L31+Prague-L31+8.0.0.377(C432)+Firmware+Android8.0.0+EMUI8.0.0+05014HXC+androidhost.ru". But I am not sure if or how I should proceed with the Image. It was mentioned somewhere together with the Huawei Update Extractor, extracting a original Boot Image Partition ( I flashed the Boot Partition from the LeaOS 20.0 Image. It failed due to incorrect file size. After that I fastloaded right after that the LeaOS18 Image without a reboot because I was concerned the mobile wouldn't boot into TWRP recovery otherwise.
[P8 Lite (2017) Development] quardix:
what should I do?
[P8 Lite (2017) Development] Iconium_:
well i tried that but my system just never went into the startup screen. *after it says that your device is booting now, it just restarts immediately.

Stock firmware, i also only found old files. Try this.

1- Get stock (read my post at the q/a section)

2- On TWRP, wipe everything except sdcard.

3. Restart onto TWRP

4. Flash the update_sd.zip

5. Perform a factory reset

6. Go to Bootloader and flash TWRP again! (Do this)

7. After booting into ROM, restart to TWRP

8. Flash Huawei Decrypt EMUI 8 file. and perform a factory reset to decrypt (ELSE IT WONT BOOT!!)

9. Wipe: Cache and Dalvik or whatever it is. Wipe Internal Storage, data. DO NOT WIPE VENDOR / SYSTEM!!!!

10. Flash the Linage os 16 by Darkjoker 360. (dont install patches.)

11. Factory data reset and reboot to system

12. (You might have to flash twrp incase if the linage deletes it.

13. When you reach the lets start screen (OS boots up), Reboot to TWRP

14. Factory Data reset. (if it ends up in bootloops, restart and dont follow this!)

15. On bootloader, flash the linage 18.x img file

16. Go to TWRP

17. Install patches (zips such as gapps)

18. If you booted your ROM before ( after step 14), I'd consider do a factory reset (optional)

19. Reboot to Linage and All good.

** If you face any problems such as battery drain, gapps crashing, restart from the begging .
[P8 Lite (2017) Development] Mr. Jamme:
Using flashboot while phone is in fastboot mode I got:

Invalid sparse file format at header magic

Sending sparse 'system' 1/6 (460798 KB) OKAY [ 23.210s]

Writing 'system' FAILED (remote: 'sparse flash write failure')

fastboot: error: Command failed

........ much the same as you.

According to #58 here https://forum.xda-developers.com/t/...-18-1-for-huawei-device-emui-8.4371629/page-3 the sparse thing just means it's broken the file into six bits.

I use Linux so can only assume you have a similar problem but it is referring to your fastboot stuff in Windows.

You could try flashing via TWRP instead of fastboot but I got a message which suggested the system partition is too small.

Now, I'm getting old and can't quite remember what it means, but I think you have to increase the size of the system partition on your phone. @AltairFR has a kit to do this here:

Huawei Partition Kit - Enlarge system partition

Huawei Partition Kit This kit allows you to enlarge/reduce (2Go->5Go) the system partition on a Huawei kirin 65x, 960 or 970 phone. You can do it from a Huawei android 9 rom, a Lineage 18.1, 19.1, 20, or an AOSP 11,12 or 13. The kit reinstalls...

xdaforums.com

For me this was not straightforward and wrote a rather long comment here:

Huawei Partition Kit - Enlarge system partition

Huawei Partition Kit This kit allows you to enlarge/reduce (2Go->5Go) the system partition on a Huawei kirin 65x, 960 or 970 phone. You can do it from a Huawei android 9 rom, a Lineage 18.1, 19.1, 20, or an AOSP 11,12 or 13. The kit reinstalls...

xdaforums.com

... but you might not run into the same problems.

Give it a try.

Mr. Jamme.
[P8 Lite (2017) Development] Iconium_:
everything works except:

Share option, Crashes apps

NFC ( i think my phone doesnt have it anyways)
[P8 Lite (2017) Development] PufferDude:
Anybody tried using APatch with this rom?
[P8 Lite (2017) Development] Iconium_:
@AltairFR how to install this? flashing does not work.
[P8 Lite (2017) Development] AltairFR:
Make backup of partitions odm, product, vendor, kernel, system, recovery_vendor recovery_ramdisk before

Installation of OSS:

- Extract the 3 or 4 IMG files from the ZIP (3 for phones running EMUI9 and 4 for phones running EMUI8)

- Install TWRP and start it

- Under TWRP do a wipe cache+data+internal memory+Dalvik

- Install the 3 or 4 imgs extracted before in the correct partitions (boot->kernel, recovery -> Recovery Ramdisk, recovery_vendor -> Recovery Vendor, boot_ramdisk -> ramdisk)

- Restart the phone in recovery mode to launch the new recovery lineage

- Install the zip under recovery in adb sideload mode
[P8 Lite (2017) Development] Iconium_:
Its at the linage boot screen.. anyways i dont know if its gonna boot or not but do i have to flash the emui 8 decrypt file first?
[P8 Lite (2017) Development] Iconium_:
@AltairFR It did not boot; i guess i forgot to disable encryption . But now it wont boot to TWRP. it just freezes or goes past detecting the recovery combination.... Here is the backup of things you mentioned. But how to flash them via fastboot??
[P8 Lite (2017) Development] AltairFR:
To restore :

fastboot flash kernel kernel.img

fastboot flash recovery_ramdisk recovery.img
[P8 Lite (2017) Development] Iconium_:
but the extensions are not .img
[P8 Lite (2017) Development] Iconium_:
nvm. got it working. flashed siberea kernel, it worked!
[P8 Lite (2017) Development] Iconium_:
Does anyone here know where to find stock ROM explicitly for `HONOR P8 LITE`? I can only find huawei ones. they work fine, but are old. (emui 8.0.0.046)
[P8 Lite (2017) Development] AltairFR:
Yes all kernel a-only work. The kernel in OSS is an ab kernel only for android-13
[P8 Lite (2017) Development] Iconium_:
no i mean twrp. but anyways i could never get oss running idk why :/ maybe because my emui base is too old. check my screenshot above. but it might work if i flash linage 16 first... because thats how i get leaos 18 to work.
[P8 Lite (2017) Development] Iconium_:
I guess at this time, ill just stop trying custom roms on my phone and go with that 'stock' rom that is not even for my phone...
[P8 Lite (2017) Development] PufferDude:
@AltairFR Any other way to update Android/Vendor security patch? EMUI update servers are down for this device.
[P8 Lite (2017) Development] Iconium_:
oooh so thats why i could not get any updates or use emui e recovery. i also could not find any stock roms on the web
[P8 Lite (2017) Development] PufferDude:
Yeah.

https://androidhost.ru/1ixf - stock rom

Also regarding that 8.0.0.046(0OXV) stock rom, you need to change to a C432 oeminfo or the oeminfo for that rom's region to fix that.
[P8 Lite (2017) Development] Iconium_:
that rom just boots up an older version of emui. (flash update_sd method) because other methods do not work. Thanks for the link btw but i cannot try it anyways because my battery has swollen
[P8 Lite (2017) Development] ohmygoodnessgracius:
Hello, thanks for the tutorial, it was of great help

I followed your instructions precisely and the device booted Android 13, on my first attempt, I was very excited to try it out but as I was about to download gapps my file wouldnt save in downloads, and trying to move files around from external card to internal even using the pre installed file manager would fail, downloads would give out error saying there is not enough space to save files but then I had like 8gb of free space if not more as it was a fresh install

I basically was unable to save any user data or interact with the internal storage at all while on OSS Android 13 prague, I restored back to LeaOS 18.1 and everything is "fine" here

Im using a prague, EMUI 8, not version 0.400+, my version was 372 or something like that
[P8 Lite (2017) Development] AltairFR:
Download MindTheApps on your computer and put it on a sdcard.

Install with TWRP
[P8 Lite (2017) Development] mutonic:
Hello,

This may have already been discussed previously but as there are lots of pages, don't feel like reading whole history, so sorry If I'm asking the same thing again.

I have a device already flashed with LOS-18 from dark joker but it is a bit outdated and I had issues with GPS lately.

I'm thinking of updating either to more recent build, or to switch to this ROM.

Was curious to know about the main difference between the two?

Also is there a way to flash this ROM directly from phone or do we need android tooling (flashboot)?

Thanks,