yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Development] worriedaddy:
Thanks @AltairFR , to be sure that I understood well, the INstall of the Fstab should be done before the Wipe Format? Right?

Edit:

I was able to open the log, thanks for sharing the info.

Here the results:

Installing zip file '/external_sd/fstab.hi6250b.zip'
Unmounting System...
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:has_legacy_properties: Found legacy property match!
I:Legacy property environment initialized.
about to run program [/sbin/busybox] with 3 args
Emui8 oreo decrypt fstab
Honor 7x
By Sudeep Duhoon
run_program: execv failed: No such file or directory
run_program: child exited with status 1
minzip: Can't create target file "/vendor/etc/fstab.hi6250": Read-only file system
minzip: Extracted 0 file(s)

Done
script succeeded: result was [0.999992]I:Updater process ended with RC=0
I:Legacy property environment disabled.
I:Install took 0 second(s).
Updating partition details...
I:Data backup size is 0MB, free: 9721MB.
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:operation_end - status=0
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'copylog'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'

So probably this should be done before as you were pointing out. Let me try it another time.
[P8 Lite (2017) Development] olivi25:
Yes I confirm it must be done before
[P8 Lite (2017) Development] olivi25:
@DarkJoker360

Everything works fine Except, I have a problem I would like to know if it's only me, I listen to music or other for example with VLC but with headphones jack and there the sound is almost inaudible rotten. No problem with the phone speakers. I tested different headphones same problem. it's the same problem with an internet stream (live radio for example).

Can you help me?
[P8 Lite (2017) Development] AltairFR:
The install file fstab.hi6250b.zip doesn't work, you have an error in recovery. log :

minzip: Can't create target file "/vendor/etc/fstab.hi6250": Read-only file system

Anyway I never saw this patch work :-)

-------

So

In TWRP mount only SDCard (unmount vendor)

On PC ADB type

adb pull /vendor/etc/fstab.hi6250

You will have fstab.hi6250 file in adb folder

Edit fstab.hi6250 and replace the line

/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

by

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

Push the fstab.hi6250 into mobile by typing this

adb push fstab.hi6250 /vendor/etc

you have rewrited fstab.hi6250 file

Now, you can reboot the phone and format the partition data
[P8 Lite (2017) Development] AltairFR:
Hi

I'm confirm the bug in my smartphone
[P8 Lite (2017) Development] hardcorehenry:
More precise, after manual modification of fstab.hi6250 it need to be put on external sdcard, then reboot into TWRP, section mount, mount vendor. Next enter section Advanced, Terminal and run:

mount -o remount,rw /vendor

Now edited fstab.hi6250 can be copied with File Manager to /vendor/etc and it need to be given proper permission: chmod 0644. After that data can be formatted.
[P8 Lite (2017) Development] worriedaddy:
I was reading about the manual editing of the fstab and tried as well, but I should have done it before the format :)

I'll update my guide later, because there is still something that is not working.

I've installed the LineageOS image and the NFC fix at the moment (so no GApps).

For the first time I'm seeing the LineageOS logo, but that's it is not moving forward. Looks like that is not booting. What should I try?
[P8 Lite (2017) Development] AltairFR:
The phone will not start completely if your data partition is not clean. It must be unencrypted and completely reformatted.

And since you also wiped the vendor partition which is very, very bad. You have to start the whole procedure again from the dload :-)
[P8 Lite (2017) Development] worriedaddy:
It works! thanks @hardcorehenry and @AltairFR . I made, and will post the updated guide later in the day. Let me test it :) You both are great, thanks!
[P8 Lite (2017) Development] worriedaddy:
I'm currently able to boot Lineage OS, however if I try to boor in recovery mode it shows the EMUI recovery, not TWRP. I probably forgot to install it before booting the system. Is there a way to install it from LineageOS without redoing everything? I was eager to try the system before installing the NikGapps and now I don't know how to install apps and store.

Edit: I'm dumb :) reboot with adb bootloader and installed twrp again and the nikgapps , but twrp is not install as an app.
[P8 Lite (2017) Development] AltairFR:
There are two recovery on the phone. EMUI recovery and TWRP recovery. To start with TWRP recovery, just press vol up + power without the USB cable connected
[P8 Lite (2017) Development] RadhixAwp:
disable audio equalizer in audio fx app and you should be good to go
[P8 Lite (2017) Development] AltairFR:
Yes, problem solved after deactivating audiofx for headphone connected

Thank you
[P8 Lite (2017) Development] olivi25:
same for me

