yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Flaggusp:
You can resize the system partition from the wipe menu in twrp.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] DaVish3K:
thanks mate!

i was kinda surprised that it didnt ask me how much space i want to allocate.. and how do i revert the resize?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Flaggusp:
To revert it I'm not sure, but I think you just do resize another time.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] pix106:
Iinm, resize=use the device partition size, instead of the image size that has been flashed
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] DaVish3K:
Works great with latest Havoc OS unofficial gsi, after boot there's a notification about wrong vendor image, but it works flawless.

another noobie question... If I flash the miui.eu zip, will it revert the vendor image to miui?or do I have to reflash entirely with stock? I got from a reseller who unlocks bootloaders and installs miui.eu before selling, and I'll have to send it back...is it possible to revert without locking the bootloader again? Sorry for of top
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ganpram:
Can't write Vendor

Already have the correct file but i'm stuck at writing vendor for an hour. Anyone can help me ?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] gleenfield97:
Attach a screenshot of the command prompt/terminal (fastboot) or TWRP.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] NexusRunner:
Anyone notice WLAN MAC is changed?

On My WiFi only Mi Pad 4, WLAN MAC and BT MAC are similar, which share the same prefix. But after flashing the latest 20190428, BT MAC remains the same while WLAN MAC get changed to a seemingly random address. They no longer look similar. Apart from this WiFi is working fine though.

Tried Paranoid and Lineage, WLAN MAC is the same strange value. My /persist is untouched and I confirm correct WLAN MAC is written in both files. And whenever I flash back to source built ROMs, I get my old WLAN MAC back to normal.

Maybe not a big deal, this is just a low priority report.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] filjusz:
Look if in developer options random mac adress option is visible
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] NexusRunner:
Thanks but no, it's not visible. I tried forget the SSID and reconnect, or connect to a different SSID, or flash another GSI on top of this software collection, the WLAN MAC address remains the same strange value despite different from stock address (double checked from router side). Only when I flash back other vendor my MAC address gets back to stock.

It's unlikely the random MAC feature. It seems only related to this software collection.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] shubhamraj:
I flashed Q GSI but it was stuck on miui logo
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ganpram:
Like this
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] mkmonkey:
Similar situation happens here .

First of all , I found that the fastboot mode is always malfunction . The system shows "Press any key to shutdown" after I flashed the Kernel or TWRP recovery .

Well , it succeed every time I shut down , restart the fastboot mode and it will allow me to flash once .

However , I've got no luck on flashing the vendor image . It doesn't even start to flash ...

Update 1 :

No way to carry on via fastboot , system totally bricked . Bootloop into fastboot mode .

So , force the pad to restart into the provided TWRP , and lucky that the recovery still works .

Then flash the IMG files into via TWRP , and install Havoc OS .

Finally get out from boot loop and entered Havoc OS . But no idea if the system is fully functional or not , will test it out later .

Update 2:

Just realized that Havoc OS will not support this kernel . Will test it out again later .
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TheIntruder:
Waiting for a stupid amount of time to unlock my bootloader grr so I can give this a go ?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] mibgo86:
Where can I download this?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Pancha5:
Try connecting phone to a different USB port, sometimes it worked for me.....
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] motes:
Well first of all Thank you very much for all job doing here!!

I did all steps installing kernel recovery and vendor, and wiped data from twrp. I get arm64 aonly Pixel Experience GSI and flashed via TWRP and allso in Fastboot, but i don't boot, i get stuck in the boot google image with the loading bar... Any solution??
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] mercindustries:
The latest update didn't work for me as well, try using the march arm64 version
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] motes:
Finaly i instaled the pixel experience zip rom, may be another day i will try it, rigth now the zip ones is finne for me! [emoji1419][emoji1419] Thank you!!

Enviado desde mi LG-H870 mediante Tapatalk
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] gleenfield97:
https://xdaforums.com/project-treble/trebleenabled-device-development/9-0-havoc-os-t3914038

