yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ndOK112:
Hello all...

Just buy this mi pad 4 today with second hand condition and surprise the rom is miui.eu 10.3.2 with twrp-3.2.3-0930 for mi pad 4 plus..

Can I follow step by step on page 1 or some action need to be done first, for example to flash the latest twrp?? I'm not sure kernel and others are same.

Please kindly inform me the correct action since this battery drain is annoying now.

I also attached the latest condition my rom and twrp..

Thanks before..
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] CityKev:
I'm not on this ROM but I've bought a few of these devices and apart from one with the original China OS and locked bootloader they've either had the EU ROM or a China shop ROM. Each time I've updated to a far newer ROM right away (even the locked one could be unlocked without waiting). It's irrelevant that it says that it is for the Plus version btw.

You will definitely need to update the recovery but as you have a version of TWRP installed you can install from that via SD card or OTG. I'd do the following:

Download the recommended TWRP, ROM and GApps to SD / flash drive OTG

Boot into Recovery and format data

Flash the recommended TWRP and reboot into Recovery and format data again

Follow the instructions on the first page to flash ROM & GApps
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
I would recommend installing the latest official MIUI fastboot ROM. This will make sure you have the latest vendor and firmware. Using the official MIUI flash tool, make sure you do not use the flash and lock option. Flash and lock is the default option in the tool, so you must make sure you change to flash only before hitting the flash button. The official MIUI forums have a guide for fastboot flashing, which also has links for the official flash tool.

After this install the latest TWRP for this device and follow the guide on the OP.

You will only need to format the data partition once. Make sure you format, not wipe. The format option needs you to type "yes" to continue.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
In TWRP select the factory reset option first, then install this ROM normally.

Going from one AOSP ROM to another, doing the factory reset first should be enough.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] CityKev:
I've not done this on the five devices I've bought, two of which I still have. Two had the EU ROM, two shop ROMs and one was locked with the original China OS. This is a strange device from Xiaomi as it was released in 2018 with MIUI 10 based on Android 8.1 for the Chinese market and apart from a couple of security patches, last one early 2019, that was it, there were no updates. As this has the EU ROM it surely would have the 'latest' firmware if that was even an issue.

I disagree with with this method. Firstly, it's not an AOSP ROM but that doesn't matter. The installed TWRP is several years old so there is a good chance it's not compatible with the ROM to be installed, with potential issues with the kernel or encryption. The recommended TWRP is for a reason so I'd definitely say install that before attempting to flash the new ROM.

I'm on a 4.19 based ROM and the TWRP for it has just been changed as encryption and storage is changed for new builds. If I used the previous one and installed a new build then I'd have had a bootloop or worse.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
It is not unusual for shops to install "unofficial" MIUI ROMS which, when looking at version numbers, do not correlate to any known official (stable or testing) MIUI release for that device. It may not be necessary, but I personally would always install an official MIUI ROM on a phone that came with a shop installed MIUI ROM. This way I know I am starting from a known, stable base before I start flashing any custom ROMS. For the sake of 5 minutes you remove a potential source of grief.

This is a completely separate issue. This is responding to a user who is currently on Havoc, an AOSP ROM.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] CityKev:
No problem as long as things work.

The poster I was originally replying to has disappeared after asking for advice :) Three people offered it but they haven't bothered to respond.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Linka5:
Sorry

I can't turn on the Bluetooth

It's constantly stopping,

Bluetooth is turning on, that's all

lineage-20.0-20231111-UNOFFICIAL-clover.zip
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] memorixo:
Change Window animation , Transition animation and Animator duration scale to .5x in developer options
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] theonlybrand:
Bugreport: The white LED right next to the camera is flashing every other second
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] theonlybrand:
This fix does not work. Menu still does not pop up for around 5sec
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] SoftLibre:
Hi all

Does anyone know anything about this?

Downloads for : Xiaomi Mi Pad 4 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

lineage-21.0-20231216-UNOFFICIAL-clover.zip​

I am pleasantly surprised by it! :love:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I uploaded the android 14 build (lineage-21.0-20231216-UNOFFICIAL-clover.zip).

Android security update date is 2023-12-05.

Please see the first post.

You can upgrade from my lineageos-20 rom, but twrp cannot decrypt userdata. Please flash the rom via sdcard or adb sideload.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sanzraul:
Google services do not work.

Installing MindTheGapps-14.0.0-arm64-20231025_234300 gives signing issues. Error 21.

Installed with Lineage Recovery
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
Please install MindTheGapps by using twrp.

