yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] JohnsteF:
DP4 bug i thing

in DP3 I had this option but after updating to DP4 there isn't this option? any solution?
[Xiaomi Mi A1 Guides, News, & Discussion] fabio_faria_23:
Thank you!!! It really worked!

thanks a lot! :D :D :D :D :D :D
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Android P DP5 has just been released. DP5 A/B GSI will be posted once available. :)
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
I know the link for DP5 A/B GSI is now available. Don't update yet until I've tested. Post GSI ZIPs will be updated for Tissot as well.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
We can now update to DP5. Updating from DP4 to DP5 without wiping data:

Wipe system and vendor ONLY

Flash vendor

Mount vendor

Flash DP5 AB GSI

Flash Post GSI 1 tissot zip v2

Flash Post GSI 2 tissot zip

Reboot to system

Added new Gestures features and FM Radio for everyone to enjoy. Bug fixing will continue for VoLTE and others. Special thanks to [MENTION=6298645]erfanoabdi[/MENTION] for porting DP5 A/B GSI.

Edit: Post GSI 1 has been updated to v2.
[Xiaomi Mi A1 Guides, News, & Discussion] akshaygalaxystarmod:
Great ?
[Xiaomi Mi A1 Guides, News, & Discussion] dancress:
Flash it and it works ;) It even has a little equalizer but I think it's only accessible via app (Spotify in my case). Ainur changes some files so the sound modifications work right out of the box and systemwide. It's not as fiddly as V4A. You don't even notice it's there - it's just your phone soundng A LOT better.

I'm still wondering why phone makers don't pay more attention to how their phones sound. The hardware is obviously capable of so much more.

---------- Post added at 10:05 PM ---------- Previous post was at 10:04 PM ----------

Flash it and it works ;) It even has a little equalizer but I think it's only accessible via app (Spotify in my case). Ainur changes some files so the sound modifications work right out of the box and systemwide. It's not as fiddly as V4A. You don't even notice it's there - it's just your phone soundng A LOT better.

I'm still wondering why phone makers don't pay more attention to how their phones sound. The hardware is obviously capable of so much more.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Post GSI 1 has been updated to v2 to include fixes to Bluetooth.

Here's a guide to update it:

Reboot to TWRP. Go to wipe > advanced

Check VENDOR ONLY and wipe it

Flash vendor img

Go to Mount menu. Check vendor and mount it

Flash post GSI 1 v2

Flash post GSI 2

Reboot to system

If you can't pair with your device, try un-pairing it first with the old ones.
[Xiaomi Mi A1 Guides, News, & Discussion] dead_alik:
When I wipe system and vendor its delete all apps in my phone?
[Xiaomi Mi A1 Guides, News, & Discussion] JohnsteF:
Pokemon theme

how can I apply this pokemon theme???
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
Someone help me? Tried updating to dp5

I went into TWRP via fastboot boot command

Wiped System and Vendor only.

Flashed vendor image and then i saw error i guess?! It said ROM/Vendor is incompatible with dual boot, skipped. What am i doing wrong? Should it be like this or not? I'll untreblize my phone and flash stock via fastboot and then treblize and install dp5, but i will be very thankful if someone can tell me how to update GSI next time.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Ignore that. That's not an error.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
No
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
Thanks, I ignored it and everything went well, but when I try to enter PIN number on first unlock it says wrong PIN...Guess I should've remove lock before flashing update? Solution for this? Sorry for annoying, it's my first time doing customization on Mi A1, totally different to all my previous devices
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Go to twrp file manager. Go to /data/system and look for the file locksettings.db. Any file with a similar name to locksettings delete them. Should work now.
[Xiaomi Mi A1 Guides, News, & Discussion] Karenkey:
"POST-sGSI 1 tissot zip" broken link: 404 not found
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
I can't update DP4 to DPP5. I'm doing everything like you said in the first post but I'm getting bootloop.
[Xiaomi Mi A1 Guides, News, & Discussion] jareddlikewhoaa:
Quick question, what exactly does the module for camera settings change? I believe after flashing the module, it causes AR Stickers to force close. If someone with it installed could test that would be cool :p
[Xiaomi Mi A1 Guides, News, & Discussion] Rakibboss:
I updated to DP5. But i lost the fingerprint option why?

