yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] cbomb1337:
I bricked my tablet by installing the latest update then as it rebooted it kept going to Twrp and not the installer so I tried to wipe everything and now I can't get it to boot up and plugging it in says USB device malfunctioned. I am thinking of tossing it in the garbage now. I am over phone rooting now.
[Thinkpad Tablet Android Development] Yahoo Mike:
Try rescuing the tablet with LMSA on a Windows PC. Hopefully that will rebuild all the partitions you wiped. It's worth a try.

Lots of people have problems with the VolUp+USB instructions during the rescue. LMSA gets stuck around 34%. You can keep disconnecting the USB and try again (VolUp +USB). No need to restart the software. Let it sit there waiting for the tablet to enter Emergency Download (EDL) mode.

If the rescue works, then let the OTA run on the tablet before installing TWRP and Magisk again.

Also, just double-check your M10 has the SDA450 before installing this TWRP. Under settings->system->about, the CPU option should read: "Qualcomm Snapdragon 450".
[Thinkpad Tablet Android Development] cbomb1337:
Whenever I plug it in it says it's not recognised and the USB device has malfunctioned . So I try the lmsa rescue and nothing happens after the 33% I think I need correct USB drivers because even when the tablet was working I was getting issues like that.
[Thinkpad Tablet Android Development] saphta:
[MENTION=3900426]Yahoo Mike[/MENTION]

Could you please make a TWRP version for the X505F (Lenovo Tab M10 HD)?

Thanks!
[Thinkpad Tablet Android Development] Yahoo Mike:
I've PM'ed you. Hopefully we can have one in the next week or two.
[Thinkpad Tablet Android Development] cbomb1337:
Do you think Lenovo will know I rooted the tablet if it send it back through big W? I am about to throw it out so am considering this. The device doesn't boot at all the most it shows is the Lenovo logo. I might buy another if they won't replace it. I like viper 4 android on it . Or do you know of any other cheaper handset with root and audio mods.
[Thinkpad Tablet Android Development] Yahoo Mike:
I guess they'll see that the bootloader is unlocked. Maybe just insist that the "USB malfunctioned" problem is a hardware issue (not software) and you want a replacement. If you're going to throw it out, then it's worth a try. Depends on consumer law in your country.
[Thinkpad Tablet Android Development] Yahoo Mike:
Edit: see this post for a version of TWRP that works with the TB-X505F.

Bad news I'm afraid...TWRP is not coming to the TB-X505F any time soon. Probably never.

The X505F uses a Goodix brand touchscreen. Unfortunately, the goodix touchscreen drivers don't load in recovery mode on the X505F.

My guess is that the kernel assumes you don't need touchscreen in recovery, so it just doesn't load the touchscreen drivers.

The usual fix is to modify the kernel code, which manufacturers are legally obliged to release under the GPL licence. Of course, Lenovo hasn't released the code...

I unsuccessfully tried the prebuilt kernels for stock and recovery (Pie and Oreo). The goodix drivers don't load using any of them.

The only other tablets I found with SDA429 are Samsung SMT290 and SMT295. I didn't bother trying their kernels, because Samsung do strange things to their kernels.

So until Lenovo releases the GPL source or some poor fool with no time writes a kernel from CAF source or hacks the prebuilt kernel, the X505F will not be getting touchscreen TWRP.

Great job Lenovo !

Big shout out to [MENTION=5432575]saphta[/MENTION] and [MENTION=10054584]11mackey11[/MENTION] for testing some of the versions I built. Sorry guys..we tried.
[Thinkpad Tablet Android Development] oguska:
Do you think this tablet gets an custom rom development soon? Thank you for the recovery.
[Thinkpad Tablet Android Development] aftnoon2:
Maybe some day we could have a TWRP recovery for the TB-X606F with the Mediatek Soc?

Sorry if this question is similar to another one I have posted in another thread, about rooting this tablet.
[Thinkpad Tablet Android Development] Teddy1904:
I assume to do this, someone needs the source code of the kernel / recovery to do this

