yashsingh1/xdaforums huggingface dataset:
[MX Player] burbero74:
Ciao a tutti e scusate il mio inglese.

Ho un hdd USB collegato a Nvidia shield pro, ultima versione del lettore MX e ultimo codec.

Quando guardo un film a 1080p tutto funziona bene ma con il video 4k ha micro scatti e a volte si blocca se seleziono hw + il video va bene ma l'audio diventa stereo.

Con la stessa situazione non succede con Kodi o VLC, ma preferisco mxplayer

Qualcuno mi aiuta? Ringraziare

Luigi

Mod translation:

Hello everyone and sorry for my english.

I have a USB hdd connected to Nvidia shield pro, latest version of MX player and latest codec.

When I watch a 1080p movie everything works fine but with 4k video it has micro shots and sometimes freezes if I select hw + the video is fine but the audio becomes stereo.

With the same situation it doesn't happen with Kodi or VLC, but I prefer mxplayer

Anyone help me? To thank

Luigi
[Touch Diamond, MDA Compact IV Themes and Apps] oo03sjw:
Good morning.

Could I please get some advice about settings or versions of smartdialing.

I am lucky enough to have a Diamond and an X1.

Smartdialing on both decives brings up the desired contact, the differences I have noticed is that on the Diamond when you tap the contact it immediately rings the last number dialed for that contact, be it home, work, mobile etc.

On the X1 tapping the contact opens the contact details allowing selection of what function to carry out. ie. the normal WM screen, call home, work, send text etc. which I prefer.

Is there anyway to change the settings to get the Diamond to react in the same way as the X1?

Many thanks in advance for any assistance.
[Touch Diamond, MDA Compact IV Themes and Apps] Marvie:
YES that is also what I need, I used a Wizard and Tytn II and both did the same but not with the Diamond and I what that back!!

Is there someone who knows a solution for this??
[Samsung Galaxy A12] yukan2007:
hello, i wanted to root my samsung a12 and i did a procedure wrong, when i want to turn it on it stays at the samsung logo and turns off, when i connect it with a usb cable it turns off and on all the time
[Samsung Galaxy A12] ru_vlad1:
Are you still able to boot into download mode?
[Samsung Galaxy A12] yukan2007:
in the end I was able to enter the download mode and install the firmware of my samsung a12 android 11, I already solved the error
[Google Pixel 7 Pro] xflowy:
Hey everybody,

from my P6P I was used to being able to navigate my smartphone whilst making a call over the speakers or listening to a voice message over whatsapp.

Now, when doing this, my 7P will again and again shut off the screen because the sensor is triggered. This seens really out of proportion, since it happens far down and only on the left site (i attached an image with the blue trigger zone).

Is this sth you experience as well and can check for me?

Thanks!!
[Google Pixel 7 Pro] VirtualWaver:
I was also experiencing this annoying issue. It was driving me crazy.

Was able to find a fix though: activate Developers Options and open it. Look for Quick Settings Developers Tiles menu and tap to it. Then tap to Sensors Off to enable it. This will add Sensors Off tile in tiles list in the scroll down top menu of your phone. If you activate (tap on it) it will disable all sensors, proximity sensor included.

The changes will apply immediately so you can do this whilst on phone/video calls and then enable it back after the call. Works like a charm.

Whilst its tempting to leave it disabled all the time, I won't recommend it as it disables all the sensors, for example, automatic screen brightness sensor or auto rotate sensor, so not very convenient.
[Google Pixel 7 Pro] Curiousn00b:
Yeah, the cut off point is pretty early. I'd recommend using one handed mode to reach for the top of the screen or just trigger speakerphone.
[Google Pixel 7 Pro] jaseman:
Nice find and it may help some people some of the time. However, would it not be better to just turn on Screen Attention? YMMV
[Google Pixel 7 Pro] HipKat:
I had that same issue on the P6P and the P7P. It's annoying
[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] mablue:
Hi.

How install magisk on raphael/in with v13 android?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] zgfg:
Why don't you try standard way:

- Extract boot img from your ROM zip

- Install Magisk app

- From Magisk app, use Magisk Install option to patch the boot.img (do not enable Recovery option)

