[Lenovo P11] amiruls:
Hi guys if you're having issues via flashing through QFIL regards of sahara fail issues another way would be flashing said files via fastboot methods

To start, download the attached files for the device . Extracting the zip file should give you a file named

payload.bin.

Use payload dumper to extract payload.bin.

You can grab payload_dumper from here (Windows and macOS), here (linux), or here (github, any OS).

For the download link from github, make sure you're running python 3.6 or higher. Run payload dumper with:

python payload_dumper.py payload.bin

The image files will be extracted to a folder named output.

You can start flashing from the standard bootloader or fastbootd. The first three lines below will flash the stock recovery then reboot into fastbootd.

Code:

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot reboot fastboot

fastboot flash --slot=all recovery recovery.img

fastboot flash --slot=all boot boot.img

fastboot flash --slot=all dtbo dtbo.img

fastboot flash --slot=all abl abl.img

fastboot flash --slot=all aop aop.img

fastboot flash --slot=all bluetooth bluetooth.img

fastboot flash --slot=all cmnlib64 cmnlib64.img

fastboot flash --slot=all cmnlib cmnlib.img

fastboot flash --slot=all devcfg devcfg.img

fastboot flash --slot=all dsp dsp.img

fastboot flash --slot=all featenabler featenabler.img

fastboot flash --slot=all hyp hyp.img

fastboot flash --slot=all imagefv imagefv.img

fastboot flash --slot=all keymaster keymaster.img

fastboot flash --slot=all modem modem.img

fastboot flash --slot=all multiimgoem multiimgoem.img

fastboot flash --slot=all qupfw qupfw.img

fastboot flash --slot=all tz tz.img

fastboot flash --slot=all uefisecapp uefisecapp.img

fastboot flash --slot=all xbl_config xbl_config.img

fastboot flash --slot=all xbl xbl.img

This next section will clear the super partition (contains odm, system, system_ext, vendor and product). It's absolutely necessary. Clearing the super partition will help avoid the following error, which can come up if you had manually flashed ROMs on both slots previously.

Code:

Resizing '<partition name>' FAILED (remote: 'Not enough space to resize partition')

Example: Resizing 'product' FAILED (remote: 'Not enough space to resize partition')

Before deleting, you can check the names of the logical partitions on your phone using fastboot getvar all. Scroll up to the section that looks like this:

Code:

(bootloader) is-logical: odm_a:yes

(bootloader) is-logical: product_a:yes

(bootloader) is-logical: system_a:yes

(bootloader) is-logical: system_ext_a:yes

(bootloader) is-logical: vendor_a:yes

or

(bootloader) is-logical: odm_b:yes

(bootloader) is-logical: product_b:yes

(bootloader) is-logical: system_b:yes

(bootloader) is-logical: system_ext_b:yes

(bootloader) is-logical: vendor_b:yes

Delete everything with the commands below:

Code:

fastboot delete-logical-partition odm

fastboot delete-logical-partition system

fastboot delete-logical-partition system_ext

fastboot delete-logical-partition product

fastboot delete-logical-partition vendor

fastboot delete-logical-partition odm_a

fastboot delete-logical-partition odm_b

fastboot delete-logical-partition system_a

fastboot delete-logical-partition system_b

fastboot delete-logical-partition system_ext_a

fastboot delete-logical-partition system_ext_b

fastboot delete-logical-partition product_a

fastboot delete-logical-partition product_b

fastboot delete-logical-partition vendor_a

fastboot delete-logical-partition vendor_b

All logical partitions can be deleted to free up space in the super partition.

Recreate partitions a and b with the commands below.

Code:

fastboot create-logical-partition odm_a 100000

fastboot create-logical-partition odm_b 100000

fastboot create-logical-partition system_a 100000

fastboot create-logical-partition system_b 100000

fastboot create-logical-partition system_ext_a 100000

fastboot create-logical-partition system_ext_b 100000

fastboot create-logical-partition product_a 100000

fastboot create-logical-partition product_b 100000

fastboot create-logical-partition vendor_a 100000

fastboot create-logical-partition vendor_b 100000

Flash the rest of the images.

Code:

fastboot flash odm odm.img

fastboot flash system system.img

fastboot flash system_ext system_ext.img

fastboot flash product product.img

fastboot flash vendor vendor.img

fastboot flash --slot=all vbmeta vbmeta.img

fastboot flash --slot=all vbmeta_system vbmeta_system.img

Assuming everything flashes with no errors, return to recovery, do a factory reset and reboot.

With that said with everything done here there"s risk too say if it works for me maybe it wont work for you but regardless there should"nt be any issues with this.

Credits = @gunalarix8 on this guide

https://xdaforums.com/attachments/t...j716f_cn_open_user_q00209-3_r_zu-zip.5612613/ - OTA 13.0.430