Issues:

No headphone jack

No magnetic cover (only open)

No auto-brightness
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BenParz:
I just have a question: do i have to flash the kernel before flashing recovery or I can just flash recovery then install kernel via zip?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] gleenfield97:
I don't think the order matters, except for Magisk.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] rexme1:
Tried out the Paranoid Android, Excellent performance. But I am encountering issues with Screen Mirroring (After connecting to an external display, System UI crashes. tried with PE still doesn't work) and Front Camera just freezing (Tried PE no problem with the camera).

I want to use this for the performance but right now still lots of bugs with the notifications menu on Landscape it a bit destroyed.

Willing to wait for updates though, at the mean time i'll go back to xiaomi's official rom
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TheIntruder:
I have searched the thread seen it mentioned but don't see a solution... My tablet is only "charging slowly" original charger and lead which are only two weeks old so can't see it being either of those...

Everything else is great much much better than stock ..

Edit added picture and I have noticed it seems to charge ok with power off...
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BenParz:
I just want to clarify things here. In the instructions, it says to fastboot flash both the kernel and vendor file prior to flashing the GSI, wouldn't flashing the system image overwrite arter's kernel?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] xzr3b0rnzx:
i am on the latest kernel and the drain on wifi on is huge otherwise pretty ok on standby but not with wifi on through out the night
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] iuselect:
Perhaps try PixelExperience or HavocOS. Both of them work with this.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Thanks a lot for your months of work on this [MENTION=4898097]arter97[/MENTION]. After flashing this, the phantom touches / presses on my device are now finally gone ... I thought I was going to have to sell this. Using 0324 PixelExperience from here with no major issues so far. Super smooth / fast.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] BenParz:
How did you go about using this? I mean how did you install it with pixel experience?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
First, you must be familiar with fastboot. Quick google search yields this AIO package for installing it Then, just literally follow the instructions in [MENTION=4898097]arter97[/MENTION]'s OP; they are pretty straightforward. When he says to flash the GSI image, flash the PixelExperience system.img (for Mi Pad 4, it's the arm64 aonly package, and 0324 build as the new one seems to be causing boot issues for everyone) using this command: fastboot flash system <image>. See [MENTION=1915408]phhusson[/MENTION]'s great guide here to see what image type and architecture your device needs. Also, do NOT flash the ROM zip as you would do normally with custom ROMs. Project Treble works via flashing a GSI image directly to /system.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TheIntruder:
Quoted wrong person
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] gleenfield97:
just found a new Havoc GSI build by vince31fr.

https://xdaforums.com/project-treble/trebleenabled-device-development/gsi-havoc-os-t3930030

The aforementioned issues are all resolved. I dirty-flashed over Technical's.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Awesome, thanks for the update. I saw some people having issues with SIM card / calls in the thread. Can you confirm phone calls work? I'm having issues with PixelExp recognizing my SIM.

---------- Post added at 08:25 PM ---------- Previous post was at 08:21 PM ----------

Much appreciated, you got a donation :)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Zayed_:
What order do I flash it in? First Custom ROM, then GSI image, then Kernel, or is it the other way around? I searched a lot, but no one seems to have mentioned the order. I feel like kernel should be flashed after custom ROM or something because of vendor image being overwritten or something. So, uh, please help me with this. And are you sure the Mi Pad 4 is Project Treble compatible? I read one of the bugs, the tablet thinking it's a phone. Will that be a problem while using apps? And is the Havoc OS TWRP supported to use with this? One last thing. I found more than one downloads on the GSI page. Which one should I download? Arm64_a? Arm64_a? Or something else?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TheIntruder:
If you're running the pi collection from here it won't work.... Had you searched the havoc Post as I did you would have seen someone reporting it doesn't work..
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
^ It does work with that Havoc GSI but obviously with it being a GSI, it is not guaranteed to play well with every device. If you just want a working experience out of the box, use the Havoc ROM in this forum which is tweaked specifically for this device. You only need these arter mods if you're going to be using generic GSIs.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TheIntruder:
No it doesn't with these mods it refuses to boot!!!!
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] tayyh89:
The GSI Havoc Rom will work with the Pie software collection.