- Flash from Fastboot the patched boot.img

Actually, instead of permanently flashing (you could also reflash the original boot.img if something goes wrong), first test just to boot with:

fastboot boot <patched boot. img>

That is actually the recommended method by Magisk GitHub documentation (not the old way through TWRP - and bcs of the lack of available custom recoveries for A12, A13)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
​

LineageOS is a free, community built, aftermarket firmware distribution of Android 14, 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 contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

This is an unofficial LineageOS 21 build for the Xiaomi Mi Pad 4 (clover).

Known Issues

Please tell me

Instructions

Flash TWRP from @Th3Fron3 or recovery-20240617-clover.img (LineageOS recovery) by fastboot

Boot to the flashed recovery (Vol UP + Power)

Format Data (backup sdcard before format) if MIUI/LOS-19.1 was previously installed

Flash ROM (lineage-*.zip) via sdcard or adb sideload

Flash Gapps (MindTheGapps-14.0.0-arm64 are recommended) via sdcard or adb sideload

Reboot

Enjoy!

Downloads

All: https://androidfilehost.com/?w=files&flid=327361

LineageOS 21: lineage-21.0-20240707-UNOFFICIAL-clover.zip

Sources

https://github.com/kyasu/android_device_xiaomi_sdm660-common

https://github.com/kyasu/android_device_xiaomi_clover

https://github.com/kyasu/android_kernel_xiaomi_sdm660

https://github.com/kyasu/android_vendor_xiaomi_sdm660-common

https://github.com/kyasu/android_vendor_xiaomi_clover

Contributors

LineageOS team, kyasu

ROM OS Version: Android 14

ROM Kernel: Linux 4.4

Based On: LineageOS

Status: Stable

Created 2022-11-04

Last Updated 2024-07-07
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Zirafa:
Nice ✌️
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Just666Me:
Great, tx!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] CityKev:
Thanks to @kyasu for your great work.

I have the official TWRP 3.6.2_9-0 version but I see there is a newer version. Do I need to install this one?

A more general point is that I've read elsewhere that for A13 you need a 4.19 kernel TWRP but I see that your ROM is still based on a 4.4 kernel. Does that mean that if I wanted to revert to your 19.1 ROM I wouldn't need to format data?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] appman1234:
I use TWRP 3.7.0_9-0.

As the official TWRP cannot decrypt FBE of Android 13, I found that I cannot backup data partition or flash other stuff via TWRP after flashed the rom.

Am I right? If yes, it seems this rom is not ready for me to use due to lack of TWRP that can decrypt FBE.

Revert back to LOS19.1 at the moment.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
For decrypt support of A12/13 FBE (file based encryption), TWRP 3.7.0_12 (12.1 branch) is required. The official TWRP 3.6.2_9/3.7.0_9 is 9 branch that doesn't support A12/13 FBE. The kernel version doesn't matter.

For switching between my LOS 19 (no encryption) and my LOS 20 (A13 FBE), formatting data is required.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
The official TWRP cannot decrypt FBE of Android 12 either. My LOS 19.1 (A12) is omitting FBE (no encryption).

I will keep FBE in my LOS 20. Unfortunately my LOS 20 will never be ready for you.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] turopolje:
Thanks for the ROM Los 20, what do you think about using twrp-3.6.2_9-clover-fbe-20220711-1856 by pix106. Thank you
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] CityKev:
Thanks for the information and quick reply. I'll be trying this later this week.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I tried twrp-3.6.2_9-clover-fbe by pix106 and it didn't decrypt A13 FBE. It is 9 branch.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sanzraul:
Installed on the previous version Los 19.1 with LINEAGE RECOVERY and working correctly except NETFLIX.

NETFLIX doesn't finish opening.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] buszosbill:
Please describe in detail how you did it.

Thanks!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sanzraul:
All data is lost. It starts from 0.

Booting into RECOVERY mode with LINEAGE recovery installed with version 19.1

Select FACTORY RESET / Format data/factory reset

Then select Apply update / Choose from sdcard1

We select the ISO of LINEAGE 20

Do the same with the file MINDTheGapps 13.0.0

