yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
You need google camera mod for that which is superior to stock camera anyways.

All custom roms support google camera so... :)
[Xiaomi Mi A1 Questions & Answers] TrueMS:
Hi, which ROM is the most suitable for me? I am not heavy user, I use my phone for some chatting and watching youtube, but I want it to be stable (without random reboots and for alarm clock). I also want a really good camera.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
It appears that you are good with stock rom :)
[Xiaomi Mi A1 Questions & Answers] TrueMS:
Stock ROM is cool, but my battery drains a lot when standby, I use BetterBatteryStats and there are just system wakelocks... so I need to move to some custom rom or maybe kernel.

PS: what about franco?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
For a stable custom rom, i recommended Validus OS, which I'm using currently.

You can also try franco kernel and see how battery live is.
[Xiaomi Mi A1 Questions & Answers] TrueMS:
Can I flash custom kernel (Franco) and magisk when booted into TWRP without installing TWRP? I dont want to have twrp installed
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Yes, you can.
[Xiaomi Mi A1 Questions & Answers] Bombobux:
How i can record videos with higher fps on stock ROM? The camera recording seems very laggy, I mean that videos are like 20 fps, is there any mods that enables this? If there is, can someone help me?
[Xiaomi Mi A1 Questions & Answers] Cabeção-Flu:
Any chance to convert a1 in a 5x to run Miui?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Yes. A couple of options:

1. Magic

2. Sell Mi a1 and buy 5x

3. Exchange your mi a1 with someone that has a 5x

I'm not aware of other conversion methods.

I hope this helps.
[Xiaomi Mi A1 Questions & Answers] Cabeção-Flu:
None of these options answer what was asked.
[Xiaomi Mi A1 Questions & Answers] TrueMS:
You just can't.

---------- Post added at 07:47 PM ---------- Previous post was at 07:45 PM ----------

I have a tip for you. When you record slow motion videos, you can adjust the speed of the playback in Google Photos app, you can adjust from which time it will be "slowed" and from which "faster" - thats how you get 120 fps video.
[Xiaomi Mi A1 Questions & Answers] Bombobux:
Wow, that works somehow, thanks!
[Xiaomi Mi A1 Questions & Answers] TrueMS:
But sadly, you cant export the video with custom frame rate. It will always be slowed if you open it somewhere else.
[Xiaomi Mi A1 Questions & Answers] Bombobux:
Maybe if I speed the video up in a video editing program? I should try
[Xiaomi Mi A1 Questions & Answers] TrueMS:
Im not sure, maybe if you speed it up 2x, you will get a natural playback. Maybe 4x more.

EDIT: You can try VLC for Windows to increase the playback speed, you will see how much you have to make it faster to look like normal 30 or 60 fps video. You should also consider fixing the issue than speeding up videos.
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
For varben , have you a solution with mia1 can't install the ota monthly ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Why can't you? Did you root your phone?

At any rate you can download the april update and use miflash tool to upgrade. Select "save userdata"
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
I am not root my phone , just install gcam without root method , i just got false link , that's link says April patch , but after update still January ,, are you have the real link ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
On my other thread here:

https://xdaforums.com/mi-a1/how-to/mi-a1-monthly-updates-t3750419/page22
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
The april 24 ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Yes.
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
Oke i will try it
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
I have flash the april 26 and still januari patch ?
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
The april 24 is not work ,, and still January patch
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
What do you mean it doesn't work? And it cannot be January patch. Did you download the right file?
[Xiaomi Mi A1 Questions & Answers] TrueMS:
Uninstall any modifications and try again.
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
Yes i download the 24 patch and i flash it with mi flash tool , but when i look the system still January patch

---------- Post added at 11:58 PM ---------- Previous post was at 11:56 PM ----------

It will work ? But the gcam change the setting like enable hal3 , it never mind ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Did the process really work? From which version did you upgrade? I mean, what software version you had before using miflashtool?
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
Software in the smartphone or pc ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Smartphone, Android Version and Patch Level (date).
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
Oreo , patch 1 january 2018
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
It means the process didn't go through.

Can you attach here a screenshot of the finished process in miflash tool?
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
I need three times click the flash button until flash done

