• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

TWRP and ROOT for Tab 4 8/10 (Plus) (TB-8704X/F/V,TB-X704L/F, TB-8504X/F, TB-X304L/F)

Search This thread

fx175

New member
8704x Trouble Detecting Device in Fastboot

I have a Lenovo Tab 4 8 Plus 8704x - previously I managed to BOOT to TWRP and flashed Lineage 16.1
Confirmed that the Bootloader is already unlocked via Developer Settings.

Recently, I'm trying to FLASH TWRP and flash Pixel Experience ROM but encountering problems.

After installing the Minimal Fastboot & ADB tool - i can issue command adb devices and adb reboot bootloader BUT after my tablet is showing the Android logo with text FASTBOOT - I cannot proceed with fastboot devices or fastboot boot twrp.img

Any idea what step am i missing here ?
 

asphalt73

Member
Dec 4, 2017
14
1
Hello, can your los17.1 write files normally in the system partition? My device will get stuck when writing to the system partition.I can't solve the problem.
 

asphalt73

Member
Dec 4, 2017
14
1
Hey, I tried to update it for the latest magisk template, but I won't be able to test it (I'm very far away from the device). You can try it, though. Let me know so that the OP can update the first post about it. :)
Hello, can you create a version above magisk 21.4 for use? I can't mount RW. My device will freeze when I write to the system partition. I've tried my best to solve this problem, but I did it in vain. 😭
 

Robb Flynn

New member
Jan 7, 2013
4
0
8704x Trouble Detecting Device in Fastboot

I have a Lenovo Tab 4 8 Plus 8704x - previously I managed to BOOT to TWRP and flashed Lineage 16.1
Confirmed that the Bootloader is already unlocked via Developer Settings.

Recently, I'm trying to FLASH TWRP and flash Pixel Experience ROM but encountering problems.

After installing the Minimal Fastboot & ADB tool - i can issue command adb devices and adb reboot bootloader BUT after my tablet is showing the Android logo with text FASTBOOT - I cannot proceed with fastboot devices or fastboot boot twrp.img

Any idea what step am i missing here ?

Same issue but for the Tab 4 8 TB-8504F. I'm running stock 8.1. Tablet has been factory reset.

* Developer Options - Enabled
* OEM unlocking - ON
* USB debugging - ON
* Minimal ADB and Fastboot - Installed from here
* Lenovo USB Driver - Installed

I connect the tablet to my PC, bring up ADB/Fastboot, use the "adb reset bootloader" command, and the tablet reboots and stays stuck on the Fastboot screen with the Android symbol. "fastboot oem unlock-go" doesn't do anything and neither does "fastboot boot twrp....img".

My guess is a driver issue? "adb devices" shows my tablet but "fastboot devices" doesn't show anything.
 

Robb Flynn

New member
Jan 7, 2013
4
0
Same issue but for the Tab 4 8 TB-8504F. I'm running stock 8.1. Tablet has been factory reset.

* Developer Options - Enabled
* OEM unlocking - ON
* USB debugging - ON
* Minimal ADB and Fastboot - Installed from here
* Lenovo USB Driver - Installed

I connect the tablet to my PC, bring up ADB/Fastboot, use the "adb reset bootloader" command, and the tablet reboots and stays stuck on the Fastboot screen with the Android symbol. "fastboot oem unlock-go" doesn't do anything and neither does "fastboot boot twrp....img".

My guess is a driver issue? "adb devices" shows my tablet but "fastboot devices" doesn't show anything.

Okay I figured it out. Fastboot driver issue. My steps:

1) "adb reboot bootloader". Tablet should reboot and show Fastboot with Android logo.
2) Open "Device Manager". If there is an Android Device with a ?, it means the driver is not loaded so fastboot commands will not work.
3) Right-click Android Device -> Update Driver -> Browse my computer for drivers -> Let me pick from a list -> All Devices -> and select the Lenovo driver downloaded from here
4) Select Android Bootloader Interface. Restart the computer/tablet if necessary.
5) Once tablet is back into Fastboot logo, try fastboot commands. If it works, voila.
 

Pawan987

Senior Member
Jul 13, 2015
201
36
Hi team.
I do own TB-8504X and installed twrp from this thread.. i also installed crDroid rom but unable to get root access. I tried to install superuser and magisk but it prints error in twrp screen unable to repack the boot image.

can you guyz help. I want to add swap memory to increase device performance.
 

