[Android General] Chaser42:
This guide will show you how to unlock the bootloader and root Android 9.0 (Pie) with Magisk on the Lenovo Smart Tab P10 (TB-X705F).

This guide is written for Lenovo Smart Tab P10 (TB-X705F). However, it can also be used for the Smart Tab P10 LTE (TB-X705L), the M10 (TB-X605F), and the M10 LTE. All of these devices are essentially identical plus or minus a couple bells and whistles. The only real important technical difference is that each Smart Tab model uses its own specific stock ROM. Keeping up with each stock ROM can be quite a chore, so I will only provide information and links specific to the P10 (TB-705F) stock ROM in this guide.

All software links including stock ROM files, TWRP, Magisk, etc. can be found at the bottom of this post.

@abramxx has a thread for the TB-X605L: HERE

NOTE THAT THIS GUIDE IS ONLY APPLICABLE IF YOUR DEVICE IS RUNNING ANDROID 9.0 (PIE). If your device shipped with Android 8.0 (Oreo), you must upgrade because the Oreo bootloader does not allow a permanent unlock.

You can determine what version the stock ROM you are running by opening Android Settings -> About Tablet. So far Lenovo has released 9 versions the P10 stock ROM:

TB-X705F_S000017_20180831_ROW (8.0 - Oreo)

TB-X705F_S000037_20181220_ROW (8.0 - Oreo)

TB-X705F_S200095_190528_ROW (9.0 - Pie)

TB-X705F_S210068_190904_ROW (9.0 - Pie)

TB-X705F_S210120_191029_ROW (9.0 - Pie)

TB-X705F_S210135_191212_ROW (9.0 - Pie)

TB-X705F_S210137_200407_ROW (9.0 - Pie)

TB-X705F_S210154_200910_ROW (9.0 - Pie)

TB-X705F_S210164_201119_ROW (9.0 - Pie)

TB-X705F_S210214_220725_ROW (9.0 - Pie) <current version>

If your device has not yet been unlocked and you are not running the current version, I highly recommend that you upgrade by using the Lenovo Moto Smart Assistant (LMSA) tool to perform a "rescue". The LMSA tool will download the full TB-X705F_S210120_191029_ROW stock ROM and flash it to the tablet. This will result in the loss of all data on the tablet. That's fine because unlocking the device will again clear all data (with the exception of the brand new stock ROM that you have just installed).

NOTE: If you can't make the rescue operation work using the LMSA tool, don't feel bad. Half the time I can't get it working either. As an alternative you can eliminate the LMSA tool all together by using the QComDLoader tool directly. You can find a link to the tool with instructions at the bottom of this post.

PREREQUISITES:

The understanding that by making these modifications, specifically unlocking the bootloader, will likely void the warranty of your device.

Be aware that when you modify your device you do so at your own risk. Be sure to follow all steps carefully or you could end up losing all of your data or bricking your device. IF YOU ARE UNSURE ABOUT WHAT YOU'RE DOING THEN STOP NOW.

As stated above, your device needs to be running Android 9.0 - Pie.

You need to make sure you have developer settings turned on so that you can enable the "OEM unlocking" setting and the "USB debugging" setting. There are many guides available on how to turn on developer settings, so that is beyond the scope of this guide.

The fastboot tool must be installed on the device that will be connected to the tablet via a USB cable. Your USB device drivers need to be up to date on that device. In most cases that will be a Windows 10 PC, but the fastboot tool can also be used from devices running Linux or Android. There are a lot of resources already available on how to install the fastboot tool and USB drivers, so that is beyond the scope of this guide.

You should have a basic familiarity with the fastboot tool and the flashing of image files via the command line.

BACK UP ALL OF YOUR DATA THAT YOU WANT TO KEEP ON THE TABLET. WHEN YOU UNLOCK THE BOOTLOADER, EVERYTHING ON THE TABLET WILL BE WIPED. THAT INCLUDES THE INTERNAL SD CARD AS WELL AS ANDROID AND APP SPECIFIC DATA. ALL THAT WILL REMAIN IS STOCK ANDROID PIE THAT HAS BEEN FACTORY RESET.

HOW TO UNLOCK:

Turn the tablet off.

Hold down the volume down button along with the power button so that the tablet goes into fastboot mode.

Using the USB cable, connect the tablet to the device with the fastboot tool installed.

Launch the command line or terminal emulator from the device with the fastboot tool installed.

Unlock the bootloader with the command:

fastboot oem unlock-go

This will begin the system wipe process and will take around 5 minutes to complete. Once it is complete, the tablet will boot up into Android starting at initial configuration wizard.

