• 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

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

Search This thread

Yahoo Mike

Senior Member
Apr 3, 2011
277
104
Newcastle
oh yeah, I thought there was a way within Magisk, my b
Yes, Magisk usually makes a backup too. But only if you install with twrp or Magisk Manager.

Magisk doesn't do a backup if you use the patched boot.img method.

But be aware that if you install anything else that changes system or vendor images, then the OTA will still fail - even after you uninstall Magisk. For example, the disable_dm-verity zips often change partitions other than boot, and you'll need to restore those stock images (and possibly more) before the OTA will run.
 

ldeveraux

Senior Member
Nov 20, 2008
2,440
887
Can I just disable automatic updates somehow? Whatever I did last time still does not allow me to disable Magisk, because apparently I have no backup. I don't know how I would have made a recovery backup in TWRP. Or where can I download the latest stock update images so I can remove the recovery and flash everything else?

EDIT: I found the latest X606F image, how could I flash it without overwriting recovery? And without wiping?
 
Last edited:

scottyrick2

Member
Dec 2, 2020
46
14
Lenovo Thinkpad Tablet
Moto E6
If you are are rooted with this working TWRP, I recommend you update by the TWRP update method only. Never use OTA. The TWRP update method is as follows:

1. download and extract the new ROM, when available, from https://mirrors.lolinet.com/firmware/lenovo/Tab_M10_FHD_Plus_2nd_Gen/TB-X606F/

2. copy boot.img, system.img, and vendor.img from the new ROM to your tablet's download folder.

3. reboot into TWRP and install these 3 image files into their proper partitions. You should be able to pick the correct partition for each image file from the TWRP menu.

4. re-install Magisk.zip

I have not used the TWRP update method on this device yet, but have used it many times before on many other phones with great success. Note, you might not need to install the vendor.img file when updating.
 
Last edited:

Yahoo Mike

Senior Member
Apr 3, 2011
277
104
Newcastle
Can you please explain how to use the Update on post 1...
Have a look at the step-by-step guide in post 1. There should be a "Click to Show Content" button.

Is there a step that's not working for you?

...what i must do with the github files? You posted the links but don‘t Talk about it
Nothing. You only need the github files if you want to compile twrp yourself. XDA rules say I have to provide a link to the source for the twrp that I've posted.
 

Yahoo Mike

Senior Member
Apr 3, 2011
277
104
Newcastle
Can I just disable automatic updates somehow? Whatever I did last time still does not allow me to disable Magisk, because apparently I have no backup. I don't know how I would have made a recovery backup in TWRP. Or where can I download the latest stock update images so I can remove the recovery and flash everything else?

EDIT: I found the latest X606F image, how could I flash it without overwriting recovery? And without wiping?
If you want to use QDL or QFIL SP Flash Tool (in C:\ProgramData\LMSA\Download\ToolFiles) to flash the image, it requires some serious linux skills to edit the files that tell the programs what to load and where. I wouldn't attempt it, because if you make an error calculating where the images go then you could hardbrick your device forever.

Edit: I keep forgetting this is an MTK SOC. Sorry.

If you didn't make your own backups, the simplest thing to do is:
  • backup your data
  • rescue tablet using LMSA
  • install twrp
  • backup boot, system and vendor images before installing Magisk
  • install Magisk zip
  • reboot
  • restore your data
 
Last edited:

Yahoo Mike

Senior Member
Apr 3, 2011
277
104
Newcastle
If you are are rooted with this working TWRP, I recommend you update by the TWRP update method only. Never use OTA. The TWRP update method is as follows:

1. download and extract the new ROM, when available, from https://mirrors.lolinet.com/firmware/lenovo/Tab_M10_FHD_Plus_2nd_Gen/TB-X606F/

2. copy boot.img, system.img, and vendor.img from the new ROM to your tablet's download folder.

3. reboot into TWRP and install these 3 image files into their proper partitions. You should be able to pick the correct partition for each image file from the TWRP menu.

4. re-install Magisk.zip

I have not used the TWRP update method on this device yet, but have used it many times before on many other phones with great success. Note, you might not need to install the vendor.img file when updating.
Interesting hack. It should work provided the OTA only updated those three partitions. However, if the OTA updated other partitions, then you might get unexpected behaviour and/or dm-verity issues when you try to reboot.

Might be wise to backup the three partitions before you install the new ones, in case you need to restore them.
 
  • Like
Reactions: scottyrick2
Have a look at the step-by-step guide in post 1. There should be a "Click to Show Content" button.

Is there a step that's not working for you?


Nothing. You only need the github files if you want to compile twrp yourself. XDA rules say I have to provide a link to the source for the twrp that I've posted.
I‘ve rooted it succesfully. After i read it 2-3 times all was clearly.
Thanks for your answer
 
  • Like
Reactions: Yahoo Mike

scottyrick2

Member
Dec 2, 2020
46
14
Lenovo Thinkpad Tablet
Moto E6
Interesting hack. It should work provided the OTA only updated those three partitions. However, if the OTA updated other partitions, then you might get unexpected behaviour and/or dm-verity issues when you try to reboot.

Might be wise to backup the three partitions before you install the new ones, in case you need to restore them.
Mike,

I rechecked the last several firmwares, and the only one that changes besides these 3 img files is lk-verified.img., which is related to a verfied boot. Magisk makes that file irrelevent. Also, I would hope that everyone has also wiped their data partition and factory-reset prior to installing magisk so that they have no forced encryption issues going forward.
 
  • Like
