Jump to content

Lenovo Vibe P1m (lenovo-p1m)/twrp-install

From postmarketOS Wiki

Prerequisites:

  • ADB Tools
  • A TWRP image

Unlocking the Bootloader

Warning WARNING: Your device will be FULLY FORMATED, backup all important data before proceeding!
Warning WARNING: It is important to follow the steps to flash TWRP right after unlocking the bootloader, as just the bootloader unlocking may leave the stock OS in a non-bootable state.
Note On some devices, the confirmation buttons for OEM Unlocking (Volume Up and Volume Down) may be reversed. Do not trust the text shown on the unlock screen, try both.
  1. Enable Developer options by tapping Build number in Settings -> About phone -> Device information
  2. Enable OEM Unlocking
  3. Power off your P1m
  4. Hold volume down + power button until the "Select Boot Mode:" screen appears
  5. Go to fastboot with volume down and confirm with volume up
  6. Connect your phone to a PC with adb tools
  7. Run fastboot oem unlock and follow the prompt
  8.  After that you should be back at the "Select Boot Mode:" screen
  9. DO NOT reboot the device if you want to install TWRP, follow the steps in the next section.

Flashing TWRP

Warning WARNING: The only version that works on this device is a custom themed TWRP 3.1.1 by an unknown creator. Its legitimacy, safety and lack of bugs cannot be verified. Proceed at your own risk!
  1. Download TWRP from the following link: https://archive.org/details/twrp-3.1.1-default-themed
  2. Execute fastboot flash recovery <path to recovery>
  3. Immediately after flashing, run fastboot format userdata and fastboot format cache This will make the stock OS bootable.
  4. Reboot the device.