I want it back.. How to solve this?
[Xiaomi Mi A1 Guides, News, & Discussion] zizizandlyan:
i just updating from dp4 to dp5, after phone booting it keeps soft reboot and before that happens magisk manager notification pop up and tell somewhat like "running startup operation.. " and its just soft rebooting constantly. fyi im just have 1 module and its the camera fix. so the problem might be from magisk itself (i guess:confused:)
[Xiaomi Mi A1 Guides, News, & Discussion] Karenkey:
tried DP5 many times. always gets bootloop.
[Xiaomi Mi A1 Guides, News, & Discussion] marniel647:
Your not following the guide then.
[Xiaomi Mi A1 Guides, News, & Discussion] Karenkey:
I did all steps exactly step by step

recently i didn't flash magisk and it was booted successfully:confused:
[Xiaomi Mi A1 Guides, News, & Discussion] syafrul05@gmail.com:
hdr in camera stock not working?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Guys Magisk is causing the bootloop issue. MAKE SURE TO FLASH MAGISK 16.7 IF YOU WILL INSTALL MAGISK. OTHERWISE DON'T ROOT IT.
[Xiaomi Mi A1 Guides, News, & Discussion] androidmaster456:
Updated to dp5 and found random system ui restart so what's wrong!?
[Xiaomi Mi A1 Guides, News, & Discussion] cyc343:
Hi. I found an error with screen share. The television does not recognize me. I love this rom. Thank you.
[Xiaomi Mi A1 Guides, News, & Discussion] simranjitsekhon:
Not flashing vendor ? , and not found the Dp5 image
[Xiaomi Mi A1 Guides, News, & Discussion] arvind7955:
What is the changelog in DP5? Is volte working now?
[Xiaomi Mi A1 Guides, News, & Discussion] simranjitsekhon:
Thnx bro for update the post
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Yup. Confirmed. Magisk crashes SystemUI evertime it runs startup operation. I'm running Magisk 16.7.

EDIT: redid the whole thing from scratch without installing magisk and still systemUI crashes.

EDIT: clean flashed DP5. systemUI crash was solved.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Links have been updated as well as guides for updating. No need to reflash Magisk when updating from DP4. Just flash new GSI and post GSI zips. Thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] danilguy:
After clean installing DP5 system not loading. Only mi logo and unlocked sign.
[Xiaomi Mi A1 Guides, News, & Discussion] syafrul05@gmail.com:
hdr not working in kamera stock
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Thanks for the report.
[Xiaomi Mi A1 Guides, News, & Discussion] kojiez:
Where is the link gsi dp5?i cannot found it
[Xiaomi Mi A1 Guides, News, & Discussion] MaynardVM:
Rr Rom

Can i installed it directly even if im in RR rom right now?
[Xiaomi Mi A1 Guides, News, & Discussion] syafrul05@gmail.com:
I pray you can fix the bug, because this rom is amazing.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
https://androidfilehost.com/?fid=5862345805528058111
[Xiaomi Mi A1 Guides, News, & Discussion] kojiez:
Tq sir..
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Screenshots in the OP have been updated.
[Xiaomi Mi A1 Guides, News, & Discussion] mhd.faisal.alfaruqi:
Waiting for stable release.
[Xiaomi Mi A1 Guides, News, & Discussion] N1ck474:
Anyone can confirm fixes for Mi Band/Bluetooth devices+WiFi?

With DP5 it's possible to keep a Bluetooth device and WiFi on together?
[Xiaomi Mi A1 Guides, News, & Discussion] XAB235:
DO i need to flash the system.img on both partitions A/B every time i flash an update?
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
Successfully booted DP5 without any issue within 5 minute. Follow exact following steps

To update from DP4 to DP5

Wipe system and vendor ONLY

Flash vendor

Mount vendor

Flash DP5 AB GSI

Flash Post GSI 1 tissot zip v2

Flash Post GSI 2 tissot zip

Reboot to system
[Xiaomi Mi A1 Guides, News, & Discussion] XAB235:
i continue to have reboots...
[Xiaomi Mi A1 Guides, News, & Discussion] danilguy:
Do not booting DP5!!!
[Xiaomi Mi A1 Guides, News, & Discussion] arjiyunandar:
Success without any problem, update from dp4, thanks [MENTION=4936496]joeyhuab[/MENTION]
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
Don't forget to wipe vendor partition.

---------- Post added at 02:04 PM ---------- Previous post was at 01:52 PM ----------

@joeyhuab only issue,pixel setup constantly crashing.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Install Play services fix in the guide.
[Xiaomi Mi A1 Guides, News, & Discussion] Wal_CCH:
Please help. After updated to dp5 the WiFi and Bluetooth isn't working. They keep turn off automatically
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
GCam Fix has been updated. Removed stock Camera. Use GCam instead. :)

DOWNLOAD
[Xiaomi Mi A1 Guides, News, & Discussion] loop4444:
wow mate! what a great tutorial and success from the first try. i had it ask me for decrypt code before flashing vendor step but i solved it by wiping again.