The device specific one in this forum won't.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] gleenfield97:
I saw your post on the GSI thread. I'm using LTE version but I moved the SIM to my other phone months ago. I'll test it in these few days, will report back.

Follow the OP #1 instruction. This collection includes kernel and vendor, so you don't need to flash a custom ROM beforehand. Note this is only for GSI, basically all the ROMs listed for this device are not compatible.

Use arm64_a only, not a64_a. I was confused initially as well.

This is how I understand,

This collection = Kernel + Vendor

GSI = System

ROM = Kernel + Vendor + System

---------- Post added at 07:39 PM ---------- Previous post was at 07:22 PM ----------

yeah, this collection doesn't work with ROM, even the Havoc ROM dev said so,

=====

But ROM is not GSI (see my previous post)

My experience with GSIs, vince's Havoc, king1990's Omnirom and phh work well. I had issue with Technical's Havoc. ArrowOS GSI didn't boot, newer versions might work, haven't try.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
^ Thanks for testing! Your understanding is correct, ROM will flash everything. GSI is meant for just flash system partition (kernel and vendor from [MENTION=4898097]arter97[/MENTION]'s OP here). Mi Pad 4 is arm64_a as you said. My experience so far testing these:

1) [MENTION=7730768]EnesSastim[/MENTION]'s Pixel Experience is the best base out of the box since it also includes gapps. It's one less thing to worry about. No fancy boot logo or options, literally just a "Pixel experience". I am getting battery drain on standby though on the 0324 build (new build from May does not boot, I think it requires a newer kernel than what we have). It's possible battery drain is because I nandroid restored it though. But there are no weird touch issues or anything like that on here, runs smooth.

2) [MENTION=7932843]vince31fr[/MENTION]'s HavocOS 2.5 runs fine but it exhibits the same phantom touch issue I've been seeing, where the device randomly spasms out and goes touch crazy for seconds at a time. I thought this was fixed by just flashing the kernel and vendor by arter97 but I guess it's system image dependent as well.

3) [MENTION=7423011]mracar[/MENTION]'s Resurrection Remix GSI did not boot for me.

I do not currently have a SIM to test LTE out but I plan to very soon, especially when I bring the device on my trip overseas.

I will try OmniRom and PixelDust next.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vince31fr:
Hi, I saw a mention of my havoc's gsi build so I invite myself in your discussion. Could you tell me more about your phantom touch issue ? Perhaps send me a logcat ? I'm interested in trying to improve the whole stuff...
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Sure, thank you for your continued support. Since it happens sporadically though, it may take a day or two. I'll have to flash it and report when I get it. I also get this with the Havoc ROM by [MENTION=5621191]rcstar6696[/MENTION] specifically tweaked for this device. I haven't seen it with PixelExperience or PixelDust (which I'm trying right now), which is weird since they are all AOSP based, though with very different tweaks I'm sure.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
[MENTION=4898097]arter97[/MENTION], any chance at getting a permissive kernel for this device? I've tried countless permissiver apps / modules to try to change it but seems it is locked into enforcing mode. Some modules (e.g. Viper4Android) require permissive to install / work correctly. Thanks.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] onliner:
The kernel is permissive

https://github.com/arter97/android_...mmit/d75e39280be1c9520c4dba6823318cd7277a5502
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Thanks, didnt know it was permissive but forced to appear enforcing. Curious why some magisk modules are not working then. They appear to install but then nothing appears in the modules list. Probably GSI image related though.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] gleenfield97:
Just tested my SIM on Havoc 20190514 (not the latest)

Make/Receive call - No

Send/Receive message - Yes