HOW TO ROOT:

Power the device off. Don't bother with the initial configuration wizard.

Hold down the volume down button along with the power button so that the tablet goes into fastboot mode.

From the command line, navigate to the directory containing the Magisk prepatched bootloader image (magisk_patched.img) that you downloaded in the prerequisites.

Flash the Magisk prepatched bootloader image with the command:

fastboot flash boot magisk_patched_boot-TB-X705F_SXXXXXX_XXXXXX_ROW.img

Boot normally into Android with the command:

fastboot reboot

Go through the Android setup wizard making sure that you at least configure your Wi-Fi connection.

Once you're done with the Android setup wizard, find Magisk Manager in the app drawer and open that app. Download and install the latest release of Magisk Manager from GitHub: LINK

You will be prompted to download and install the latest full version of the Magisk Manager. You will also need to grant permission allowing the APK file you just downloaded to be installed.

Once the newest version of Magisk Manager has been installed, open that app.

Magisk Manager will state that it needs to complete the Magisk setup. Begin that process. It will take a minute or two to complete and then will automatically reboot the tablet.

Congratulations. Your Lenovo Smart Tab P10 (TB-X705F) should now be fully rooted with Magisk. As a final task, it would probably be a good idea to install your favorite version of BusyBox. I highly recommend that you use the systemless version that can be downloaded and installed directly from Magisk Manager.

HOW TO INSTALL OTA UPDATES

If you are rooted with a bootloader that is patched with Magisk, then you will not be able to install OTA updates. The OTA update will look for the original unpatched bootloader image for the current build. If it is not installed then the update will simply fail.

INSTRUCTIONS:

Check to make sure which version of the stock ROM you are currently running.

TB-X705F_S000017_20180831_ROW (8.0 - Oreo)

TB-X705F_S000037_20181220_ROW (8.0 - Oreo)

TB-X705F_S200095_190528_ROW (9.0 - Pie)

TB-X705F_S210068_190904_ROW (9.0 - Pie)

TB-X705F_S210120_191029_ROW (9.0 - Pie)

TB-X705F_S210135_191212_ROW (9.0 - Pie)

TB-X705F_S210137_200407_ROW (9.0 - Pie)

TB-X705F_S210154_200910_ROW (9.0 - Pie) <current version>

Download the original bootloader image for the version of the stock ROM your are currently on.

Flash that bootloader image to the device.

Install the OTA update. You can use the automatic update app inside of Android. You can also install the update manually. Download the OTA update file you need from the software links at the end of this post. Copy that file to your external SD card. Boot the tablet up into recovery (hold power, volume up, and volume down). Choose to apply update from SD card.

Download the Magisk patched bootloader image for the version of the stock ROM your are upgrading to.

Flash that bootloader image to the device. Reboot to system and you're all done.

* NOTE: Installing an OTA update on a device running TWRP with a DECRYPTED data partition, you must follow a few extra steps. @clsA has documented that process HERE.

STOCK ROM FILES

TB-X705F_S000017_20180831_ROW:

Full Stock ROM

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S000037_20181220_ROW:

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S200095_190528_ROW:

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210068_190904_ROW:

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210120_191029_ROW:

Full Stock ROM

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210135_191212_ROW:

Full Stock ROM

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210137_200407_ROW:

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210154_200910_ROW:

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210164_201119_ROW:

OTA Update From Previous Version

Original Bootloader Image

Magisk Patched Bootloader Image

TB-X705F_S210214_220725_ROW: <=== LATEST VERSION

Full Stock ROM

Original Bootloader Image

Magisk Patched Bootloader Image

MISC HELPFUL LINKS

Latest Magisk Releases: LINK

Latest TWRP Custom Recovery the P10: LINK *** Many Thanks to @clsA and @drmarble ***

QComDLoader Tool v1.06 with Settings Preconfigured: LINK

SEE ATTACHED QUICK REFERENCE IMAGE FOR THE QCOMDLOADER TOOL.

QComDLoader Tool Info: You can use this tool to perform a rescue without the LMSA tool. I zipped up the tool so that it is pre-configured with the proper settings. It should work with the P10 and the M10. All you have to do is tell the tool where you have unzipped the full stock ROM to. Then in order to actually perform the flash operation, tell QComDLoader tool to start listening for connections. With the tablet powered off, press volume down and simply plug in the USB cable. Keep volume down pressed for about five or six seconds until you see the red LED blink a couple times. Then just let it sit there. It will appear to be doing nothing for a couple minutes. And then all of a sudden the tool will show that it is connected and will start the flash process.