yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rataplan626:
I'm running the May release, and so far it's just really good! There is one minor thing though. A few releases ago (still the rcstar ones) it booted very fast, with only two loops of the Lineage logo running from right to left before the three circles pop in and it's done. Since about the latest rcstar release that increased to three loops, which it still was with your builds, up to this May version. Now I have 4 loops, before the animation is finished and it's done booting. That's about an increase of 100% in boottime.

Now I understand people don't reboot their tablets 5 times a day, but still I wonder what makes it boot so 'slow' compared to just a few releases ago. I have no SD card installed, everything runs from the eMMC (or whatever memory is on there). Also, no apps have been added, although the ones that were on there already have of course been updated meanwhile by Google Play store. However, I don't think that has anything to do with booting, as the installed apps as far as I know can start only when the device is already booted.

Any insights?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
I checked mine. I have 6 loops and seventh is the final. 7 seconds boot waiting is very short time.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rataplan626:
I'm not saying it's particularly slow, but it's twice as long as a few releases ago for me. I'm trying to understand why that is, and maybe there is a way to get it back as fast as it's was. It's not annoying, but yet it's just really convenient if it boots as fast as it did.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
Did you find the difference between yours and mine observation ? It is not connected to the rom, but others things like gapps and a way you installed it, maybe if data partition was formated or not before , maybe if you have newer or older kernel ...

I remember a situation with xperia z3c and LOS 14. The one version booted minimum 3 minutes each time.

You can generate catlog and try to understand what needs long time to initialize.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
Well, I finally got round to moving up to 17.1. Must say I'm impressed.

I hadn't done this earlier as 17.0 worked perfectly for me, and early 17.1 bug reports were coming thick and fast; clock, video call, gesture, wifi issues etc.

Recent good reports and [MENTION=586369]JeeHaa[/MENTION]'s report that 17.0 data backup can be restored with no issues were the incentive I needed.

For what it's worth I'll outline my installation findings:

I can confirm that restoring data (only) from 17.0 backup restored all apps and data, and works fine. :good: :)

I use Mokee TWRP (with decryption ability) from OP.

Method:

Did factory reset only for wipe (clean install), flashed 17.1 ROM, flashed OpenGApps, restored 17.0 data (only) from previous backup, flashed latest Magisk, cleared dalvik and cache, booted System.

Firstly, using Stock OpenGApps package-

Findings:

- Previous apps / data are restored and work fine. :)

- Two cameras appear: Google Camera 7.2.010 port by Urnyx05, and Google Camera 7.2.014 (shows in Playstore) modified by Parrot043. 7.2.014 fails to open. 7.2.010 is unstable, has issues swapping cameras etc. Workaround: Other cameras work fine, including Open Camera (Playstore, XDA). Others exhibit same problems as native cameras.

- Recent Apps button doesn't work (does nothing) in my 3rd party Launcher (Smart Launcher 3). Switching to Pixel Launcher (Native to rom) produces the same problem. Workaround: install Magisk module QuickSwitch, reboot, open QuickSwitch App and enable 'recents' for Pixel Launcher. Now Recent Apps button works even if 3rd party Launcher is set as default.

Secondly, using Full OpenGApps package (wanted to see if Stock / AOSP App handling helped camera etc)-

Findings:

- Previous apps / data are restored and work fine. :)

- Two cameras appear: Google Camera 7.2.010 port by Urnyx05, and Google Camera 7.2.014 (shows in Playstore) modified by Parrot043. Both now work fine! :)

- Recent Apps button now works in my 3rd party Launcher (Smart Launcher 3). :) Switching to Pixel Launcher (Native to rom) works fine too! :)

It's now clear that Stock GApps is breaking functionality for camera Apps as well as 'recents' assignment in Launchers / Home screen Apps. Apparently it replaces some stock / AOSP apps, so this may have alot to do with it.

Summary:

- 17.0 Apps and data can be restored after clean install.

- OpenGApps Full GApps package works with no issues I've seen.