Redo FACTORY RESET / Format data/factory reset
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] turopolje:
excellent ROM fast, everything works except I have a problem with NETFLIX. Thanks Kyasu
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] buszosbill:
Thank you very much !

It worked.

Even the root is back.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] mELIANTE:
Screen corners are not rounded, you can see them going into the frame 🙁
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Lestat Delioncourt:
Neither Netflix nor Disney plus are working, installation went ok 😏
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Lestat Delioncourt:
Same here, also Disney plus not working
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rashly:
I have an issue launching Plex. It just stays at the splash screen and doesn't advance.

Otherwise, I haven't seen any issues. Thanks for your work.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] twu2:
The new build still stop charging sometimes.

I think it's better to use the code from xiaomi's source code:

sec_access = (addr & 0x00FF) > 0xD0;
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I created the boot.img with your suggested code. Please flash boot.img with fastboot and test this boot.img.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] dije_v:
very thanks to sir kyasu, this rom is very good.

i want root this device, can you all tell me what better i'll use for rooting this tablet? magisk or supersu or other?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Never_Sm1le:
There's no other root method work except Magisk.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Artsi59:
yes it does
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] twu2:
It's strange. I still get this issue for this boot.img.

But I modify the kernel code, and make a boot.img by myself, this one work fine for my mipad4.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Never_Sm1le:
Thanks for the reply, but after a few days I found no battery drain like most a10/11 roms
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
Could you provide a diff-file of the kernel source?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] twu2:
--- a/drivers/power/supply/qcom/fg-util.c 2023-02-05 14:08:11.135868931 +0800
+++ b/drivers/power/supply/qcom/fg-util.c 2023-02-05 11:39:29.919075791 +0800
@@ -427,7 +427,7 @@
sec_access = (addr & 0x00FF) > 0xD0;
#endif
#else
- sec_access = (addr & 0x00FF) > 0xB8;
+ sec_access = (addr & 0x00FF) > 0xD0;
#endif
if (sec_access) {
rc = regmap_write(chip->regmap, (addr & 0xFF00) | 0xD0, 0xA5);
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
Hello,

I am currently on @sabar_op's LineageOS20. Suffice to say that I am currently on the 4.19 based TWRP 3.7.0_12 by @pix106. So I have couple of questions regarding your android 13 ROM. This was also suggested to me by someone who replied on my comment on another thread.

is my current recovery OK for flashing this ROM?

Does this ROM support USB audio? Because Sabar's LineageOS20 (and I think his pixelexperience30) doesn't.

I am not saying sabar'sabar's ROM is bad. I just wanted to use my USB DAC. Lol 😁
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
My diff is as follows and looks like same as yours:

diff --git a/drivers/power/supply/qcom/fg-util.c b/drivers/power/supply/qcom/fg-util.c
index 1fd5880cd71e..2aa0dd0fa74f 100644
--- a/drivers/power/supply/qcom/fg-util.c
+++ b/drivers/power/supply/qcom/fg-util.c
@@ -426,8 +426,12 @@ int fg_write(struct fg_chip *chip, int addr, u8 *val, int len)
#else
sec_access = (addr & 0x00FF) > 0xD0;
#endif
+#else
+#if defined(CONFIG_MACH_XIAOMI_CLOVER)
+	sec_access = (addr & 0x00FF) > 0xD0;
#else
sec_access = (addr & 0x00FF) > 0xB8;
+#endif
#endif
if (sec_access) {
rc = regmap_write(chip->regmap, (addr & 0xFF00) | 0xD0, 0xA5);

I build the kernel again. Please test it again.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
Please use twrp-3.7.0_12-0-clover-4.4.img in the first post.

USB earphones seem to work. Please test it.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] reinez:
Maps Me don't work well with this rom
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] bakasamaz:
Does anyone here experience an issue with the taskbar? somehow after putting my sim card and receiving mobile signal, the taskbar is no longer showing up both in portrait or landscape. Also, Google map doesn't show toggle for dark mode. Would appreciate the help here. Thanks!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Filippo21:
Hi, I just installed the ROM updating from LineageOS19 using Lineage Recovery.

Everything seems to work well.

The At A Glance widget Is not available on the home page and I can't find it on available widgets list. Who knows how to add it?

