• 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

Yahoo Mike

Senior Member
Apr 3, 2011
297
109
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,474
899
Lenovo Thinkpad Tablet
Nexus Q
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

Senior Member
Dec 2, 2020
59
25
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:
  • Like
Reactions: jmozmoz

Yahoo Mike

Senior Member
Apr 3, 2011
297
109
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
297
109
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
297
109
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

Senior Member
Dec 2, 2020
59
25
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,474
899
Lenovo Thinkpad Tablet
Nexus Q
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

Senior Member
Dec 2, 2020
59
25
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,474
899
Lenovo Thinkpad Tablet
Nexus Q
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

Senior Member
Dec 2, 2020
59
25
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
297
109
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,474
899
Lenovo Thinkpad Tablet
Nexus Q
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
    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?
    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...
    1
    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
    1
    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

    Soundforge link is correct latest is August 2021.. The tablet of course has no phone so those bugs don't apply. I have not experienced the other bugs mentioned. It sure is superior to lineage as far as bugs. As I said easy to try. Install gsi arm64 bgS rom in Twrp. If you don't like it you can always reflash the stock system image via Twrp and you are right back where you are now.
  • 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.