Thank you
[P8 Lite (2017) Development] piterconlai:
Hi all , do bluetooth headphones and bluetooth smart bands work with this rom?
[P8 Lite (2017) Development] AltairFR:
Bluetooth headphones work, I haven't test smart bands
[P8 Lite (2017) Development] piterconlai:
Hi all . i follow this step

When i click on " resize system appear an error 1 " can some one help me ?
[P8 Lite (2017) Development] speedson:
Yeah Smartband working with AOSP11, Fluid-Rum and with this one. The Band and Phone connect to each other and the Xiaomi Smartband App synchronize Data from Band to App fast and correct. The Notification on Band by incoming Message from whatapp telegram and all other that you configure for that or what ever you setting up in the App Settings.

solong

speedson 🤘 🙃 🤘
[P8 Lite (2017) Development] speedson:
I think i had same bull**** error time ago but with a simple reboot into TWRP it was done and rezise work then.

I dont know what it exactly is the Error 1 :)

solong

speedson 🤘 🙃 🤘
[P8 Lite (2017) Development] piterconlai:
The strange thing is that the "resize" option appears to me only if I format the "Vendor" partition if not the format does not appear

I followed these steps precisely and as TWPR I use is '' Android 11 Unofficial TWRP ''

So i need only to restart TWRP ?
[P8 Lite (2017) Development] ponyo71:
ROM is great, but USB OTG Ethernet (ASIX AX88772, https://plugable.com/products/usb2-otge100/, Airplane Mode on, Wifi+Bluetooth off) isn't working although it worked on EMUI8. No icon showing up in status bar, no connection. Perhaps this would help you fixing it: https://android.stackexchange.com/questions/225643/how-to-make-ethernet-work-on-android-over-otg (and this https://stackoverflow.com/questions/38298339/enable-ethernet-in-aosp-for-lollipop, https://github.com/gxben/aosp-ethernet)

OTG in general seems to work, tried it out with a card reader.

Spoiler content hidden.

catlog and dmesg even detect the device:

06-03 11:17:38.327 0 0 I [ 7219.610290s][2021:06:03 11:17:38][pid:7453,cpu0,kworker/0:3]asix 1-1: 1.0 eth0: register 'asix' at usb-hisi-usb-otg-1, ASIX AX88772 USB 2.0 Ethernet, 8c:ae:4c:eb:7a:c4

catlog full log: https://bin.snopyta.org/?4a22928cbe1d8800#AmyA1iSmFpsde7WFEabWKWMPSSsdvUNYxNpqiyQMM2K3

dmesg full log: https://bin.snopyta.org/?494f344fa32b3b88#GBUsj2jf66F9pctJ7DVdm4QPPQWjqfp66u9zcfrJ2T7r

> dumpsys ethernet
Can't find service ethernet

Spoiler content hidden.

ifconfig only shows lo and dummy0.

Spoiler content hidden.
[P8 Lite (2017) Development] vjjmaster:
Thanks to everybody for such an AWESOME tutorial. Page 3 and 4 were very very helpful. But the problem I am currently facing is how to pass SafetyNet with Magisk and LineageOs Huawei P8 Lite 2017. Thanks in Advance for any and all assistance. I have also been having problems with MagiskFrida, I don't know if it's just this ROM, is everybody having the sample problem with Magisk Frida server, I hope not this was initially the main reason I Installed. This. Please help me look into this. Thanks in advance for your assistance.
[P8 Lite (2017) Development] piterconlai:
Thanks MAN ! Now sistem start for me !

I Try the Rom really really good only 2 things . Thanks @DarkJoker360

- Is possibile to activate the call recording ?

- The voice function " hey google " seems to be not activable ?
[P8 Lite (2017) Development] piterconlai:
Hi, have you installed any modified kernels?

Because I can get to 2.5 h of active screen at most
[P8 Lite (2017) Development] latviandude:
Hi. Nope, I'm using stock kernel. Try leaving ur phone to charge for the night and then see next day if you get any improvments. ;)
[P8 Lite (2017) Development] vjjmaster:
I think I have got the same problem but I changed to dark mode and battery auto-economy mode from 75%. Screen time isn't still great but I can leave with it. Mostly using this phone for debugging. My main problem is while using the USB device my Phone constantly disconnects and reconnects is there any fix for this? I can't use the FRIDA server with this problem. I also need a way to uninstall Pixel Launcher, which I installed via TWRP. Thanks
[P8 Lite (2017) Development] piterconlai:
Hi, I have tested the phone after a full charge and I reach maximum 3h of active screen. I also tried doing a factory reset but nothing has changed

I noticed that the phone gets very hot compared to the stock rom

maybe need to change some parameters with some kernel root apk?
[P8 Lite (2017) Development] latviandude:
I'm wondering what are your usage, what apps are you using etc ? Also what firmware are u on ? And how old are your battery ?

No overheating here... When exactly it gets hot ? Tell us more information please.
[P8 Lite (2017) Development] latviandude:
I'm using dark mode too. Higher brightness level will drain more battery that's a fact..

Maybe your USB port is broken or something ?

For uninstalling Pixel Launcher use TWRP/File manager or some type of uninstall flashable if you have one idk. You gotta figure it out yourself.
[P8 Lite (2017) Development] piterconlai:
I first downgraded to firmware 8.0.0.360 PRA LX1

I use the classic whatsapp, spotify apps

The battery has 3 years of life but this screen problem with only 2.5h does it with this rom as with the stock rom I arrive without problems at 6h

After a few hours of use, the smartphone gets hotter, I don't know what this could depend on since it never did. I noticed that the signal icon goes away and comes back can it be that?
[P8 Lite (2017) Development] vjjmaster:
My Huawei Model is the PRA-LX1, once I switch back to stock ROM. the USB and everything work well. Whereas in Lineage OS, My phone once connected to the computer constantly connects and disconnects irrespective of the connection mode which I choose on the phone. {File Transfer, USB tethering, MIDI, PTP} etc in short no matter what option I choose it constantly does that. I have Changed quite a FEW USB, the problem persists only with LINEAGE OS. My Primary aim of using LINEAGE was because of MAGISK AND FRIDA. I would love any assistance I could get with respect to this. Thanks
[P8 Lite (2017) Development] danibus:
Hi folks! I'm just looking for a Lineage or AOSP Rom for P8 Lite 2017, as you know original Huawei firm eats almost all space in our phones.

I will just give my phone for my parents, so they don't need performance or play actual games, just use to call, send photos using whatsapp and so.

So I really need more space available in phone or use adaptable storage.

I did use adaptable storage with Huawei original firm (android 7 I think) in the past... works well in the beginning but at the end faced same problem with storage.

This thread seems ok, Lineage+stable rom.

Could someone tell me how many space available after install rom+gapps? Thanks

PD: I just trying to install TWRP but my phone is locked and I think unlock method not working today... hmmm.... will look for a solution... very sad at first step hahaha
[P8 Lite (2017) Development] AltairFR:
Very good job.

Have you fixed the miracast / cast bug that reboots the phone?
[P8 Lite (2017) Development] lapourganer:
Hi, I try to install lineage OS on my P8 Lite 2017 16Gb but as I understand, the system partition is too small (only 2.2Gb, cf. capture). As I saw on the internet, it seems risky to expand partitions.

Am I the only one to face this problem ?

Really need I to save an restore cust, version, vendor and product to reduce userdata and expand system ?

Capture: end of parted /dev/mmcblk0 and p
[P8 Lite (2017) Development] piterconlai:
Great job I noticed two bugs after the update:

- If you press the power button for a few seconds to restart the system, it locks and unlocks after a few minutes, "system ui blocker" is written

- telephone reception comes and goes, in fact, while I am on a call, the line often drops. This bug does not always happen but when it happens I realize it since the phone overheats a lot and the signal continuously searches the telephone network
[P8 Lite (2017) Development] bogilase:
Thank you for fixing basic integrity. I've been unsuccessful for the past 2 days trying to make Safetynet work on the 20210511 release. Now after using MagiskHide and the MagiskHide Props Config, Safetynet is passing both integrity checks.

I've noticed however that ADB isn't working. I wonder what the problem might be and if others are experiencing the issue. I'm getting:

F:\>adb devices

List of devices attached

9DC7N17919002178 unauthorized

And when I try an "adb install" I get:

F:\>adb install somerandom.apk

error: device unauthorized.

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

adb: error: failed to get feature set: device unauthorized.

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

- waiting for device -

Also, no adb fingerprint/confirmation dialog appears when I connect the USB cable.
[P8 Lite (2017) Development] DarkJoker360:
Not yet.
[P8 Lite (2017) Development] DarkJoker360:
Magisk is breaking adb.
[P8 Lite (2017) Development] bogilase:
Thanks for the info. I googled a little bit and it seems that turning off MagiskHide and rebooting the device fixes the problem. Turning MagiskHide on and rebooting makes the problem reappear. Well, at least there is a way to work around the problem.
[P8 Lite (2017) Development] lapourganer:
So, looked further into the composition of the lineage img file. I found only one partition, only full at 83%. Withe resize2fs I tried to decrease the size by 100M to fit in my ROM. But it doesn't work because (as I understand) there is 0 free inodes. But I don't have enough knowledge to go further by now.

Does any one have any idea ?
[P8 Lite (2017) Development] vjjmaster:
Look for a Chinese stock ROM for this Device and flash it to the device it will increase the space from 2GB. Don't alter the ROM. Don't change the ROM. Use as is
[P8 Lite (2017) Development] vjjmaster:
To Unlock your phone, you have two options the Paid by DC-Unlocker or free by PotatoNV. If you are interested in the FREE Bootloader unlocker Note it involves opening the device. On the previous page of this post, you will find detailed instructions which put together to help out. 1st READ through and try to understand. If you are having problems getting your UNLOCK CODE you can reset to any 16Digit like 2222222222222222 via "PotatoNV-next-v2.1.0-x86.exe". This involves opening the phone and short-circuiting the test pin. This was how I did it. It's FREE...
[P8 Lite (2017) Development] lapourganer:
Thanks for your answer.

Thanks, copy that.

It's true that I was not enough precise. I have PRA-LX1 model, PRA-LX1 8.0.0.406(C432) software, there is no Chineese software for this model. As i saw, only 2 models have Chineese ROM; PRA-TL10 and PRA-AL00 with B211 firmware (android 7) for both. Wich firmware do you advice for my device ?

EDIT:

It seems that Huawei ROM server are now down and it's fairly complicated to find somewhere else.

I've been able to downgrade to 8.0.0.390 (C342). My bootloader been re-locked but now, in developer options, allow to enable OEM unlock is disable.

What's the next step ? What's precisely ROM I need and where I can find it ?
[P8 Lite (2017) Development] elgatofeliz:
Hey guys,

I'm trying to flash this to a LX1-PRG and it seems like the provided System Image is simply too big for the system partition. The Partition has 2014mb and the image is ~2300mb. Is there a point that i dont get or is it possible to Expand the system so the image fits and there's enough space for the gapps?

Thanks for reading :)
[P8 Lite (2017) Development] lapourganer:
Hi,