Great ROM! Thank you very much to the developer!!! 👍🏻👏🏻
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] browoz:
This ROM looks really neat, but I am wondering is USB MIDI support enabled? The device seems to have no trouble running USB host mode with stuff like keyboards but it cannot talk to any MIDI device (tried a few).

@kyasu would you be able to enable midi support in the kernel?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] twu2:
This one still has problem for charging.

I found the reason, there're 2 position need to change for 0xD0, the above patch just modify one.

We need to modify the code of fg_write() and fg_masked_write().

--- a/drivers/power/supply/qcom/fg-util.c 2023-02-12 11:08:10.444628834 +0800
+++ b/drivers/power/supply/qcom/fg-util.c 2023-02-12 11:08:57.101379773 +0800
@@ -427,8 +427,12 @@
sec_access = (addr & 0x00FF) > 0xD0;
#endif
#else
+#if defined(CONFIG_MACH_XIAOMI_CLOVER)
+ sec_access = (addr & 0x00FF) > 0xD0;
+#else
sec_access = (addr & 0x00FF) > 0xB8;
#endif
+#endif
if (sec_access) {
rc = regmap_write(chip->regmap, (addr & 0xFF00) | 0xD0, 0xA5);
if (rc < 0) {
@@ -475,7 +479,11 @@
sec_access = (addr & 0x00FF) > 0xD0;
#endif
#else
- sec_access = (addr & 0x00FF) >= 0xBA;
+#if defined(CONFIG_MACH_XIAOMI_CLOVER)
+ sec_access = (addr & 0x00FF) > 0xD0;
+#else
+ sec_access = (addr & 0x00FF) > 0xB8;
+#endif
#endif
if (sec_access) {
rc = regmap_write(chip->regmap, (addr & 0xFF00) | 0xD0, 0xA5);
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I uploaded the new build (lineage-20.0-20230212-UNOFFICIAL-clover.zip).

Android security update date is 2023-02-05.

Merged twu2's charging patch.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] addidub:
@kyasu just passing through to say 'thank you' for all your works to keep Clover alive with your lineage os forks. I am using lineage OS on my Mi Pad 4 since 2019 and it has never let me down yet.

Today I installed your newest version and everything I tested until now is working like a charme. Unlike many other devices I owned, Clover is able to run GTA San Andreas app which is very nice 😁
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
Oh boy this is what i am waiting for to finally try this rom! The fix for the charging issue. Hehe. Thank you! Imma get this one my laptop's all set after reformatting.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] redDEADresolve:
Thank you for all the hard work, ROM is working great for me. No charging issue. Pixel USB-C headphones are working.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Gr83r:
Does this ROM work on the Xiaomi Mi Pad 4 LTE version. I do have the LTE version (not the Wifi version) so I just wanted to know if I can use this ROM for this specific version.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] EvilPhillski:
Yes, I have the Mi Pad 4 LTE and it works perfectly .. even makes and receives phone calls now (if your carrier supports VoLTE)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Gr83r:
This is great! Thanks for the info. I will flash this on my Mi Pad 4 LTE.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] LeshaRB:
Hi I have problems with GDIsk backup
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] LeshaRB:
and seemed to notice that the tablet itself began to reboot periodically
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] bloomarc:
Where should I report this UI bug? LineageOS bugtracker states that unofficial roms issues can't be reported there...

When using the light theme and expanding the status bar, battery icon and % are shown white making them almost illegible. When using the dark theme, the same happens so the other icons and text can't be seen, only the battery icon is visible.

Similarly, with the out of the box browser, when trying to delete history, the Clear and Cancel Icons domnot adapt to theme settings.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] siqiuyi:
Autorotate doesn't work. Does anyone have the same issue? Thanks.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] geminium:
I'm having a weird issue where there's no Internet after I added my google account to the system. Anyone experiencing this issue?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] LeshaRB:
Works for me

