yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] Cupugamming:
can i flash other rom nom treble after flash this rom?
[Xiaomi Mi A1 Guides, News, & Discussion] spityu85hun:
[MENTION=4936496]joeyhuab[/MENTION] when will the dual camera work normally? I tried many of them, none of them worked... :(
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Don't ask me when. Try to fix it yourself as well.
[Xiaomi Mi A1 Guides, News, & Discussion] Olystem:
Download Magisk Module Stock Camera And Flash This Via Magisk.

https://androidfilehost.com/?fid=5862345805528055196
[Xiaomi Mi A1 Guides, News, & Discussion] spityu85hun:
i tried this ... camera app is always force close ... i tried 20 gcam version, all the magisk camera app module and fix ... none works, all camera app force close...
[Xiaomi Mi A1 Guides, News, & Discussion] Olystem:
Then Do A Clean Flash. Wipe Catch System Vender Data do Not Select internal Storage Then Flash Again All Latest Files Step By Step I hope It Will Work. I'm Also On DP5 Latest GSI . Don't Habe Any Camera Problem.
[Xiaomi Mi A1 Guides, News, & Discussion] zmluffyz:
Sound mod that work? Sorry too lazy to look at prev page:D
[Xiaomi Mi A1 Guides, News, & Discussion] Blacklistest:
Viper4Android maybe :silly:
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
Viper4Android works fine
[Xiaomi Mi A1 Guides, News, & Discussion] Remgrado:
Greet

Nice Job Brod. Wala ako time mag mods. ikaw wala sawa sa pag mods. hehe. Iba ang galing ng pinoy.
[Xiaomi Mi A1 Guides, News, & Discussion] ydd0ras:
Viper4Android without issues.
[Xiaomi Mi A1 Guides, News, & Discussion] HULK2275:
Volte not working I don't know why just installed the rom
[Xiaomi Mi A1 Guides, News, & Discussion] sauru.660:
Follow Guide Properly
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
Any ideas how to fix Google Assistant? I tried everything (changing build.prop, erasing data of app) and nothing really helped...
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Get a Pixel phone. Nothing more we can do about it.
[Xiaomi Mi A1 Guides, News, & Discussion] Androidowl54:
I don't know why u r always mad and talking that way with people, at least show some respect , this is not time first time i saw u talking like that even the same thing in the telegram channel ! the guy was asking for google assistant fix why to talk to him in that way ?
[Xiaomi Mi A1 Guides, News, & Discussion] rasputine:
Hi, anyone know why no app listed on launcher?

No custom/mod launcher here
[Xiaomi Mi A1 Guides, News, & Discussion] stevedat:
His nature.
[Xiaomi Mi A1 Guides, News, & Discussion] tanapak1:
The first post is tell you everything about this rom, if those method doesn't work then it should be user specific issue like you're doing it wrong, which is not a dev job to fix yours.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Because people expect everything to be working when this is a port. I don't have to accommodate every single question thrown at me because I've posted everything necessary in the first post. Most people just come here and comment when they have issues clearly showing that not everything is working. It's supposed to be that way. I'm not obliged to to provide fixes for everything since I'm not a Google employee so don't treat me as such. People demand and demand yet they keep forgetting this is not a stock ROM for this device. I have only seen a few members actually show their appreciation for the guide and information about this. Most only complain and cry why features they want are broken.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
I just want everyone to read everything first before complaining that something doesn't work. We've clearly stated that in case bugs that have not yet been posted are encountered, proper logs from Logcat or MatLog are needed in order for us devs to provide fixes.

Ok Google doesn't work because it's a Google app issue. Clearly the app thinks we're using a Pixel XL and our recorded voices were from the Mi A1 ROMs so the voice feature is not working.

VoLTE only worked through a script hack that reverts mobile data every reboot else it would disappear.

Other things like Notification LED and Hardware lights are probably broken shims/blobs that aren't compatible with our device.

Everything important such as WiFi, Bluetooth, Data, Camera were the main priorities. Everything else beyond those are not priorities so if you would want fixes for issues like Bluetooth Low Energy crashing WiFi, we would need logs. I only respect the people who properly report issues and not just ask around like a noob.
[Xiaomi Mi A1 Guides, News, & Discussion] wrick17:
I can help with the BLE issue. Give me a simple guide as to what I need to do to get logs and where to post them.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Use MatLog. Open the app. Keep it open then connect to your BT device while WiFi is on. Once it crashes, save the file in the matlog app and upload it to the attachements.
[Xiaomi Mi A1 Guides, News, & Discussion] wrick17:
Attached as zip as the file turned out to be too large ?
[Xiaomi Mi A1 Guides, News, & Discussion] Necio7:
Another log for WiFi and Bluetooth
[Xiaomi Mi A1 Guides, News, & Discussion] Rakibboss:
Is there any solution for Bluetooth?
[Xiaomi Mi A1 Guides, News, & Discussion] wrick17:
Wait, people are trying to find one.
[Xiaomi Mi A1 Guides, News, & Discussion] Olystem:
I don't Have Any Problem With Wifi And Bluthooth.
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
I also don't have any problem with WiFi and Bluetooth
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
The issues being encountered is when WiFi crashes when a bluetooth low energy device such as smartwatches are connected and a reboot is required to restore WiFi functions. But I've talked to the dev of Moun Kernel already to try and include the proper fixes necessary to make them work simultaneously.
[Xiaomi Mi A1 Guides, News, & Discussion] ImSanketk:
Can I use Post GSI 1 zip on other treble GSIs to fix VoLTE Services as that zip have script which fixes VoLTE????
[Xiaomi Mi A1 Guides, News, & Discussion] emiljano539:
How's the battery life? Can someone send me a screenshot? Ik that's not like the stock
[Xiaomi Mi A1 Guides, News, & Discussion] Tyrannis78:
Excelent, i have a mi band 2 connected for notifications and i must turn off bluetooth if i want use wifi, i cross fingers for a fast fix.

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Androidowl54:
for me , it's the same as the stock rom or a little bit better

i got 8.5 hours of screen on time on normal usage

on heavy usage i got about 6.5 ~ 7 hours
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
You can do whatever you want. Don't blame my zips if you encounter issues. Stop asking me because that's not even related to my thread.
[Xiaomi Mi A1 Guides, News, & Discussion] emiljano539:
Wow that's really great. What are the actual bugs right now?
[Xiaomi Mi A1 Guides, News, & Discussion] Sahuprasant:
Volte problem

After update Android p and

install all zip file properly but call not connected

Sir any solution
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
Some of the bugs are located in the OP, but one I have encountered and fixed, is that the device will go black when sleeping and you will have to force reboot it. You can fix this by flashing Moun kernel instead of ProjectK.
[Xiaomi Mi A1 Guides, News, & Discussion] SinTan1729:
Noticed one thing. Cannot connect to any networks whose SSID's are hidden. Is there any fix currently available?

Great ROM by the way. Keep up the good work!
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Click add network > Click advanced settings > Go to the bottom > Hidden network = YES
[Xiaomi Mi A1 Guides, News, & Discussion] SinTan1729:
Thanks a lot! Totally missed it! :p
[Xiaomi Mi A1 Guides, News, & Discussion] SinTan1729:
Is there currently a working fix for Google Assistant? None of the fixes in the thread are working.

P.S. Notification LED also not working. LED lights up only when charging. Google Photos doesn't work too.
[Xiaomi Mi A1 Guides, News, & Discussion] Maximaro:
@ joeyhuab is the version of Treble Froum are usable for Tissot Device? Because it say´s ".180208.014" and as i can Read is is from 2cend this Month?!?!

https://xdaforums.com/project-trebl...ment/rom-android-p-developer-preview-t3816659

Or these here aviable special ones for our device
[Xiaomi Mi A1 Guides, News, & Discussion] Chinu Malakar:
Pls help jio sim is not working

I am able to use internet but IAM not able to receive calls and daily calls from jio
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Post GSI files have been updated to reflect Erfan's updates. I suggest updating to ensure all included fixes work.

Changelog

Removed excess files.

Removed unnecessary permissions.

Added libdisplayconfig.so from Erfan's new post GSI 1 zip. (Info here)

DOWNLOAD
[Xiaomi Mi A1 Guides, News, & Discussion] dead_alik:
Hi. Adaway is not working in this rom. Please right here who know how to fix this?
[Xiaomi Mi A1 Guides, News, & Discussion] Azeemkwow:
For led issue checkout option under notification in settings its disabled by default

---------- Post added at 03:07 PM ---------- Previous post was at 03:05 PM ----------

I'm also using jio everything is fine...calls as well as data....have you followed the steps while install post Gsi1&2
[Xiaomi Mi A1 Guides, News, & Discussion] SinTan1729:
Thanks. It worked. I'm also having backup issues in Google Photos. It's stuck in "getting ready for backup". Also, weirdly, it refuses to backup on battery (try to backup, that is).
[Xiaomi Mi A1 Guides, News, & Discussion] jumper10:
Is the swipe gesture got missing? I've already flash the gs1 v.0.14

Also the fingerprint to unlock the phone is gone.
[Xiaomi Mi A1 Guides, News, & Discussion] jumper10:
Oh i forgot to instal ap2
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
How do I update?
[Xiaomi Mi A1 Guides, News, & Discussion] Azeemkwow:
For Google photos checkout that its enabled for both wifi and data and then disconnect ur device from wifi nd data and then reconnect....maybe this can help
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
Sorry for my stupidity, I followed these steps and meant to delete the post, everything went fine.

---------- Post added at 09:35 PM ---------- Previous post was at 09:34 PM ----------

How do you get your quick settings header to look correct like in the screenshot, mine overlap the edges.

Edit: Solved
[Xiaomi Mi A1 Guides, News, & Discussion] Olystem:
Flash Latest Post GSI1 And GSI2.

Or Choose Network Preferred To LTE Manually.
[Xiaomi Mi A1 Guides, News, & Discussion] rayhan60611:
Found a major bug

I found a bug and it is giving me much pain for mi mi band. Plz help

Whenever i try to switch on the Bluetooth then the wifi goes off and also remain off till i off the Bluetooth.

So this is a major bug plz fix it.

---------- Post added at 11:57 PM ---------- Previous post was at 11:49 PM ----------

I found a bug and it is giving me much pain for mi mi band. Plz help

Whenever i try to switch on the Bluetooth then the wifi goes off and also remain off till i off the Bluetooth.

So this is a major bug plz fix it.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Next time at least bother to read the notes first before reporting. This is already a known bug and I've already posted about a possible fix in the past pages. Don't just go around and tell me to fix things because you are not paying me anything.
[Xiaomi Mi A1 Guides, News, & Discussion] Chinu Malakar:
Pls help Google maps navigation not working in my Mi a1 after proting dp5
[Xiaomi Mi A1 Guides, News, & Discussion] SinTan1729:
Didn't help. ?
[Xiaomi Mi A1 Guides, News, & Discussion] wrick17:
Don't quote op

Please don't quote the entire OP. You can just post a quick reply.

---------- Post added at 12:12 PM ---------- Previous post was at 12:09 PM ----------

Any chances you've also notified the devs of ProjectK? And what's the right way to switch to a different kernel?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
I've notified Mountaser. Not yet with other kernel devs.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Wipe System only then flash the GSI then flash a new kernel.
[Xiaomi Mi A1 Guides, News, & Discussion] AndroidMisMag:
I use moun kernel before, and I reboot to recovery and flash the magisk, reboot recovery again and then flash extreme kernel and all works just fine with the greatest OC over 2.7 and seems there is no problem..
[Xiaomi Mi A1 Guides, News, & Discussion] odyss199:
anybody tried playing downloaded mp3s or m4as?, i cant play anything from conventional media players, however i can play them using VLC, actually i had some issues with movies being played from MX Player or KMP (something about DTS audio not supported) , the only thing playing media (Full HD video, and mp3s/m4as) is VLC
[Xiaomi Mi A1 Guides, News, & Discussion] Ragonexus:
I am very hyped to see the final version of Android Pie (announced today) on our MI A1, developers take your time, but if you release a stable version, I'll be one of the first to install it!!
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
You guys may now update to the Pie release.

DOWNLOAD

Dirty flash, clean flash, doesn't matter.
[Xiaomi Mi A1 Guides, News, & Discussion] Mask95:
Wow. Good Job OP.
[Xiaomi Mi A1 Guides, News, & Discussion] berlin51:
Extra pie for you, my friend
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Post GSIs have been updated for Pie as well.

DOWNLOAD

Wipe system and vendor ONLY

Flash vendor

Mount vendor

Flash PIE PR1 AB GSI

Flash POST-sGSI 1 tissot zip.

Flash POST-sGSI 2 tissot zip.

Reboot to system
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Has some tested what happen when you try to install the OTA ?
[Xiaomi Mi A1 Guides, News, & Discussion] Afisall_James:
Is this clean flash steps?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Sends you back to TWRP.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Clean flash is not necessary. Just wipe data if you want a clean flash.
[Xiaomi Mi A1 Guides, News, & Discussion] Afisall_James:
Should I flash 8.1 stock rom first or it's ok to flash from 8.1 custom rom?!
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
That's fine. Just follow the steps on treblelizing and beyond.
[Xiaomi Mi A1 Guides, News, & Discussion] Yamcha67:
Can we flash this over a Pixel Experience ROM without wiping?
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
Is there any modified build.prop for PR1? I have an FPC scanner so need it for fingerprint swipe gesture.
[Xiaomi Mi A1 Guides, News, & Discussion] Afisall_James:
Great! Thanks a lot for your help!
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Nope. Needs a clean install.

I'll upload one in a bit.

You're welcome. :)
[Xiaomi Mi A1 Guides, News, & Discussion] Olystem:
I Appreciate Your Work. Good Job Bro.

THIS IS The BEST MOMENT FOR Us. As We Can Install Android Pie In Our Mi A1.

Thanks Joeyhuab.
[Xiaomi Mi A1 Guides, News, & Discussion] catalin habdul:
Wow, thank you for this , amazing work , few minutes after official release and we have official PIE . Everything ok with the update. Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
Maybe it's only placebo effect but I feel that everything is working smoother.

It's not official Android P ?
[Xiaomi Mi A1 Guides, News, & Discussion] catalin habdul:
Indeed everything is a lot smoother, and for me this is official release you could wait for xiaomi until December to release the official one. Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] dead_alik:
Changelog