I have the same issue and I'm currently on it. You can read previous posts about that.

What I know for now:

Edit partitions on the device is very risky. Just around the system partition there are other important partition. So to expand system you have to move this partitions, doesn't sound good. If you mess this partitions, your phone is bricked.

Edit the .img file also seems risky. I've tried with resize2fs but got error about free inode. In addition,

So he advice me to install an old Chineese ROM to get a bigger system;

So for now, I'm looking to which version I have to get and from where.
[P8 Lite (2017) Development] elgatofeliz:
Thanks a lot, I hope we find the right rom

I just took a brief look and found this.. but there is no rom that has the right size..

Huawei P8 Lite 2017 (PRA-LX1) all official firmware

Huawei P8 Lite 2017 (PRA-LX1) all official firmware for update or unbrick your device.

huawei-update.com

Also, since im looking just to get the device run without all that bloat and spyware, A more lightweight ROM would do as well. Lightweight with good battery life would be the basic criteria.. If someone has any recommendations :)
[P8 Lite (2017) Development] lapourganer:
What do you mean ? These are more than just the system partition, it's most likely compressed. But the problem is that the huawei update server are down for public. All download links send to the dead update.hicloud.com

We're looking for the same things
[P8 Lite (2017) Development] bogilase:
The system partition is resized using TWRP_3.5.2-prague_DarkJoker360_20210508.img. What truly helped me install this ROM is this step-by-step post (thanks vjjmaster ): https://xdaforums.com/t/rom-prague-11-lineageos-18-1-for-huawei-p8-lite-2017.4275551/post-85133691. I just followed the steps as best I could and it worked. You also need to downgrade first the stock rom to a version at least 8.0.0.360 and lower than 8.0.0.400. This information is already posted on the first page of this thread. Hope it helps.
[P8 Lite (2017) Development] lapourganer:
Ok, I think I got it !

