yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Pad 4 Questions & Answers] thE_29:
After 31. August newly paired devices have to wait 720hours. The Poco had at also a long time and Xiaomi changed it..

https://en.miui.com/thread-3729956-2-1.html (2nd page #18)

And this 720hours have nothing todo with your account! The account waiting time is something different!! Maybe you dont have to wait, when you are an alpha tester, but I dont know how you become one.
[Xiaomi Mi Pad 4 Questions & Answers] code_311:
I bought an international version and my bootloader came unlocked. Anyone else see a red flag? Is there any harm if I'm already planning on flashing it?
[Xiaomi Mi Pad 4 Questions & Answers] andr01d3:
There's not any international version of this device yet, you bought a Chinese device unlocked and flashed by the seller...
[Xiaomi Mi Pad 4 Questions & Answers] code_311:
That's what I figured. Any reason I shouldn't just flash it and move on?
[Xiaomi Mi Pad 4 Questions & Answers] Hero2457:
Does Xiaomi's antirollback affect GSIs? I know they don't affect custom ROMs.
[Xiaomi Mi Pad 4 Questions & Answers] suhridkhan:
That's what I did. Just flashed twrp and then rom. No issues.
[Xiaomi Mi Pad 4 Questions & Answers] holi0317:
I've got Resurrection Remix installed and so far so good. Except I could not get the headphone working.

Was coming from AOSP-phh and headphone was working back then. But in RR, the system could not detect the headphone.

Using RR 180818, ARM64, A-only. With Disable force encrypt, magisk and opengapps.

Tried to uninstall magisk but no luck.

Anyone having the same issue?
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
I just got my Mi Pad 4 yesterday. I'm a bit surprised how laggy it is with the stock MIUI 9 ROM. Was this the case for you guys, too? What GSI do you recommend? AOSP, Pixel Exerience, RR, LineageOS...? Which one works best for our tablet?
[Xiaomi Mi Pad 4 Questions & Answers] suhridkhan:
What did you get? Is it already bootloader unlocked, some custom rom with playstore? That's what I got from Aliexpress.

Stock MIUI has actually been the most stable for me.

xiaomi.eu has wifi issues. I also tried GSI AICP, which had brightness issue and could not get the doubletap to wake to work.

So, after trying around a those options I am back to rooted China rom.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Yes, unlocked bootloader with Play Store from Gearbest. I was going to try out Pixel Experience GSI tonight, which seems to be the most recently updated and based on phh-AOSP.

From what I read I feel like there's no GSI yet, that supports DT2W. But I'd rather have a smooth Android Stock/Pixel experience than insisting on this feature.

Is MIUI a bit laggy for you guys, too? I also have a Mi A2 (same SOC) with Android One and it is super smooth.
[Xiaomi Mi Pad 4 Questions & Answers] AndroPlus:
Can you run this command in adb shell?

su
find /sys 2> /dev/null -iname "*gesture*" -type f

My Mi Pad 4 has FocalTech touch panel and I can enable tap to wake at /sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode, but I don't know the path for other panels.
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
[MENTION=5169444]AndroPlus[/MENTION]

I am on AOSP 8.1v25 from phh and struggle with such a symptom -

If I issue a command in adb which turns DT2W on

remembers this setting only in the current session, if I make reboot the device, function stops working and you have to write DT2W command again.

Do you know any way to enable this option permanently in AOSP?
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Everyone, I have updated the OP. Let me know if I should add anything.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Same here! I wonder why nobody else reported this.
[Xiaomi Mi Pad 4 Questions & Answers] suhridkhan:
Hi thanks for your support for the GSI AICP for this device.

I get this from my device... hope this is what you need. Feel free to let me know if you need anything else.

/sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode
/sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_buf

Looks like I have the same panel as you! Don't understand why it would not work on my device. I shall give it another try this weekend.
[Xiaomi Mi Pad 4 Questions & Answers] RatMondeo:
Hi,

Noob here.

I have just followed the process here github.com/GBouerat/xiaomi_mi_pad_4

Everything looked like it worked fine.

I did get a red error during the Disable-Dm_verity flash process - so I flashed it again straight away as per the post above from kheradon59 and Ralfioni.

At the end it looked like it was rebooting and came up with the "android" logo, but booted asking for a password.

It then automatically shutdown and booted me to Twrp which is on a "Mount - Decrypt Data" page asking for the password.

I was coming from MIUI 9.6.23.0

Any guidance appreciated.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Same thing happened to me. You have to Format Data to remove the encryption.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Bluetooth Audio isn't working on my device with pixel experience gsi. Can anyone confirm this?

