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

[RECOVERY][TB-X606F/TB-X606FA][UNOFFICIAL] TWRP 3.5.x for Lenovo Tab M10 FHD Plus

Search This thread

ldeveraux

Senior Member
Nov 20, 2008
2,477
899
Lenovo Thinkpad Tablet
Nexus Q
Hi, I trying to root my Lenovo Tab M10 FHD Plus 4gb+128GB (TB-X606F) by following the steps mentioned in this post by

Yahoo Mike.​

The issue I'm facing at the moment is that I can't even load fastboot mode.
On the tablet, it is stuck at a black screen with "=> FASTBOOT mode ... written on the bottom left hand corner and doesn't seem to do anything.

Would someone be able to help me out?

Thanks.
That's fastboot mode, the tab is now ready to accept commands from a prompt. It's not a graphical interface like Recovery...
 
  • Like
Reactions: Yahoo Mike

Yahoo Mike

Senior Member
Apr 3, 2011
298
111
Newcastle
Hi, I trying to root my Lenovo Tab M10 FHD Plus 4gb+128GB (TB-X606F) by following the steps mentioned in this post by

Yahoo Mike.​

The issue I'm facing at the moment is that I can't even load fastboot mode.
On the tablet, it is stuck at a black screen with "=> FASTBOOT mode ... written on the bottom left hand corner and doesn't seem to do anything.

Would someone be able to help me out?

Thanks.
@ldeveraux is correct. If you long-press the power button for about 10 seconds, then the tablet will reboot.

To use fastboot, you need to download and install the Android platform tools to your PC. Next put your phone into fastboot mode. Then connect your tablet to the PC using a USB cable. Now you type your fastboot commands in a Windows command prompt.

Platform tools are also available for Linux and Mac in the link above.
 

13k.VodkaSoda

New member
Jul 26, 2021
3
1
@ldeveraux is correct. If you long-press the power button for about 10 seconds, then the tablet will reboot.

To use fastboot, you need to download and install the Android platform tools to your PC. Next put your phone into fastboot mode. Then connect your tablet to the PC using a USB cable. Now you type your fastboot commands in a Windows command prompt.

Platform tools are also available for Linux and Mac in the link above.
Thank you.
 
  • Like
Reactions: Yahoo Mike

jmozmoz

Member
Dec 17, 2011
31
6
Today the tablet automatically tried to install a OTA update (version TB-X606F_USR_S300249_2105081505_v9.56_BMP_ROW_to_TB-X606F_USR_S300320_2107160909_V9) but it booted into TWRP. So I uninstalled Magisk and TWRP following this post.

Then the updated started but stopped after about one third of the progress bar with an error (no details given) and rebooted into the current system.

Is this related to the installations of Magisk/TWRP or is another problem?
 

Yahoo Mike

Senior Member
Apr 3, 2011
298
111
Newcastle
Today the tablet automatically tried to install a OTA update (version TB-X606F_USR_S300249_2105081505_v9.56_BMP_ROW_to_TB-X606F_USR_S300320_2107160909_V9) but it booted into TWRP. So I uninstalled Magisk and TWRP following this post.

Then the updated started but stopped after about one third of the progress bar with an error (no details given) and rebooted into the current system.

Is this related to the installations of Magisk/TWRP or is another problem?
Did the OTA complete the verification steps successfully? Maybe that's where it's failing?

What does it say on the screen when it throws the error?
 

jmozmoz

Member
Dec 17, 2011
31
6
Did the OTA complete the verification steps successfully? Maybe that's where it's failing?

What does it say on the screen when it throws the error?

There is just this android symbol and the progress bar and suddenly it says "Fehler" (if I rembember correctly acctually in German, so just "error") and stops and reboots.

Sorry for my ignorance: Can I somehow get a log of the update process via USB/adb?

What do you mean with verifications steps?

I tried it several times and it downloaded the update also several times from the internet.

I uninstalled Magisk from within the app. Was this correct our did this just uninstall the app?
 

Yahoo Mike