- Stock GApps breaks functionality for many camera Apps (including ROM cameras), as well as 'recents' assignment in Launchers / Home screen Apps (including ROM pixel Launcher). (There are workarounds if Stock GApps is required.)

Many thanks [MENTION=4727726]S-trace[/MENTION] for continuing LOS development for MiPad4. Your LOS 17.1 is working great for me, fast, slick, and no issues (so far) as others report. :good: :good: :good: PW
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rataplan626:
My observation is that installed apps DO matter in boottime. After making a full backup, I wiped data, keeping the may release just as it is. With that, it boots in 3 loops again. Still 33% slower as before, but also still 25% faster as with my (and my daughters) apps installed. I always had the impression that when booting, you load the system partition, and when it's done, the GUI shows and your apps are started. But after restoring my data partition, it's back to 4 loops again, so bottom line, propbably the more apps you install, the slower it will boot. Android seems to be a bit like Windows after all :)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] wangdaning:
If you are running magisk then modules might also be a factor in boot time.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] shimulx:
Just installed this rom... Super fast, responsive and awesome...Special thanks to Developer...It is highly recommend to install this rom on Mi Pad 4....?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
Just updated my Mi Pad 4*Plus that had an early release of that ROM*and I still have some serious issues :(

-> Trebuchet (desktop manager) crashes all the time, have no other choice than to use Pixel Launcher :(

-> when I try to download something from Internet with integrated browser, browser instantaly crashes at begin of download. If I install Firefox from Play Store, I have exact same issue when I try to download something from Internet, it fails unless I granted at FF*access at local storage when it asks for !

-> Trying to install app from Play Store but it hangs up for ever on (Download in wait..). Have to reboot tablet then it starts to download and install first app in waiting list and have to reboot tablet again for next download :(

-> I have setup system to use SD Card as extended storage of tablet. Now When I*boot tablet I get an error message stating SD*Card is missing unless I didn't move it out of tablet !*If I click on notification I just get a crash from settings app that doesn't open ! If I go in Settings -> Storage, SD*Card appears 4*times (some are indicated as corrupted others as missing). If I try to reformat it process crashes on a Java error (unless it's a good SD*card that is in it !). Now when I reboot I*get two times the notification of Missing SD*Card...

I have installed that latest version of ROM*by doing a full wipe of tablet in TWRP and then flashed ROM*and Gapps. Did I miss something ? It looks like that ROM*is working perfectly for everyone else so not sure why it's so bad on my tablet :(

Thanks

Vincèn
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rataplan626:
Did you actually do a full wipe? Data, caches and system? What exact gapps package did you use? Try wiping again, and reinstall the may rom without gapps, and see if you can download. If all is fine, wipe data and caches again, and install gapps. I use nano 64 bit, which I updated to may 9th version (I think) a few days ago. Everything should be running fine. If still not ok, revert to stock, so partitions like persist are restored. After that reinstall LOS 17.1.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
Yep wiped everything out of the SD*Card where I had the zip files of ROM and gapps

I followed instructions given with ROM and installed the "open_gapps-arm64-10.0-mini-20200509" archive

Would be very bored to have to come back at stock ROM of manufacturer that is really bad ! I noticed also something very weird. After resetup of my Google account in tablet, I receive the usual security alert from Google by email stating I had setup my account on a Xiaomi Mi 6X*???? instead of Mi Pad 4*Plus !! Normal ?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
When have you updated your firmware ? Maybe is time to install the one released with the last official MIUI ?

Mi pad 4 was never certified by google and it has to identify as different device.

I use always nano or even pico version of gapps.

Uppppps. You have PLUS version. I am sorry , my experience is only with standard version.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rataplan626:
If you wiped everything, your persist partition is wiped as well. And the only way to restore that is to revert to stock. Noone said you have to keep running stock. From stock you can install twrp again, wipe caches, system and data, and flash LOS again. But if you don't feel like that, don't ask for help here. You have issues with your device, so you will have to narrow down the cause of it.

And yes, MI6 is what this rom is based on, pretty much same hardware.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
If he wiped everything , he has empty recovery partition, boot partition , firmware partition. Do you think, he will be able to boot anything if this is true ?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
Thanks for explanation but I'm confused by something here if you don't mind ? ;) What is the persist partition as in TWRP I have only Dalvik/ART Cache, Data, Internal Storage, Cache, System, Vendor, USB-OTG and Micro SD Card. What did I wipe and I should have not, to be sure I don't do the same mistake again !

ah oki it explains the confusion for google then ;)

Thanks
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
Different TWRP let to manage different set of partitions. The best way is to reinit your device by installing last oficial MIUI , but not as rom. Only fastboot version for be sure to restore correct all partitions.

When you will do it, do not make a mistake and do not lock your bootloader (locking is default option!!!).

Edit.

When you install custom rom first time in TWRP wipe :

Dalvik/ART Cache,

Data,

Internal Storage,

Cache,

System,

Vendor,

for clear installation.

Wipe partitions for dirty installation in TWRP (second and all next installations of the same custom rom) :

Dalvik/ART Cache,

Cache,

System,

Vendor,
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rataplan626:
Boot and recovery can't be deleted by default in twrp. But anyway, I'm just trying to narrow the issue down. But never mind.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
I think I succeeded to do that proprely, I selected clean and not clean and lock ;) I'm now back in MIUI 10 and I have downloaded an Android App (Fdroid) and have been able to install it properly so I guess the restore is complete no ?

Oki thanks for confirmation but it's really weird because I think it's what I did first time I installed Lineageos on it but will the process again after reinstalling TWRP and will let you know results ;)