You should ask Lenovo for the sources for your specific model in their support forum

https://forums.lenovo.com/t5/Lenovo-Android-based-Tablets-and-Phablets/bd-p/lt02_en

I already did this for the X605F/L model, but this takes some time
[Thinkpad Tablet Android Development] Yahoo Mike:
Luckily, Lenovo have released the kernel source for the X606F. But you can build TWRP without the kernel source, if you want - assuming the pre-built kernel works with TWRP.

I asked on the forum too, and still have an open ticket with Lenovo for the source code. I seriously don't think they're going to release it.

I gave up waiting and ported the X705F kernel to the X605F. Have a look at this thread.
[Thinkpad Tablet Android Development] OSIRIS2010:
Lenovo M10 LTE TB-X605L

For Lenovo Tab M10 X605L

Full Stock ROM (downloaded via LMSA 'rescue' menu)

https://drive.google.com/file/d/1oJa...ew?usp=sharing

Magisk patched boot image for X605L

https://drive.google.com/file/d/1G6I...ew?usp=sharing

Original Bootloader Image

https://drive.google.com/file/d/1eey...ew?usp=sharing
[Thinkpad Tablet Android Development] 0alx124:
I think it's not necessary to build LOS for X605F, because it is compatible with project treble, so you would only need to find an appropriate gsi. Am I wrong?

Sorry for my bad english.
[Thinkpad Tablet Android Development] Yahoo Mike:
My understanding is that Treble is limited to the same Android version as the stock ROM. So it will currently only work on Pie, not 10 or 11.

I haven't looked at LOS for the M10 for a while. I've got it to boot, but haven't had time to fix the driver issues. I should have time next month to have another look. It would be nice to have 10 (and soon 11) on these tabs.
[Thinkpad Tablet Android Development] miramanee:
Hello friends!

The instructions are very eloquent and I only needed one try for my X605L with TWRP. I have downloaded and installed Magisk 20.4 and MagiskManager 7.5.1. So far everything is good, apps can be installed and root privileges are granted. But when I want to install BusyBox or copy data with RootExplorer, my tablet hangs up. It's not a freeze, it's like the data is copied, but nothing happens anymore. Not even after an hour. Typing does not work anymore and also the function keys (volume) do not work. Only a hard reset remains. Actually I only wanted to change the boot animation. Apps like Titanium Backup work without problems.

Installed firmware: TB_X605L_S210156_200212_ROW
[Thinkpad Tablet Android Development] Yahoo Mike:
Are you using the latest version of Root Explorer? It was updated a few months ago to make it compatible with the new Magisk.

And are you using the Busybox Magisk module? You can download it in the Magisk Manager under 'downloads'.

Also double-check in the Magisk Manager that Root Explorer has superuser access. And run the SafetyNet check in Magisk to ensure it passes ok.
[Thinkpad Tablet Android Development] miramanee:
Thanks for your exhaustive answer. :good:

I've been rooting my devices for many years. It's always easier when there's an alternative like LineageOS. Otherwise you only have the possibility to pry up the original. Which is not always without problems, I know that. The annoying thing about the X605L is that it has an encrypted data partition by default.

I always have current versions of the apps. The writing problem here is with every program I try. Even an app for easy integration of new boot animations hangs as soon as it wants to write. On other devices I have no problems. I tried again with Total Commander and Ghost Commander. All permissions were given correctly, but it just won't write. On all other devices there are no problems with Magisk and the apps. Not even with Stock ROM's.

I just tried the following: I had started RootExplorer and just wanted to delete a file from "media". Most the folder is filled with sounds you never need. As soon as I mark a file for deletion, the tablet hangs, only a restart helps. I would be interested if someone with the same device and the same software could also observe this. Really strange. I also tried a rebuild by deleting the tablet, flashing and setting everything up again. Without success.

:eek:

---

Addendum