Senior Member
Apr 3, 2011
298
111
Newcastle
Can I somehow get a log of the update process via USB/adb?
Is there anything in /cache/recovery/ ? Hopefully you don't need Magisk installed to see it.
What do you mean with verifications steps?
The OTA checks to make sure some partitions are stock and the correct version. That can fail if you've installed programs that modify boot, firmware, system, vendor etc.

I uninstalled Magisk from within the app. Was this correct our did this just uninstall the app?
Possibly. Did Magisk restore stock boot image? If not, you need to do that from your own backup.
 
Last edited:

jmozmoz

Member
Dec 17, 2011
31
6
Thank you for your help.

Is there anything in /cache/recovery/ ? Hopefully you don't need Magisk installed to see it.
I reinstalled Magisk to get root. Then I can read the directory. Here is a list of the files.

Code:
block.map last_kmsg last_kmsg.2 last_kmsg.4 last_kmsg.6
last_log last_log.2 last_log.4 last_log.6  uncrypt_file last_install
last_kmsg.1 last_kmsg.3 last_kmsg.5 last_locale last_log.1 last_log.3
last_log.5 last_log.gz

This is the content of last_install
Code:
@/cache/recovery/block.map
0
time_total: 27
retry: 0
source_build: TB-X606F_USR_S300249_2105081505_V9.56_BMP_ROW
target_build: TB-X606F_USR_S300320_2107160909_V9.56_BMP_ROW
error: 1004
cause: 107
uncrypt_time: 1
temperature_start: 41100
temperature_end: 39100
temperature_max: 41100

This is the end of the last_log file:
Code:
[   26.061563] creating stash /cache/recovery/1fb420b778bead14ec9b2cf264fcaa8e147e3e39
[ 26.069397] 229040128 bytes free on /cache (49373184 needed)
[   26.069481] /cache/recovery/last_command doesn't exist.
[   27.062575] failed to verify blocks (expected 70f71588dafdd451ce64b512fba7831fa2b96818, read 88ea1f84a9c173de0fd5055458912c4d119e26cb)
[   27.062732] stat "/cache/recovery/1fb420b778bead14ec9b2cf264fcaa8e147e3e39/70f71588dafdd451ce64b512fba7831fa2b96818" failed: No such file or directory
[   27.062760] No stash saved for id: 70f71588dafdd451ce64b512fba7831fa2b96818
[   27.062786] partition has unexpected contents
[   27.062812] unexpected contents of source blocks in cmd:
[   27.062833] bsdiff 57271419 2970 70f71588dafdd451ce64b512fba7831fa2b96818 efea43b87559c470fa0c4d2c87537a577a24d08c 2,1,513 512 2,1,513
[   27.062877] printing hash in hex for 512 source blocks
[   27.062913]   block number: 1, SHA-1: 5b5b11714cb184abb84202a95439118707e8f819
...
[   27.079851] failed to read blocks for diff
[   27.079880] failed to execute command [bsdiff 57271419 2970 70f71588dafdd451ce64b512fba7831fa2b96818 efea43b87559c470fa0c4d2c87537a577a24d08c 2,1,513 512 2,1,513]
[   27.080223] deleting stash 1fb420b778bead14ec9b2cf264fcaa8e147e3e39
[   27.104839] Device was remounted R/W 1 times
[   27.105132] Last remount happened on Mon Jul  5 20:32:00 2021
[ 27.105160]
[   27.105329] /dev/block/platform/bootdevice/by-name/system image corrupted, attempting to recover...
[   27.109145] script aborted: unable to use metadata to correct errors
[   27.109209] E1004: system partition fails to recover
[   27.221864] E:Error in @/cache/recovery/block.map (status 7)
[   27.237776]
[   27.320056] I:current maximum temperature: 39100
[   27.320348] I:@/cache/recovery/block.map
[   27.320401] I:0
[   27.320444] I:time_total: 27
[   27.320485] I:retry: 0
[   27.320579] I:source_build: TB-X606F_USR_S300249_2105081505_V9.56_BMP_ROW
[   27.320622] I:target_build: TB-X606F_USR_S300320_2107160909_V9.56_BMP_ROW
[   27.320679] I:error: 1004
[   27.320720] I:cause: 107
[   27.320761] I:uncrypt_time: 1
[   27.320802] I:temperature_start: 41100
[   27.320843] I:temperature_end: 39100
[   27.320883] I:temperature_max: 41100
[   27.320923] I:
[   27.320979] Installation aborted.
[   32.354175] I:Saving locale "de-DE"

