yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Development] AltairFR:
Comment enlever le cryptage des données (partition data) sur téléphone​

A partir de EMUI 8 la partition data est cryptée (file système EFS avec chiffrement AES)

Démarrer le téléphone en mode recovery avec TWRP

Sous TWRP aller dans Mount et ne monter que la filesystem MicroSD (ne pas monter Vendor surtout)

Exécuter la commande suivante pour récupérer le fichier

adb pull /vendor/etc/fstab.hi6250

Remplacer la ligne du point de montage data :

/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inline_data,inline_xattr wait,check,fileencryption=aes-256-xts:aes-256-cts

Ou

/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inline_data,inline_xattr wait,encryptable=footer,check

Par la ligne suivante

/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inline_data,inline_xattr wait,check

Remettez le fichier a sa place dans le filesystem vendor avec la commande suivante

adb push fstab.hi6250 /vendor/etc/

Redémarrer sous TWRP (recovery)

Monter seulement la sdcard

Formater le filesytem data (Menu Wipe)

Vous pouvez maintenant installer la ROM de votre choix
[P8 Lite (2017) Development] olivi25:
Yes but I don't have an error message and it tells me that everything is fine. I will test the procedure in French and I will keep you posted
[P8 Lite (2017) Development] kitamurt:
same issue here, but on fw 8.0.0.384, no way to downgrade, cos huawei shutted down hicloud servers, so cant retrieve any fw, and the device is soft bricked. read somewhere that new fws prevent custom roms to boot. btw, updated the recovery and followed all the steps, but it won't run, only goes into erecovery or twrp. i'm starting to become mad.
[P8 Lite (2017) Development] danibus:
Hi there! My mum still uses Prague (Lineage 15.1 / Android 8.1) but now Google apps refuse to update in google Play.

Also face problems with full storage even it's using SD card that is used as "internal storage" but apps refuse to update.

Is LineageOS 18.1 stable? Very important for her (and for me haha), just need whatsapp to be working, no need more XD