What is the changelog this update?
[Xiaomi Mi A1 Guides, News, & Discussion] Olystem:
Updated to Latest Version.

August Security Patch.
[Xiaomi Mi A1 Guides, News, & Discussion] connoccon:
Is there any fix for harwaee button lights?
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Hmm yes and no

When you edit the "brightness" file in "/sys/devices/soc/leds-qpnp-10/leds/button-backlight"

The button light will go on but after a restart the file will be reseted.

I tried to replace the file with some root explorers and with the twrp file manager but it doesn't work.

Edit: maybe has [MENTION=4936496]joeyhuab[/MENTION] a idea

Edit 2: The button light never goes off and 5 and 0 are the only possible options
[Xiaomi Mi A1 Guides, News, & Discussion] rasputine:
Hi, the bug still same like on PPP5?
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
I made this splash image, so if anyone is bored with annoying stock splash image saying please lock the bootloader, this is nice replacement and it is lined up perfectly with bootanimation. There is already thread with needed tools so you can make splash.img by yourself with your own images if you want.

Procedure is simple.

Go into fastboot mode,

open fastboot cmd window,

place splash.img in same folder where fastboot is located,

connect phone,

type fastboot devices to check if phone is recognized,

then type fastboot flash splash splash.img

after successful flashing type fastboot reboot,

