yashsingh1/xdaforums huggingface dataset:
[Lenovo P11] siamese007:
Can you debloat the ROM for our device? There are bunch of unused app and system linked to the Stock ROM. If possible, just need only slim Google service like Play Store.

I appreciate your dev support to the community. Wanna try it later. Need to back up my current system first. My current system is Multilange ROM from the seller. It may be useful for someone who need their language support. I will share my back up ROM once it's done.

Edit: I wish we can have specific forum for our device. The topics we talked on this thread are variety and will be sorted out on the specific forum.😊
[Lenovo P11] AllexBast:
All files are original from two firmwares. If you change them, the system may not start. You can check by unpacking both firmwares and comparing them using the bcompare program.

For multilingual support of stock firmware, the magisk module is used. It is forbidden to indicate a 4pda site here, but it was the guys from this forum who worked on this module. You can create it yourself. The author of the translation and its sources are here

GitHub - LeyrObnimus/ZuiTranslator: Magisk module for ZUI 15 firmware localization, providing an enhanced user experience in Chinese firmware.

Magisk module for ZUI 15 firmware localization, providing an enhanced user experience in Chinese firmware. - LeyrObnimus/ZuiTranslator

github.com

For this module to work, you need to embed into it the framework files from firmware 405, where languages other than cn and us are not cut off. Switching languages is done through the setedit program. For backup and restore via edl I use this program https://github.com/Beliathal/QFILHelper

To work with the super section you can use this program https://github.com/blackeangel/UKA
[Lenovo P11] perillamint:
Note for someone who wants to use lenovo precision pen on GSI ROM

This comment mentions writing 1 to /proc/support_pen enables pen support, but in TB371FC it does not work.

[TB371FC] XiaoXin Pad Pro 2023 12.7 Sharing and support

Hi, I post the theread to exchange information about xiaoxin pad pro 12.7 TB371FC. Some of the issues I have found are as follows, so if you know the way to fix it, please help me. #1 The latest ZUI is 15.0.490 and once you uppdate, you can't...

xdaforums.com

The working command is `echo '1,1' > /proc/support_pen`. You have to write 1,1 to /proc/support_pen

Additionally, here is a Magisk module to do that automatically during boot.
[Lenovo P11] mu1111:
Here is mine 🙂

I received my tab today. Mainly used for audio and video streaming. I really appreciate the size of the screen ! I only regret that Netflix and Prime cannot stream in HD...

Looking forward the day we'll find the way to relock the bootloader.......
[Lenovo P11] RedJob1:
hello I would like to be able to remove those side edges when rotating the screen and that the application is in full screen horizontall.

hola me gustaria poder quitar esos bordes laterales al girar la pantalla y que la aplicacion este en pantalla completa horizontalmente.

View attachment 6121337
[Lenovo P11] siamese007:
You can't on stock ROM except flashing Custom ROMs or GSI ROMs. It's the system that fill in the sides. Most Chinese ROMs do this.
[Lenovo P11] AllexBast:
You need to find smart rotation in the settings and disable it for this application
[Lenovo P11] wlodeka:
Test
[Lenovo P11] nickb23:
I have a 256gb version with Chinese ROM coming in the next week to me in the UK. My main language is English, and I have bought it to use with the Precision Pen 3. When I get it, should I allow it to update to whatever the latest version is? I will go through and remove all the bloatware apps, install Google services and my chosen apps from the Play Store. I am wanting it to mainly use with Nomad Sculpt and some drawing apps. Also with the Chinese ROM, would I be able to watch Netflix, Prime Video, Disney etc in full HD??

Thanks.
[Lenovo P11] Gelee111:
Yes you can allow to update the tablet. It will show you widevine L1 . You can see this if you choose app DRM i fo. And Netflix, prime video and Disney will be in full HD.Prime video you can choose streaming quality in settings.
[Lenovo P11] Maz1&Jg:
Hi, I need help with two tablets that won’t connect to the WiFi. I press connect and it doesn’t connect and I restarted, powered off the tablets but nothing works. They came with custom mod so idk if it’s related to that.
[Lenovo P11] mu1111:
Good morning ,

I also have a question.

The global custom rom is installed on my unlocked Lenovo tablet. Do you think it is safe or not to use my regular bank application with it?

Thank you for your advice

Oh, I'm thinking of another question!

I know the pogo pins are designed for the optional keyboard. But could they be used to power the tablet??
[Lenovo P11] nickytheshaft:
Yeah global rom is a piece of s...t

Flash cn rom and everything will be ok
[Lenovo P11] nickytheshaft:
I wouldn't trust the global rom.

