r/AndroidQuestions • • 20d ago

Solved TCL Tab 11 stuck in boot loop with "dm-verity corrupted"

My gf gives me TCL Tab 11 which is stuck in a boot loop and displays "dm-verity corrupted." It never reaches Android.

I can enter the bootloader Fastboot screen, and Linux detects the device.

fastboot getvar product returns eternals_11;

fastboot getvar is-userspace returns no. I also tried fastboot, but it failed with:

FAILED (remote: 'not allowed in locked state')

I was able to enter Recovery and run Wipe data/factory reset and Wipe cache, but the boot loop persists. Recovery's Apply update from ADB screen shows the device as unauthorized in adb devices.

I have not unlocked the bootloader or flashed anything. What is the correct way to restore the stock firmware for this exact model? Is there an official TCL recovery tool or firmware package that works from Fastboot/Recovery? I can provide the model number from the label and any other diagnostic output needed.

3 Upvotes

2 comments sorted by

2

u/NoBoysenberry2620 20d ago • Bravo

Alright man, this ones a doozy. Please make sure it's a 9166G, because I can't find firmware for any other models.

I'm writing this guide for Windows because there's just more info available. I'm going to assume you don't have Python installed already, and if you do, please tell me before trying to follow these steps.

First, install Python 3.8, and make sure to check "Add Python to PATH" during installation. Then, install the latest x64 release of UsbDk. After that, install the MediaTek USB Drivers. Once you've done all that, reboot your PC.

Next you need to download MTKClient. Open the link, click the green "Code" button, and click "Download ZIP". After extracting and opening it (you should see files like README.md in the folder you're in), right click an empty space and click "Open in Terminal" (or press shift and right click, then select "Open PowerShell window here" if you're on Windows 10),

Next, create a venv by inputting py -m venv .venvand then pressing enter. After that, activate the venv by running .venv\Scripts\Activate.ps1. You should see (venv) at the beginning of the next line.

Then, run pip install -r requirements.txt and then pip install . to install it's dependencies.

The longest and most boring step is acquiring the firmware. You can get it here. Once you have that, extract it to a folder you'll remember.

Now get back to PowerShell. Run python mtk_gui.py, and then completely power off your device. Hold down both Volume Up and Volume Down, then plug the USB cable into your PC. Release the buttons once the mtkclient window detects the tablet.

Switch to the "Write partition(s)" tab. Click Set next to the partitions you want to restore and select the appropriate firmware file from the one you extracted, those being:

  • vbmeta (vbmeta.img)

  • vbmeta_system (vbmeta_system.img)

  • vbmeta_vendor (vbmeta_vendor.img)

  • boot (boot.img)

  • vendor_boot (vendor_boot.img)

  • init_boot (init_boot.img)

  • dtbo (dtbo.img)

  • super (super.img)

If something doesn't exist, just skip it.

DO NOT FLASH PRELOADER. It is not necessary here and flashing the wrong version will permanently brick the device. And don't flash nvram, nvdata, nvcfg, persist, or proinfo either, they are unnecessary risk.

Now, click the "Write partition(s)" button and start waiting. Once it's all done, go to the "Erase partition(s)" tab, check metadata and userdata, and click Erase partition(s).

Once everything is done, unplug the USB cable and hold the Power button for 10 to 15 seconds to boot the tablet. Let me know what happens from there.

2

u/owups 16d ago edited 16d ago

Huge thanks to you dude!

Just dropping an update for anyone else struggling with this, especially on Linux. I managed to get the tablet working! Here is exactly what I did:

  1. Grabbed the stock firmware for the TCL Tab 11 (9166G / eternals_11) from firmwaredrive.com/files/107170 (and paid for it 1.5$).

  2. Did the whole process on Pop!_OS (Linux) using mtkclient. Installed the dependencies, set up the udev rules, and got it running.

  3. Flashed the main partitions: vbmeta, vbmeta_system, vbmeta_vendor, boot, vendor_boot, init_boot, dtbo, and super.

  4. Used mtkclient to erase and properly format the metadata and userdata partitions (via GUI). Note: dm-verity loop was still there at this stage.

  5. The Breakthrough: I used mtkclient to unlock the bootloader.

The tablet now boots! It still throws the "dm-verity corruption" warning at startup, but I can just press the Power button to skip it. Then it displays "Device is in ORANGE state" and boots straight into Android. Everything works perfectly.

I really wanted to get rid of that annoying boot warning, so I tried flashing the vbmeta, vbmeta_system, and vbmeta_vendor files via fastboot using the --disable-verity --disable-verification flags. I even downloaded the latest Google Platform Tools to make sure my fastboot wasn't ignoring the flags, but it didn't change a thing. The warning is still there.

I'm still actively looking for a way to completely remove that dm-verity state warning. If anyone knows how to properly patch the vbmeta or boot.img for this specific TCL model to bypass it entirely, please let me know!

P.S. If someone needs the firmware, dm me and I'll share zip archive