: I've installed BusyBox via Magisk. This worked perfectly, but the problem with other apps remains. Could it be that any other system app compromises this? If so, how do I find out?
[Thinkpad Tablet Android Development] Yahoo Mike:
Try copying and deleting the same files in adb shell. Does it still fail? What error does cp, mv & rm give?
[Thinkpad Tablet Android Development] miramanee:
Something strange happened on the X605L. I have several apps for banking. They usually refuse service when they notice that the device is rooted. It was recommended here in another thread to rename Magisk and activate "Magisk Hide", which the app offers both. I did that. The tablet restarted and I selected the apps in "Hide". It worked great. :fingers-crossed:

What was interesting now was that write access to the system also worked. I can now easily copy or delete everything. Which could mean a 'secret' function in the system monitors this. Is that possible? :confused:

It's also something else that's weird now. Some apps that require an account login are suddenly terminated. I haven't changed anything except the name of the app and "Hide" in it. It's just apps like WhatsApp, Twitter, Facebook or Google. Without exception all the others work ... until they need and want to connect to one of them, like Google Captcha. I will try to find out with the help of a monitoring app. :rolleyes:
[Thinkpad Tablet Android Development] Yahoo Mike:
Magisk provides "systemless root". It performs several "tricks" to achieve this. Have a look at this summary, especially what-is-magisk. Code on github.

For your problem with apps, maybe this helps ? If not, try posting to the Magisk thread to get an answer.
[Thinkpad Tablet Android Development] Teddy1904:
Lenovo just released the open source code for the X605F and X605L yesterday :good:
[Thinkpad Tablet Android Development] Yahoo Mike:
I've pushed the source to github - in the official-3.18.120 branch of Yahoo-Mike/android_kernel_lenovo_X605F repo.
[Thinkpad Tablet Android Development] elzafir:
Is it possible for you to create TWRP for TB-X505F?
[Thinkpad Tablet Android Development] Yahoo Mike:
Short answer is no, unfortunately.

Long answer is here.
[Thinkpad Tablet Android Development] furen111:
Hello, I'd like to know if this twrp can be used in x650 M equipment
[Thinkpad Tablet Android Development] Yahoo Mike:
I assume you mean X605M.

The TB-X605M is only listed on Lenovo's PRC website. It has a SnapDragon 450 SOC and is Wifi/4G. So maybe it's a PRC-only version of the TB-X605L ???? This TWRP works for TB-X605L.

My guess is that this TWRP will work with X605M. But I'm not sure. You won't know until you try.

Let us know if it works for you.
[Thinkpad Tablet Android Development] furen111:
I tried to brush the x650l twrp into the x650m device, and it was successful, but the rec is in the black screen state, and it may not be suitable. So, is there any way to get it without root boot.img The official staff said there was no official brush bag:confused:
[Thinkpad Tablet Android Development] Yahoo Mike:
Do you have a TB-X605M or x650m? If you have a x650m, this TWRP will definitely not work. I don't know what an x650m is.

You can run TWRP without root, but the tablet will overwrite TWRP with stock recovery the next time you reboot.
[Thinkpad Tablet Android Development] furen111:
I have this tb-x605m, twrp can't be used. It's too hard for me. How can I extract boot without root:confused:
[Thinkpad Tablet Android Development] Yahoo Mike:
You need to find a copy of the full stock ROM. The boot.img can be extracted from that.

For the X605F/L, we all use the stock ROM downloaded with Lenovo's LMSA tool. But I can't see the TB-X605M in LMSA.

Check the Lenovo website for your country. Maybe that LMSA includes the TB-X605M. If not, call Lenovo and ask them how to use LMSA to rescue a TB-X605M. When they tell you, you can download the ROM that way.
[Thinkpad Tablet Android Development] Monpseud0:
FAILED