Strephon Alkhalikoi

Senior Member
Aug 3, 2010
7,078
3,237
Vulcan
Samsung Galaxy S4
Nexus 6
yes you are right... it is slow but what's wrong in try can you please help me out how can i successfully root if possible attach superuser zip or magisk flahable zip here
What's wrong in trying is that to do it you would need to rewrite the entire partition table. That's at a lower level than modifying firmware via rooting, and it requires tools only Lenovo possesses. It also wouldn't improve performance or else Google would be using it.

As to rooting, there are instructions on how to do it throughout this thread. Magisk has its own forum, with pointers on where to download it and how to use it. I suggest you start reading.

P.S. The only advice I will give you, from personal experience, is this. Take all the updates Lenovo offers, boot into TWRP but do not install it, and don't make the system partition writeable.
 
  • Like
Reactions: Pawan987

prozac

Member
Feb 18, 2012
37
1
Okay I figured it out. Fastboot driver issue. My steps:

1) "adb reboot bootloader". Tablet should reboot and show Fastboot with Android logo.
2) Open "Device Manager". If there is an Android Device with a ?, it means the driver is not loaded so fastboot commands will not work.
3) Right-click Android Device -> Update Driver -> Browse my computer for drivers -> Let me pick from a list -> All Devices -> and select the Lenovo driver downloaded from here
4) Select Android Bootloader Interface. Restart the computer/tablet if necessary.
5) Once tablet is back into Fastboot logo, try fastboot commands. If it works, voila.
same issues i have... but i dont find the Android device with a ?
so i think the drivers are okay ( win10 64bit )
stuck on FASTBOOT. maybe another idea ?

Lenovo Tab4 8 tb-8504 F

EDIT: in fastboot mode, i get a /!\ on devices manager. driver install dont work

edit2: windows update show me in fastbootmode an google driver update. install that driver NOW.
 
Last edited:

LinkTheHero

New member
Oct 5, 2021
1
0
Hi, I see that there are many problems with the X704V, I have seen that they have shared the TWRP that if it works but the links are down, can someone upload a TWRP compatible with the X704V, please?
 

Tonitoni1

New member
Apr 10, 2018
4
0
Lenovo TB-8504F
An stupid question or maybe not.
When installing TWRP, i must select to KEEP SYSTEM READ ONLY when TWRP starts, to avoid modification in /system. I guess to get OTA someday...
My question is, when installing TWRP, if i select READ/WRITE SYSTEM, i will get a pretty bootloop or just no OTA? Somebody when installing TWRP selected READ/WRITE SYSTEM? After that can change, add or delete apps, files, folders?
 

Strephon Alkhalikoi

Senior Member
Aug 3, 2010
7,078
3,237
Vulcan
Samsung Galaxy S4
Nexus 6
Lenovo TB-8504F
An stupid question or maybe not.
When installing TWRP, i must select to KEEP SYSTEM READ ONLY when TWRP starts, to avoid modification in /system. I guess to get OTA someday...
My question is, when installing TWRP, if i select READ/WRITE SYSTEM, i will get a pretty bootloop or just no OTA? Somebody when installing TWRP selected READ/WRITE SYSTEM? After that can change, add or delete apps, files, folders?
The tablet no longer receives OTAs, so unless you're still running Android 7.1.1 you have nothing to worry about. In fact, I would - and did - take the OTAs, boot into TWRP using fastboot commands, and then root. I would not - and did not - install TWRP into the recovery partition.

That said, swiping to allow modifications in TWRP should not result in a bootloop.
 

Tonitoni1

New member
Apr 10, 2018
4
0
The tablet no longer receives OTAs, so unless you're still running Android 7.1.1 you have nothing to worry about. In fact, I would - and did - take the OTAs, boot into TWRP using fastboot commands, and then root. I would not - and did not - install TWRP into the recovery partition.

