• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

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

Oxofrmbl

Senior Member
Oct 16, 2016
277
60
OnePlus 7T

hk96

Senior Member
If you look at the date of my request, you will understand that I gave up on this device. Im just waiting for the battery to die and then throw it away.
Yeah saw that...
It's so true, this might be my last Lenovo device.
The only reason to use this device is a good screen and a satisfactory performance.
But anyway, I am planning to spend some time on this, since this device has a good userbase...
 

Strephon Alkhalikoi

Senior Member
Aug 3, 2010
7,015
3,225
Vulcan
Samsung Galaxy S4
Nexus 6
If you look at the date of my request, you will understand that I gave up on this device. Im just waiting for the battery to die and then throw it away.
Tablets are a niche item these days and it doesn't surprise me that there's so little enthusiast support for them. You kinda have to temper expectations when it comes to one. Smartphones these aren't.

That said, I'll use mine until it dies, and then get another.
 

Oxofrmbl

Senior Member
Oct 16, 2016
277
60
OnePlus 7T
Tablets are a niche item these days and it doesn't surprise me that there's so little enthusiast support for them. You kinda have to temper expectations when it comes to one. Smartphones these aren't.

That said, I'll use mine until it dies, and then get another.

Yeah but I feel like there's no alternative to iPad which has android and I hate using apple. It's dumb
 

hk96

Senior Member
Tablets are a niche item these days and it doesn't surprise me that there's so little enthusiast support for them. You kinda have to temper expectations when it comes to one. Smartphones these aren't.

That said, I'll use mine until it dies, and then get another.
I have an old glaxy tab (2012), that is still running great and a dev is still keeping it alive.
If few people here can unite, we can get it our tab to run atleast pie
Let's see how well it goes.
 

Strephon Alkhalikoi

Senior Member
Aug 3, 2010
7,015
3,225
Vulcan
Samsung Galaxy S4
Nexus 6
I have an old glaxy tab (2012), that is still running great and a dev is still keeping it alive.
If few people here can unite, we can get it our tab to run atleast pie
Let's see how well it goes.
Reality check: Lenovo is no Samsung. Samsung is the largest and most popular Android device manufacturer. Of course they're going to have hobbyist developers keeping their unsupported devices alive.

You have to have people willing and able to develop for the device. Samsung devices don't have that problem. Lenovo does. The developers we had here just a year or so ago have moved on to another device that has better support.
 
Dec 13, 2020
34
8
Help, i am trying to unlock bootloader of my lenovo tab 4 10 but the oem unlock option is greyed out in developer options. i did a quick google search and found that this most people are having this problem since they updated to android 8.1. i have not rooted my tablet before so this is not because my tablet is already rooted.
 

boomhaueruk

Member
Dec 10, 2013
36
2
Hi everyone,
I've gotten as far as backing up my tablet in temporarily booted TWRP, but I'm a bit stuck with rooting with Magisk and then next steps to intalling 17.1

The link above to Magisk on XDA doesn't seem to have a download; https://forum.xda-developers.com/t/magisk-the-magic-mask-for-android.3473445/

Plus there don't seem to be instructions on what excactly you're doing.

There are a load of dodgy guides if you google, but I'm not finding anything on XDA and on youtube, the closest I've gotten is this;

Which is pretty patchy around the magisk/rooting part and steps after that.

I'm also unsure of steps for TWRP into the Lenovo permanently once I've rooted.
Seems to indicate "Download the latest TWRP image file (.img) from the download link and boot TWRP. Go to install and find and select the Images... button. Browse to the image that you downloaded and select it. Choose recovery and swipe to flash."
So is that booting by using "adb fastboot twrp.img" as I am now?

Ideally, I'd like to end up with a rooted tablet (TB-X704F) running Lineage 17.1, but I'm struggling with next steps.
I'm not even new to this, I've previously managed to get an LG phone and an Xperia Play rooted with Custom Os, but the lack of step by step guides here is leaving me a bit unsure.

What's the last version of Magisk? Is there a reliable link?
How exactly am I installing Magisk at this point?
What are the commands to get TWRP installed into recovery permanently after that? (are steps 6 to 8 above meant to be self explanatory? Is it as the link above?)
Which version of gapps should I download?

Thanks all!
 

Strephon Alkhalikoi

Senior Member
Aug 3, 2010
7,015
3,225
Vulcan
Samsung Galaxy S4
Nexus 6
1. Temp boot TWRP (fastboot boot recovery.img).
2. Tap "Install Image" in TWRP.
3. Navigate to where you stored the image on your tablet.
4. Flash the image.
5. Reboot into recovery from the reboot menu.
6. Flash the latest Magisk (21.1).
7. Reboot system.

Minimum GApps I recommend is Micro, but Stock should work as the system partition is, if I recall, 2GB.
 

iostrym