The OTA checks to make sure some partitions are stock and the correct version. That can fail if you've installed programs that modify boot, firmware, system, vendor etc.

Possibly. Did Magisk restore stock boot image? If not, you need to do that from your own backup.
I did restore boot.img from the TWRP backup with TWRP. This was the only way to uninstall TWRP.

If possible, I would like to avoid wiping the device/loosing all apps/settings/...

So, can/shoud I restore some of the other partitions? One of the log messages above seems to indicate, that the system partion is not as expected.

Edit:
Just an idea: In Magisk I enabled systemless hosts-file. Does this modify the system image?
 

Yahoo Mike

Senior Member
Apr 3, 2011
298
111
Newcastle
So, can/shoud I restore some of the other partitions? One of the log messages above seems to indicate, that the system partion is not as expected.
Yes. The OTA wants your Android to be stock, including boot, system and vendor partitions.

The other alternative is to wait for full ROM. Then you can use @scottyrick2 's method to bypass the OTA.
 
Last edited:
  • Like
Reactions: jmozmoz

Chaser42

Senior Member
Jun 11, 2015
90
71
Houston, TEXAS
Hey Mike, it's really good to see you over here! You have really done a kick ass job supporting these tablets.

So I have finally moved on from the P10. I got an M10 FHD plus (TB-X606FA) and it's great. Android 10 has made a big difference for me.

So I wanted to ask if you or anybody else gets laggy or sluggish performance when in TWRP. Fortunately it looks like it does work. However, you have to have a patience. It seems like it takes minute to acknowledge my touches. So if I get busy doing something else, the screen locks and then it will take several minutes to acknowledge my unlock swipe. Crazy it makes me batshit! Surely I've done something wrong?

Chaser
 
  • Like
Reactions: Yahoo Mike

Yahoo Mike

Senior Member
Apr 3, 2011
298
111
Newcastle
So I have finally moved on from the P10. I got an M10 FHD plus (TB-X606FA) and it's great. Android 10 has made a big difference for me.
Don't throw out the P10. Some smart guys (well, smarter than me anyways) are working on LOS for that tablet. You might see Android 12 yet...

So I wanted to ask if you or anybody else gets laggy or sluggish performance when in TWRP. Fortunately it looks like it does work. However, you have to have a patience. It seems like it takes minute to acknowledge my touches. So if I get busy doing something else, the screen locks and then it will take several minutes to acknowledge my unlock swipe. Crazy it makes me batshit! Surely I've done something wrong?
You shouldn't be seeing such a delay. You have the exact same tablet as me. There's no delay on mine.

Not sure what to recommend. Maybe use LMSA to rebuild the tablet? Take out your sdcard to see if that's the problem?

Check if there are any log errors when you're in twrp. Log is /tmp/recovery.log. Maybe check the kernel log for errors, too.
 

scottyrick2

Senior Member
Dec 2, 2020
63
27
Lenovo Thinkpad Tablet
Moto E6
FYI, the Android 11 CAOS GSI Rom works fantastic on this tablet. No conflicts with Magisk, and it is super smooth and responsive. Even faster than stock. I suggest you try it. Installing monthly updates is as simple as installing the gsi image, and then re-installing Magisk.zip, from TWRP.

I am always up to date on the latest Android. What could be better?
 

ldeveraux

Senior Member
Nov 20, 2008
2,477
899
Lenovo Thinkpad Tablet
Nexus Q
FYI, the Android 11 CAOS GSI Rom works fantastic on this tablet. No conflicts with Magisk, and it is super smooth and responsive. Even faster than stock. I suggest you try it. Installing monthly updates is as simple as installing the gsi image, and then re-installing Magisk.zip, from TWRP.

I am always up to date on the latest Android. What could be better?
sure, but stock is just fine. Update procedure is pretty much the same. Why go with AOSP if your experience will be 1% better but potential for disaster is much greater? haha
 