MindTheGapps is not signed and Lineage Recovery you use rejects unsigned zip.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
Many thanks for all your work keeping this tablet alive, it's very much appreciated.

Also very highly appreciated to have a ROM dev who still engages with users on XDA forums and not insist on only communicating on telegram.

Just installed this build using a clean flash.

My tablet is a Google free zone, so I didn't flash any GApps, same as I've done with you're previous LOS versions.

Going through the initial setup, I get to LineageOS Features, asking for consent for anonymous stats to be sent to improve services. Clicking next from here and I see the Android "Just a sec..." screen flash then it reverts back to the LineageOS Features screen.

I'm unable to get past this.

Is there an unintended dependency on Google Services? Best guess is that it looks like it's trying to launch Google Services initial setup after LOS setup and failing.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sanzraul:
I have flashed TWRP. The installation has now been successful

but NETFLIX doesn't work.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] RealNBB:
Hello,

I formatted the data partition using TWRP and then did a normal wipe.

If I now try to start adb sideload, I get the message "Starting ADB sideload feature..." but nothing happens. "adb devices" spits out no devices.

If I now install the ROM and the Nikgapps in the normal way (via "Install", then select the zip), it starts the installation. It also installs the ROM without any problems, with the Gapps TWRP now shows that the system partition has too little space.

By the way, it is the same with Mindthegapps.

Does anyone have a tip as to what the wrong size might be and why adb sideload doesn't work? Thank you!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] M@j@:
Used TWRP to do a dirty flash from Lineage 20 to 21 including new Gapps 14. First boot takes a while, do not get impatient. Still testing, -sofar all seem to work, including Netflix. Thank you for great work!

PS: Flashed from the SD card as recommended. After each flash I did a wipe of the cache/Dalvik.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rezad1393:
I have the same issue.

how do I fix this?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
Since LOS21 has not yet been officially released, there may be some bugs. Please install LOS20 & do the initial setup first and then do a dirty flash LOS21 over LOS20.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rezad1393:
thanks.

I installed it but I have an issue that I saw before and was not present on my pixelplus ROM (wanted to try a google free ROM).

Time in my country (Iran) is 3:30 hours (GMT + 3:30 ) but when I set the time to be set automatically it goes from 18th Dec 13:30 to 16th Dec 9:00.

when I set the time correctly manually and the set it to be auto and restart the tablet, the time goes back t o being wrong.

I had this issue before (dont remember what ROM was ) and with those the time would move back even a month.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rezad1393:
other than the time issue, my tablet is wifi only and I disable most system apps (calendar calculator,.....) that I don't use.

but I cant disable phone and messages.

can this be changed?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
Thanks for the tip. Working fine after doing this. No other issues seen so far.

I'm using twrp-3.7.0_12-0-clover-4.4.img as linked in your OP and it decrypted the data partition without issue.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
I'm using this ROM without any GApps and I don't have the dialer and messaging apps, so I'm guessing you have the Google version of those apps. Try using a 'smaller' GApps package that doesn't contain those apps. Not sure without looking which is the 'last' GApps package that doesn't contain those. On my phone I only ever flash the smallest GApps package then add in any other Google stuff from the play store.

Other option is to use LOS hidden apps function.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rezad1393:
I have not installed a gapps.

maybe I mixed the lineageos rom with another lineageos from another dev that had 21 version too.

if You are sure that you installed 20 then 21 (so that you can skip the bug) and doesnt have those apps then I will retry the clean flash again.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
My tablet is just charging so didn't check for definite.

But only reinstalled 21 just over an hour ago. After installing backups went to hide some system apps I don't use and didn't see phone or messenger in the list to hide.

Edit: my bad. Forget everything I said. Just nipped upstairs to check and I do have both apps.

Don't know why I never saw them earlier when I went to hide them. Thought it was odd when I hidden the contacts app that I couldn't see the dialer or messenger.

But I've now hidden them.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rezad1393:
I installed https://www.androidfilehost.com/?fid=11701882489785027709 (ver20) and it has the phone and messages.

installed 21 over it and it has phone and messages.

so I have no idea why you dont have it.

can the dev answer this issue?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
Check my edit on the previous post. I was having a senior moment when I was hiding unused apps. 😳
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rezad1393:
oh

can the dev make them so that they can be disabled? (not just hidden)

kyasu​
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
You should also be able to remove/disable them with root. Either with a app that can remove system apps or manually in a root file manager. A quick Google search will show you both methods.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
Just digging around and also to try and jog my memory on all this.