deleted
[Thinkpad Tablet Android Development] Sealowed:
Hello, Could you make a TWRP for Lenovo TB-X606 L / F with the source code of this tablet which you can find HERE. Thank you.
[Thinkpad Tablet Android Development] Yahoo Mike:
The TB-X606F/L uses a Mediatek SOC, not Qualcomm like the TB-X605F/L. It will need someone with the device to build TWRP. Sorry, I don't have one.

Everything you need to know about how to build TWRP for a new device is in this playlist by [MENTION=7026648]AlaskaLinuxUser[/MENTION].
[Thinkpad Tablet Android Development] Yahoo Mike:
If you have a TB-X605F/L with an encrypted data partition, I'm looking for some testers for a TWRP version that decrypts. PM me.
[Thinkpad Tablet Android Development] Yahoo Mike:
I've updated the TWRP download in the OP:

31/07/2020 - upgrade to TWRP 3.4.0-0
- data decryption working (security patch 2020-04-01)
- landscape mode (by popular demand)
- add more partitions to Backup options

For data decryption to work, your system and TWRP need to be on the same security patch level (SPL). If the SPLs are different, TWRP will still work - but the data partition will fail to decrypt ("0 MB").

The current OTA level for TB-X605F is 2020-04-01. If it's different for the TB-X605L, let me know.

When there's a new OTA from Lenovo, just ask me to build a new TWRP version with the new SPL.
[Thinkpad Tablet Android Development] turboperson123:
thanks!
[Thinkpad Tablet Android Development] OSIRIS2010:
TWRP 3.4.0.0

successfully flashed on my TB-X605L

nice we´ve landscape mode

latest rom TB_X605L_S210201_200522_ROW

thx a lot for your work
[Thinkpad Tablet Android Development] Yahoo Mike:
Is the security patch date still 2020-04-01 ?
[Thinkpad Tablet Android Development] OSIRIS2010:
security patch date

security patch date: 01 May 2020
[Thinkpad Tablet Android Development] OSIRIS2010:
M10 ROM download page

M10 ROM download page

https://mirrors.lolinet.com/firmware/lenovo/Tab_M10/
[Thinkpad Tablet Android Development] Yahoo Mike:
UPDATE - see this post: TWRP for TB-X505F (Android 10)

TWRP for TB-X505F

I got sick of waiting for Lenovo to release opensource for the TB-X505F (M10 HD wifi). So I disassembled the kernel and worked out the reason why the touchscreen wasn't working in recovery. In recovery, the bootloader didn't bother to tell the kernel to load the goodix touchscreen drivers. So I forced the touchscreen drivers to load in the kernel boot commands in BoardConfig.mk:

# kernel - touchscreen for recovery
BOARD_KERNEL_CMDLINE += androidboot.goodixtp=gtp

So here's TWRP for the TB-X505F. It doesn't decrypt the /data partition. MTP doesn't work either. Everything else should be working.

Source at: github.com/Yahoo-Mike/recovery_device_lenovo_X505F

If someone wants to fix decryption and/or MTP, feel free to send a pull request. Hint: I deliberately didn't include the manifests in the repo, because they threw TWRP into an infinite loop while it tried to load Keymaster4.
[Thinkpad Tablet Android Development] 3psil0n:
Worked well for some times but after a rescue via official lenovo windows app (cause i modified build.prop and then tablet went in bootloop) and reinstall magisk root and twrp, it now asks a password when enter recovery mode with twrp.

Does anybody have an idea of why or even have the solution ?

Model : Lenovo TB-X605F

System : Android 9

Build : TB-X605F_S210208_200807_ROW
[Thinkpad Tablet Android Development] Yahoo Mike:
This happens when the android security patch level is different between your system and TWRP. Everything in TWRP will still work, except data decryption.

The cause is LMSA currently pushing out a stock ROM at TB-X605F_S210208_200807_ROW that is ahead of the current OTAs (still on TB-X605F_S210175_200327_ROW). Presumably an OTA will be pushed soon.

When the OTA is pushed, I'll update TWRP with the new security patch level.
[Thinkpad Tablet Android Development] 3psil0n:
Thank you for your answer !