anywayz, trebelized, installed dp5 straight away. works really nice. kudos to you! great tutorial and many thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
I'm suprised because every gesture from screenshots works (only swipe fingerprint is not working)
[Xiaomi Mi A1 Guides, News, & Discussion] AndroidMisMag:
for.me, everything works fine excep DT2W
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
What the hell happened there? ? I changed build.prop to Mi A1 and got OTA notification (probably 8.1 for our Xiaomi)
[Xiaomi Mi A1 Guides, News, & Discussion] arjiyunandar:
Dt2w will work, if you flash moun kernel, for me dt2w work fine
[Xiaomi Mi A1 Guides, News, & Discussion] Seydem:
Please answer on one more question: before updating to dp5 magisk have been installed on dp4 or not?
[Xiaomi Mi A1 Guides, News, & Discussion] Gabriel337:
First, i'd like to say again: amazing job! the android p dp5 is soo unbelievable smoth!

Second, a question: I was using my KZ bluetooth earphones (i hope some of you knows this earphone) and went to codecs settings, i can change to any setting i want (and it doesn't come back to SBC. it stays, the song stops for a second). Is it real or it's just a bug?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Apparently, changing your build.prop to the modified one fixes fingerprint swipe for FPC users. I'll look for a permanent fix so consider that one temporarily resolved.

I'm also looking into Bluetooth Low Energy fixes right now.
[Xiaomi Mi A1 Guides, News, & Discussion] meltbanana:
the second patch fails for me, thus no boot
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
It is supposed to do that. I got the same error and I'm booting fine
[Xiaomi Mi A1 Guides, News, & Discussion] ermite666:
Hello, first of all thank the creator of this ROM is fantastic, I've only found a couple of bugs I do not know if they have already reported, the first I do not have access to 4g + and second in Spotify does not allow me to download the songs, ie it does but when opening the application again it says that they are not downloaded, to what is this, again an excellent job and I hope this can be solved.
[Xiaomi Mi A1 Guides, News, & Discussion] bmccoy11:
When I tried updating to DP5 last night, TWRP started to throw an "unable to mount /system [invalid argument]" error after flashing the DP5 GSI - could this have something to do with shrinking my system partitions instead of my userdata partition? I went back to DP4 and was able to flash the latest post-GSI zips without issues.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Did your SIM used to get 4G+ in other ROMs? I think Android P doesn't have an icon for that in the status bar.

That's normal. Ignore it.

It's advisable to shrink userdata instead as the GSI size might not fit your system partition.
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
Before installing this Android P ROM do I need to use CosmicDan's EDL backup tool? I've never used this EDL or repartioning stuff and it kinda puts me off flashing this.
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
For me it doesn't work for some reason..

I'm on latest Moun kernel.
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
Yes,magisk installed on DP4.

---------- Post added at 10:56 PM ---------- Previous post was at 10:54 PM ----------

On mine also DT2W not working with moun kernel.
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Vibration is very low on DP5 with project k kernel.
[Xiaomi Mi A1 Guides, News, & Discussion] Fabthethird:
Just installed the DP5

love it. Let's see how good it is for daily use...
[Xiaomi Mi A1 Guides, News, & Discussion] jareddlikewhoaa:
There's a bug with connecting to hidden wifi networks.. at least with mine. It won't seem to ever find it.

NEVERMIND. There's a new option for hidden in advanced settings when adding a network.
[Xiaomi Mi A1 Guides, News, & Discussion] cyc343:
I have problems when doing screen mirroring on tv. Someone else happens to him?
[Xiaomi Mi A1 Guides, News, & Discussion] sandeep chauhan 2722:
I had facing This problem in my samsung s6 when I flashed wrong twrp ( S6 Edge ).......
[Xiaomi Mi A1 Guides, News, & Discussion] rkview37:
Volte bug stopping me from using this awesome P thanks [MENTION=4936496]joeyhuab[/MENTION] hope a fix is coming soon
[Xiaomi Mi A1 Guides, News, & Discussion] Vivek_Parihar786:
P dp 5 in Mi A1

After Android p dp 5 incoming calls and outgoing sms not working (volte is also is not working)

That's mean u can not call or SMS if u are using jio :eek:
[Xiaomi Mi A1 Guides, News, & Discussion] ciphoenix:
What if you untreblize and restore a previous nandroid backup or flash a custom ROM, would it work?
[Xiaomi Mi A1 Guides, News, & Discussion] kolpomanob:
What thep build.prop does
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
This works too.
[Xiaomi Mi A1 Guides, News, & Discussion] Albedo78:
Use fastboot to return to stock. Also there are adb commands may help you...
[Xiaomi Mi A1 Guides, News, & Discussion] marko.dnb:
FIX FOR DT2W NOT WORKING!

Download terminal emulator from playstore and type this into it.

su

echo "1" > /proc/touchpanel/enable_dt2w

Look like that for some people this option is disabled by default and can't be enabled via regular settings so you need to use emulator...

For this you need Magisk installed to grant root access.

If you want to disable dt2w (for some reason toggling option to ON or OFF in Gestures does nothing, at least on my device) then type this command into terminal emulator:

su

echo "0" > /proc/touchpanel/enable_dt2w

UPDATE: Setting reverts back to ''0'' after restart so after every restart you need to enable dt2w via terminal emulator, hopefully someone will know how to make permanent fix
[Xiaomi Mi A1 Guides, News, & Discussion] AndroidMisMag:
Thank You ! ?? It worked !
[Xiaomi Mi A1 Guides, News, & Discussion] Balasubramaniyan:
Can you send me the link to post sGSI v11...

Since i cant find it
[Xiaomi Mi A1 Guides, News, & Discussion] spithash:
Turning screen on while on standby has a small delay after pressing power button (compared to 8.1).

Can someone confirm?
[Xiaomi Mi A1 Guides, News, & Discussion] plamen-ivanov51:
using this thing for a day now and I MUST say 2 words... Well Done.. This is so stable I'm going to rock it until there is a maybe a GSI update, Android P ROM or Xiaomi release an update with Android P.. The little things added that Android 8.1 doesn't have are awesome.. thanks for doing a good job on porting and making it work
[Xiaomi Mi A1 Guides, News, & Discussion] ermite666:
I just realized that spotify is when restarting the device, I do not know what it's debuted, and something else, the reach of WiFi is little, some solution?
[Xiaomi Mi A1 Guides, News, & Discussion] MaynardVM:
Successfully installed this developer preview but my swipe for notification is not working.

Can someone help?

Thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] julmabzz:
Go to Settings>System>Gestures. Voila!
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
Battery life with Spectrum is legendary for DP5.
[Xiaomi Mi A1 Guides, News, & Discussion] Void_Dragon07:
Fingerprint reader not working after dirty flashing DP5 ? any fix?
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
No problemo
[Xiaomi Mi A1 Guides, News, & Discussion] panjivegency:
how to install this rom? i was in rom rr not treble

