yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] WegDamit_:
Hi,

i jumped into the deep end and just flashed the image for real, n

and it worked.

After a few hiccups, cache clear wasn't enough, needed the next step which was basically a factory reset,

but everything works, haven't tested LTE because SIM is empty, but ...

Everything seems to work, even have a log from recovery.log

Now i have some Syetm Updates i can install, but

even if Magisk is installed, the hint for OTA updates seems to suggest i loose all installed stuff...?
[Thinkpad Tablet Android Development] Yahoo Mike:
If your data partition is encrypted, there should be no problems. In the first post there's a link to the steps for OTAs.

It's probably wise to do a backup first.
[Thinkpad Tablet Android Development] WegDamit_:
i think i messed up...

The magisk uninstall "restore images" options says " stock backup not exists".... :(

What now...?

i'm on linux....
[Thinkpad Tablet Android Development] Yahoo Mike:
Try this method. Ignore any mention of vbmeta.

If you don't have a copy of the stock ROM or access to Windows PC, then try this website. I don't use that website, but others do and say it's ok.
[Thinkpad Tablet Android Development] WegDamit_:
Thanks for the patience,

and i`m still stuck, but a few steps further...

i got the correct version from that side and did a flash

fastboot flash boot boot.img

reboot, and OTa install with ends in an error E1004 and status 7.

@/cache/recovery/block.map

i flashed the recovery img from the downloaded zip too,

and cleared the cache from recovery (now stock) with "wipe cache partition",

as both where mentioned in the error, but the error is still here...

re-flash more stuff from the stock roms? Which ones?

a bit lost here...
[Thinkpad Tablet Android Development] Yahoo Mike:
The OTA expects you to have pure stock. If you don't, then it will fail.

I assume the error appears while the OTA is trying to verify a partition is stock. Are there any messages like "verifying system" or "verifying vendor" just before the error?

Completely depends on what modifications you've done to your tablet. If you changed other partitions, then you'll need to restore those to stock as well. For example, the dm-verity tool usually modifies the system and vendor partitions.
[Thinkpad Tablet Android Development] WegDamit_:
20 pages of logs... scroll with volume button... retype...

it says

Verifying current system...
contents don't have the expected checksum
byte free on /cache
Verifiying radio-update...

and lots of

Partitions content don't have the expected checksum

lines

then some stuff about cache

and the last_command doesn't exists,

and

failed to verify blocks with a list hex strings (checksums i presume)

and

unexpected contents of source block in cmd:

512 lines of block checksums (SHA-1)

Last message is about a bsdiif failure. args a lots of numbers...

what partition is it talking about...?

Edit:

i think the last message before the errors is "Verifiying radio-update...", but i dont have see a radio img in the zip...
[Thinkpad Tablet Android Development] Yahoo Mike:
Probably firmware related.

Bottom line is that the OTA is not compatible with your system. There have probably been too many changes to debug them all.

There is a hack that might work for you. If your system is on version X and the OTA upgrades you to version Y, then get the full stock ROM for version Y. You can then extract system, boot and vendor images from version Y and flash to your tablet. This hack only works if the OTA only updated those three partitions. This hack doesn't always work. Remember to do backups before you start.

Only other alternative is to flash the full stock ROM again, apply any OTA updates, do backups, and then install Magisk and TWRP. Remember to back up your data before you start doing this, then restore it all at the end of the procedure.
[Thinkpad Tablet Android Development] Aryan@123:
Sir Can You Please Give Me Your Telegram Username I Need Help.
[Thinkpad Tablet Android Development] ldeveraux:
Support for XDA threads and mods are used on XDA, not Telegram.
[Thinkpad Tablet Android Development] Hipijs1201:
Hello.

I have been putting custom roms on android forever :D, but this was my first time trying GSI and of course the first time when I`m stuck! TWRP is working, but I can't flash a rom, GSI didn`t work out and none of "stock rom" works either.

I`m just hoping maybe someone has some image of what I can try to flash or have been in a similar situation and know how to get out of it.

Any other ideas are welcome too.

Thanks.
[Thinkpad Tablet Android Development] Yahoo Mike:
If you don't have a backup, you can rescue your tablet using Lenovo's LMSA tool.
[Thinkpad Tablet Android Development] hfreuven:
hi, thanks.

i did like the guide says

i 'v got an error

failed to mount /sdcard no such file or diretrory SDCARD_ROOT not mounted

any idea?

any gsi rom for the x505f?

thank you
[Thinkpad Tablet Android Development] Yahoo Mike:
Might be the format of the sdcard. How is it formatted? Try reformatting with a different format type. Either NTFS or exFAT should work.

Also re-seat the sdcard. It might be misaligned.

Or try another sdcard - maybe the card is faulty.
[Thinkpad Tablet Android Development] verspax:
Thank you at all for work.

Unfortunately, this TWRP 3.5.1-0 doesn't work anymore on latest stock update TB-X505F_S001142_210804 and some below versions too (flash tried before and after update).

After fastboot oem unlock-go successfuly, I followed all @beamingbadger steps and all is okay to this stage:

Sending 'recovery' (31830 KB) OKAY [1.016s]

Writing 'recovery' OKAY [0.355s]

But fail: auto reboot on system after fastboot reboot recovery. And via holding all 3 buttons and release on Lenovo splash screen, I get the stock recovery :unsure:

No way to solves this issue.

Update is planned?

Thanks for help.
[Thinkpad Tablet Android Development] Yahoo Mike:
It works. I just re-tested it.

fastboot reboot recovery has never worked on these devices.

Make sure you are

not

rebooting into Android after you flash twrp. Unrooted Android will re-install stock recovery (and delete twrp). If you accidently reboot to Android before installing Magisk, then you'll have to reflash twrp and try again.

I know the 3-button reboot is tricky. But keep trying and you'll get the hang of it.

It's probably time for an update - especially with A12 GSIs coming out. I'll have a look this weekend.
[Thinkpad Tablet Android Development] Yahoo Mike:
There's a new image on the OP: twrp-X505F_11.img. It is version 3.6.0.

This image should be compatible with Android 12. I haven't tested it on A12, only on stock ROM (A10). Let me know if there are any issues.
[Thinkpad Tablet Android Development] verspax:
Okay, I will try again (and again) with hardware buttons only.

I had no idea that fastboot reboot recovery doesn't work on these devices, specially when it has always worked on all the others (many times, including another tablet model of the same brand). Thanks for the warning; I could have spent many time to trying this again for nothing! :confused:

Thank you! (y)

> And thanks again for update!
[Thinkpad Tablet Android Development] tunaable:
Hi all im trying install TWRP but something is wrong...

I download platform-tools for adb ...

After i type adb reboot bootloader my lenovo reboot to fastboot and after that i type fastboot flash recovery twrp.img and i get < waiting for any device > ???

"

C:\adb>adb reboot bootloader

* daemon not running; starting now at tcp:5037

* daemon started successfully

C:\adb>fastboot flash recovery twrp.img

< waiting for any device >

"

*** All good now i install the usb drivers on device manager (windows 10) and all working perfect. ***

Thanks for the great work.
[Thinkpad Tablet Android Development] The Jack of Clubs:
Yall running android 12? how and how does it run? id be fine with android 10, but lenovo thought to replace the multitasker and it only works right if you use the stock launcher. i have to have a gesture to get it working with nova.
[Thinkpad Tablet Android Development] Einheit-101:
The tablet booted fine exactly once with Magisk and TWRP and after that it refuses to boot anymore and instead directly boots into fastboot. My guess is Magisk ****ing things up again, as usual.

Lenovo Rescue Assistant recovered the device, i will now try again and reboot multiple times to see what exactly crashed the tablet.
[Thinkpad Tablet Android Development] C0rv1da3:
Hey All,

So i've just got one of these tablets and have spent a couple of days trying to root it now, is there any updates or new threads/solutions out there for this yet please?

EDIT: Resolved.

Used the hardware buttons to boot into recovery and everything was golden from there :D
[Thinkpad Tablet Android Development] ae01:
hey

i able to install the twrp latest image .but i canot reboot into twrp.

i tried the 3 key together methhod, but it keeps restarting.

any idea what to do?

thanks.

"solved" i was able to load the twrp.

after installation from cmd line, i had to take out the usb cable, and then press the 3 buttons.

but now it is booting to twrp only, even after i wipe the system, it is still booting only to the twrp.

is there any twrp rom i can try to install? i couldnt find any.

please help!
[Thinkpad Tablet Android Development] Yahoo Mike:
Try restoring the tablet with LMSA. Then try again.
[Thinkpad Tablet Android Development] ae01:
i will try.

thanks a lot.
[Thinkpad Tablet Android Development] hfreuven:
hi,

i had the same problem, fixed by flashing also the boot not only the recovery.

fastboot flash boot twrp.img

fastboot flash recovery twrp.img

work for me

p.s

be sure that you flash the correct system.img (i used Havoc-OS-v2.5-20190527-vvBuild-phhgsi_arm64_ab.img - work perfect)
[Thinkpad Tablet Android Development] ae01:
the solution with the lmsa worked!

the lmsa unbricked my device, then i flashed the twrp , flashed the magisk , and then the tablet booted rooted.

thanks a lot yahoo mike.
[Thinkpad Tablet Android Development] eddygeek:
An important step to unlock bootloader is to update to Pie, otherwise I get

> fastboot oem unlock-go
FAILED (remote: 'unknown command')
fastboot: error: Command failed

source: https://xdaforums.com/t/guide-unlock-root-lenovo-smart-tab-p10-tb-x705f-by-chaser42.3956198/ ( found via https://forums.ubports.com/post/55899 )

@Yahoo Mike can you update the first post?
[Thinkpad Tablet Android Development] Yahoo Mike:
Good idea. Done.
[Thinkpad Tablet Android Development] uschipower:
Hi,

some days ago, Lenovo released a new stock rom:

TB_X505F_S001147_220830_ROW

I used LRSA to make a clean install on my TB-X505F

After that, I installed magisk.apk, used magisk to patch boot.img from TB_X505F_S001147_220830_ROW.

Then,

fastboot flash boot magiskpatchedboot.img

--> Everything ok

Then I want to install your TWRP-Recovery. I tried 2 different methodes:

fastboot flash recovery twrp.img

TWRP-App --> select your twrp.img --> flash

In both cases, it is not possible to boot in recovery. Boot stops at lenovo-logo.

Is there anything your can do that twrp gets working again?

Thanks.
[Thinkpad Tablet Android Development] Yahoo Mike:
I can confirm this behaviour. It looks like Lenovo have done something to the bootloader.

I'll have a look at this over the next week.

It's interesting that Lenovo issued an update for this tablet. The last update was over a year ago. It is officially unsupported.
[Thinkpad Tablet Android Development] SpaceCats:
I'm also experiencing this error right now, i tried to flash the TWRP image on my TB-X505F, when trying to start into it, the display flashes for a moment and then the device immediately restarts and gets stuck at the Lenovo Splash screen.
[Thinkpad Tablet Android Development] Roobeedoo:
Same thing for me too. Reading the info about the update it mentioned about improving the battery protect mode to charge to around 85% IIRC. After the update though the battery protect mode setting still indicates 60%.

Regardless, having Magisk installed I make use of AccA, the front end for Advanced Charging Controller Magisk module, which AccA installs.
[Thinkpad Tablet Android Development] Yahoo Mike:
I've updated the OP with a new version of twrp (v3.7.0). The new version will work with recent update (TB_X505F_S001147_220830_ROW). Thanks to @Roobeedoo , @SpaceCats and @uschipower for reporting the problem and testing this new version.

The fix was a simple one. I just needed to update twrp with the kernel from TB_X505F_S001147_220830_ROW.

In case this new twrp doesn't work with old versions of the stock ROM, I've put a link to the old twrp in the OP too.
[Thinkpad Tablet Android Development] Heeni:
New TWRP doesn't work with the previous ROM from a year ago. Thanks for providing a link to the old TWRP; it was easy to reinstall using fastboot.

What specifically is to be gained by updating the underlying stock ROM? I can do it, but the way my tablet is set up now, it's rather a chore. :)
[Thinkpad Tablet Android Development] uschipower:
I was happy that lenovo released a new rom hoping that I get an actually rom with new security-patches, lenovo used an old security patch for the new rom.

@Yahoo Mike

Thanks for the new recovery

Another Idea: perhaps you can release twrp 3.7.0 for the older roms too.
[Thinkpad Tablet Android Development] craquito23:
hey brother can you develop a custom twrp recovery for my lenovo tab m10 HD 2dn gen (TB-X306X) or do you happen to know if there is one existing? I'm willing to pass you the boot.img and also the recovery.img Please help I've been searching for weeks😭
[Thinkpad Tablet Android Development] montolla:
Hello

I have a tv-x505f, I tried both recovery images but both didn't boot.

I tried fastboot boot *.img and it gives me this error : FAILED (remote: dtb not found)

I have lastest android 10 and booloader unlock.

I tried to root the device but it break into boot loop, I can't find any other boot image that works.

I read that I need to downgrade to older stock rom before install lineage rom that is mine inteded goal here.

I did download a lot of stock roms for this device and tri several tools but any of them did work or detected the device, even a recovery tool from lenovo says it is not compatible besides I did enter the tablet s/n and it download the last firmware for it...

Thanks.
[Thinkpad Tablet Android Development] montolla:
Hello

I saw a branch for twrp 12 on the first link for github sources.

can you build a new image for that twrp version ?

Or give me the instructions on how can I build that on ubuntu my self.

Thanks
[Thinkpad Tablet Android Development] montolla:
Hello

Can I try with the tb-x505x one?

I only notice a difference on screen resolution.

https://xdaforums.com/t/unofficial-recovery-x505x-twrp-for-lenovo-tab-m10-x505x.4189811/

Thanks
[Thinkpad Tablet Android Development] montolla:
Hello

I notice that on the source device tree repository there is a branch for android 11. Your recovery images are for android 10 or 11?

I'm not sure if the lastest firmware update I did aplied to my device tb-x505f was android 10 or 11

Thanks
[Thinkpad Tablet Android Development] montolla:
I was able to build twrp for android 10 but it didn't boot.

I was able to flash and boot this post recovery image and boot correctly.

I'm now have issues to get boot lineage os...
[Thinkpad Tablet Android Development] Yahoo Mike:
Both versions of TWRP in the OP should work for Android 10, 11 and 12.

If you have a TB-X505F and are running TB_X505F_S001147_220830_ROW firmware, then use the latest version.

If you are running earlier firmware, then use the older TWRP.

I can see that you worked all this out. Well done.
[Thinkpad Tablet Android Development] montolla:
Helo

I was able to flash and boot twrp recovery image and boot correctly.

Now, I'm having issues with magisk since it doesn't install the /system/addons.d folders need by lineageOS rom.

I did try with older magisk versions but the issues persists.

Do you know if there is an issue with magisk, twrp or my device itself?

I tried to install ROSFOR rom for x505x but not look

Also, when go to advance wipe menu on twrp, the /system partition is missing even if I mount it as read only.

Thanks for reply
[Thinkpad Tablet Android Development] Yahoo Mike:
I do not know.

I have updated the latest version of twrp (for the TB_X505F_S001147_220830_ROW firmware) in the OP. The system partition has been added to the AdvancedWipe page.
[Thinkpad Tablet Android Development] montolla:
Hello

Thanks for reply

I did flash the new image and the system partition did appears.

Magisk still not installing/creating the /system/addons.d folder needed by lineage though.

I try to install lineageOS again whit the same zip as before but got an error about this devie not been the correct one. Maybe the wrong device tree was used to build TWRP this time.

Thanks in advance

E3004: this package is for device: X505F,X505L,X505X; this device is phhgsi_arm64_ab

updater process ended with error: 7

error installing zip file '/external_sd/lineage-17.1-20220330-UNNOFICIAL-X505L.zip'
[Thinkpad Tablet Android Development] Yahoo Mike:
Try this. In TWRP terminal (or adb shell) type: setprop ro.product.device X505F. Use your device model.
[Thinkpad Tablet Android Development] montolla:
Hello

It gives me an error, I check dmsg and it says that read-only property was already set

Thanks
[Thinkpad Tablet Android Development] Yahoo Mike:
It was worth a try.

The error message (E3004: this package is for device: X505F,X505L,X505X; this device is phhgsi_arm64_ab) is coming from the zip file, not from twrp.

The zip file is checking to make sure you are using an X505F/L/X tablet and aborts if you are not. I'm guessing that the zip file is checking: ro.build.product & ro.product.device. TWRP sets these properties from "ro.product.system.device" and "ro.product.device" in your /system/build.prop file. It sounds like a GSI has set these values to "phhgsi_arm64_ab".

I guess you have a few options. You could:

restore your backup of the stock system partition before running the LOS zip, or

mount /system and edit the ro.product.device value, reboot twrp then run the LOS zip, or

edit the META-INF\com\google\android\updater-script in the zip file to remove the check (just search for "this package is for device")
[Thinkpad Tablet Android Development] montolla:
Hello

Thanks for reply.

when the command didn't work, I did modify the manifest of the lineageOs rom and was able to install it unfortunely I get the same error about magisk missing addons and executables.

I will try to flash the TB-X505F_S001142_210804_ROW and see how it goes from there to have at least a "working" android to install everything properly this time.

I will let you know how that goes.

And happy new year!
[Thinkpad Tablet Android Development] montolla:
Hello

I did flash TB-X505F_S001142_210804_ROW using QFIL tool and I fallowed the steps to install twrp and magisk without issues this time including root access.

I did enconter an error backing "system" partition to the microsd card, no details on the log.

Once I get the system partition backed then I will try to install lineageOS or maybe the RROSFOR for x505x

Thanks for your help!
[Thinkpad Tablet Android Development] Yahoo Mike:
I have no idea why that's happening. I just backed up the 4GB system partition using twrp with no errors. Make sure your SDCard is not formatted in FAT32 (which has a 4GB file limit).

If that doesn't help, does the backup of system stop at the same point everytime? For example, it always crashes at 37% (or similar)? And there's definitely no error messages in /tmp/recovery.log ?
[Thinkpad Tablet Android Development] montolla:
Hello

I did change the internal storage from external to internal and letme backup system only

Thanks
[Thinkpad Tablet Android Development] montolla:
Hello

I did found an issue trying to restore the backup, I just get a blank screen with a swipe blue button, when I try to swipe/slide nothing happens.

I tried to change the storage and make a new backups and inmediatly try to restore but I get the same black screen witht the slide button.

Did I do somthing wrong?

Thanks
[Thinkpad Tablet Android Development] Yahoo Mike:
I just restored the 4GB system partition backup I did yesterday with no problems. System rebooted ok.

I backed up and immediately restored boot image on both internal and external storage. System rebooted ok for both tests.

Does this problem happen with all partitions? Or just one partition? Any errors in the recovery.log ?
[Thinkpad Tablet Android Development] montolla:
Hello

Thanks for reply.

I dod happem with all partitions, I just try to backup boot partition only but it didn't show up.

I try it with /sdcard, /external_sd, /storage/(serial microsd or something) and /data/media/0/ with no luck.

It try to rename it as TWRP/BACKUP/(device serial)/(files here and files in a subfolder) but it was the same, the twrp restore option just show a black screen with a button.
[Thinkpad Tablet Android Development] Yahoo Mike:
PM me a link to your /tmp/recovery.log
[Thinkpad Tablet Android Development] montolla:
Hello

Thanks to reply.

I had lineageos installed whit an error about android no responding and no wifi at all when I tried to restore the backup make with stock rom and twrp when get the blacl screen on twrp restore option.

I did reflash stock rom again woth Qfil tool, flash twrp and magisk again.

I just try to backup and restorr boot and recovery partitions to send you the logs and surprise it works perfectly.

So I am asuming that lineageos did something to the device that breaks twtp restore functionality.

What do you think about it?
[Thinkpad Tablet Android Development] Pipeline79:
Hi,

My son has been using one of these tablets for a long time. Over Christmas it reset itself and did a factory restore wiping access to any saved items on the internal storage.

I'm trying to root this thing so I can dump the contents of the internal storage to a computer and get the old stuff off it. As I understand that's the only way you can perform data recovery on it.

I've got TWRP on the recovery partition, but I've had trouble getting a rom on it that is patched for magisk and still boots up. At the moment the TWRP is the only thing that works.

I'm just trying the lenovo recovery tool to at least restore the latest stock rom. Seems this rom was updated only recently. If I get that back on there, will I be able to root it and put busybox on it and dump the storage over USB? There's also an EaseUS mobile recovery tool, but that needs a rooted device too.

Thanks.
[Thinkpad Tablet Android Development] montolla:
Hello

The only tool that work for me on the dead/breack tablet tb-x505f was Qfil/Qpst with stock formware that have a file and two xml files that the tool needs. Since the device was dead, O did open the back cover, remove battery and make a jump between to point nearby, then conect the cable and the device enter in dmg mode or something lile that, then the flash process begin.

If you have access to twrp, there is a reboot option to enter that mode wothout o0en the tablet.

Thanks
[Thinkpad Tablet Android Development] Pipeline79:
Yeesh, yeah this is the trouble I'm having. I can't just use a zip file of a stock image and load it on from TWRP because they are not in the right format for the TWRP tool.

Thanks.
[Thinkpad Tablet Android Development] montolla:
Hello

Try with QFil tool (the install one, don't use the portable one).

On twrp reboot menu, use the EDL option and connect usb cable to pc.

Open qfil and use the flat rom radio button.

Unzip the stock rom

Select the device file inside the rom.

Select the two xml files

On configuration, select reboot after finish or something like that.

Select the port in which the device appears.

click on download and wait several minutes for it to finish.

If it gives you an error about no able to flash, you will need download another rom or a most recent one, I tried to downgrade with an older rom but it wasn't able to.

Thanks