It is custom made and has no security updates.

Reflash cn rom, 1 the tablet will work way more better and 2 you will be recieving the updates
[Lenovo P11] perillamint:
If you unlocked bootloader and want to remain on it, I'd recommend using GSI rom on it.

ZUI code is filled with nonsense and after decompiling it, I no longer want to use that anymore
[Lenovo P11] wlodeka:
what is GSI ROM, and how to install it, where to download it?. What does he give? Is CN ROM worse than it?
[Lenovo P11] flaxpears:
Hi,

Just received this tablet, it's the Global ROM with unlocked bootloader.

I'm trying to piece together my course of actions from this thread.

1. It seems the best option from here is to flash the CN rom isn't it ?

2. Should I flash ZUI_15.0.405 or another version ?

3. How do I proceed from there ? Just use the tablet with this version and download updates ?

4. Is there a way to regain Widevine L1 ?

5. Anything else I missed that I should know or consider ?

Thanks !
[Lenovo P11] lentm:
The only way to regain Widevine L1 is return the unlocked one and get the sealed one with chinese rom. For this tablet, you can't revert.
[Lenovo P11] mu1111:
First of all, forget about relocking bootloader and, therefore no widevine L1.

Then, It's a question of choice.

Chinese version: no other language but chinese and english with ota system updates. Google services manually installed.

Global version: your language (with some approximations), obsolescence of the system. Google ready.

Today, I installed the original chinese firmware. So simple with fastboot.

(Directly install the last fastboot version you find here. I think it was zui 440. Then flash all bat.)

And received the updates.

Took me the whole day to get a nice system :)
[Lenovo P11] mu1111:
This is the method I used to flash the rom.

You need minimal adb/fastboot installed on your computer and have the unzipped firmware

TB371FC-ZUI_15.0.440_FASTBOOT_QFIL_v2

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com

- First, open fastboot.exe on your computer

- keep pressing start button and Vol+ button of your tablet : you'll enter fastboot mode on it

- connect it to the computer (usb cable)

- In the fastboot window on your computer, you type "fastboot devices". It must return the serial number of your tablet

- among the unzipped files of the firmware, click on "flash all.bat"

- wait till the flashing process is over.

I hope I don't forget anything...
[Lenovo P11] perillamint:
GSI: Since Project Treble defined a common vendor interface and Google enforced it to vendors through its CTS/VTS, system.img can be replaced (and should be replaceable) with any generic system images(GSI). So, lots of custom ROM's android framework can be built into cross-device compatible system.img (of course, it would be hard to include device-specific features for that generic images)

It has pros and cons:

Pros: More frequent security update for Android framework part and, you no longer have to suffer from the vendor modified android crap and you will get almost "vanilla" (well, not strictly vanilla if you opt to use customized GSI ROM like crDroid, Lineage, etc…) experience

Cons: It is quite hard to get vendor blob (kernel, peripheral firmware, etc.) updated and security patched because vendor (in here, Lenovo) does not post blob update publically (you have to reverse the OTA routine), you will get almost "vanilla" experience (yes, I know that can be cons for some people)

Also, for this device, it needs a little bit of workaround to use device-specific feature (e.g. enable Novatek digitizer pen support)

For more resources, please visit XDA Project Treble Forum

CN rom:

I honestly don't think it is a great idea to let the system framework poke /proc/sysrq-trigger. The following is a smali dump of the CN ROM services.jar

services.jar.out/smali/com/android/server/Watchdog.smali
1057: invoke-direct {p0, v0}, Lcom/android/server/Watchdog;->doSysRq(C)V
1136:.method private doSysRq(C)V
1144: const-string v1, "/proc/sysrq-trigger"
1149: .local v0, "sysrq_trigger":Ljava/io/FileWriter;
1158: .end local v0 # "sysrq_trigger":Ljava/io/FileWriter;
1169: const-string v2, "Failed to write to /proc/sysrq-trigger"
2368: invoke-direct {v8, v15}, Lcom/android/server/Watchdog;->doSysRq(C)V
2371: invoke-direct {v8, v14}, Lcom/android/server/Watchdog;->doSysRq(C)V

Also, I can spot lots of bad practices on the CN ROM framework. It feels like Lenovo hacked Android code until it works and when it works, they just ship it without caring about its quality or potential issues caused by that crap.

Oh, also as a general warning, BEFORE ATTEMPTING ANY MODIFICATION TO YOUR TABLET, PLEASE BACK UP THE WHOLE SYSTEM FIRST! Some knowledge about Qualcomm EDL would be helpful (loader is known and edl.py might be helpful for this kind of task).