do i have to restore backup stock rom or flash using miflash?
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
Read first post, there is everything about installing Android P
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Please don't link older versions of the post GSIs. They do not include fixes for DP5.
[Xiaomi Mi A1 Guides, News, & Discussion] Aven The Kid:
can I have a question for you? I can't flash anyone rom when I get beta android P ver. Always be error 7, although I use MiFlash to get stock rom! Pls give me a help! :(
[Xiaomi Mi A1 Guides, News, & Discussion] agungdramadhan:
after updated to dp5, my phone is boot up, but why is always restart everytime i press "ok" android beta program? any solution?
[Xiaomi Mi A1 Guides, News, & Discussion] arjiyunandar:
First, turn off your internet.

Second, download build prob dp5, and change it manually

Third, reboot

Fourth, update google assistant on play store
[Xiaomi Mi A1 Guides, News, & Discussion] arjiyunandar:
This rom is amazing, i got 6hours on lte only ?
[Xiaomi Mi A1 Guides, News, & Discussion] webnorka:
Great job, testing dp5 & I like it :good:
[Xiaomi Mi A1 Guides, News, & Discussion] Tyrannis78:
FInally rom work fine in my mobile,force close in several apps is because system detect microsd damaged,very rare,it work perfectly in the last rom,i format microsd and all work fine.
[Xiaomi Mi A1 Guides, News, & Discussion] Seydem:
Magisk still crashes systemui. Has anyone got an idea? After updating dp4 to dp5, system working perfectly but if I'm charging my phone system will crash
[Xiaomi Mi A1 Guides, News, & Discussion] ermite666:
Why does this come out?
[Xiaomi Mi A1 Guides, News, & Discussion] lukeaddison:
Which kernel are you using?
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
DP5+Moun Kernel +Spectrum=Legendary Battery Life
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
But he asked for it xd
[Xiaomi Mi A1 Guides, News, & Discussion] Tyrannis78:
I have one mi band 2 constantly connected, any advice for use wifi or i must disconnect bluetooth for activate wifi?

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] arjiyunandar:
Latest moun kernel
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Is there a way to deacrease volume steps?
[Xiaomi Mi A1 Guides, News, & Discussion] OBLiX11:
When I flashed this rom everything was working fine. But i was not reciving any in coming calls. But outgoing call were working fine. I also flashed incall2 but also not getting any incoming calls. Please help me :(
[Xiaomi Mi A1 Guides, News, & Discussion] sathvik01:
Volte??
[Xiaomi Mi A1 Guides, News, & Discussion] tanapak1:
Yes, you have to.

This rom still have an issue between bluetooth low energy and wifi.

if bluetooth turn on and connect with ble device, wifi will turn off.
[Xiaomi Mi A1 Guides, News, & Discussion] webnorka:
My only issue is that wifi connection sometimes is lost and I need to reboot (quick reboot is enough) to manage connection again.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
VoLTE Fix is now STABLE. SIM Setup will show up every reboot but that means you will not lose your 4G Enhanced option anymore.

Wipe Vendor

Flash Vendor

Mount Vendor

Flash POST-sGSI 1 tissot zip from AFH or GDrive.

Flash Post GSI 2

Reboot to system

Thanks to [MENTION=5393309]ghpranav[/MENTION] for the final fix.
[Xiaomi Mi A1 Guides, News, & Discussion] Itemt:
Look your kernel config
[Xiaomi Mi A1 Guides, News, & Discussion] akshaygalaxystarmod:
I Told you But you kicked me out of the group

---------- Post added at 09:58 AM ---------- Previous post was at 09:55 AM ----------

That's why you kicked me ?
[Xiaomi Mi A1 Guides, News, & Discussion] arvind7955:
I am installing this for the 1st time. Can I directly install these updated files or should I first follow the steps mentioned before and then do these updated procedure?
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Get a grip. The fix you gave only had an updater-script that said FU. You were banned because you were giving out false fixes.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Yes use these files directly.
[Xiaomi Mi A1 Guides, News, & Discussion] akshaygalaxystarmod:
Can you Prove This Here ?

Secondly Why you removed me I checked that It was Fully working i am No *NOOB*

Your Fake Accent Doesn't Proof whats wrong what's Right
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
Try again. Stop trolling here or I will report you to the mods. I have screenshots of what you sent.
[Xiaomi Mi A1 Guides, News, & Discussion] akshaygalaxystarmod:
Try me brother

Add me in that group

Everything Peacefully
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
You are already unbanned. Here's a screenshot of the so called FIX you gave. Next time don't troll if you don't want a ban.
[Xiaomi Mi A1 Guides, News, & Discussion] joeyhuab:
It's in the OP.
[Xiaomi Mi A1 Guides, News, & Discussion] Tyrannis78:
Excellent build.pro, fix ok Google and have a update gift

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] samy2015:
here's how i revert back to stock :