Thanks for help

Vincèn
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
Is LOS 17.1 the first your custom rom on this device and you installed it on MIUI ? If yes, you can be right and the problem is somewhere else.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
Yep I received the tablet from manufacturer so with MIUI. Unlocked it, installed TWRP, Wiped everything (same list as what you indicated to me previous message), and then flashed LOS 17.1 (one of the first version avalaible in january and voilà !).

Are you sure I should wipe System and Vendor ? I don't remember these possibilities in past with TWRP :/
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ericcostes:
dont wipe vendor because contains mui security patchs

;)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
But MIUI security patches won't work with an alternate ROM*no ?

Hum I'm now no more able to flash Lineageos on the tablet :( TWRP*reboots each time I try to Install the zip of Lineageos now :( Tried the wipe again but no way to flash Lineageos now on it :( Not sure what else I can try now with a bricked tabled where only twrp still works on it !
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
System and vendor are part of custom rom zip. Sometimes flashing vendor on not wiped vendor partition is ok, sometimes not. Good to do what creator of custom rom suggested.

---------- Post added at 12:28 PM ---------- Previous post was at 12:21 PM ----------

I do not know what is a problem, but this is first installation after MIUI and you can format data partition this time (not only wipe). I saw something similar , but twrp not auto rebooted but reported a bug on data partition during installation.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
oki so did that and succeeded to reload Lineageos on it by sideloading through USB ! But problem is now worse ! I can't even get it to connect to Wifi once rebooted in LineageOS (Failed to save network), so I'm back at exact same problem where I can't save anything in tablet but even Android itself is not able to save own datas :( I noticed also after first boot in fresh LineageOS that it didn't play the first-run Wizard !

I noticed also that I have 3 chinese apps in it that are not part of LineageOS but looks like some left over apps of MIUI.

Any ideas what to try or do ? to get it to work properly ;)

oki the culprit was the data partition ;) When I was trying to wipe it in TWRP, it was failing ! I did a format of the data partition then rebooted and oh nice surprise the Welcome wizard of Lineageos showed up :good: and then I could download a file from Internet without any problems ! Looks like I'm all good now with it ;)