That said, swiping to allow modifications in TWRP should not result in a bootloop.
Boot into TWRP using fastboot command- DONE
Swipe in TWRP to NOT allow modifications in system partition- DONE
Root with Magisk- DONE
Install TWRP into the recovery partition- DONE
Reboot to system was fine. Everything Ok.
Now i'd like to reboot to TWRP and swipe to allow modifications in system partition. Will bootloop? Or will bootloop when i make a change in system? Someone tried this before?
Regards team.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 66
    TWRP is an open source, community project. TWRP development is done by roughly 4 people at this point. We also have a large support community with many people who are willing to answer questions and help people with their devices either through our IRC channel or on forums like xda-developers.

    Team Win was originally formed to work on porting WiMAX to CM7 for the HTC EVO 4G. After our work on the EVO 4G we wanted to work on a project that would work on more devices than just the EVO 4G and we settled on working on a recovery. Today TWRP is the leading custom recovery for Android phones.

    A custom recovery is used for installing custom software on your device. This custom software can include smaller modifications like rooting your device or even replacing the firmware of the device with a completely custom "ROM" like OmniROM

    WARNING!!! Be careful what you do here. One mistake and the device is soft-bricked. I take no responsibility for bricked devices, lost warranty or even OTAs not working!! Booting and/or flashing files from this post is on your own risk.

    Requirements
    • Unlocked bootloader
    • Lenovo Tab 4 Plus with and without LTE and both 8 and 10 inch versions (TB-X704L/F, TB-8704X/F) are supported

    Known Issues
    • WARNING! Our device uses dm-verity (verified boot). The system partition should remain read-only. Otherwise a bootloop will occur. You can flash SuperSU to resolve this but OTA's are no longer possible! You have to restore a factory image or clean system backup to receive OTAs

    Download

    Instructions
    1. Install fastboot and adb on your PC, e.g. from here
    2. Enable developer options and in there select to unlock your bootloader by enabling OEM unlock and enable USB debugging
    3. Connect your PC to your tablet and run
      Code:
      adb reboot bootloader
      using adb on command line. The tablet will reboot into bootloader mode where you will only see the Lenovo logo. Now you use
      Code:
      fastboot oem unlock-go
      to unlock. This will factory reset your device
    4. Setup the tablet again and reboot again to the bootloader
    5. Then run
      Code:
      fastboot boot twrp-3.2.3-0-<your-filename>.img
      to temporarily boot into TWRP. You can also flash if you are sure ;)
    6. Select to keep system read only when TWRP starts to avoid modification which will make OTAs impossible
    7. Backup at least system and boot partitions. Choose "System Image" for the system partition backup. Keep this backup for OTA updates.
    8. Optionally flash SuperSU or Magisk in TWRP which should install system less. Keep OEM unlock enabled if you flash or modify anything

    Writable System Partition
    Some mods and root apps require write access to the system partition. By default the system partition is read-only to prevent any modification. Please note that if your system partition is modified in any way it needs to be restored to its original state before a system update (OTA) can be applied.

    • @dywersant has created a Magisk module here to achieve write access
    • @KreAch3R has updated the Magisk module to the latest version here



    System Updates (OTA)
    In order to successfully apply Lenovo system updates after root you have to restore the original boot, recovery (if you flashed TWRP) and system partitions from your current installed version (e.g. S000037) for your variant of the tablet. This will NOT delete your apps and data but will unroot. Note that OTAs are block based and always check the contents of most of the partitions. This means that all of these partitions (except your data) have to be original and have to be on the exact same version (e.g. S000037) for the update to succeed.

    Credits
    @wonderfulme - for testing the 8" version
    @Teddy01 - for testing the 10" version
    @3m1k - for providing the 8" Verizon version
    TeamWin


    Source
    TWRP Manifest: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-7.1
    Device Tree (TB-8704X): https://github.com/Matshias/twrp_android_device_tb_8704x/tree/android-7.1
    Device Tree (TB-8704V): https://github.com/3m1k/twrp_android_device_tb_8704v
    Device Tree (TB-X704L): https://github.com/Matshias/twrp_android_device_tb_x704l/tree/android-7.1
    Device Tree (TB-8504X): https://github.com/Matshias/twrp_android_device_tb_8504x/tree/android-7.1
    Device Tree (TB-X304L): https://github.com/Matshias/twrp_android_device_tb_x304l/tree/android-7.1


    Changelog
    v3:
    • Update to TWRP 3.2.3-0
    v2:
    • Update to TWRP 3.2.1-0
    v1:
    • Initial Release
    12
    I am happy to make probably the best announcement since we got TWRP: My X704F is running LineageOS 14.1. While some things are already working, two things keep me from releasing it now: Wifi and Usb don't work yet. Once I have solved these problems, I will create my own thread for it. So be patient ;)
    11
    Can someone please help I soft bricked my device And I'm unable to fastboot new rom QFIL is keep saying SAHARA FAILED can someone help me?

    You need to have install both the qualcomm drivers and the Lenovo drivers, both installed via executables in the drivers section in the russian .7z download. You need to be in a mode of disable driver signature checking, search how to do that for your OS.

    When you get that message, hit volume up key when it says that then hit download again and it keeps going.

    I spent a day trying to unbrick, I kept trying and hitting walls and trial+error and eventually succeeded, this is what worked for me, this is not necessarily the best approach and some steps may not be required, but it at least worked for me so I offer it.

    Download the Russian forum ROM for your device e.g. mine was the Lenovo Tab 4 8 Plus. If you didn't flash, only boot, TWRP, you can use the stock recovery. If you're not sure what is your model then have your tablet powered off and press and hold the volume up key and press the power button til you feel a vibration then let go both buttons. The recovery will then tell you the model. Mine was TB-8704F so my link is here

    http://lenovo-forums.ru/topic/24137-lenovo-tab4-a8-plus-proshivka-tb-8704f_s000024_170706_row_qfil/

    Change do your own model. Go up the forum and down to your model.

    You need a 7zip extractor.

    When you extract you need a password which is "lenovo-forums.ru"

    Inside the unzip is images, drivers, tools. We're using the images and the drivers, but ignoring the tools

    Go to drivers and run the Lenovo and the Qualcomm executables.

    Inside the unzip the tools has QFIL.exe but it doesn't work. Download the QFIL 1.0.02 from here

    https://androiddatahost.com/jj9ye

    Boot into a mode without device driver signing. I used Windows 7 32bit so I reboot and hit F8 as it came out of BIOS and selected disable driver sig. Once booted all the steps below are done.


    Run the qfil exec in the above.

    qf_4.png.f5797926619c16ad6a4b9f1a9b9032c7.png


    The top most browse point it to the images folder and it will show one file, select it. Then load XML select browse and point it to the image folder and it will select a file and then it will select another file "patch".

    Then unplug your tablet and turn it off (press hold and ensure screen is black for many seconds).

    Then this is a tricky part, took me many attempts. Press and hold the volume up key and plug in the USB-C cable and then let go of the volume up key. The QFIL tool should show a qualcomm port as being used. If you don't see anything active saying qualcomm in port then unplug table and repeat the vol up and power. You can get other modes like Lenovo diag mode, keep trying til it says qualcomm.

    Then hit the lowest download button. If it says error hit the table volume up key and press download again.

    If it is working you'll see a movement left to right above the text log status section. If it is working you'll see a "reset" message and the table shows activity it is doing something there is a moving bar on the tablet. Keep repeating it takes 2 or 3 time phases where the tablet stops showing progress so then hit the download button. Eventually you get a normal boot and you're unbricked.
    10
    Twrp 3.4.0-0 tb-8704

    Hi Everyone,

    As an experiment I wanted to see if I could compile TWRP for my TB-8704X so I started out using Matshias sources which worked fine. My next step was to see if updating the kernel would with the issue of not being able to see the internal storage with stock Android 8.1 so I then forked Matshias's Device Tree and updated kernel from 8704X_S001025_190606 and ran another compile test. With my build I'm now able to select Internal Storage with 8.1 so I believe the updated kernel fixes the issue where TWRP can't see and wipe partitions.

    Credits to Matshias for providing his device tree
    Thanks to plutothot for helping test this on the TB-8704F

    Updated to TWRP 3.4.0-0

    Sources
    TWRP Manifest: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-7.1
    Device Tree (TB-8704X): https://github.com/lancebukkake/twrp_device_lenovo_tb_8704/tree/android-7.1
    Device Tree (TB-8704F): https://github.com/lancebukkake/twrp_device_lenovo_tb_8704/tree/8704F
    Device Tree (TB-8704V): https://github.com/lancebukkake/twrp_device_lenovo_tb_8704v

    Downloads (TB-8704X and TB-8704F are separate so make sure you download the correct img for your device)
    Github

    Download for TB-8704V (shoutout to xsacx for testing it out)
    Github

    Please click Thanks if I helped you
    9
    I was having trouble flashing magisk-remount.zip from @dywersant on Magisk v17.1, so I updated the module on top of the 17 template. Find the file attached, I tried it and it flashes correctly and provides RW access.
    @matshias, you can update OP with a link to this post as well for users having the same problem.