[Lenovo Vibe P1 Guides, News, & Discussion] m0b:
Thanks to:

Easyloy for Recovery

Ampher for idea

rgusev for bring to idea life

alximiktik for bring needed files

Flashing ROM with QFIL:

Getting ready:

Download and install on your PC:

vcredist_x86.zip

QPST_2.7.422.ZIP

Qualcomm_USBDriver_2.1.0.5.zip or Qualcomm_USB_Drivers.zip

Turn off your Vibe P1.

Hold Volume Up key and plug in USB cable conected to PC.

Open Device Manager on PC (press win+r and type "mmc devmgmt.msc" without quotes) then seek Qualcomm Lenovo HS-USB QDLoader 9008 in COM & LPT ports.

If you can see Qualcomm Lenovo HS-USB QDLoader 9008, you are ready to flash!

Flashing ROM:

Downoad QFIL ROM ( for exampe one of this: https://yadi.sk/d/hY3kNWJGrnpCU?ncrnd=5389 ) and unpack it.

Find QFIL in your Stary menu and launch it.

Select Qualcomm Lenovo HS-USB QDLoader 9008 (COM*) port by using "Select Port..." button

Click "Browse..." near "Programmer patch" field and select prog_emmc_firehose_89**.mbn file from the ROM's folder.

Click "Load XML…" and select "rawprogram0*.xml" file and then select "patch0.xml" file.

Press "Download" button and wait untill it ends (reboot or "ready" message).

If "ready" message appears and device does not go to reboot, then hold Volume UP + Power buttons for ~12 sec.

Flash unlocked bootloader & recovery:

Read "Flashing ROM" manual

Download P1a42_S272_160506_ROW_QPST (+uBL +Recovery + Root +region ) and unpack it.

If you have different ROM installed, then flash S272 (by selecting rawprogram0.xml) otherwise go to the next step.

Flash unlocked bootloader (by selecting rawprogram_unlock.xml) and reboot into ROM.

Open developers options and select "OEM unlock".

Also you can check Bootloader status by rebooting to bootloader and typing "fastboot oem device-info" (without quotes), if it still locked, then type "fastboot oem unlock-go" (without quotes).

After (and only then) bootloader will be unlocked you can flash custom recovery by one of following ways: by QFIL, selecting rawprogram_twrp.xml or bootloader (fastboot flash recovery recovery_twrp.img).

When recovery is flashed, you can get into it by holding Volume UP + Volume DOWN keys while booting or using "adb reboot recovery" console command (without quotes).

Advanced flash unlocked bootloader & recovery:

BootLoader unlock:

Download file: emmc_appsboot.zip

Unzip.

Add listed files from QFIL-ROM to the same folder:

prog_emmc_firehose_8936.mbn

gpt_main0.bin

gpt_backup0.bin

rawprogram0.xml

patch0.xml

Run rawprogram0-fix.bat

Flash using QFIL, by selecting rawprogram0_aboot.xml.

Sometimes you need to do extra staff:

Open developers options and turn on:

ОЕМ unlock

USB debugging

Download: unlock-bl.zip

Unzip.

Plug USB cable and run unlock-bl.bat

wait until "Ready!" or the window disapire

Ready!

Custom recovery (TWRP):

Method one, fastboot:

Download: TWRP-FB.ZIP

Unzip.

Run rec-inst.bat

Method two adb(Root needed):

Download: TWRP.ZIP

Unzip.

Run rec-inst.bat

Root (SuperSU):

If you suscesfully unlocked bootloader and flashed recovery then you can:

download latest SuperSU

Put it to you sdcard (do not unpack it!)

Reboot to recovery and install ZIP.

Region:

To find out which region is set dial ####5993# or ####59930# using stock dialer

To change region:

Put easyimage.zip to root of SDCard

Dial ####682# using stock dialer

To get back to stock (for updating, etc.):

Flash stock ROM with QFIL.

You can use s272 listed above, but you also need to download, unzip and change rawprogram0.xml file before flashing to get stock recovery!