First it says : error "flash modem_a error"

2 : error cannot load : no such fole or directory

3 : flash done
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
As I said, you have not really upgraded your phone.

Try again, and if you get an error message, take a screenshot of the flashtool and attach here.
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
I don't get error message

---------- Post added at 11:09 AM ---------- Previous post was at 10:54 AM ----------

I can't swnd the screenshot because error
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Then, I guess I can't help you any further.
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
That is the screenshot
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
That the error message ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Yes, that's the error message. You are not actually flashing the new version.

As I have said over and over, the path to the update folder should be clean from spaces.

For example:

Wrong:

C:\users\jon smith\factoryimagefolder

Correct:

C:\users\jon_smith\factoryimagefolder

This is just an illustration to show you what I mean.

I hope it helps.
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
Ohhhw , should i create the folder in c: ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Sure
[Xiaomi Mi A1 Questions & Answers] Gunawan Suherman:
Thank's varben , finally it's really work for me , i'm so glad , and i hope this can work for next monthly update
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Enjoy!
[Xiaomi Mi A1 Questions & Answers] Shinwoir:
Is it possible to install TWRP and Magisk (with TWRP) without breaking OTA?

If yes, how do I do so?

Thanks in advance
[Xiaomi Mi A1 Questions & Answers] Bot96:
Should I flash the Dolby Atmos zip from magisk or twrp? Also, is there any specific Dolby Atmos module in magisk that I should flash or any would work? If I get a Full procedure to flash to Dolby Atmos that would be great.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
No, you can't.
[Xiaomi Mi A1 Questions & Answers] NicoNewbie:
Sms text messages not backing up.
[Xiaomi Mi A1 Questions & Answers] Shinwoir:
So if it's impossible to do it with TWRP, with the ota-safe method, after "uninstalling" magisk how do I put back the root access? I don't know if it has A/B partition or if I must do it via fireflash
[Xiaomi Mi A1 Questions & Answers] george.simbu:
how to create rom mi a1 and how extract payload.bin file
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
The same way you did the first time.
[Xiaomi Mi A1 Questions & Answers] Shinwoir:
And how isn't it possible to install twrp and magisk without breaking OTAs while you can install twrp and Google camera without breaking them?

Sorry if I'm missing something obvious
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
You always break ota if you flash twrp or alter system files. Magisk too braks ota.

There's a method described in the forum to enable camera 2 hal that lets you use gcam, but it doesn't require to flash twrp.
[Xiaomi Mi A1 Questions & Answers] sadatxda:
Dear all,

Right now I am facing an awkward problem.Usually I charge my phone when its turned off.Sometimes I am observing that whenever I powered on the phn it just stucks in "bootloader unlock warning message" and the ROM does not boot up.

After that If I hard reboot then rom boots.

My phone is 1.5 months old and using official RR ROM.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Well, charge phone when it's on! :)
[Xiaomi Mi A1 Questions & Answers] Gattt:
Hello iam trying to root my MI A1 phone as i know first thing is i have to unlock bootloader? if so whats the best method to use?

also after i reboot my phone i have to unlock the bootloader every time i reboot?

How can i install Magisk and Xposed? also if that matters i have completed the April 2018 and December 2017 security patch files.

after rooting will i still be getting OTA updated?

new to android sorry for asking too much
[Xiaomi Mi A1 Questions & Answers] upilguebu:
yes, if you want to root, you have to unlock the bootloader. The best method you can find here : https://xdaforums.com/mi-a1/how-to/mi-a1-monthly-updates-t3750419

After reboot your phone, you dont need to unlock it everytime because it will stick as unlocked. it wont back to locked until you re-lock it again.

After you can root, you can install magisk with the steps in the same link that I provided before at the "how to root stock rom" section. For xposed you can install it from magisk app that you can find it later if you already installed magisk.

And rooting will break your OTA.

And dont to be shy because this is friendly thread for new people :D
[Xiaomi Mi A1 Questions & Answers] TheTanadu:
[Question] Wifi chip

I'm coming with easy question for devs who are deep into this phone - what version/number of wifi chip is for Mi A1?

Thanks for any reply.
[Xiaomi Mi A1 Questions & Answers] akshaygalaxystarmod:
I can't transfer my data using data cable