I have added 2 accounts and have internet
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Never_Sm1le:
Congrats, that means you have corrupted your /persist partition. Search for the solution, there's many people faced this problem
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] siqiuyi:
So weird, I flash Xiaomi's official ROM it works, then I use Xiaomi Tool to flash TWRP then LineageOS, it does not work again.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Never_Sm1le:
Try flash official Xiaomi > go to twrp and backup persist > flash los > restore the persist.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] redDEADresolve:
When you say auto-rotate does not work, you mean that your screen is stuck in the vertical position?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] siqiuyi:
right. and the auto brightness does not work as well
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] memorixo:
I just installed this rom and everything is fine for now.

I'm with twrp-3.7.0_12-0, the updates via OTA work well this way?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] WOnken:
Thanks for this rom. It works really great for me. I have the LTE-Version of the Pad and I have found no real bugs so far...
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kubaj007:
I have the same issue. No senzors are active. Gyroscope... Any fix?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kubaj007:
Uncontrolled locking of screen when working on tablet - maybe senzor issue like rotation? Any ideas?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kubaj007:
Hello, maybe I have diffent result, but for me Persists is size 0 after installing original ROM where rotation works. After flashing Los, rotation does not work. Any ideas? I have not found any partition.img in original ROM or any backup to restore. Is it possible to share?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kubaj007:
I have not find anything that would help me for MiPad 4. Can you share persist.img? Or your backup?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kubaj007:
I have manged to create persist.img by this:

You can "wipe" persist with the command:

dd if=/dev/zero of=/dev/block/bootdevice/by-name/persist

And back it up with:

dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

but there is no way to install it - TWRP does not support persist partition to select while flashing image and fastboot is black (does not work)

So if anyone can share backup or manual how to flash persist.img to Persist Partition will be more than appreciated.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] siqiuyi:
I fixed it by luck. I used Xiaomi Tool V2 to flash the MIUI 12, then used the tool to flash back to LineAge OS 19.1. All fixed. I will now stay with LineAge 19.1 to stay out of trouble.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
Just installed this rom because my tablet suddenly acted weird while on Lineageos13 by Sabar (not blaming the rom). Idk what happened but i was force rebooting the tab because it was freezing then it threw me back to twrp for whatever reason and it threw a bunch of codes in red.

So fast forward, i did a reset, flashed twrp 4.4 via twrp image flash, then installed this rom.

Now i can confirm usb audio works. Will observe this rom for days. I hope this will save me headaches over freezea. Lol
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kubaj007:
It seems I have figured it out!

So to recreate Persist image partition with orginial data:

I have manged to create persist.img by this - run these commands from TWRP terminal:

PART 1 - backup:

You can "wipe" persist with the command:

dd if=/dev/zero of=/dev/block/bootdevice/by-name/persist

And back it up with:

dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

The file is exactly 32MB in size. You should backup persist.img file from the tablet.

----------------------

PART 2 - recovery:

dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist

reboot back to TWRP go to - advanced - file manager - try to find this path - or adjust according to yours: /dev/block/platform/soc/c0c4000.sdhci

Then create a partition /persist using mke4fs command (x shoud be replaced according to yours path - see above):

mke4fs -t ext4 /dev/block/platform/xxx/xxxxxxx.sdhci/by-name/persist

or

make_ext4fs /dev/block/platform/xxx/xxxxxxx.sdhci/by-name/persist

Failed to mount message appeared, but after restart it was OK and new Persist image partition with size 32MB was crated (you can check in Backup option in TWRP)

All sensors work, rotation works. Accidental sreen lock still persists - I assume that the sensors need to be calibrated (or I do not know for now).

Let me know if it worked for anyone else (I am not sure if the last two commands (dd and mke4fs from part 2 - recovery) shoud be in different order - i have experimented so much...)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
Looking for persist image? I've been through what you've been. My solution was to fflas xiaomi eu rom. But now since i got my persist back, my turn to help. Here you go. Mi Pad 4 Persist image
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ericcostes:
Hello please help !

I was Los19.1 and started moving to 20

I flashed twrp 370120 via adb , ok

but now I cannot mount my usb otg to load the new rom !

some ideas ?

best regards

Eric
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I uploaded the new build (lineage-20.0-20230320-UNOFFICIAL-clover.zip).

Android 13 QPR2 (Quarterly Platform Releases) with March security patch.

Android security update date is 2023-03-05.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] berry903:
the latest image 20230320 is not working for me, dirty flash or clean install. both end up with error and do not install