Now that storage problem is solved I have an other one that existed already in old version I used is that Trebuchet is not working at all :( crash loop all the time, unable to access apps or do anything out of going into Android settings :( I deleted cache and data of Trebuchet but still the same.... Rebooted device but Trebuchet crashes as soon as I unlock screen :(

Thanks a lot for all help and continue the great job ;)

Thanks
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
It is on separate partition. Custom roms do not repartition mi pad 4 . We have there 3 or 4 apps as long as someone will manual remove it. But released space on partion will not be usable without repartitioning.

I use nova launcher.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ericcostes:
trebuchet not working : use nova launcher ..the best :good::D
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
I know but how to install it on a device where the only access you have are settings of Android and permanent message about crash of Trebuchet preventing you to start any apps :(
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
I have never tried to install app this way, but you have not only root file manager in the twrp but terminal too. Maybe it will be possible.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
Which implies to find the apk of the app and I don't think you can install Android app package straight from TWRP :/ I guess I'll check an other ROM, will be probably easier :D
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tomek0000:
If not automatic, maybe manual? Creating directories, copy apk, set privilages ...
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ericcostes:
put the apk on usb otg and use twrp to install it :angel:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vincebay:
Thanks a lot for the trick :good: was not aware it was possible and solved my issue, now Nova Launcher is running and all apps needed installed and working fine ;) Tablet also more efficient and fast compared with previous LineageOS*ROM*:D

Thanks for all
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ericcostes:
:good::cowboy:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
[MENTION=2667722]vincebay[/MENTION], [MENTION=279719]Rataplan626[/MENTION], [MENTION=6760615]Tomek0000[/MENTION], [MENTION=4345211]ericcostes[/MENTION]

FWIW -

TWRP:

I've found Mokee TWRP linked from OP (w/ decrypt ability) to be the best for MiPad4

I only do factory reset for clean install as twrpme officially recommends this, and it is all that is necessary. As stated, system wipe is invariably performed by ROM zip installer. (Formatting data may however be needed if decrypting, and formatting system may be needed if changing from ext4 to f2fs etc.):

https://twrp.me/faq/whattowipe.html

Other Partitions:

To fix unique partition info, or ensure you have latest patches, firmware etc from Xiaomi (MIUI), you no longer need to reinstall MIUI stock ROM. Go to https://xiaomifirmwareupdater.com/ and select just Firmware or Vendor from menu button under 'downloads', put "Mi Pad 4" in search box (spaces needed), download and flash. (Full ROMs, recovery and fastboot types are also available here).

Nb. Files from weekly ROM listed as '9.8.29' is actually the latest for MiPad4. This is a dating convention, and the version is actually v10.5, so later than Stable ROM 'V10.3.2.0.ODJCNXM'. So 'updated' date is best indication of comparative age here. (Baseband with version 9.8.29 firmware is 660_GEN_PACK-1.214729.1.215613.1 for LTE models. Find baseband version in Settings, About tablet, Android version in LOS.)

Trebuchet not working:

You need to set this launcher as recents provider. Install Magisk module QuickSwitch, reboot, open QuickSwitch App, click Trebuchet and assign as 'recents' provider, it will reboot, then set as default home app and it will work.

I installed Full GApps, and therefore had working Pixel Launcher from start. Need to use module to swap recents provider if swapping back to Trebuchet. Other launchers, like Nova, may work without assigning recents, and Recent Apps button will also function as long as a system launcher is properly assigned as recents provider. I prefer Smart Launcher 3 Pro for its automatic app categorisation.

Hope it helps, PW
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
[MENTION=4727726]S-trace[/MENTION], I installed full GApps with Pixel launcher which explains why I needed module above to reassign 'recents' if switching to Trebuchet native ROM launcher. This fixes crashes as well as 'recents apps' button for this and other 3rd party Launchers.

However, it seems people are having this problem with Trebuchet even with no competing launcher (with minimal GApps installed), and report it simply refuses to launch and crashes.

Perhaps it can be fixed simply by properly assigning 'recents' to this Launcher natively in ROM?

Edit: This may be done already, and recents assignment is somehow just getting lost. Either way, Magisk module QuickSwitch resets and fixes Trebuchet crashing / instability.

Perhaps a note could be included in OP to the effect that Magisk module QuickSwitch is needed to reassign 'recents' when switching between Trebuchet and Pixel Launchers, and possibly for some 3rd party Launchers. PW
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BoORDeL:
good morning guys,

my camera app force close on opening.

any tip to solve this issue?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
Which GApps are you using? PW
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BoORDeL:
built in camera app ( i think it was in the full gapps packet)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
So you're using'Full', not 'Stock' OpenGApps?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BoORDeL:
sorry stock
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
Thats what I thought. ;)

'Stock' causes problems with camera and Launcher recent apps button, and maybe others. I think it's due to it replacing stock / AOSP Camera, Launcher and other stuff.

'Full' is very similar, but doesn't replace these AOSP apps etc. So dirty flash ROM again, then 'Full' GApps. This works fine for me. (If that doesn't fix it, do backup in TWRP, do factory reset in TWRP (only wipe you need), flash ROM again (clean), flash 'Full' GApps, Restore Data (only) from TWRP backup, reboot and enjoy smooth ROM with working cameras etc.) :good:

https://xdaforums.com/mi-pad-4/development/rom-lineageos-17-0-t3989187/post82622173 PW
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BoORDeL:
thank you m8
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
Fixed?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BoORDeL:
Yes thank you :good:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Vinnie1:
I've had crashes in Chrome, only when using eBay or Aliexpress though.

I have tried all of these solutions from the thread that I could find: turned off location services, installed full 'Gapps', factory reset in TWRP - wipe, flash ROM again (clean), flash 'Full' GApps, Restore Data (only) from TWRP backup.

Can anyone help, or am I the only one with this problem?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Ast2001:
Thank You pndwal. Following your procedure fixed my crash problem with Pixel launcher.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pndwal:
Great! Was dirty flash and new GApps enough? PW
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Ast2001:
Yes, absolutely.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Xyam:
Try chrome beta, works flawlessly
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ghale:
Hello people, my first post regarding this very nice device.

I got it from China, with an unlocked bootloader (they did this on they own, maybe to install a different ROM?) and a SIM card INSIDE IT (!!!).

So, I just flashed TWRP, then rebooted into IT.

I formatted everything, flashed LineageOS ROM via sideloading, Gapps, Magisk. Reboot.

It's working great.

No locks, no reboots.

It's 3 days it's working, the battery is very good.

Just my 2 cents.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] aryan79:
Hello, I'm on a old MIUI.EU ROM (A 8. 1, MIUI 10)

Can I flash directly this ROM?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] sara.ramli:
this one. it's a China manufactured hub, imported and rebranded by a local company. you should be able to find this in other country's markets too

PiBOX India, USB C Hub Multiport Adapter, USB C to 3 Port USB 3.0 Hub Type C Connector with 1 USB C Charging Port for Charging Compatible with Lenovo/ https://www.amazon.in/dp/B07T5128HD/ref=cm_sw_r_cp_apap_paoR4d8xJKTiY

Havoc 2.8, IIRC. will check and confirm
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] dorkshoei:
Off topic but does anyone make glass screen protectors for the 4plus that are thicker than 0.3mm?

I've been buying these: https://www.aliexpress.com/item/32888988626.html but they don't last long before cracking (I have a 4yo and a 6yo) so my tablet gets knocked around a bit)

I just received two more and for the first time they were damaged in shipment, so I need to order some more but I was hoping for something more durable.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] senseii:
I got these 2 from Ali and they've handled a beating from my kids (5 & 2) :

https://a.aliexpress.com/_d7JKrKX

This one is a backup for when they smash the first one :

https://a.aliexpress.com/_dVO5qYf
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Thorger:
Any working apks for netflix and Disney available?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] dorkshoei:
They seem to be 0.3mm also. Maybe that's the best there is.