after April Update

I have Literally Tried Everything

Only showing Charging

NTA
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Do you have these in developers options
[Xiaomi Mi A1 Questions & Answers] akshaygalaxystarmod:
It Doesn't Change After even changing it

Only stays MTP
[Xiaomi Mi A1 Questions & Answers] Robert7x:
Hi,

after formating all, the encryption is lost...

Now it's impossible to get the phone encrypted, because the device interrupt encrypton-procedure immediately and boot normally again.

Testet with latest Lineage 8.1 unofficial and Resurrection Remix OS.

(I know at Samsung galaxy note xx, i have to flash original stock-rom to delete anything with the original recovery to reset encryption. Same here?)

Any idea to solve my problem ?

Thanks in advance!

Ps: Sorry for my bad english.....
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Strange. You might have to dirty-flash the stock rom, saving userdata. And see what happens.

Sure just make a clean flash of stock rom with miflash tool. Choose wipe all... (Userdata will be lost)
[Xiaomi Mi A1 Questions & Answers] chiragrd:
Hi I flashed TWRP using adb it says flashing successful but doesn't boot into TWRP when I manually try to enter recovery it says 'no command' for some reason it's stuck on stock recovery I tried to change slot but same thing happens what should I do??

---------- Post added at 08:19 AM ---------- Previous post was at 08:12 AM ----------

Hi I flashed TWRP using adb it says flashing successful but doesn't boot into TWRP when I manually try to enter recovery it says 'no command' for some reason it's stuck on stock recovery I tried to change slot but same thing happens what should I do??
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Try the safest method. Boot into twrp.img and once there flash the twrp_flashable.zip

Download From mohamcm thread...
[Xiaomi Mi A1 Questions & Answers] Robert7x:
Sure just make a clean flash of stock rom with miflash tool. Choose wipe all... (Userdata will be lost)[/QUOTE]

------------

Thanks for your advice!

But why i have to go the indirect way with the original rom?

And should i do the encryption with the stock-rom or is a „clean flash“ with stock enough to make a encryption after that with LineageOS?

If no encryption is possible with custom-rom, why is this possibility in the rom implemented?

(reason in official- unofficial?)

At samsung devices i had no access to the encrypted data part and TWRP signify that!

But here it‘s different: TWRP has full access to all areas and shows no fail etc. Also the phone works perfect exclusive encryption….

So why encryption fails with custom-rom?
[Xiaomi Mi A1 Questions & Answers] Dazeon:
I have a new Xiaomi Mi A1 running the latest stock ROM. I have unlocked the bootloader and rooted it with Magisk. I have also installed Partitions Backup and backed up the highlighted modem partitions.

I would like to know if there are any additional steps I need to take before flashing TWRP and a custom ROM, in order to preserve my IMEI data and not break WiFi should I return to stock?

I'd rather do it properly now so I'm equipped if I end up having to use Persist Resurrector.

Thanks.
[Xiaomi Mi A1 Questions & Answers] sandhikshyan:
Hi Community. Kind of a noob here, but I'll try to be as specific as possible.

So let me start. I was using custom rooms on my Mi A1 a few days back, and decided to change back to stock. So I went ahead and downloaded the April Fastboot room for Tissot from their official MIUI website.

Flashed the room through Mi A1. Selected Clean all and lock from the bottom menu of Mi Flash. The process went without any hiccups.

As soon as I booted up the phone, found out Wi-Fi wasn't working. Came to know that custom rooms tend to change the default MAC address of the phone. Didn't know that at the moment, but unfortunately kept flashing different versions, and lost the Persist Partition.

This is where I screwed up really bad. I selected Clean factory(something like that). Lost my IMEI. Saw a guide on XDA about flashing someone else's Persist Image and screwed up big time. All sensor calibration data was lost. Restored IMEI through QPST. But the sensors aren't getting detected by the phone. To be specific, Accelerometer, Gyroscope and Compass. This is all the information I have on which sensors aren't working anymore. What should I do?

I went to Mi authorised service center, waited for like 4 hours and what they told me was

1.This was done by Liquid Damage

2. You're out of Warranty(Due to 1)