My initial situation: P8 Lite 2017 PRA-LX1 (16Gb), with build PRA-LX1 8.0.0.410(C432), system partition was too small to flash Lineage 18.1.

What I did:

Download Huawei Honor 8 Lite PRA-LX1 PRA-L31HN hw eu HLRCF Prague-L31HN 8.0.0.375(C432) Firmware 8.0.0 r1 EMUI8.0 05014GNH [androidhost.ru].zip

Spoiler content hidden.

Extract dload folder at root internal memory (in MTP, so not the real root)

Poweroff phone, unplug it, Press VOL- and VOL+ and POWER unless it says it update

Your phone is stock, bootloader relocked

Reboot is automatic, make initial config, I set up WiFI but probably not necessary. EDIT2: Internet access probably needed. If OEM keep disabled, search for updates without installing it.

Enable developper option, enable debugging, use adb reboot

Go again in developper option, enable OEM unlock. If you can't, just disable developers option and enable it back, it shoul be ok.

Use adb reboot bootloader now unlock bootloader with fastboot.exe oem unlock *YOUR CODE*. I get code with potatoNV and it doesn't have change with update.

Now yout phone will reboot and erase all data, just wait

Once again make initial config (this time you don't need WiFi), enable developers options, enable USB debuging, use adb reboot bootloader

Now flash the apropriate TWRP fastboot flash recovery_ramdisk .\TWRP_3.5.2-prague_DarkJoker360_20210508.img

Rebbot, go to recovery adb reboot recovery

Now df show me a 2.8G /system partition !!

EDIT:

So, i followed this post expect during flash from TWRP I got an error. So I flashed with fastboot, and back in TWRP I installed fixes and Gapps and now all works as perfection !! Thanks for this amazing firmware !
[P8 Lite (2017) Development] lapourganer:
Thanks ! I saw this detailed guide post but i was stuck with the system partition size. I just posted what I did to downgrade in details, hope it helps others.
[P8 Lite (2017) Development] bogilase:
To resize System, in TWRP:

Press the Wipe button, then Advanced Wipe button, then you check System partition, then press Repair or Change File System, then press Resize File System.
[P8 Lite (2017) Development] lapourganer:
Now all is ok thanks to the downgrade. But before this button was not present.
[P8 Lite (2017) Development] elgatofeliz:
So I managed to Downgrade by flashing the ZIP via twrp and now system has 2.8b.. installed LOS18.1 and now it gets stuck in Bootloop.. any suggestions?
[P8 Lite (2017) Development] bogilase:
Maybe you did not resize System from TWRP. Also, I followed these steps: https://xdaforums.com/t/...for-huawei-p8-lite-2017.4275551/post-85133691 for the entire install process.
[P8 Lite (2017) Development] lapourganer:
Are you sure you use the good recovery ? This for Android 11 ?
[P8 Lite (2017) Development] AltairFR:
Bootloop caused by a encryped data filesystem.

How did you decrypt the data partition?
[P8 Lite (2017) Development] elgatofeliz:
Okay, so I managed to get this ROM to work after all. The two steps that made the difference are:

Flashing the update_sd file from the zip on [androidhost.ru] in lapourgander's post via TWRP to get bigger system partition,

And flashing the fstab.hi6250, editing it manually on a PC (only replacing the line like described by vjjmaster) and putting permission 0644 to it. Without the fstab edited and permission, the ROM got stuck in booting.

Thanks to everyone here for helping :)