Senior Member
Aug 11, 2011
70
4
Thankyou sir it worked, I had downloaded a firmware uploaded on other thread for lenovo tab 4 10 x304l with android version 7.1.1 software but earlier my phobe was on oreo, after flashing the firmware with mi flash my phone is showing lenovo logo and then vibrating and again showing lenovo logo, but stock recovery is flashed via mi flash, so what should I do now please reply
And bootloader is again locked now
Edit :- Don't follow this thread specially when you have a tab 4 10 because the twrp build is for older android version , it will boot and can also be flashed but after that your tablet will be of no use, twrp don't showings thank storage most of the time and fails most of the time while restoring backup for me it's always failed, and the most fuc***g thing about this thread is no one is going to help you in time of need, I followed this thread my tab just got fu***d of. I am telling you because I am sufferer so I thought to tell you , but if still you want to do experiments then you can do, I am no one to stop you.
But if you want to get it back easily then use lmsa( lenovo Motorola smart assistant) it will bring your tab back to life, it took me a week to understand the situation and one more thing never try to downgrade the tab as it will make your tab unbootable so you have to again flash the latest android version.
Just leave this tab as it is because even after rooting most of the apps will not work as you will not able to grant write access to the apps and your tab will reboot again and again.
Hoping it will help you in time of need ?.


I'm not an expert, the root is really useless ? We can't grant writer access for application ? But maybe root could be useful for installing titanium backup or stuff like that right ? Format sdcard so that it could be used for application and also 'data' ? All that kind of stuff ?

I have the feeling that no rom are available for this tablet

[edit] I don't find the Developer Options for OEM manipulation on my stock 8.1 Oreo tablet. is it normal ?
 
Last edited:

Strephon Alkhalikoi

Senior Member
Aug 3, 2010
7,015
3,225
Vulcan
Samsung Galaxy S4
Nexus 6
I'm not an expert, the root is really useless ? We can't grant writer access for application ? But maybe root could be useful for installing titanium backup or stuff like that right ? Format sdcard so that it could be used for application and also 'data' ? All that kind of stuff ?

I have the feeling that no rom are available for this tablet

[edit] I don't find the Developer Options for OEM manipulation on my stock 8.1 Oreo tablet. is it normal ?
The person you quoted had issues with his device, because it is from the "refreshed" batch of Tab 4 devices that were released a year or two after the thread was created; those devices reduced the RAM to 1GB and cut down the amount of available internal storage as well. The thread, when it was created, focused on the two 8" and one 10" device Lenovo initially released that had 2GB RAM and a minimum of 16GB internal storage.

The version of TWRP available in the thread is old as it was intended for Android 7.1.1 devices. If used on an Android 8.1 device only boot it, don't install it, as most features of TWRP won't function on it. Crucially, the ability to flash zips does however still function.

With Lenovo's tablets, they can detect when a partition has been changed, and if changed can cause all sorts of problems. This includes modifying the boot image, which is what Magisk does. The poster you quoted must have encountered this, but eventually was able to restore his tablet to working order.

His last complaint about no one being around to help is simply the nature of the beast. Most of the people who could help when the thread was created have moved on to other tablets. I personally haven't, but even I don't frequent this thread much as my tablet is working the way I want it to.

As to your comments, root has its uses, and it does work on these tabs so long as the version of TWRP used can flash zips. I don't recommend installing the version of TWRP in the thread here but only booting from it using fastboot commands due to version differences. I don't know why the person you quoted was unable to get it to work, but a likely answer is that Lenovo changed the innards of the tablets between the time my tablet was released and the time he purchased his.

The good news is that if you can achieve root, you will be able to write to the system partition as desired. I know that a big reason behind my rooting my tablet was to remove the keyboard and its bloat in the Android 7.1.1 stock ROM. It's not as important today with the Android 8.1 stock ROM on it, but I still have root regardless. And, as you point out, with root using Titanium Backup to its fullest is possible. Splitting the MicroSD to only have a portion of it encrypted while the rest was removable though doesn't require root if I recall correctly. At the same time, splitting the MicroSD like this proved to not be stable; Android seems to get confused if both storage types are on the same MicroSD and corrupts the entire MicroSD.

ROMs for the most part aren't available for these tablets, as the developer base wasn't big enough for it. I found the lack of custom ROMs to not be a huge issue. The stock ROM is quite mature to begin with, and I wasn't planning on updating the ROM to the latest version of Android.

Developer Options: In Settings > About, find the build number and tap on it seven times to reveal the Developer Options. From there you should find the OEM Unlocking toggle.
 

iostrym

Senior Member
Aug 11, 2011
70
4
Thanks a lot for your big and precise answer !!!

First I have the 2go ram version and 16go ram. Also I'm on the 8.1 Oreo stock room.

Ok for the partitioning of the sdcard that may not be a good idea. I did it on the past and I have crashed my SD card.

For the OEM stuff I don't succeed because it is greyed. I found a thread were there is a complex thing to do for it but I also found that doing several time the dev option may working... What do you think ?

To come back to my first need that is having more data partition, do you think it is normal to have only 8go of data when sdcard is used as extended ? Also you have only 8go when connecting the tablet to your computer ?
When I take photo or video I can't change the destination, only internal is available. Normal because sdcard is configured as extension of the internal memory but the problem is that I will have only 8go to store video and photo... When you read stuff about extending internal memory, you can read that I could store video and photo and it is not the case on my side.

The 8go 'partition' emulated/0 one... Could it be increased ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 65
    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
    8
    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.