3. We need to change both the main board and the sub-board

4. The estimation sweeps in around RS.6100(94$).

Considering the actual price of a brand new Mi A1, that comes in around 215$, that would be too much for me to put out.

Can anyone provide me with a solution? Thanks for looking at this post.
[Xiaomi Mi A1 Questions & Answers] LouisMuruu:
Heys, I have a question to ask.

Regardless whether our devices is going to get or not going to get Treble or Android P officially, will there be any support for Android P Custom Roms?
[Xiaomi Mi A1 Questions & Answers] apo6416:
mi A1 google cam

I followed the aridane instruction. I've got the Google cam on my phone but...the slowmotion option crashes ! what can I do? can you help me?
[Xiaomi Mi A1 Questions & Answers] Adanadhel:
Hi!

I've just purchased a Mi A1 64GB and have been enjoying the overall experience a lot. There's just one issue that's been bothering me a lot. I've disabled vibration on Whatsapp on the app and on the notification settings, but when I leave the mobile on vibe mode I get two small vibes notifications whenever a message arrives. Is there anyway to disable this, rather than leaving the device on don't disturb mode?
[Xiaomi Mi A1 Questions & Answers] barrack1:
Kindof a basic question but it looks like theres 2 twrp images for the phone and 2 ways to install it.

The one from the Teamwin site just says to flash the twrp.img to the recovery partition but mohancm's thread says to boot into recovery, change the partition a/b and then flash the twrp-installer.zip. Why is that?

edit-----

I know about the new partition a-b system but that doesn't quite explain why there are 2 different twrp images.
[Xiaomi Mi A1 Questions & Answers] upilguebu:
The first thing is that our device is work differently from other devices. Our device had 2 slots system. I'm still not sure and not fully understand about the mechanisms. But the thing that I know is :

1. For booting into TWRP first time, you need to boot the image file manually from PC via fastboot.

2. Everytime you want to flash something you'll need a custom recovery right? Then if you boot twrp only from fastboot, the twrp will disappeared and came back to stock recovery. You need to fastboot the image twrp everytime you want to flash something. Then the twrpinstaller zip will do the job here. If you flash it ( for example you flash it after flashing rom), it will prevent the system booting up into stock recovery and will boot into twrp. We can say like we have a permanent twrp recovery, so when we restart the system, the twrp wont disappeared.

I hope my explanation can help you.
[Xiaomi Mi A1 Questions & Answers] Xaviers101:
I m coming from custom rom to stock on my mi a1. but i m not able to by pass or skip the setup wizard which requires me any how to connect to a wifi or mobile data.

the thing is i cannot to any wifi nor mobile data. Any solution for this ? how to bypass the setup wizard. rom flashed is stock unrooted.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Backup your efs partiton in twrp. Boot into it and backup.

I don't see you have many option. What persist partition did you flash?

Yes we will, provided xiaomi releases sources for android P.

Arnova gcam mod seems to work well.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
You can skip the setup wizard by touching the 4 corners of setup wizard window one by one starting from the top left.

It looms like you have lost your persist partition though...
[Xiaomi Mi A1 Questions & Answers] upilguebu:
Clockwise or counter clockwise about tapping 4 corners?
[Xiaomi Mi A1 Questions & Answers] sandhikshyan:
I flashed the one available on xiaomifirmware.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Clockwise.