p.s. FYI, I'm not "he". Please don't call me like that.
[Lenovo P11] wlodeka:
It's all very complicated for me!!! Now I have a CN version with Google services in my native language. Unnecessary Chinese applications uninstalled. pen precision 3 works great. Netflix works in full resolution. So I guess there's no point in combining it with Rome. Our Tablet with ZUI 15 is almost pure Android with one or two Lenovo additions.
[Lenovo P11] mu1111:
Lucky one :)

How did you manage to install your native language please ?
[Lenovo P11] wlodeka:
the settings are in English, but all applications installed from the Google Play Store are in the native language. Everything is described here in the posts, read it. It is very easy.
[Lenovo P11] flaxpears:
Did you fist flash your tablet to 405 ?

Or did it work with the "out of the box" global rom tablet ?

It looks like the Qualcomm drivers I'm trying to use are not working.

The "fastboot devices" command does not show any device even though my tablet is in fastboot mode.

Can someone link me the right drivers ?
[Lenovo P11] mu1111:
First I tried the restoration Lenovo program. It did not work because this tablet is just for the Chinese market (But perhaps it installed the right drivers...).

I didn't flash 405 but another cooked rom which finished in boot loop :(

Then I flashed the 440 rom very smoothly.

Before flashing, when you connect your tablet to your computer, does it show your tablet In Windows? If so, I think this would mean that you have the right drivers...

For drivers question, please read siamese007 answer below.
[Lenovo P11] siamese007:
You probably mean Google Android driver to use adb fastboot platform tool. Here is the link to download. But if you wanna flash ROM in EDL mode with QFIL, you need this driver at this link.
[Lenovo P11] galr:
Hi, I'm on ZUI 15.0.664 stable version and suffers from the CN language in apps. The main issue for me is Tradingview app. It's all in Chinese no matter what I do.

I heard that ZUI will fix it , but who knows when and if it will be available to the 2023 12.7 tablet.

What are my options? Is there any solution or workaround for this issue?

Thanks!
[Lenovo P11] Jomapika:
You have in this thread how to change your language to your native one....

You will lose the battery icon tho
[Lenovo P11] galr:
Thanks but I'm not looking to change the language. I use English and my tablet is set to English. The problem is that some apps are in Chinese regardless to the language chosen. The app the I'm having issue with is TradingView. The rest of the apps are in English.
[Lenovo P11] mu1111:
Have you tried to download a different version of the app/apk outside play store?
[Lenovo P11] galr:
Actually no.. do you think it matters?.. I'll give it a go
[Lenovo P11] LMPMB:
I just bought the tablet for 110 USD unfortunately from what I've seen the global rom sucks, i tried asking for the Chinese but no luck. I was wondering if it was worth switching back to Stock rom for the updates since from what I've read is the main benefit? How does the global rom version compare to the more up to date software in its Chinese counterpart. And any recommend tips or things to do when my device arrives. Thank you and sorry for my English its not my native language. i was also wondering which pens are compatible with the device.
[Lenovo P11] wlodeka:
Where did you buy this tablet so cheap? only $110? I paid $275 for the CN 8/256 version. Lenovo Pen Precision 3 pen only.
[Lenovo P11] LMPMB:
i had a 60 dollar coupon for the device in AliExpress, is the precision pen 3 worth it over cheaper universal pens?
[Lenovo P11] wlodeka:
Only Precision pen 3 works with the tablet, other pens do not work. The Precision 3 is great, I bought it second hand for $50. I recommend this pen.
[Lenovo P11] perillamint:
There is no choice other than Lenovo Pen Precision 3 pen on stock ROM. HOWEVER, since you already have not re-lockable unlocked bootloader (and lost Widevine L1 anyway), you may try another pen with pen enabler Magisk module. (In unmodified stock ROM, there is no way to turn on the digitizer without pairing a correctly named pen through CTN730 NFC/WLC chip, but with root, you can run `echo 1,1 > /proc/support_pen` anyway...)

However, the documentation is extremely sparse due to digitizer lock, so... using a third party pen with tablet PC is basically navigating uncharted territory only with some help from device trees.

I'm currently planning to try Mi Smart Pen 2nd generation (I'm trying that because Mi Pad 5 uses the same digitizer with TB371FC, but there is NO GUARANTEE it will work on this tablet... I'm solely trying that for Wacom nib compatibility and WLC charging support) on my tablet, and I'll report back when I tried Mi Smart Pen 2nd gen works on my tablet PC or not.
[Lenovo P11] siamese007:
Guys, Has anyone tried flashing GSI ROMs on Xiaoxin Pad Pro 2023? Please share which ROMs work on the device.