boot to twrp enter tissot manager > repartition (untrebelize) then wipe system,data,cache ( don't turn phone of)

then copy flashable stock zip and magisk16.4 from pc to sdcard put in phone then flash & boot.

no need for mi flash
[Xiaomi Mi A1 Guides, News, & Discussion] kkostin:
Encryption doesn't work properly. After setting up a pin-code it asks me to enter a pattern in twrp. Also i can't enter a pin-code when booting device, because it reboots to twrp where i should enter a pattern that i doesn't set.
[Xiaomi Mi A1 Guides, News, & Discussion] ibooth2004:
In my opinion this is the best way to go back to stock:

Prerequisites:

Make sure ADB and fastboot is installed.

Guide:

1. Go to TWRP and untrebalize with Tissot Manager

2. Download the latest stock ROM from here:

https://xdaforums.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929

3. Extract the ROM and open the extracted folder.

4. Put your phone in fastboot and plug it in to your computer.

5. Run one of these files (bat on windows, sh on linux/mac):

flash_all (Flashes stock and keeps unlocked bootloader)

flash_all_lock (Flashes stock and locks bootloader.

6. Profit!

---------- Post added at 01:55 PM ---------- Previous post was at 01:53 PM ----------

Do not use encryption with Treble GSI's, especially with a ported dev preview like this one.
[Xiaomi Mi A1 Guides, News, & Discussion] Bartas18:
How did you do it? For me it's not working
[Xiaomi Mi A1 Guides, News, & Discussion] Tyrannis78:
Look again your folder system, me first time file change name and add extension txt, and too look permission, original have only 2 and when you copy it have all.

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Aven The Kid:
When I go back old rom (ex: dotos, havoc) my phone auto reboot. Anyone can give me a help to clear issue on my phone?

Thank a lot! have a goodnight all!