Edit: seems to be fixed on the latest AOSP by phh. And so does the auto brightness, which works fine for me now without editing build.prop.
[Xiaomi Mi Pad 4 Questions & Answers] AndroPlus:
You can use Tasker, Kernel Adiutor or other apps which supports running command on boot (init.d).

echo 1 > /sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode

will enable tap to wake.

hmm... I'll look into it.
[Xiaomi Mi Pad 4 Questions & Answers] suhridkhan:
No need. Did a fresh install last night, and double tap to wake is working without any issues. ?

Thank you very much.
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
I added cmd to EXKM in the script manager and now DT2W works for me every time I start the device. Thanks for your support [MENTION=5169444]AndroPlus[/MENTION].
[Xiaomi Mi Pad 4 Questions & Answers] suhridkhan:
You can add the link for AICP-mordiford GSI in your OP. This is the only GSI as of now that has MiPad4 specific tweaks built in.

https://treble.andro.plus/
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Does anyone have an idea why WiFi is disabled and the clock is reset at boot? It really bugs me!
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
The problem with not turning on WIFI after restarting occurs on some GSI. There is no problem on AOSP phh, it's interesting why.

Not remembering the clock settings after rebooting from what I know is found on all GSI. I skip syncing over the network because it works.

It's so annoying, it would be worth doing something about it.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
[MENTION=9456658]Andro_Nicus[/MENTION] I use AOSP phh v25 and wifi stays turned off after reboot. Which version are you using?
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
Currently on phh v25 is OK. From what I remember on v23 it also worked for me. Using 5 GHz connection . At 2.4 GHz I did not check how it is.