mckennascole

Senior Member
Dec 8, 2012
62
1
Well, I followed your instructions precisely, updated the driver, fastboot and adb. I unlocked it but after the command "fastboot --disable-verification flash vbmeta vbmeta.img" the last fastboot command to reboot to recovery doesn't work. Volume down+up+power doesn't put it into recovery, either. I used down+power to fastboot mode and tried things :). After rebooting to bootloader I ran the fastboot reboot recovery command and it booted to its original recovery.

edit: the "fastboot reboot recovery" command took when I ran the command line in admin mode but it booted to a black screen. When I re-ran, it booted to original recovery screen
 
Last edited:

seeyaomi

Member
Jan 11, 2020
25
7
FYI, the Android 11 CAOS GSI Rom works fantastic on this tablet. No conflicts with Magisk, and it is super smooth and responsive. Even faster than stock. I suggest you try it. Installing monthly updates is as simple as installing the gsi image, and then re-installing Magisk.zip, from TWRP.

I am always up to date on the latest Android. What could be better?
Hi, I would like to try this out. I installed TWRP and Magisk on this tablet X606F, but would like to try this CAOS Rom out. I've only ever installed Lineage before. Could you direct me to a proper download page? When I google it, the most official looking thing I find is this:


But it says the latest version is from end of 2020. Is that right?

And out of this list, would this be the correct image?:

caos-v224-201029-arm64-bvN.img.xz