Can I update from 15.1 to 18.1 just flashing img file following 1st post instr. (I mean, no need to put Huawei firm again?

Do you face problems with storage space?

Thanks
[P8 Lite (2017) Development] Iconium_:
YES! It definitely is. Storage options wont do that much of an issue if your directory to save downloads and photos is to sd card (e.g yt downloads) and you most likely don't need any bloatware. get the gapps package from the above and install any other apps u want a/c to your needs. But you may have to install gboard as it definitely makes your life easier.

If you face any problems like systematic errors or battery drain, try these things;

(i) Do not install pixelify or pixel launcher or any gapps with the pixel stuff.

(ii) Reinstall from the beginning *from the stock firmware*
[P8 Lite (2017) Development] danibus:
Thanks for your reply.

Only app to be installed is gapps (as small as possible, only need google contacts / photos / gmail ) and whatsapp.

Gboard no needed, she can live with any keyboard.

As launcher I use Nova to block desktop, to avoid deleting icons (even with this icons are deleted "not by me I promised" and I have to put again).

No other apps to be installed
[P8 Lite (2017) Development] Iconium_:
stock launcher is good, you dont really need to change it.

edit: i dont think that battery life will be bad because my battery is very old and damaged
[P8 Lite (2017) Development] jomppe65:
I have been trying to flash custom rom on Huawei P8 Lite (PRA-LX1). No success yet. I am able to flash stock rom, install TWRP and unlock bootloader. I have tried many stock roms to flash custom rom on. It is not clear to me is it better to have as early version of Android and Emui as possible, or is any specific version more prefarable than others? I have done resizing partitions, applying patches etc. all according to instructions. Only once have i booted into Lineage logo but not further, it was Lineage 18.
[P8 Lite (2017) Development] Iconium_:
Get Lineage os 16 from darkjoker 360, it works on every emui build I think...

Flash it JUST AS IT SAYS (make sure to decrypt) then after first boot, go to bootloader and flash linage 18x system img file.

Then reboot to twrp and flash patches and factory reset (optional, only if it doesn't boot) then reboot into system. It should work fine. If it doesn't boot, go to erecovery and power off device. And then then turn it back on and boot. (Booting takes a loong time)

If you experience any problems (playstire crashing, not charging correctly, high temps / battery drain) START AGAIN FROM EMUI...

You can read my reply above somewhere, it has instructions

P.s: where did u get stock rom, what version is it?
[P8 Lite (2017) Development] Iconium_:
Here it is and do not install magisk. It can cause bootloops
[P8 Lite (2017) Development] jomppe65:
Thanks, I will try again starting from 16. Does it matter if the phone is on Emui 5 or 8 or Android 7 or 8? These are the versions I have had recently running on the phone: PRA-LX1C432B213, PRA-LX1 8.0.0.364(C432), NRD90M test-keys and 8.0.0.046(0C71), that 0C71-version I do not remember how it got there :cool: - Stock images downloaded from huawei-update.com
[P8 Lite (2017) Development] Iconium_:
Emui 8 only
[P8 Lite (2017) Development] Iconium_:
H

How did you install that? When I got that firmware, it gave me a Huawei (no honor) logo and booted into old emui.
[P8 Lite (2017) Development] jomppe65:
I think I installed that using dload-method. It looks like it came with Huawei P8 Lite 2017 PRA-LX1 PRA-L31HN Prague-L31HN 8.0.0.360(C432) UPPDATE.APP size 3.67 GB (3 945 730 376 bytes). At the moment I have 1st Honor logo, then Huawei at boot.
[P8 Lite (2017) Development] Iconium_:
See, Huawei after boot. I cannot do the dload method for some reason or just cuz it requires stock rom first to be installed. The update.zip file has update app in it, I just flashed the zip from twrp
[P8 Lite (2017) Development] jomppe65:
I have also installed update.zip but had to use dload and update.app when everything else failed, also erecovery did not work. Today I'll maybe try to install Lineage 16. Can I use the latest TWRP or need earlier version in the beginning?
[P8 Lite (2017) Development] jomppe65:
Also do I in the beginning need to use lineage-16.0-20201119-recovery-prague.img and do I flash it to recovery_ramdisk? Answer to myself: OK I did it now, not sure how. Combined steps from versions 16 and 18. Some extra flashing, some missed wipes etc. I had to use different Fastboot version for 18 because my original did not flash the image. Lineage 16 was unusable but booted OK and after that update to 18 was more simple and the OS has been running fine.
[P8 Lite (2017) Development] Akouly:
I bro. I need help. I installed lineage os 18.1 on Huawei mediapad T5 and succeed but I can't connect any Wi-Fi or Bluetooth. While trying to fix it with twrp. I broke system. I try to reinstall it but don't work again. The tablet reboot and goes to Huawei recovery each time. But when I try Los 16.0. The system begins loading for about 4 min but tablet reboot and Huawei recovery again...

*I have lineageos 16.0, 18.1(two latest versions) twrp darkjoker and 3.6.0 9-0 decript emui 8, gapps and nikgapps full (both for android 11)
[P8 Lite (2017) Development] Iconium_:
use twrp darkjoker android 11 edition
[P8 Lite (2017) Development] Iconium_:
reinstall stock. erecovery fails? doesnt work? get firmware from a website that givees it for free.

extract the files

find update.zip file or update_sd.zip

copy it to your tab's sd card

flash twrp and boot into it

wipe everything except vendor and sdcard

then flash the update zip
[P8 Lite (2017) Development] AltairFR:
Tips :

Install 8.0.0.402 stock rom

Boot

Install platform tools from android site, don't use minimal adb

Install TWRP 3.7

Follow my instruction on xda

Don't resize partition ,
[P8 Lite (2017) Development] Iconium_:
I cannot find that version anywhere on the web. eRecovery doesn't work anymore. (servers are down?)

The ROM states that its that version but is very old (8.0.0.046 something).
[P8 Lite (2017) Development] Akouly:
Please. When you say stock, it's the official rom of my tablet? ERecovery works fine.
[P8 Lite (2017) Development] AltairFR:
You have pra-lx1 ? Or not
[P8 Lite (2017) Development] Akouly:
Thanks a lot @DarkJoker360. God bless you again and again. Finally fix my Huawei Mediapad T5 stuck on bootloop. Thanks too to @AltairFR. I downloaded official stock rom and flash it. That deleted twrp. I setup the tablet, enable dev and USB debug. The connect to pc and reboot bootloader. Install twrp darkjoker and follow first instructions. I decrypted before run bootloader and flash lineageos with PC.
[P8 Lite (2017) Development] Iconium_:
Yeah
[P8 Lite (2017) Development] Iconium_:
erecovery doesnt work for me idk why it says getting package info failed.

@AltairFR do you know how to fix that?
[P8 Lite (2017) Development] Akouly:
I flash official rom with twrp if you have it. Not with erecovery and working fine but delete twrp after installation. You will reinstall it...
[P8 Lite (2017) Development] Akouly:
I got an issue on storage. After Los installation, everything OK but I have 256Gb SanDisk SD card so I fusion it with internal storage. It works but the internal storage doesn't show (but I can move app on it) except in twrp. At the contrary, sd is viewable in files managers but not in twrp. In fact, apps can't locate SD card path for access to the files.

Thank you
[P8 Lite (2017) Development] Akouly:
Tutorial for root with magisk please
[P8 Lite (2017) Development] Iconium_:
on twrp, flash the magisk zip file. Download magisk apk from github releases and rename the .apk to .zip. then flash the zip from twrp or sideload. before doing so, make sure to have a copy of SAME file named "uninstall.zip"!!! if you ever get into bootloops, flash "uninstall.zip" to uninstall magisk
[P8 Lite (2017) Development] Akouly:
Okay. I will do it tomorrow or Monday and text you.
[P8 Lite (2017) Development] Akouly:
Failed...
[P8 Lite (2017) Development] Iconium_:
is it in internal storage? try to save it in sdcard or sideload and try to use the full release and not canary
[P8 Lite (2017) Development] Akouly:
Yes. It is on internal storage. That's because I can't even access access my SD card. I fusion it with internal storage and works fine but after a reboot, I got missing sd card or corrupted SD card. My SD don't show in twrp...

Even otg don't show too...
[P8 Lite (2017) Development] Akouly:
After trying to flash magisk... I got bootloop when the SD is inserted. I remove, everything works fine.
[P8 Lite (2017) Development] Iconium_:
Try sideload. And what did you do to the sd card?? fusion? whats that
[P8 Lite (2017) Development] Akouly:
Sideload in twrp don't works. Starting adb.....but don't launch. Fusion : I mean mix sd and internal storage space. Have one storage(internal + SD). I have 256Gb SanDisk SD :)
[P8 Lite (2017) Development] Iconium_:
i dont get it how did you even manage to do that, it was removed in android 8. what twrp do you use? it seems like that it is broken. reinstall the android 11 edition (redownload)
[P8 Lite (2017) Development] PufferDude:
Wait, so you mean I didn't have to resize the System partition on TWRP if I'm using 8.0.0.402? And I just wasted some extra storage for use on internal storage by resizing System on TWRP?

I have 3.64GB unused storage on my Root partition now.
[P8 Lite (2017) Development] PufferDude:
You get an option on the notifications when inserting an external sdcard for the first time, to use either as Portable or Internal storage.
[P8 Lite (2017) Development] 8riga9:
I can confirm that this happened to me also. This issue makes this ROM pretty much useless since once you get asked if you want to format the SD card to use it as an extension to the internal memory (which is exactly the reason why I chanced the stock ROM to LineageOS) and then reboot the system for the first time, the SD card cannot be read anymore. The ROM is barely usable cause once you install a couple of apps it starts slowing down A LOT, which makes it unusable on a daily basis. I wanted to resurrect this phone but I went back to the stock rom, with unlocked bootloader and root access, but still useless as before due to its small internal memory.

Anyway, for root access with Magisk: download Magisk v18.1 zip file from the internet and flash it with TWRP then reboot. Install the latest Magisk app apk (v27.0 on March 3rd 2024). Open the Magisk app and you'll be asked to upgrade it. Choose to install it through Magisk itself (not via recovery) and then reboot. Open the Magisk app and you'll be asked to upgrade it again. Do it again and reboot. Now you can use Magisk and you'll have root access. I haven't been able to directly install the latest version of the zip file (v27.0) on this phone cause the app asked me to upgrade it anyway but the option to do it on the app itself is not present, so I used an older version then upgraded it in the app (don't ask me why the option is there on the old version only).

Anyway, have you found a fix to the SD card not being recognised anymore after a reboot? Do you, or someone else, know another method or another ROM to fix the small internal memory issue of this phone? Otherwise I'll just throw it in the bin.
[P8 Lite (2017) Development] Akouly:
I finally installed official stock rom. I use my SD card as external storage but I don't know why but when I install app with apk file, it install it on SD card lol. My SD is format exfat and can't be read on pc or others devices. I can access files on both storage on my tablet.
[P8 Lite (2017) Development] 8riga9:
Can you please tell me what version of the stock ROM did you install? I went back to Android 8.0 with EMUI 8.0 but it doesn't allow me to use the external SD. I know that the format of it can only be used on the phone/tablet, but I can sacrifice the SD card if it works 😂 When I was using Lineage OS I used an app called AppMgr III (App 2 SD) that has the option to install all future apps on the external SD card, and that's exactly what I want and in fact it worked. You need root access but you can check it out to revert back to internal storage if you want to install the apps there and you can also move the already installed apps
[P8 Lite (2017) Development] 8riga9:
421

Can you please tell me what version of the stock ROM did you install? I went back to Android 8.0 with EMUI 8.0 but it doesn't allow me to use the external SD. I know that the format of it can only be used on the phone/tablet, but I can sacrifice the SD card if it works 😂 When I was using Lineage OS I used an app called AppMgr III (App 2 SD) that has the option to install all future apps on the external SD card, and that's exactly what I want and in fact it worked. You need root access but you can check it out to revert back to internal storage if you want to install the apps there and you can also move the already installed apps
[P8 Lite (2017) Development] Iconium_:
idk i used stock again (honor device but huawei rom) and only have the old 8.0.0.042 rom.. but sd card seems to be read fine on my pc. maybe you wanna install hisuite which will install huawei drivers.
[P8 Lite (2017) Development] amirarsalan_rm:
When I use this code, it gives me this error

Phone Unlock

FRP Unlock

fastboot flash system lineage-18.1-20220523-UNOFFICIAL-prague.img

Sending sparse 'system' 1/6 (460797 KB) OKAY [ 12.073s]

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

fastboot: error: Command failed
[P8 Lite (2017) Development] Iconium_:
You probably didn't wipe the `system` partition. Restart again from Stock EMUI rom.
[P8 Lite (2017) Development] Omar_62:
hey when i was doing this i actually wiped vendor and now my phone is just a paperweight bricked phone. any way to flash a stock rom back?
[P8 Lite (2017) Development] Iconium_:
If eRecovery works, try re-installing the OS
[P8 Lite (2017) Development] Omar_62:
it doesnt, only in fastboot
[P8 Lite (2017) Development] AltairFR:
Just flash system, vendor, product, odm, kernel partition with fastboot flash command
[P8 Lite (2017) Development] Omar_62:
oh thank you
[P8 Lite (2017) Development] amirarsalan_rm:
I have installed this ROM, but I have a problem, I can't receive or send SMS
[P8 Lite (2017) Development] kaiusto:
Is this a gsi image? Installation of NikGapps fail
[P8 Lite (2017) Development] Iconium_:
reboot recovery. fixed errors for me.
[P8 Lite (2017) Development] Iconium_:
Flash a kernel from fastboot mode. There are kernels here on this device's thread on XDA.
[P8 Lite (2017) Development] kaiusto:
I don't actually get what you mean, I followed the guide, but this seems to be a GSI and NikGapps doesn't work on it.
[P8 Lite (2017) Development] Iconium_:
Pretty sure its not a gsi (i could be wrong), as the files say its for this device.

Rebooting back to recovery may solve the issue. (worked for me)

or you can boot back into the custom rom, then reboot to recovery and flash the zips. I think you need to wipe smth like data and cache if youve booted to the rom once.
[P8 Lite (2017) Development] latviandude:
Battery usage with Lineage 18.1 on PRA-LX1
[P8 Lite (2017) Development] amrqqq:
use pretoriano80 twrp !
[P8 Lite (2017) Development] amrqqq:
erecovery wont work?
[P8 Lite (2017) Development] B3rtm3n:
When you can reboot into e-recovery there is no problem for reinstalling the system.

I had same problem, instead of the wipe option choose the format option and format the partitions (format it in the same format as it is, do not change f.ex. ext4 into ext3. But format it into the same format. Once I did that erecovery would work.

https://xdaforums.com/t/rom-11-darkjoker360-aosp-11-for-huawei-p8-lite-2017.4220705/post-85025177

Not every recovery was working to get the data decrypted and I used this recovery for that to flash fstab.hi250b.zip

Once flashed I installed this recovery and proceeded with the installation
[P8 Lite (2017) Development] kitamurt:
tried that in the past, but never worked, only with android 9 it went fine. maybe that was due to the new fw that prevented booting any android rom above android 9. anyway, i managed to downgrade to 8.0.0.360, and did the following steps:

unlocked bootloader

flash twrp 3.5.2 android 11 unofficial

format data, reboot twrp

flash fstab.hi6250b.zip, format data, reboot twrp, normal wipe (data/system/dalvik)

reboot bootloader, flash system.img

reboot twrp, resize system, flash nikgapps, flash nfc.zip, reboot system

now stuck into lineage logo and wont load main screen. did i miss some step?
[P8 Lite (2017) Development] AltairFR:
there are two possible causes:

- the installation off the zip patch fstab file doesn't work. After installation under twrp, you must look the TWRP log to check if you found an error.

- the latest gapps also prevent the phone from booting, so don't install if and try to boot
[P8 Lite (2017) Development] speedson:
Yeah me using twrp_p10_lite_0.5_test.img and the 0.6 version since today...your coming from stock rom or custom rom? if custom and it was rootet you need to replace the ramdisk image with the stock one to remove old root ramdisk.

so if you came from stock rom at first it is bull**** that you couldnt downgrade the firmware...latest p10 lite warsaw is B398 my actually downgradet to B378. if that is not possible i must a magican or what xD

just download the matching firmware for your device from

Search - AndroidHost.RU

Check multiple download links at the same time.

androidhost.ru

after downloading the Firmware you want open it go to software/dload and there you see 4 folder and 1 updatesd.zip.

extarct the 1 folder for your device and the updatesd.zip into a createt folder you named dload.

pick a sdcard and copy the dload folder to sd card...format the card before but it should work without formating to.

then put sd card into the phone and start the phone by press and hold Vol+ and - and Pwr until the Huawei logo on screen...the update begins...wait for ending the firmware flash...after that you have option to delete data/reset and the cache. then reboot and tada.

now comes a fix if erecovery package not veryfied but it should work for this here to. you can also download the HWOTA8_PRA from

HWOTA8_PRA.zip - Devdrive - File Hosting For Publishers

Download file - HWOTA8_PRA.zip

devdrive.cloud

in the folder oeminfo/pra you see some files...choose the one for your device and put it on desktop. rename it for exsample from PRA_LX1C432 to PRA-LX1C432.img ok you understand? name keeps like it is and just .img is to add.

start phone in to bootloader(unlocked logical^^)

fastboot flash oeminfo PRA-LX1C432.img

note...i did found this oeminfo fix today and couldnt test until now^^ have found it on 4PDA

so if the fastboot flash did work its a great solution for all who cant do backup before do anything ;)

Ok next...you coming from stock rom and have twrp installed...me using twrp_p10_lite_0.6_test.img

reboot recovery

connect phone to pc and put the fstab.hi6250b.zip to external sd card. if you want put the aosp or lin 18.1 image into external sd to

if done

install from external sd the fstab.hi6250b.zip

go to wipe

data format

there is no need to reboot now

we keep being in wipe menu and delete

cache

dalvik

data

internal storage

system

now reboot to recovery

iinstall the firmware you want from external sd...cause if i do flash it by fastboot command and restart to recovery for expand system partion comes a error. think it was error4 but not sure now^^.

if system is flashed reboot to system to find out that system boot initial startup without bootloop. it should do so.

when it doing so...reboot to recovery and go on the next steps.

hope that will help you even if there was a lot of text :)

solong

speedson 🤘 🙃 🤘
[P8 Lite (2017) Development] Menouar-29:
hi guys has anyone tried to get viper4android working. no matter what I do I can't get it to work it keeps showing no driver found when I tap ok it installs them, reboots, and when I open it it still shows no driver found.
[P8 Lite (2017) Development] amrqqq:
i was using android 11 with this twrp . no issues
[P8 Lite (2017) Development] AltairFR:
did you follow my instructions ?
[P8 Lite (2017) Development] Frost411:
Use magisk and JDSP module! Thanks!
[P8 Lite (2017) Development] olivi25:
For me you install Fstab Hi6520 before Format Data and wipe Data. and the GoogleApps for me it's NikGapps-basic-arm64-11-20201231-signed.zip , the NikGapps-core-arm64-10-20210514-signed.zip are bad (for me).
[P8 Lite (2017) Development] AltairFR:
Install Fstab Hi6520​

Install > fstab.hi6520b.zip

check TWRP log (recovery.log), see https://rootzwiki.com/topic/24120-how-to-get-a-log-from-twrp/

if you find a error modify fstab.250 manually (adb pull and push)

ok

Do not Wipe the vendor partition !!

Reboot in system, normally your phone must started now

NikGapps after january 2021 have bug installation problems and prevent to start, use NikGapps december 2020 version

I have corrected your post