voila!
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Nice one! "System destroyed" has convinced me
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
:D hopefully no one will see that image on their phone, ever

BTW I started using Pie again, it's just amazing and way smoother than stock Oreo as someone already mentioned. Also on Oreo ROMs I had strange battery drain caused by 7000000.ssusb wakelock, luckily with Pie this issue is gone. Don't know if Pie solved this or it is something in the process of flashing Pie...
[Xiaomi Mi A1 Guides, News, & Discussion] kartikb:
What's the best way to flash this splash.img?
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
I edited post with instructions, just go back and re-read it.
[Xiaomi Mi A1 Guides, News, & Discussion] moliverac8:
How is volume in this rom? Is it like the nowadays stock with less hissing and less volume or is it like in january-may with more hissing and more volume?

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Lol. Actually it is just a flash image when the system partition has bad files or the rom is flashed incorrectly.
[Xiaomi Mi A1 Guides, News, & Discussion] Gabriel337:
So, I received an OTA, can I update or it will bug my device?
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
https://xdaforums.com/mi-a1/how-to/guide-install-android-p-dp3-mi-a1-t3817937/post77263047
[Xiaomi Mi A1 Guides, News, & Discussion] tuelho_post:
Can I block bootloder by cmd or will I have a problem?:confused:
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Fun fact:

When you replace the Pixel Launcher with the ruthless launcher you will get back the Android 8 recents view
[Xiaomi Mi A1 Guides, News, & Discussion] Mizerine:
What is the known bugs of PR1?
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Your device wouldn't start anymore when you lock the bootloader
[Xiaomi Mi A1 Guides, News, & Discussion] rasputine:
Hi i got error when flashing "P-PR1-sGSI-AB.zip". I want to upgrade from PPP5 to PPR1, after flash and mount vendor, i got the error. Please help

EDIT : woop, forget to extract, sorry
[Xiaomi Mi A1 Guides, News, & Discussion] Chinu Malakar:
Pls help me GPS and maps are not working fine in my Mi a1

Right now IAM using DP5
[Xiaomi Mi A1 Guides, News, & Discussion] zodiak43:
which kernel are you using, i had the same problem with p so i had to go back to custom roms.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
I suggest keeping the stock Pixel Launcher and sideloading the non Pixel Ruthless launcher.
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Yes but I thought maybe someone likes the old look more
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Can't flash vendor. I get this error. Dual boot is not enabled in tissot manager.

Edit: Resolved.
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
There isn't any error...
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Vendor is incompatible with dual boot, skipped. There is no way for me to flash it. In tissot manager, it is set to single boot.
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
That is only a information for you, errors a always and without any exception red. At the top also you can read "Successfully"
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
That's a successful flash. It's just so misleading because people think this GSI requires dual boot.
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Yup. I thought it was a failed flash. The "skipped" part is so misleading. I thought it did not successfully flashed. But all is working now.
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
If I ever want to revert to stock ROM will I get the stock splash.img back?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
If you flash the whole firmware, yes.
[Xiaomi Mi A1 Guides, News, & Discussion] daryl_dixon:
I can't use parallel space.....keeps on crashing....can anyone fix this..........
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
Would this be considered the whole firmware?