Using the following adb command should disable system apps

pm uninstall --user 0 package.name.example
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Garfield3333:
I installed from USB Stick (OTG).....

x Los 21

x nikgapps

x Magisk

All works great.......huge THX to kyasu...👌

Merry Christmas and a happy new year....😉

Proof
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] theonlybrand:
just installed LineageOS 21, the only thing not working for me is the fingerprint sensor
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
By "flash via SD card, does this simply mean i have to put the rom (and gapps for a14) in my sdcard and flash like normal via twrp? I am currently on the december build of your rom.

EDIT:

Nevermind my question. I dirtyflashed the rom over the LOS20 decwmbwr update and i can confirm, fingerprint not working as the others said.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
Can confirm this.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ndOK112:
Right now my Mi Pad 4 on LOS20 - nov11..

And want to flash to LOS21 latest..

What should i do for this?? I'm not fully understand for dirty flash method..

Just only flash latest rom LOS21 or need flash also gapss14??

Many Thanks if someone can inform me step by step with clear instruction..
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ichigo_kurosaki:
I suggest you flash the december build firat then again flash the LOS21 build on top of it.

By "dirty flash", it simply means you just flash the rom like how you usually fo but without the usual wipe data, cache and all that usual preparationa. Literally juat flash it. Also flash the android 14GApps build for LOS21.

What will happen next is that LOS21 will be treated like an OTA update and your sayatem will take time to finish the update after boot.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] zhlj2004:
lineage-21.0-20231216-UNOFFICIAL-clover.zip, It's working, many Thanks!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ducmanhdang:
Wifi 5Ghz doesn't work on channel 100 - 144 (US Channel). Please add this frequency range
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] turopolje:
suggest you flash the december build firat then again flash the LOS31 build on top of it and New gapps13 link https://github.com/MindTheGapps/13.0.0-arm64/releases/latest
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ndOK112:
so

so, the sequence is:

- flash LOS20 dec

- flash LOS21 latest

- flash mindGApps android 14

is it correct??
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I can watch Netflix.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
AFH is back and new build lineage-20.0-20221106-UNOFFICIAL-clover.zip is available.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Lestat Delioncourt:
Now I can use again Netflix and everything seems to work fine
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rashly:
Thanks! The new build fixed Plex for me.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] HJMB02:
Thanks for the Rom, can you please tell me where to get the right TWRP to flash it? I really appreciate if someone can please share it if possible.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] buszosbill:
Download TWRP for clover

Download TWRP Open Recovery for clover

eu.dl.twrp.me
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sanzraul:
the latest version works perfectly. And very fast.

Thanks a lot
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vogiasf:
thanks for the amazing work!! I just updated from Android 8 MIUI to your Android 13!!

only bug I found is 3.5mm headphone jack not working. otherwise perfect! :D
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] M@j@:
Thank you, kyasu, for your effort and time.

Could you please elaborate which TWRP should be used and provide a link?

The official one on the TWRP site is branch 9 only and I understood there is somewhere a branch 12 available?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] lorañep:
As we say in my country, kyasu you are a "mostro", but I'm going to stay in lineage 19.1 since it works perfectly for me and I don't want to delete everything, it's a lot of stress.

Anyway, it's gratifying to know that someone is still working on the software for this great tablet! Grazie sir Kyasu
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] beOJZ:
Unfortunately, when I use it, my wired headphones don't work, but with typeC it does. With the headphone jack connected, no matter how loud or lower I turn the sound up, there is no sound from the headphones and pad. This issue did not appear on the MIUI13 or LineageOS 19.1. Hope to fix this bug soon, thank you very much.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] asoluter:
Will it be impossible to make dirty updates with FBE enabled in this ROM using official TWRP? (Within Android 13)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] M@j@:
Same question here, as no version of TWRP can cope with this kind of encryption, at least for the time being, right? I there another update solution then available without formatting data?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] EvilPhillski:
When I install the 20221106 build I get no sound in my alarm or Teams (microphone works, just can't hear anything). Tested with Bluetooth headset as well as built in speakers on both a clean install as well as a dirty flash upgrade from 20221104 .

I can only get alarms and Teams audio to work by using the 20221104 build (I just dirty flashed over the 20221106 build and everything started working)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] buszosbill:
Thanks for the advice.

It worked the other way around for me.

1.20221106

2.20221104
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sanzraul:
There is no sound. Alarms don't sound. Neither the Sound when playing. Not even the camera shutter. The tablet is mute.