Looking foward to this update :)
[Thinkpad Tablet Android Development] Yahoo Mike:
I've updated "Downloads" section in first post. It includes an unofficial TWRP image for SPL 2020-08-01.

Official TWRP will be updated after the OTA arrives for TB-X605F_S210208_200807_ROW.
[Thinkpad Tablet Android Development] Reg2:
basic help please....

Thanks Yahoo Mike. I notice a lot of TB-X505Fs for sale in Australia. Not a bad price, and probably enough performance for my needs. Could you provide a basic guide to unlocking the bootloader and rooting? Do you think there will be a ROM? Thanks again.
[Thinkpad Tablet Android Development] Yahoo Mike:
Probably run-out sales, before they release the 2nd gen M10 HD (with MediaTek chip) in September/October.

The steps in the first post should work for the X505F. Obviously you need to use the TWRP for the X505F, not X605F.

How good are your coding skills? ;)

The X505F is due to get an official upgrade to Android 10 in October.

In terms of GSI ROMs, I haven't tried. But my guess is that the X505F will be easier to adapt to Project Treble than the X605F. The X505F is an A/B system-as-root device, which is more treble-friendly than the X605F which is an A-only non-SAR device.
[Thinkpad Tablet Android Development] Reg2:
How good are your coding skills? ;)

Well, non-existent! Thanks for all that good advice, I might just wait a bit and have a look at the new model....

Keep up the good work!
[Thinkpad Tablet Android Development] OSIRIS2010:
new rom for the TB-X605L

new rom version for the TB-X605L

https://rsdsecure-cloud.motorola.com/download/TB-X605L_S210224_200910_ROW.zip
[Thinkpad Tablet Android Development] skywalker01:
New security patch level

@Yahoo Mike first of all many thx 4 all your efforts regarding the TB-X605, I appreciate that very much.

OSIRIS2010 posted a new ROM for the TB-X605L just above and that version is exactly what I got last week automatically via OTA while starting my "brand new" TB-X605L for the 1st time.

So that is before rooting with magisk and installing twrp afterwards.

Nevertheless I managed to root the new ROM successfully and also tested all 3 twrp versions (from first post) by now, but /data and internal sd are always unreadable (encrypted) in twrp.

Setting other pins or passwords in Android or even disabling the lock screen doesn't help, all pins/passwords fail in twrp, a blank pw also.

From your posts I understand that only a new compiled twrp with the matching security patch level will solve the twrp issue.

At least when I want to retain the current contents AND also the encryption of /data as well as OTA.

So I'd like to ask you if you can please compile a current twrp version with the current security patch level 2020-09-01 which is included in the new TB-X605L_S210224_200910 ROM.

I'm not sure if that will already work or if it is necessary to reformat /data anyway but I'd like to test exactly that (with the requested twrp_TB-X605_20200901.img) and report my results here.

Many thx in advance,

skywalker01
[Thinkpad Tablet Android Development] Yahoo Mike:
I've put a new (unofficial) version of twrp in the OP. It will work with every SPL.

I'll arrange for the official version to rebuild with this change.

update: Official version is now available. It will work with every SPL.
[Thinkpad Tablet Android Development] skywalker01:
New "twrp_X605_9.img" build tested on my TB-X605L (TB-X605L_S210224_200910 ROM with security patch level 2020-09-01):

everything works fine, especially /data is now automatically unencrypted and mounted and can therefore be backuped (and restored of course).

Also the internal /sdcard can now be flawlessly accessed inside twrp, no bugs encountered so far.

So no more need to force unencrytped /data partition like explained here for example:

Universal DM-Verity, ForceEncrypt, Disk Quota Disabler [11/2/2020]

Many thx for the new "twrp_X605_9.img" build, that's exactly what I was hoping for :victory:
[Thinkpad Tablet Android Development] Vulnerability:
Thanks for your work on TWRP for the TB-X605F!
[Thinkpad Tablet Android Development] erdinc:
Hi guys,