Reactions: Yahoo Mike

ldeveraux

Senior Member
Nov 20, 2008
2,440
887
If you are are rooted with this working TWRP, I recommend you update by the TWRP update method only. Never use OTA. The TWRP update method is as follows:

1. download and extract the new ROM, when available, from https://mirrors.lolinet.com/firmware/lenovo/Tab_M10_FHD_Plus_2nd_Gen/TB-X606F/

2. copy boot.img, system.img, and vendor.img from the new ROM to your tablet's download folder.

3. reboot into TWRP and install these 3 image files into their proper partitions. You should be able to pick the correct partition for each image file from the TWRP menu.

4. re-install Magisk.zip

I have not used the TWRP update method on this device yet, but have used it many times before on many other phones with great success. Note, you might not need to install the vendor.img file when updating.
You're the real MVP right here! This is exactly what I was looking for and it worked great. I've had the update nag since the end of May when that latest fw was released, now I'm up to date.

I wonder if I can remove the recovery image from the zip and flash it in TWRP? Isn't that how it's usually done? I've never build a TWRP flashable ROM before, but plenty of linux experience.
 
  • Like
Reactions: Yahoo Mike

scottyrick2

Member
Dec 2, 2020
46
14
Lenovo Thinkpad Tablet
Moto E6
You're the real MVP right here! This is exactly what I was looking for and it worked great. I've had the update nag since the end of May when that latest fw was released, now I'm up to date.

I wonder if I can remove the recovery image from the zip and flash it in TWRP? Isn't that how it's usually done? I've never build a TWRP flashable ROM before, but plenty of linux experience.
I suggest you leave that stock recovery image right where it is. TWRP is now your permanent recovery image. If you flash a stock recovery in TWRP, which you can do of course, you will overwrite the TWRP recovery image. Very bad idea.

As far as building a TWRP flashable ROM, I don't know too much about it, but I know there are a few tutorials out there on the internet.
 
Last edited:

ldeveraux

Senior Member
Nov 20, 2008
2,440
887
I suggest you leave that stock recovery image right where it is. TWRP is now your permanent recovery image. If you flash a stock recovery in TWRP, which you can do of course, you will overwrite the TWRP recovery image. Very bad idea.

As far as building a TWRP flashable ROM, I don't know too much about it, but I know there are a few tutorials out there on the internet.
I meant can I remove the recovery.img from the ROM.zip so I can flash it in TWRP. I definitely don't want to flash recovery.img in TWRP! so yeah, TWRP flashable ROMs, let's figure it out
 
  • Like
Reactions: scottyrick2

scottyrick2

Member
Dec 2, 2020
46
14
Lenovo Thinkpad Tablet
Moto E6
this looks promising for building a twrp flashable-update zip. at least its a start

 
  • Like
Reactions: Yahoo Mike

Yahoo Mike

Senior Member
Apr 3, 2011
277
104
Newcastle
I meant can I remove the recovery.img from the ROM.zip so I can flash it in TWRP. I definitely don't want to flash recovery.img in TWRP! so yeah, TWRP flashable ROMs, let's figure it out
Using an Android kitchen, you could unpack the ROM, remove the recovery image, then make a flashable zip.

But I'm not sure what stock Android will do if you later remove Magisk. I guess the attempt to restore stock recovery will fail and TWRP will remain untouched. So it might be ok.
 

ldeveraux

Senior Member
Nov 20, 2008
2,440
887
Using an Android kitchen, you could unpack the ROM, remove the recovery image, then make a flashable zip.

But I'm not sure what stock Android will do if you later remove Magisk. I guess the attempt to restore stock recovery will fail and TWRP will remain untouched. So it might be ok.
I've never had Magisk restore stock recovery on this device regardless. I don't know what I'm doing wrong, but this method explained above is the best bet for me. I'll look into a kitchen.
this looks promising for building a twrp flashable-update zip. at least its a start

[/URL]
...but likely not this one, since the op is from 8 years ago! I'll take a peek for sure
 

Top Liked Posts

  • There are no posts matching your filters.
  • 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
    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.
    2
    You bootloader is locked. You need unlock bootloader first and then you can flash TWRP in to your tablet.
    I did that everything fine now root done
    1
    Is it possible to flash full ota update zip via flashtool without factory reset? How? Regards
    I think the answer is no. OTAs are installed in recovery mode, not in a flashtool. Full ROMs are loaded in a flashtool.

    Did you get twrp to run on the X606X ? Were there any errors?
    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.
  • 6
    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
    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.
    2
    RE: Fastboot - as a Linux user, these programs are updated regularly, as part of the operating system, so I'm good there.

    "fastboot reboot recovery" returns in a "reboot target unknown"...
    I use Ubuntu for Android development. I manually install the Android development tools from Google. They work fine with my X606FA. I remember having problems with the tools from the Ubuntu repos.

    Otherwise it's possible Lenovo removed this option from the Android bootloader itself ??? Which version of stock are you using?
    ...and the 3-button trick brings me to Lenovo Stock Recovery.
    If you flash twrp and the tablet goes to stock recovery, then you have to re-flash twrp and try again.

    The issue is that stock Android re-flashes stock recovery during boot up. Magisk by-passes that step, so twrp persists after booting Android with root access.

    If you can't get 3 button combo to work, you could patch the boot.img with Magisk to root the tablet. Then use adb to boot into fastboot and recovery modes. Make sure the boot.img matches the stock version of Android you are running.