Maybe that working OK it's because I'm using always current Firmware, Vendor and Boot from stock MIUI.
[Xiaomi Mi Pad 4 Questions & Answers] suhridkhan:
Is there a way to totally disable the notification led altogether?
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Strange, because I am on phh v25, too. How do I check which Firmware, Vendor and Boot I am on? Which are you on?
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
i`m on component from MIUI V9.6.27.0. Vendor and Boot taken from ROM, compiled Firmware get from here :

https://sourceforge.net/projects/xiaomi-firmware-updater/files/Stable/V9/clover/

You have such ROM components (Firmware, Vendor, Boot, etc.) that you flash with stock / beta MIUI.

[MENTION=5239665]suhridkhan[/MENTION]

I do not know what ROM / GSI you are on, but there should be an option to disable the led.

In the settings you should have a magnifying glass, type in "search" - LED.

Update [MENTION=3388356]Ralfioni[/MENTION]

I made a short video to see how it works for me. Sorry for the quality, this is not the point here :)

https://streamable.com/m4vs1
[Xiaomi Mi Pad 4 Questions & Answers] bradputt:
my wifi auto connects after reboot too.

not sure what's my version number for Phh. but i do get some timeservice stopped working prompt sometimes.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Looks Like I am on the same kernel but v25 while you are still on v23. I think I will try updating the firmware as suggested by Andro_Nicu.

EDIT: Firmware upgrade didn't work. However, I found out that wifi will stay enabled if I wipe "dalvik / art cache" in TWRP and then reboot - but only this one time. Regular reboot will disable it again. Weird!? I don't get it - what's different on my device as compared to yours?

I'm also wondering: Since you are on v23, Bluetooth audio and auto brightness aren't working for you, are they?
[Xiaomi Mi Pad 4 Questions & Answers] RatMondeo:
[MENTION=3388356]Ralfioni[/MENTION] - Not sure if this helps but My About Phone page looks exactly like yours except for the Kernel date:

This Aug 2 19:24 .........

My wifi and time function perfectly with no errors.

Let me know if you need any other details.

Thanks
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
bradputt also has the same kernel version but yet another date [MENTION=9461155]RatMondeo[/MENTION] which ROM were you on before flashing the GSI?

I'm going to flash MIUI V9.6.27.0.ODJCNFD Chinese stable now before I reinstall AOSP phh v25 - maybe it's an issue with the vendor or boot partition. I'm not sure which MIUI version I was on before I flashed the GSI.
[Xiaomi Mi Pad 4 Questions & Answers] RatMondeo:
Good idea.

I was on 9.6.23.0 chinese, which I flashed over the original ROM which was from an AliExpress seller and had ads everywhere. Sorry don't recall version.

Good luck.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Flashing...

1) miui_MIPAD4_V9.6.27.0.ODJCNFD_dc3928f92d_8.1.zip

2) aosp.phh.v25.system-arm64-aonly-gapps-su.img

3) Disable_Dm-Verity_FEC_v1.2.zip

...unfortunately did NOT work. However wiping data afterwards and starting up as new device did the trick. Backing up from cloud will disable wifi on reboot in my case. So it must be some configuration saved in the data partition.

EDIT: Nevermind, issue reappears after a few reboots, but disappears if I remove my Google account from the (newly set up) device. Removing my account won't make a difference from a fully set up device. though No clue, what's causing this.
[Xiaomi Mi Pad 4 Questions & Answers] thE_29:
Why is that even a problem? Its a simple touch and how often do you restart your tablet?

And dont get me wrong, it should not behave like that. So its kinda a bug, but the impact is really small.. Maybe they will fix it with newer versions.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
It's not a huge problem, but I'd still like to get to the bottom of it. Especially since it works for some users no problem.

What's more important: auto-brightness works for me. How about everyone else on v25?
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
[MENTION=3388356]Ralfioni[/MENTION]

Have you tried to reset the network settings on your tab and configure the WIFI connection again ?

Perhaps you are restoring some damaged data from some backup.

BTW, If you are updating Firmware or Vendor you must re-do a dirty flash GSI and then turn off DM-Verity again. Otherwise, the device will not start.

Sequence:

MIUI Firmware> Vendor> Kernel> GSI> (Gapps)> DM-Verity> (Magisk)

Then all data and settings remain, you do not have to flash the entire Mi Rom each time during component updates.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Resetting the network settings did not work unfortunately. Thanks for the tip though! Let me know if you guys have any other ideas!
[Xiaomi Mi Pad 4 Questions & Answers] RatMondeo:
Auto-brightness is fine here on v25.
[Xiaomi Mi Pad 4 Questions & Answers] NexusRunner:
please update Summary of findings

Just did some maintenance work for my tablet, and settled on AOSPv25@stock 8.9.20 vendor. So far everything's working great, even WiFi is auto enabled on boot but I haven't logged on Google Play yet, fingers crossed... I do have something to share:

Auto Brightness can be enabled on any older ROM by copy /system/overlay/treble-overlay-xiaomi-mipad4.apk from phh v25

device encryption actually works by flashing Disable_Dm-Verity-09.02.2018.zip (this zip leaves force encryption untouched), which is available in the same old link.

If you are already decrypted, better format /data and start new, or it will encrypt your storage on next boot and may (or may not) corrupt your data.

ClockSync is not necessary, Android will auto sync time once network is on. I think the reason ClockSync is mentioned is because the default server time.android.com is not reachable in some corner of the world (like where I live). In that case just set another NTP server:

$ adb shell settings put global ntp_server <new-ntp-server>

Then it will auto sync.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Thanks for sharing, [MENTION=5436136]NexusRunner[/MENTION]

I have updated the summary in the OP.

Maybe we can get down to the bottom of the remaining issues now:

clock resets at boot

WiFi is not automatically turned on after boot - depending on setup

exFAT not working

"pick up to wake" not working

"sleep/wake on magnetic cover" not working

Everything else seems to be working now, right?
[Xiaomi Mi Pad 4 Questions & Answers] NexusRunner:
Right

And my WiFi is precisely behaving like this on phh v25:

stay turn off after boot. Can be toggled manually. On reboot, stay 1 if Wifi is currently off, goto 2 if WiFi is currently on.

auto turn on after boot, but can't be turned off manually. On reboot, goto 1.

However on other ROMs like v105 (9.0 pie based), wifi is working flawlessly although there are other major problems. So it's a ROM specific issue after all. I think I've wasted too much time on it without progress and I really should live with it for now.
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
Two things from me.

A new version of TWRP-3.2.3-0930 has been published from wzsx150.

Available here: http://www.miui.com/thread-16375014-1-1.html

Only there is a problem with downloading from pan.baidu.com if you do not have an account.

Maybe someone has access and shared on other public hosting?

Have any of you noticed that you have to re-enable USB Debugging if it was previously enabled, because after restarting the device, the slider in the development options is turned off. I checked on ASOP 8.1 Based GSI (Mordiford and phh) and this problem appears.

Anyone else will confirm this?
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
[MENTION=3388356]Ralfioni[/MENTION]

I noticed a strange behavior. If I have Magsk installed, then the WIFI auto connection is working. If I do not have Magisk, wifi auto connect not working.

The same applies to USB debugging. If I have Magisk, I have to move the slider after the reboot again to turn it on.

Without Magisk, USB debugging itself is enabled.

Check it yourself Magisk vs no Magisk (17.2)
[Xiaomi Mi Pad 4 Questions & Answers] arkansis:
This is for Mi Pad 4 Plus, not Mi Pad 4.
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
[MENTION=6441645]arkansis[/MENTION]

Are you sure ? Did you translate the description or changelog?

From what I think is for both 4 and 4 Plus.
[Xiaomi Mi Pad 4 Questions & Answers] tom.android:
TWRP-3.2.3-0930 by wzsx150

2018.9.30 update:

1. Update source code to 3.2.3

2. Update built-in magisk version to v17. 1

3. Increase the removal of dm checksum and cancel the forced encryption function

4. Support both Xiaomi Tablet 4 and Xiaomi Tablet 4plus

https://mega.nz/#F!gT4jDapT!hofPXmlly5a9MJktOCq03w
[Xiaomi Mi Pad 4 Questions & Answers] lidl11:
It's great but you have to use adb codes in fastboot. How to do as there are several files how to proceed. Thank you in advance :rire:

C'est super mais il faut utiliser avec adb des codes dans fastboot. Comment faire vu qu'il y a plusieurs fichiers comment proceder. Par avance merci
[Xiaomi Mi Pad 4 Questions & Answers] Andro_Nicus:
Look here : https://github.com/GBouerat/xiaomi_mi_pad_4/tree/master/TWRP

Change only the file from TWRP .img to newer version from tom.android Mega link.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
No difference here. I flashed Magisk 17.1 ZIP from TWRP. Wifi stays off after restart. I then upgraded to 17.2 from within the Magisk app and restarted. Wifi is still off. :(
[Xiaomi Mi Pad 4 Questions & Answers] filjusz:
Hi

I've tried your command previously on treble rom and it worked, but now when i try it on omni i have result like that:

phhgsi_arm64_a:/ $ su

phhgsi_arm64_a:/ # find /sys 2> /dev/null -iname "*gesture*" -type f

1|phhgsi_arm64_a:/ # echo 1 > /sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode

sh: can't create /sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode: Permission denied

1|phhgsi_arm64_a:/ #
[Xiaomi Mi Pad 4 Questions & Answers] Thargorsson:
Yeah, I just wait until the price settles a bit. In meantime I can share my knowledge here for getting this thing a custom rim.

---------- Post added at 03:11 PM ---------- Previous post was at 02:45 PM ----------

Yeah, I just wait until the price settles a bit. In meantime I can share my knowledge here for getting this thing a custom rm.
[Xiaomi Mi Pad 4 Questions & Answers] Xelfmade:
This isn't true. Most china shops give you the possibility (for example Gearbest) to buy without extra custom duties ("Priority Line"). I did it more than ones and it goes perfectly, but you've to wait a little bit longer.

TradingShenzen has it on stock. But there you've to pay an extra 18 € for slow shipping (without duties). I also wonder if it's worth waiting for a global version of the tablet, so there maybe is widevine Level 1 certification?
[Xiaomi Mi Pad 4 Questions & Answers] rr111:
When you order by TradingShenzen, you'll have to pay the tax.
[Xiaomi Mi Pad 4 Questions & Answers] Xelfmade:
No. It's dependend on which shipping method you choose. I've never had a problem with custom dusties. Not on AliExpress, Gearbest or TradingShenzhen.
[Xiaomi Mi Pad 4 Questions & Answers] rr111:
I paid 40€ of costums when I got my previous phone (Mi 5X) from TradingShenzhen last year. It's called "Einfuhrumsatzsteuer" here in Austria. It's being calculated from the product price. Maybe it's different in Germany.
[Xiaomi Mi Pad 4 Questions & Answers] Xelfmade:
I'm from Germany, I know how it's called, but again: it depends on the form of shipping you've choosen. Otherwise you can decline the package it goes back to TradingShenzhen and they ship it again.
[Xiaomi Mi Pad 4 Questions & Answers] rr111:
I know that you're from Germany. I said I'm austrian. I said I think it's different here. I've got no idea how it is in Germany.
[Xiaomi Mi Pad 4 Questions & Answers] P.Kosunen:
Try Hong Kong Goldway from Aliexpress with DHL option, they send it first to UK and from there to you so there should be no customs. Black 3GB model is about 200€ with shipping.
[Xiaomi Mi Pad 4 Questions & Answers] bradputt:
i bought mine almost the same price as in china. i think my country (singapore) is one of the place to buy xiaomi real cheap.

but too bad the sellers here don't send internationally, unless you got a way for a forwarder from here.

https://www.qoo10.sg/s/MI-PAD-4?keyword=MI+PAD+4&keyword_auto_change=

the prices shown here all in singapore dollars, you do the math.
[Xiaomi Mi Pad 4 Questions & Answers] rr111:
You lucky one! ?
[Xiaomi Mi Pad 4 Questions & Answers] dopefish1337:
Hi Thargorsson,

i am thinking about buying an mi pad 4 or the huawei m5. I do not like the stock roms of Xiaomi or Huawei, so Lineage os would be my life saver.

I just saw that lineageos is available for the huawei m5 (inofficial version) and i am suprised. Now i am not sure which one of the tablets is the better option for me (im also from german)

What do you think Thargorsson? Which tablet will get the better support for lineageos? What do you think about the hardware difference? The huawei has the better display solution, beside this they are equal (sure, qualcomm is preferable in terms of custom roms but huawei is listed as official Android enterprise device and will get 3 years of updates) Thanks a lot!

btw:

there is a good price for the mi pad at gearbest at the moment:

Xiaomi Mi Pad 4 Tablet PC 4GB + 64GB 8 Zoll SD 660 USB-C Dual Speaker BLACK

240€ with coupon code: IT$TAMI4
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Sorry, can anyone explain to me the concept of Treble and GSI? It was my understanding, that flashing a generic system image will enable me to fully use the tablet as all device specific code is part of another (vendor) image/partition.
[Xiaomi Mi Pad 4 Questions & Answers] stefanero313:
So, I got the device... now waiting for 350h until it is unlocked ...

also I tried to flash the new Beta, but could not figure out how without TWRP.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Has anyone here flashed a GSI yet?
[Xiaomi Mi Pad 4 Questions & Answers] Xelfmade:
Be carefull, the beta rom, which is floating around lately, seems to be fake. Xiaomi said that they haven't developed any global ROM (even no beta) for the Mi Pad.
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
People who are interested in AOSP are dying to get their hands on the device, while people who have it right now are mostly uninterested in AOSP. I'm Chinese, I searched and found zero talks about Treble/GSI/... on this device, even though it has been released here for ~3 weeks. Sucks to be in a situation like this.

I've flashed China Beta and bounded my account for unlock on 18th, so taking the 15-day wait into account, it should be available on Aug 2nd - we'll see by then...
[Xiaomi Mi Pad 4 Questions & Answers] P.Kosunen:
Is there newer than 8.7.5 released yet?
[Xiaomi Mi Pad 4 Questions & Answers] AndyYan:
I flashed Chinese Beta 8.7.12 right after I got the device: http://www.miui.com/thread-16250712-1-1.html (Chinese page).
[Xiaomi Mi Pad 4 Questions & Answers] stefanero313:
all google did not help, but maybe someone has experience here - some of the apps fail to install "error code 0"

someone has seen this maybe and knows a fix? clearing cach / whipe data does not help it, also this permissions dont do the trick

thanks
[Xiaomi Mi Pad 4 Questions & Answers] cRaZy-bisCuiT:
Hey :)

1. Is there a working TWRP or other custom recovery for the tab released?

2. Is the device treble compatible? Can I use LineageOS treble builds?

3. If so, what are the known bugs? Does someone already run it?

4. Are there good offers for the LTE version?
[Xiaomi Mi Pad 4 Questions & Answers] P.Kosunen:
http://www.miui.com/thread-16375014-1-1.html

Chinese MIUI-forum has TWRP, don't know if it has full english available.
[Xiaomi Mi Pad 4 Questions & Answers] NexusRunner:
Hi folks I just unlocked my Mi Pad 4 after 360 hours of wait and successfully installed Resurrection Remix (system-180708-arm64-aonly-gapps-su.img). All it takes to boot is flashing Magisk in TWRP to bypass dm-verify or something. btw that unofficial TWRP has full English support.

Not everything is working though. The UI is ridiculously large, chrome is running phone UI compared to Tablet UI on stock MIUI, and mostly annoyingly the brightness control is not working: every time when brightness is supposed to change, either manually or auto adjust or when screen is going on or off, the screen just flickers and landed on a seemingly random brightness level.

I may try other GSIs but they are still downloading.

Hope this answer OP's question.
[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
Thanks for the feedback!! The UI issues you are having should be possible to fix by editing a config text file in the system partition. I'm not sure what it's called though. You can search for "DPI changer" in the Play store... it will do the trick for you.

Edit 1: Googled it: build.prop is what you are looking for!

Edit 2: try ro.build.characteristics=tablet