Thanks
[Lenovo P11] perillamint:
[GSI][14] LineageOS 21 TrebleDroid-based

LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and reliability over stock Android for your device. LineageOS is based on the Android Open Source Project with extra...

xdaforums.com

I gujess other GSI will work, such as https://github.com/naz664/crDroid_gsi/releases. Just give any GSI a chance using DSU loader or flashing it directly to the system partition.

Oh, before doing anything, please back it up your whole system using edl.py or QPST.
[Lenovo P11] siamese007:
Thank you so much. your post is helpful a lot. DSU loader is new to me. May you have suggestion for easy method for DSU loader? I found some DSU related links on Android page and they are pretty technical with command lines. I am nothing developer. They have somewhat learning curve for general users like me.
[Lenovo P11] DrRoka:
How this going ? Can you share step to step to do this
[Lenovo P11] perillamint:
I'm currently waiting for my Xiaomi pen to ship, but if you want, you may try it by following the instructions below:

1. Root your tablet. Install Magisk app and feed it a boot.img extracted from the tablet using QXDM or edl.py,

2. after rooting your tablet, run the following command in root to activate pen support on digitizer

echo 1,1 > /proc/support_pen

(alternative, try above command first)

echo 1,0 > /proc/support_pen

3. After executing the command, turn the tablet's screen off and on

4. try pen and if it won't work, go to 2 but with alternative command and try again.

5. if the pen works, please report back to this thread.
[Lenovo P11] perillamint:
DSU Sideloader | F-Droid - Free and Open Source Android App Repository

Easily install GSIs using Android's DSU feature

f-droid.org

Use this app to easily load and try custom GSI images. Using the app, you can easily load and try GSI images through DSU.
[Lenovo P11] RagnarRedbeard:
Hi, just to confirm, Chinese ROM is the preferable one. No custom ROM available (lineage etc.) , apart from GSI Roms. Root and magisk is available.

Can a true vanilla experience with MicroG be achieved or just stuck with Basic Chinese ROM? Can microG be used with the Chinese ROM?

Lsposed network available (XPrivacyLua)? That one is important for me.

Thank you for your help, it is appreciated. Better to ask before purchase than regret at leisure, eh?
[Lenovo P11] perillamint:
I'm using the tablet with GSI rom (AndyYan LineageOS) and microG Magisk module. AndyYan LineageOS has sigspoof patch and I think crDroid GSI also has the patch in their own form.

If you value your privacy and software quality (internal), I suggest using GSI rom and flash vendor/kernel OTA "manually" when available (I know how to build full image from incremental OTA, but I need more time to properly document it)
[Lenovo P11] galr:
Didn't work. Still Chinese.

Anyone managed to make Tradingview app display in English? Any workaround to Lenovo's bugs?
[Lenovo P11] perillamint:
Pen compatibility report:

Xiaomi smart pen 2nd gen: Unable to charge it through WLC (ctn730 sysfs entry says it is unable to detect the pen), unable to turn it on.
[Lenovo P11] demil7:
Apologies if this has been answered—is it possible to install OTA updates with China ROM that has root?

I tried installing latest 664 update but got "Failed to install ota package" message. Perhaps I'm doing it wrong—if so, what is the most painless way to update to new version without formatting the tablet?
[Lenovo P11] siamese007:
I've read some posts about your issue. There is/are version(s) of ROM that has OTA update errors. I am not sure what version of yours before trying the OTA update. But this might be the cause of your issue. So it seems there is no painless way for this to OTA update without reinstalling the new CN ROM. 405 seems to be more reliable and users said they could OTA update on this version of ROM.
[Lenovo P11] ridsama:
Did you ever find the right fastboot drivers? Windows can't find the drivers for this unknown Android device in Device Manager. The QFIL drivers appears to be for EDL mode not fastboot flashing.

EDIT: answered my own question, found here: https://www.drvhub.net/devices/other-devices/lenovo/fastboot. Attaching to this post in case it goes missing.
[Lenovo P11] siamese007:
adb driver is here. Be noted that remove your previous driver before installing the new one.
[Lenovo P11] perillamint:
It is delta update, so you have to

1. Restore the system to stock condition

2. From well-known good stock image, start applying OTA by hand, using method used in https://github.com/arter97/nothing_archive/blob/main/dump.sh

You can get OTA zip by using this cURL command (which returns OTA XML file which contains downloadurl)

Modify curfirmwarever to your last good system image, get zip, apply it using tool built from AOSP code