Thanks to Darkjoker360 for the ROM :)
[P8 Lite (2017) Development] 11spqr:
Hello everyone.

I've also jumped the wagon (RNE-L21 here).

Finally I've installed properly (think so) the LOS on my device.

Firstly I had to edit fstab.hi6250 manually as in @vjjmaster collected tutorial. Installing downloaded file from @DarkJoker360 and his TWRP has caused many random unpredictable device behavior, ie: bootloop, sdcard corruption, slowness, device was getting hot, battery drain, camera and gallery app problems. Reboot didn't helped at all.

Why this happened I have no idea, my device differences with 'prague', maybe apps that I'm using(phone is my daily driver) or smth else, DUNNO.

Then I've done everything else from OP manual.

Now everything seems to be working fine, Phone, SDcard, camera, gallery, root(Magisk), BT(car hands free, bands,etc.), WiFi.

But in logcat I have a looping error:

I adbd initializing functions

I adbd opening control endpoint /dev/usb-ffs/adb/ep0

E adbd failed to write USB descriptors: No such process

it does not matter if USB debugging is on or off in dev options, or USB cable is connected or not

and also a Wifi related error with wifi connected:

E WifiHAL enter wifi_get_link_stats

Rest errors seems to be related with Huawei signal indicator workaround.

Overall ROM is stable, fast and most of all supported by @DarkJoker360 (as I mention I'm using it as my main driver).

Thank you so much #DarkJoker360 for this ROM and your hard work.

Bests,

P.
[P8 Lite (2017) Development] m4rcs90:
I managed to flash the ROM with the NikGApps core, but the Google Play Store App doesn't show up.

When I flash NikGApps the installation is always succeeding.

What I'm doing wrong here?