Important! See the edit at the bottom of this post!
Sorry for bypassing the link ban, but thanks to them I can fully describe the topic ... Please remove all spaces after pasting the link in the address bar.
I originally described the problem here: http s: / / w above. fa cebook.com/groups/Android.Polska/permalink/754032048102958/
There, in the comments, there are also the next steps that I took and which finally brought me to bricking the equipment.
Initially, the problem was "only" that it was impossible to modify (flash) the partitions related to the bootloader (and thus it was impossible to return to full stock and working Android Pay and Google certificate). The flashall.bat file could not be used. I mean it was possible, but not all things wanted to be installed, some of them were "fail". It was also impossible to upload all files manually via the command line (files from this list):
htt ps: / / fo rum.xda-develo pers.com/lenovo-p2/help/stock-recovery-issue-t3556401/page2
In addition, the attempt to install the update in the normal way (OTA) was unsuccessful, because recovery did not exist. And TWRP didn't catch it either, you could only boot into TWRP Recovery with the command "fastboot boot twrp.img". It was also impossible to lock the bootloader again (the "fastboot oem lock" command and even the "fastboot oem unlock_critical" command (critical flash unlock) did not work.
At one point, when all the fixes from the XDA forum and others were failing, I took the somewhat careless steps below. These are the last commands fastboot has received. After that, the phone started to boot only in brick mode (blue notification LED glowing).
In fact, in two brick modes. One is "Qualcomm HS-USB QDLoader 9008" and the other is "Qualcomm HS-USB DIagnostics 900E". I am using QFIL.
I tried this way of separating:
ht tp s: / / for um.xda-developers.com/k5-plus/how-to/unbrick-vibe-k5-plus-qfil-qpst-method-t3467830
But unfortunately the files that contain Marshmallow / fastboot for Lenovo P2 (this package: http s: / / m ega.nz/#!3hhhhRYC! BDbs1VGHA7s0n-uH-B30fVDsulFRVw-ZbYTvheS9m8I) do not have all the necessary files. There is "rawprogram0.xml", there is no "patch0.xml" and "prog_emmc .... mbn". There is a file "programmer.mbn", but I don't know if it's the same as "prog_emmc .... mbn". Below is a list of files from this package:
And here you can see what pops up when I tried to use "programmer.mbn" at the top and only "rawprog .." at the bottom.
What can I do to cut off the device and upload fully clean, original software from Lenovo? In my opinion, the main problem right now is that I don't have the files I need. How to get them? Or maybe there is another way to recover the phone and upload the full stock system? Still, when trying to update OTA, the phone enters fastboot mode and recovery as if it does not exist, so the update is not installed ... What next?
EDIT: I ran the "blank-flash.bat" file (in Windows, the phone was in "Qualcomm HS-USB QDLoader 9008" mode) and now I can access fastboot mode again. But still when I try to install "flashall.bat" pops up at some point "FAILED (remote: Do not allow to flash Botloader image on Unlock device)" (with command "flash prov" and other bootloader related ...) OTA update, the phone enters fastboot mode and recovery if it does not exist, so the update is not installed ... What next?
Of course, I still use this file list for flashing: http s: / /forum.xda-developers.com/lenovo-p2/help/stock-recovery-issue-t3556401/page2
and I have the same problem as described there ...
EDIT2: I was able to install nougat via TWRP Recovery. It means:
1. I entered TWRP with the command "fastboot boot twrp.img" (because fastboot does not catch flashing recovery - neither stock nor twrp)
2. Installed Nougat .zip for TWRP found on XDA-Developers forum.
3. Now I have Nougat but still can't update to newer version with patches via OTA. After the normal download of a small patch update and an attempt to install it OTA, the green Lenovo logo pops up and the phone turns on again with the same software version and the message "Update failed" appears in the notification bar.
Sorry for bypassing the link ban, but thanks to them I can fully describe the topic ... Please remove all spaces after pasting the link in the address bar.
I originally described the problem here: http s: / / w above. fa cebook.com/groups/Android.Polska/permalink/754032048102958/
There, in the comments, there are also the next steps that I took and which finally brought me to bricking the equipment.
Initially, the problem was "only" that it was impossible to modify (flash) the partitions related to the bootloader (and thus it was impossible to return to full stock and working Android Pay and Google certificate). The flashall.bat file could not be used. I mean it was possible, but not all things wanted to be installed, some of them were "fail". It was also impossible to upload all files manually via the command line (files from this list):
htt ps: / / fo rum.xda-develo pers.com/lenovo-p2/help/stock-recovery-issue-t3556401/page2
In addition, the attempt to install the update in the normal way (OTA) was unsuccessful, because recovery did not exist. And TWRP didn't catch it either, you could only boot into TWRP Recovery with the command "fastboot boot twrp.img". It was also impossible to lock the bootloader again (the "fastboot oem lock" command and even the "fastboot oem unlock_critical" command (critical flash unlock) did not work.
At one point, when all the fixes from the XDA forum and others were failing, I took the somewhat careless steps below. These are the last commands fastboot has received. After that, the phone started to boot only in brick mode (blue notification LED glowing).
In fact, in two brick modes. One is "Qualcomm HS-USB QDLoader 9008" and the other is "Qualcomm HS-USB DIagnostics 900E". I am using QFIL.
I tried this way of separating:
ht tp s: / / for um.xda-developers.com/k5-plus/how-to/unbrick-vibe-k5-plus-qfil-qpst-method-t3467830
But unfortunately the files that contain Marshmallow / fastboot for Lenovo P2 (this package: http s: / / m ega.nz/#!3hhhhRYC! BDbs1VGHA7s0n-uH-B30fVDsulFRVw-ZbYTvheS9m8I) do not have all the necessary files. There is "rawprogram0.xml", there is no "patch0.xml" and "prog_emmc .... mbn". There is a file "programmer.mbn", but I don't know if it's the same as "prog_emmc .... mbn". Below is a list of files from this package:
And here you can see what pops up when I tried to use "programmer.mbn" at the top and only "rawprog .." at the bottom.
What can I do to cut off the device and upload fully clean, original software from Lenovo? In my opinion, the main problem right now is that I don't have the files I need. How to get them? Or maybe there is another way to recover the phone and upload the full stock system? Still, when trying to update OTA, the phone enters fastboot mode and recovery as if it does not exist, so the update is not installed ... What next?
EDIT: I ran the "blank-flash.bat" file (in Windows, the phone was in "Qualcomm HS-USB QDLoader 9008" mode) and now I can access fastboot mode again. But still when I try to install "flashall.bat" pops up at some point "FAILED (remote: Do not allow to flash Botloader image on Unlock device)" (with command "flash prov" and other bootloader related ...) OTA update, the phone enters fastboot mode and recovery if it does not exist, so the update is not installed ... What next?
Of course, I still use this file list for flashing: http s: / /forum.xda-developers.com/lenovo-p2/help/stock-recovery-issue-t3556401/page2
and I have the same problem as described there ...
I cannot flash anything pertaining to the bootloader, this is the official flash list, open fastboot and paste this entire list, when its finished you will see "failed" next to anything pertaining to the bootloader. And therein lies the issue, i havent found a soloution and ive been searching for 2 months now
I have found the stock ROM, I bricked my device in the rooting process, and am unable to flash the complete stock image, because the device reports "unable to flash bootloader on unlocked device"
EDIT2: I was able to install nougat via TWRP Recovery. It means:
1. I entered TWRP with the command "fastboot boot twrp.img" (because fastboot does not catch flashing recovery - neither stock nor twrp)
2. Installed Nougat .zip for TWRP found on XDA-Developers forum.
3. Now I have Nougat but still can't update to newer version with patches via OTA. After the normal download of a small patch update and an attempt to install it OTA, the green Lenovo logo pops up and the phone turns on again with the same software version and the message "Update failed" appears in the notification bar.