I think it can be automated for sure, but unfortunately, I don't have time to automate the full img build process.

And, for anyone interested, here is the last good whole system image archive of TB371FC_CN_OPEN_USER_Q00028.1_T_ZUI_15.0.664_ST_240414

4.8 GB file on MEGA

mega.nz
[Lenovo P11] ridsama:
I tried those, didn't work for me. I edited my post with the ones that worked for me. Flashing the image now. Thanks for replying.
[Lenovo P11] ridsama:
I flashed the CN rom but bootloader is still unlocked, does this affect Widevine L1?
[Lenovo P11] siamese007:
I can use fastboot and adb command lines with my years-old adb driver. Wonder why you need the driver in your edited post. Well it failed at the first attempt, but after reboot my device, my old Windows 7 can recognize the device and work flawlessly.

Flashing ROM does nothing with the lock/unlock bootloader. And for this device unlock bootloader does impact Widevine L1. DRM still shows L1 but watching major streaming video providers like Netflixh, Disney+, Prime and so on is at 720p max resolution, as other users on this forum have feedbacked about this.
[Lenovo P11] ridsama:
I saw some comments on CN ROM being able to get full HD with Prime and Netflix, but I realize now that they get stock CN ROM with their purchase, rather than seller flashing "Global" ROM. Oh well, at least now I get security updates. Hope we can find a way to re-lock bootloader. The AliExpress seller didn't want to tell me how, says it's too difficult for me.
[Lenovo P11] siamese007:
Is there other web host link? Mega.nz isn't quite well with my internet. Downloading was stuck in the middle and not finish a few times. I can't seem to download big files from Mega.nz yet.
[Lenovo P11] ridsama:
I uploaded to archive.org the two latest zip files.

https://archive.org/details/tb-371-fc-zui-15.0.440-fastboot-qfil-v-2
[Lenovo P11] siamese007:
Thank you very much for your link. I just finished downloading it.

However how do you flash these image files?

View attachment 6125978

There is not flash script. Or do you flash them one by one to every single partition? If so does the file names of the image files reflect all the partitions to flashed?
[Lenovo P11] perillamint:
Yes, this is intended to flash by one by one to every single partition. Some of them in dynamic partition, some of them in normal partition.

Here is a script to flash it

#!/bin/bash
fastboot flash abl abl.img
fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
fastboot flash boot boot.img
fastboot flash cmnlib cmnlib.img
fastboot flash cmnlib64 cmnlib64.img
fastboot flash devcfg devcfg.img
fastboot flash dsp dsp.img
fastboot flash dtbo dtbo.img
fastboot flash hyp hyp.img
fastboot flash imagefv imagefv.img
fastboot flash keymaster keymaster.img
fastboot flash modem modem.img
fastboot flash qupfw qupfw.img
fastboot flash recovery recovery.img
fastboot flash tz tz.img
fastboot flash --apply-vbmeta vbmeta vbmeta.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash xbl xbl.img
fastboot flash xbl_config xbl_config.img

fastboot reboot fastboot

fastboot flash odm odm.img
fastboot flash product product.img
fastboot flash vendor vendor.img
fastboot flash system system.img
fastboot flash system_ext system_ext.img

To use it in windows, save the above text as fastboot.bat, remove its first line #!/bin/bash (yes, I'm on Linux, so I'm unable to test Windows BAT file...) and drop fastboot.exe in the same directory then run the bat.
[Lenovo P11] siamese007:
Thank you very much. Very helpful. I copied your script and made a flash.bat to be used on Windows.

Edit: to use the flash.bat to flash the ROM, copy the file and the extracted files from the ROM file to adb platform tool. Otherwise the command lines in the flash.bat won't be able to execute.
[Lenovo P11] nickytheshaft:
This is because he doesn't know how to do it.

They just open the boxes, flash the rom and sell them. They don't know s...t about the rest.

Xiaoxin website states that unlocking is permanent
[Lenovo P11] MINUETE:
Hi!

How to relock bootloader?

Thanks.
[Lenovo P11] nickytheshaft:
You can't
[Lenovo P11] polipan:
hello after flash stok rom Chinese my tablet is put in fastboot there is only one possibility to turn off the device it is while plugging in the power cable goes into fastboot help welcome thank you
[Lenovo P11] Brinat:
after flash to cn version TB371FC-ZUI_15.0.440_FASTBOOT_QFIL_v2 can not boot to the system, it keep boot loop or even downgrade to TB371FC-ZUI_15.0.405 version but the same boot loop.

we need assistant on this, plaese any ideas?