LTE - Yes

I don't think call ever work, not even in stock? There was a mention in the Havoc ROM thread that call only works in VoLTE, which my telco doesn't support.

Edit: [MENTION=2894032]nimaim[/MENTION] I searched further and I found MIUI forum also mention calling is only supported through VoLTE. I think you have better chance of having it in custom rom, instead of stock (stock users report it's not functional #1 #2). [MENTION=7932843]vince31fr[/MENTION] recently added an apk to enable VoLTE in his gsi.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Bah ... calls don't even work with stock ROM? Well that sucks. I'm sure you can always use Google Voice or Whatsapp for VOIP calls instead anyway so not a huge deal breaker I guess, just disappointing.

---------- Post added at 07:50 AM ---------- Previous post was at 07:45 AM ----------

I flashed it again from scratch and so far so good, no crazy touch issues. I think your GSI is fine, it may be being caused by bad gapps or root (magisk). Or my hardware is just bad, but others have said they've seen the same phantom touch issue. Or incompatibility with the vendor / kernel images here. But running great right now. And since you are active and provide the best support (many other devs for other GSIs have disappeared), I will probably stick with it.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vince31fr:
Builds before 0522 had sim problems that I fixed (hopefully), [MENTION=4432729]gleenfield97[/MENTION] you should try with the last update...

Ok great if it works well now. However, havoc is moving fast, so is not a model of stability, sometimes regressions...

Well I don't know how long I'll be able to support it before vanishing like other GSI devs ;)
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
It's understandable, takes a lot of time/effort to work on and build these. I will report in your thread if I encounter any issues. I will try a Mint SIM I have with your latest build when I get home.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] vince31fr:
Well if calls don't even work with stock rom, ... it would be surprising that they could work with havoc. Ok don't hesitate to report in my thread. However most issues now are probably related to havoc and not gsi... but I always try to take a look and see if I can do smth.

---------- Post added at 12:14 PM ---------- Previous post was at 12:11 PM ----------

Btw, I saw there is an official build of havoc for your device. So why install a GSI ?...
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
See the OP here ... [MENTION=4898097]arter97[/MENTION] fixed a bunch of code in the software stack, which is a mess. I can't speak for that but stock was very bad. Slow, sluggish, etc. Only way to properly fix it was to flash his new vendor image / kernel; otherwise, I've found that these issues persist across all the ROMs here, especially very bad phantom touches which made the device unusable for me.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TheIntruder:
Again I tried pixel experience too with these mods that refused to boot also..

---------- Post added at 08:41 PM ---------- Previous post was at 08:36 PM ----------

Thanks for the ink.... That looks ugly so many mods yikes! I'm more than happy with PA TBH ok not the most up to date but runs well with no problems, be nice to have true pie gestures, I keep wanting to swap like on my 5t but hey ho...
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] nimaim:
Are you guys having deep sleep issues with this kernel and device? I can't get my Mi pad 4 to sleep / doze at all. It's always awake at the lowest clock speed. If you can, please post what GSI / gapps you are using because I haven't gotten it to work no matter what I tried (which is why I'm pointing to a kernel or vendor issue).

EDIT:I'll try going back to Havoc to see if battery issues persist.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] xzr3b0rnzx:
I notice if I leave my WiFi on over the night it drains fast, always remember to turn off WiFi before sleep

But it didn’t happen on previous kernel. [MENTION=4898097]arter97[/MENTION]
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TabldotLife:
mi pad 4 lte imei 0

hi, i lost my imei, i have qcn backup, i install it but tablet is stuck in recovery

i delete modem1 modem2 and fsg in terminal tablet is open but imei write 0.

need help.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] JumboMan:
Can i use this software collection on my MiPad 4 Plus LTE 10.1 variant.

Any bugs particularly related to my variant
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Rdavis27:
Yes, I have this device. Fingerprint not working but mobile data is working.