If Spotify audio and movies work.

There is also no sound in games.

Testing in bluetooth headphones the sound is lousy. just noise
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] EvilPhillski:
intente usar 'lineage-20.0-20221104-UNOFFICIAL-clover.zip'
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I uploaded the new build (lineage-20.0-20221111-UNOFFICIAL-clover.zip).

Android security update date is 2022-11-05.

Fixed the headphone issue.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
For updating within my LOS 20, dirty flash using official TWRP is OK.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] 25agosto:
Hi, i had some problems flashing this, don't know why, first i tried with the latest official twrp available on official site, but i was stuck on a bootloop . i was flashing los 20 AND gapps you provide in a single time, using the function of twrp " install more zip after this" (or something Like this) like i always do. So i search om web and found another los 20 post for clover here on xda, providing a modded versione of twrp (named 4.19 TWRP created by pix106). With this i successfully did the flash of only los just for try, and i was able to boot into system. So i came back in recovery to flash gapps but i found a stuck twrp to the logo screen (never happen this to me). After some try, i decided to try flash the official twrp from official site again, it worked, i made a factory reset, flash gapps (but not the one you suggest, the latest nikgapps instead) and everything works fine, these are the steps i had to flash successfully, more or less......

Except one last ting:

I nave the gyroscope not working. To flip in landscape i have to start a lansscape game, then exit and i have lansdscape. To come back in portrait i have to lock and unlock the tablet.... Any suggestion?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] RealNBB:
What is LOS31 and why A13 Gapps for a A14 ROM?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] turopolje:
sorry for typos, follow the instructions in the first post, but first install the latest los20 + New gapps A13 and only then the new los21 + New A14 from OTG. I am wipe darvic and cash. then reboot the system. everything works normally with my Mipad 8" wifi
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] l_mike:
I can confirm this way works on lte version.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
I uploaded the new build (lineage-21.0-20231231-UNOFFICIAL-clover.zip).

Please see the first post.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] kyasu:
Please try the new build and let me know if the fingerprint sensor works. (I don't have mi pad 4 plus.)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sb56637:
Thanks for this! I was wiping data and system and after installing LineageOS it was bootlooping. The format data option made it work.

It looks like the LineageOS 21 has a bug when Gapps are not installed that won't let it complete the last screen of the setup process and therefore can't use the OS. But I was able to work around it by installing LineageOS 20 first and running the initial setup, and then dirty-flashing LineageOS 21 over top of it.

The only bug I've run into so far is that the default Camera app incorrectly rotates the photos 90 degrees after modifying any of the settings or on-screen options.

Thanks very very much to @kyasu for keeping the miPad 4 relevant!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Zirafa:
Hi Kyasu! Interesting phone redmi note 4 lineage 21 + mindgapps 14 = google play is certificate. A mi pad 4 (wifi 8') lineage 21 + mindgapps 14 = google play is not certificate
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] theonlybrand:
Androidfilehost is down for several days now. Is there an alternative platform where i can download the new ROM?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sb56637:
Regarding standby battery drain, I have the miPad 4 WiFI-only model which seems to have quirks with the kernel of most custom ROMs, leading to excessive standby battery drain in airplane mode with WiFI turned off. (Owners of the LTE model usually don't have this issue.) In the case of LineageOS 21, I saw a very steep ~3% loss during 30 minutes of standby after disconnecting it from the charger at 100%. That might have been due to a slightly deteriorated battery and/or the battery monitor not being fully calibrated. Then during ~8 hours of standby I'm seeing around 3 - 4% drain, which is not ideal but way less than the latest CarbonROM that lost ~14% during the same time period. Those are the only two currently maintained ROMs for Clover devices. The now defunct ArrowOS and MoKee ROMs were the only ones on my device that had virtually zero drain during 8 hours of standby in airplane mode, so it is possible on this hardware. If it would be helpful to improve this ROM I can provide logs of wakelocks or whatever is needed.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
I followed all the steps in the OP and now my tablet is bootlooping, any suggestions? I was on rcstar's CarbonROM prior to this (Android 10). I can get into TWRP but I tried flashing both LOS20 and 21 and same boot loop issue.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Robbo.5000:
Format data in TWRP, this is the option where you need to type 'yes' to continue. Wipe is not the same as format.

After this reboot into TWRP to ensure the newly formatted data partition is correctly mounted, then install as normal.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Ahh that did it, thank you! It's been a while since I flashed anything, needed that reminder in TWRP.