I'm new to android and rooting , I've followed the steps to unlock the bootloader and install twrp.

Now my 605f is stuck on the boot screen. I can reboot into twrp.

I've tried factory reset, clear cash.. no succes

Can somebody please explain what to do?

I have magisk.zip on my device but can't access it

Kind regards,

Erdinc
[Thinkpad Tablet Android Development] Yahoo Mike:
Welcome to Android and rooting.

If you made a backup of Boot, System Image and Vendor Image, then restore those three partitions from TWRP. Reboot. Hopefully that fixes your problem and you can start again.

If you can't, then you might have to use Lenovo's LMSA tool to rescue your tablet. Use the "power off" option in "Rescue". Be aware: this will wipe all the data from your device.
[Thinkpad Tablet Android Development] erdinc:
Hi Mike Lenovo's LMSA tool did the trick for me and I've managed to root my device properly! :)

Thanks a lot!
[Thinkpad Tablet Android Development] Naruto11100:
Not working on my Lenovo tb- x605l
[Thinkpad Tablet Android Development] Naruto11100:
No I have same device but it didn't work
[Thinkpad Tablet Android Development] Yahoo Mike:
Can you describe what the tablet does? Does the screen go blank? Does it freeze on the Lenovo logo? Does it boot to fastboot? Do you see the TWRP logo? Does the touchscreen work? Does adb support work?

If adb comes up, can you pull the /tmp/recovery.log file and post a link ?

Edit: Can you also check if the previous version (3.4.0-0) works? It won't decrypt your data partition, but let me know if everything else is ok. Thanks.
[Thinkpad Tablet Android Development] terwine:
Thanks for all of your hard work!

This worked great for me until I restored a factory image back from the recent Android 10 OTA to Android 9 (TB-X505F_S001042_200819_ROW) with QFIL. Now when I flash recovery via fastboot it says that it copied OK, but booting into recovery is still stock. I have two X505Fs and it is the same for both.
[Thinkpad Tablet Android Development] Yahoo Mike:
I've PM'ed you a link to twrp compiled with Android 10 source. Maybe it will fix your problem.

I haven't tried rolling back to stock Pie on X505F. I might give it a go over the next few days. I'll let you know what happens.
[Thinkpad Tablet Android Development] R560:
Works on TBX605L. But I had use the twrp-3.4.0-1-X605F.img to get run. Many thanks!
[Thinkpad Tablet Android Development] Yahoo Mike:
TWRP for TB-X505F (Lenovo Tab M10 HD)

Here's an updated version of TWRP for the X505F: twrp_X505F_10.img

Decryption, MTP and OTG are now working. It works with stock Pie or stock Android 10 ROMs.

If there are any problems, let me know.

Source

device tree: recovery_device_lenovo_X505F (android-10.0)

twrp source: minimal-manifest-twrp/platform_manifest_twrp_omni (twrp-10.0)
[Thinkpad Tablet Android Development] Yahoo Mike:
I restored stock Pie (TB-X505F_S001042_200819_ROW) on my X505F using QComDLoader. I was able to flash twrp and it stuck.

So I'm not sure what's happening with your recovery.

Remember: if you flash twrp, but then let the tablet boot to unrooted Android (or even start booting), the system will re-flash stock recovery. Your twrp will disappear. The only way to stop this happening is to:

flash twrp

boot straight into twrp (three-button reboot). If the three-button reboot fails and the system starts booting, then you might have to go back to step 1 and re-flash twrp.

install Magisk

reboot to system

Magisk does some clever patching that stops Android re-flashing stock recovery when it boots.

If you are doing all of the above and it's still not working, then maybe try QComDLoader. But I'd be surprised if that makes any difference.
[Thinkpad Tablet Android Development] R560:
@ @Yahoo Mike ,can you recommend a clean vanilla android for the 605l? I am searching for a minimal rom with just pico gapps, because this tablet is used as wall mounted tablet for my smart home.