arm64, and b? (Actually, I just remembered that you can check a or b in Magisk I think..., it's been a while)

Thanks.


Actually, I just clicked around and found this

Treble-Enabled Device Development A/AB ROMS​

section. Can I for example install Lineage18 from there? I couldn't find an unofficial Rom for this tablet, but now I'm confused. Does the device need to 'support' Treble, and well, does this tablet? I'd love to put Lineage on it.
---------------

Addendum:
Actually, I just spotted the 'known bugs' section at the end:

• excluding fixes, the same as on AOSP Quack (in some cases doesn't work: broadcasting on TV, calls via BT; offline charging does not work normally; problems with GPS etc etc)

which is throwing me off quite a bit. Can you confirm that these bugs exist? This would definitely keep me from installing this ROM.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    This version of TWRP works on the Lenovo TB-X606FA and TB-X606F. It might also work on the other variants of TB-X606. Reported working on TB-X606X.

    Warning: this TWRP will not work for any of the Tab M10 variants with Qualcomm SOCs. For the TB-X505F, see this thread. For the TB-X605F/L, see this thread.

    Code:
    #include <std_disclaimer.h>
    /*
    * We are not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    */

    Working:
    Almost everything is working including:
    • data decryption
    • MTP
    • OTG

    Known issues:
    • time not adjusting for Daylight Saving
    • OTA (see this post)

    Installation
    It is recommended that you also install Magisk. This will ensure TWRP remains your default recovery.

    If Windows 10 does not recognise your tablet in fastboot mode, then see post #2.

    Step-by-step guide

    1. download TWRP to your PC (see the Download section below)
    2. download magisk.apk to your MicroSD or OTG device. Change the filetype from "apk" to "zip". Get the latest Magisk apk file here.
    3. get a copy of the vbmeta.img file from the stock ROM. It should be located in one of the subdirectories of LMSA's c:\ProgramData\LMSA\Download\RomFiles directory (after you download it using the LMSA rescue (power-off mode). This is only required the first time you flash TWRP, or the first time after you re-flash the whole stock ROM.
    4. if your bootloader is already unlocked, go to step 5. To unlock bootloader:
      • on tablet: go to Settings->System->About and press "Build number" 7 times to enable Developer Options.
      • on tablet: go to Settings->System->DeveloperOptions. Turn on: "OEM unlocking" and "USB debugging".
      • connect tablet to your computer. Tablet will ask for permission to "Allow USB debugging". Tick "always allow" and select "OK".
      • backup any files you want to keep to an external device (MicroSD/OTG/computer), because the next step will wipe all your photos, files, google account etc on the tablet.
      • Now unlock the bootloader:
        Code:
        adb reboot bootloader
        fastboot flashing unlock
      • follow the instructions on the tablet, then reboot to Android.
      • note: if fastboot reports <waiting for device>, then you need to install the Mediatek USB drivers. Go to developer.android.com/studio/run/oem-usb, then find the link to Mediatek (MTK) and follow the installation instructions.
      • note: after unlocking, tablet will take a while to come back up - because it has to do a factory reset and encrypt data again.
    5. flash the TWRP image:
      Code:
      adb reboot bootloader
      fastboot flash recovery twrp_X606FA_10.img
      fastboot --disable-verification flash vbmeta vbmeta.img
      fastboot reboot recovery
    6. backup the stock boot, system and vendor partitions in TWRP, if you don't have backups already
    7. load Magisk:
      In TWRP:
      • select "Install"
      • use "select storage" to locate device you stored magisk.zip on.
      • press the OK button
      • select the Magisk zip file
      • swipe to confirm Flash
      • when Magisk is finished, hit the "Reboot System" button
    8. finished!

    If you prefer to use button combos, rather than fastboot/ADB commands:
    • Vol Down + Power = fastboot mode
    • Vol Up + Vol Down + Power = recovery mode

    Changelog
    Code:
    2021-07-05 - TWRP 3.5.2 updates
               - corrected display of Cyrillic (and other non-ASCII characters) in file names on external drives (utf8)
    
    2021-03-10 - TWRP 3.5.1 updates
               - cherrypicked update 1995 to force splash screen to display on boot
               - orientation is now landscape (for tablets)
               - updated install instructions to reflect new Magisk apk (v22).
    
    2021-02-02 - fix blank screen on boot - don't need to press power button anymore to wake screen up
    
    2021-01-24 - TWRP 3.5.0_10-0: initial release

    Downloads

    Source code

    Credits
    The guys at TeamWin Recovery Project.
    Everyone whose device trees I plagiarised from GitHub.

    Contributors
    Yahoo Mike

    Created 2021-01-24
    Last Updated 2021-07-05 (released v3.5.2)
    2
    Thanks scottyrick2 for pointing me in the right direction. I installed Lineage 18 but afterwards had an error, TWRP asked for a password (to decrypt data, without which you can't flash anything), although I never set one, so I would get 'mount system failed' errors. Someone here had the same problem, and the problem was that this TWRP is for Android 10. So I installed Lineage 17 instead, from this thread:


    and THEN it worked flawlessly, and I could install OpenGapps for Android 10 and Magisk via TWRP.

    GPS works, Bluetooth works, Camera works, root works.

    One problem persists, and that is in TWRP I can't activate ADB sideload, as soon as I swipe you can hear the "device disconnect" sound from Windows. And then no devices are found. But since I can just copy the files over while in TWRP, it's not a huge deal.
    Edited: Also, for completeness sake, the offline charging (what a stupid name) is bugged. Battery symbol shows up, but no percentage number, and it just stays frozen like that. But it will still charge, you just don't know how much it's charged. No big deal.

    And now I have a nice system, without all the Google Crap on it.

    I feel bad for all the beginners out there. How is anyone supposed to figure this out :D Takes hours to google for every new device to do something that you've done many times before...
    2
    Ok. And is it possible to flash full rom via flashtool without factory reset?
    I have finished investigating SP Flash Tool as a possible method for upgrading. My conclusion... don't use it. It is too easy to screw up the update.

    The good news is that now I have identified the only partitions which will be upgraded during a firmware upgrade of this tablet, and they are boot, system, and vendor. The others are never touched., based on my review.

    Conclusion: Stick with post #108 or post #87 when you upgrade firmware. Your choice.
    2
    TB-X606F/ZA5T0300US (the manual also says TB-X606X) confirmed TWRP and Magisk are working. Had a hell of a time with getting fastboot to work on my main machine so I used a virtual machine to do everything with fastboot.
    2
    Just installed it now and works fine on my X606X 4/64 with X606V rom. It works only on landscrape mode?
    I get only 1 error during this time "Failed to mount "/product" (invalid argument)", I dont know if it is a some critical error or not.
    Ignore that error. Not critical.