I was hoping Arter might have fixed fingerprint as he now has the plus model but nothing yet sadly. I'm hoping for an update to this soon otherwise I may reflash stock kernel and flash havoc as I'm missing using the fp scanner
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] JumboMan:
Thank you for your input.

I already using arter software collection

One more question if i have to use other ROM like Havoc, is it required to flash different vendor.img because arter providing his own custom vendor img
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] JumboMan:
[MENTION=4898097]arter97[/MENTION],how to disable double tap to wakeup
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] TabldotLife:
mi pad 4 lte imei 0

hi, i lost my nv backup and my imei write 0 can anyone help me?
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ultracasual:
Potential audio imbalance?

Hello, thank you for this collection. I've been using it a week now and love what you've done. I'm using an AOSP GSI (AOSiP) on the MiPad 4 WiFi edition and have noticed the audio sometimes "phases" back and forth or loses volume consistency on occasion. I also use a Xiaomi A2 with the same GSI but don't seem to have this issue. Could this be ROM related to the MiPad 4 specifically?

I noticed a similar topic in the Hex development Telegram (t.me/hexkernel) where sometimes the audio would be imbalanced when connected to headphones. Since this collection is based on the Xiaomi A2 perhaps this could be related?

Is anyone else noticing the audio will sometimes decrease or increase in volume sporadically?

Thank you again.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tysovwik:
Confirmed! GPS doenst work at mi pad 4 plus.

I hope arter97 will fix GPS, fingerprint sensor, add KCAL support to kernel and make softer auto brightness

---------- Post added at 07:01 PM ---------- Previous post was at 06:59 PM ----------

arter97, we are waiting for your support, give us some news :)

excellent project btw, runs smooth with LineageOS Reference gsi, aprill build 08.04.19
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] ultracasual:
Potential camera issue as well?

Also...Friday camera module stopped working randomly. Any app using the camera results in a gray screen and then lag to force restart. Skype app also won't work.

Worth trying out and in my experience may be best to remain very cautious until there's some headwind on updates.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] Tysovwik:
Deep sleeps always shows 0%, even with aggressive doze on with naptime.

But it's sleeps pretty well, 10 hours screen off, gets only 1%. Amazing.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] elfensky:
I'm not sure if this counts as an edge case, but I cannot format my microSD card into f2fs.

- TWRP tries to use mkfs.fat but the process fails with error 1

- Trying to format the SD card as phone storage results in an "Attempt to invoke virtual method 'java.lang.String android.os.storage.VolumeInfo.getId()' on a null object reference'.

- Formatting it as portable storage works.

While this does not prohibit me from using is as as you would a usb stick, I'm not able to format it as internal storage to use for apps etc.
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] arter97:
A major update is up.

20190810

This update is made with Paranoid Android in mind.

Go checkout the updated Paranoid Android thread.

Vendor image:

Base firmware updated from V10.0.8.0.PDIMIXM to V10.0.10.0.PDIMIXM

Camera hacks removed and reworked to fix camera on many ROMs

Kernel:

Fixed a commit mismerge that broke deep-sleep

Linux v4.4.188 merged

Wi-Fi drivers updated to 5.1.1.73Q

Bunch of memory allocations from various subsystems were reworked to perform much better (thanks to Sultan)

32-bit vDSO added for improving performance on arm32 programs

Backported speculative page fault to improve system performance

Latest f2fs-stable merged

Switched to zswap/vnswap approach

- Ditched conventional zram swap approach and taken zswap+vnswap for more efficient memory operations

- Backported zsmalloc memory allocator from mainline

- Backported zswap compressed page cache from mainline

- Samsung's Galaxy S9 memory modifications merged for better swapping efficiency tuned for Android

- This new kernel's memory management will be drastically different from existing kernels
[Xiaomi Mi Pad 4 ROMs, Kernels, Recoveries, & Other] veti:
7 zip is reporting some data after the end of the payload of vendor.simg in the new 20190810 image