https://xdaforums.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Yeah.
[Xiaomi Mi A1 Guides, News, & Discussion] just_aleka:
Flashing Mi A1 Pie GSI Props via Magisk fixes FPC gestures, but doesn't fix assistant bug. It gets stuck on this. Should i try to manually replace build.prop to one from DP5?
[Xiaomi Mi A1 Guides, News, & Discussion] michael08071984:
great Rom. Works absolutly fine for me
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Uninstall updates to Google app. Then look for the fix in the Telegram channel.
[Xiaomi Mi A1 Guides, News, & Discussion] GizmoFreak:
We no longer need vendor image? Step seem to be removed from instructions in OP.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Please recheck.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
8.1 July. Try flashing this: https://www.androidfilehost.com/?fid=5862345805528051994. It updates bootloader files as well as modem files from Stock ROM 8.1 July update. Might fix it. :)
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
Did not work :( What kernel are you on?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Moun Kernel 5.2
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
Alright thanks, gonna try a clean flash moun now. Hope it will work :)
[Xiaomi Mi A1 Guides, News, & Discussion] pedram.abac:
problem report

i got this error when i was installing rom? whats the reason ? any solution?

https://www.imageupload.co.uk/image/4Rhd
[Xiaomi Mi A1 Guides, News, & Discussion] danilguy:
I have the same problem

I have the same problem
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Flash this TWRP Installer then reboot recovery. Then you can proceed with flashing the GSI.
[Xiaomi Mi A1 Guides, News, & Discussion] Ukolino:
Just noticed that i have this issue now,dint have before cam/bt fixes

I can record the "ok google" but the switch keeps turning itself off

weird as ****
[Xiaomi Mi A1 Guides, News, & Discussion] LGR0102:
Everyone who's having problem in OK Google, flash April modem. April is the only that don't affect the hot word.

I know this will sofrer critics, that depends, that for me is working. But 99.9% of the users can only have ok Google with April, so flash it and forget.
[Xiaomi Mi A1 Guides, News, & Discussion] Vatumb:
Stuck on the bootloop...follow all the steps and everything flashed without any error.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Set SELinux to Permissive.
[Xiaomi Mi A1 Guides, News, & Discussion] Vatumb:
Again, already done that...before flashing the firmware files.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Reboot and try again.
[Xiaomi Mi A1 Guides, News, & Discussion] Vatumb:
Rebooted in TWRP and Set SELinux to Permissive again....Still in the bootloop
[Xiaomi Mi A1 Guides, News, & Discussion] daavm:
Stuck on the Google logo... Been there for some minutes already :S

EDIT: Eventually it booted