:( I can make some research. Out of ideas. I'm sure you have researched yourself, so i hope I can find something useful.
[Xiaomi Mi A1 Questions & Answers] KB_Thailand:
I can't enter a new thread post because your form will not allow me to enter a title, which is required. The contact form also says Name or XDA User Name is required, but will not allow data entry into the field so it doesn't work either!

This is on a computer, using the latest Chrome so I am really not sure what the problem is.
[Xiaomi Mi A1 Questions & Answers] Xaviers101:
How to solve this persist partion thing? Could u help me please.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
First, you don't need a new thread for a question.

Second, you have to be more active in the forums before you'll be able to create a new thread.

You can try this steps:

Extract persist.img from a stock firmware.

Put that into the root of your internal sdcard

Boot into twrp, find terminal (advanced/terminal) in twrp and flash the persist.img with this command

dd if=/sdcard/persist.img of=/dev/block/mmcblk0p27
[Xiaomi Mi A1 Questions & Answers] another343:
Hi, I'm new to this device and i have questions about flashing gapps.

When i flash a custom rom, for example aosp extended 8.1 latest it flashes fine.

But after that flashing gapps gives an error: Your os is 7.1.2 and you are trying to flash 8.1 gapps ....

I also assume that i should be using arm64 gapps
[Xiaomi Mi A1 Questions & Answers] KB_Thailand:
Since it was a very specific question about a specific issue, I thought that they WANTED you to start a new thread if that question had not been asked before instead of cluttering up threads with multiple issues. A search showed that this question and the circumstances involved had not been asked, so I wanted to start a new question. If that is not the preferred way to do things, I haven't seen anything else to say differently.

Interesting. Did the site change the rules for posting lately? I was able to ask a question before and it worked just fine.

https://xdaforums.com/mi-a1/help/stock-mi-a1-locked-fastboot-screen-t3739685

I did not get an error like 'Sorry, you cannot start a new thread', just a form that did not seem to work as it should and definitely did not work as it had previously. The check boxes do not work and the text input box for name/user name also did not work. Hence, I posted where someone at XDA might see it that did not require me to enter that information. e.g. an existing thread

Regards,
[Xiaomi Mi A1 Questions & Answers] mia1lit:
I have the same issue too please help fast
[Xiaomi Mi A1 Questions & Answers] bobola:
Are there any physical difference between Xiaomi Mi A1 and the Xiaomi 5x ?

I wondering if I can use screen protector from Xiaomi 5x on my Mi A1
[Xiaomi Mi A1 Questions & Answers] barrack1:
No physical difference so you can use accessories from either model.
[Xiaomi Mi A1 Questions & Answers] bobola:
Great thanks,

also is there a website that shows you which software version is the latest?

I just did the GCam mod, want to make sure I m getting OTA properly
[Xiaomi Mi A1 Questions & Answers] Xaviers101:
Hi guys..I was wondering whether i should whitelist these apps from doze/battery optimization.

Greenify

Amplify

Kernel manager

Viper4A

Naptime

Which ones of the above are needed and which ones are unnecessary. Please suggest.
[Xiaomi Mi A1 Questions & Answers] shreeyash:
Guys. Haven't flashed a custom rom on any phone for quite some time. I need a working guide with detailed steps to flash twrp and custom rom. I am a bit sceptical due to this A/B partition system. I frequently read people bricking their devices while trying to flash custom roms. Their have been 2 to 3 guides regarding the same but I am a bit confused between them. Need a guide which actually works.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
I would suggest you leave them with standard behaviour. If you notice strange behaviour then think of adjusting...
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Here you go:

Backup data before doing anything else.

Configure fastboot drivers on your computer.

Unlock bootloader: fastboot oem unlock

Download twrp.img and twrp installer.zip from mohan cm thread: https://xdaforums.com/mi-a1/development/recovery-twrp-3-1-1-0-touch-recovery-t3688472

Copy the flashable twrp on your sdcard together with your custom rom, magisk and gapps for android 8.1, 64bit

Now the process is simple:

Reboot into fastboot mode: power off and keep pressed power and volume down

Boot recovery.img with the command: fastboot boot recovery-xx.img

Backup efs partition

Wipe device

Flash rom and twrp installer.zip

Reboot into recovery

Flash gapps and optionally magisk (for some roms magisk is mandatory)

Reboot into system.

This should be pretty standard procedure for all custom roms on mi a1.
[Xiaomi Mi A1 Questions & Answers] bobola:
Is the only way to turn off hardware lights (navigation lights at the bottom) is by rooting?
[Xiaomi Mi A1 Questions & Answers] Xaviers101:
Thanks for the good idea :)

---------- Post added at 05:56 AM ---------- Previous post was at 05:53 AM ----------

what is EFS partion may i know.

thanks in advance!
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Sure:

http://bfy.tw/I8Hs
[Xiaomi Mi A1 Questions & Answers] shreeyash:
Thank you for this guide. I have a spec of dust in my camera lense. I will follow this guide and flash custom rom after giving it to the service centre.