yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Don't know about locked or unlocked bootloader for edl option, i just briefly went through that thread yesterday. Looks like they created a program to run all the commands in edl, maybe for locked btloader too, when there's no other option with twrp... never used it myself.

---------- Post added at 04:13 PM ---------- Previous post was at 04:03 PM ----------

Are you on Mi A1? If so there is a thread open for installing unofficial Miui 10 Epic rom for MiA1 it's a beta one but works great so far. Developed and post by [MENTION=5606590]pocaropa[/MENTION] (thanks dude ;)

Search Miui for Mi A1 and will come up as Miui 10 for Mi A1.
[Xiaomi Mi A1 Questions & Answers] Gyro01:
from the edl guide:

2 Questions about the edl guide:

1. How can I install qualcomm drivers if I don't have "other devices under the device manager list (even after connecting mi a1 via usb in fastboot mode and typing fastboot oem edl, i saw no qualcomm in device manager ?

2. Do I have to do the test point process if the phone is stuck in bootloop ?

Thanks
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
I've seen that the edl mode would not work on locked btl because we can't fastboot anything with locked ones. Unlocking it at this point has no use cause will wipe your phone clean, it's a long shot for bridging the test points... i'm not sure if doing that will or will not wipe your data/storage... you can try :D

Try to look for some answers if test points will wipe, just in case.

I summon [MENTION=3859635]varben[/MENTION] for helping waking from death without wiping. :o :victory:
[Xiaomi Mi A1 Questions & Answers] Gyro01:
Thanks a lot for all the help!

[MENTION=3859635]varben[/MENTION] - you have been summon.. please help :angel: :good:
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Someone called me here? :)

What's up?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
And here's the boss :svetius: :svetius: :svetius:

Trying to help each other here, bringing a Mi A1 alive from bootloop but without wiping any data/storage.

Bootloder locked and no twrp. Factory recovery wipe data will also wipe internal storage and we left without known options...
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
How did you end up in a bootloop?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Not me, [MENTION=6557243]Gyro01[/MENTION]... i'm trying to help but can't think of something suitable. And im at work right now :laugh:
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
You say bootloop, so why are you talking about edl? Can't [MENTION=6557243]Gyro01[/MENTION] boot into fastboot?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
He can boot into fastboot but there's no cmd commands accepted, because the locked bootloader...

He found a thread about someone having created a windows application that can actually save / backup the partitions and data in edl mode. Personally i never tried that, don't know if would work. They were also talking about bridging the test points to exit bootloop without losing data? So we need an expert opinion about a viable way to exit his bootloop without swipe, if that's even possible. We're trying all the ways we can find.
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Ok, I understand. And again how did the bootloop happen?

What's the current system (os) in his phone?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
I didn't ask him :angel: Who kidnapped [MENTION=6557243]Gyro01[/MENTION] ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Hopefully he fixed it. ;)
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Yap i hope so too, and thank you.
[Xiaomi Mi A1 Questions & Answers] genericsauce:
So got my Mi A1 a couple of days ago and first thing I wanted to do was install LOS, and it has been nothing but trouble from there. My first issue was when I tried to boot the TWRP image from the LOS wiki and it won't register touches properly, couldn't even swipe to unlock. Found out that TWRP has a command line mode and tried to install via that, no dice wiped the device and couldn't install the OS without touchscreen. So thats first bootloop, find out about MiFlash and the official boot images and restore it from that with a windows PC took like 15 minutes cause its an old girl on a 5600 rpm drive.

So do some browsing on the internet and from the twrp page find an xda thread that has its own version of 3.2.1-2 of TWRP and thats working minty. So this time being the smart man I am, I make a backup with TWRP before giving it another shot. So I wipe the appropriate partitions and give it another shot. No dice get the same issue as buddy here https://www.reddit.com/r/LineageOS/comments/96nejy/cant_flash_lineage/

So think to myself no problem, just restore the TWRP backup and try again later. It restores just fine but when I go to boot, nada. Another bootloop... Look in the folder of the recovery image and see that it has bash scripts to restore. Minty, reflashing my phone went from 15 minutes to 3. Right now, I'm just on stock rom with it rooted with Magisk but would like to get LOS to work. Anyone know what the hell is going on with my phone???

TL;DR:

Official builds of TWRP don't have properly functioning touch screen but recovery-3.2.1-2-oreo.img does work

Said build of TWRP gives me bootlooping backups and gives error described in reddit link when installing LOS

Thank the lord that xiaomi includes bash scripts for reinstalling stock ROM

End goal is working nandriod backups and LOS installed

Thanks for any help!
[Xiaomi Mi A1 Questions & Answers] Gyro01:
Sorry I've been away

I don't know how, might be an adware/virus that was installed via a phishing site, might be also a cleaning app or even the fact the phone fell down and caused a glass(not display) crack, but the bootloop happened long after the phone fell off

with edl it would be possible to backup important data, ,mainly from a notepad app.. yes It can

Default MI A1 OS with oreo 8.1.. everything is default on the device including OEM lock (unfortunately)

The biggest question right now is: can you backup Mi A1 with locked OEM via edl mode ?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Can you try starting in safe mode? Safe mode will bypass any rough app you installed...
[Xiaomi Mi A1 Questions & Answers] Gyro01:
is it even possible to get into safe mode when the phone is stuck in bootloop, how do you do that on a boot looped phone?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
I think you can. If I remember correctly, you keep the volume up and down pressed as soon as you see the boot screen.
[Xiaomi Mi A1 Questions & Answers] Gyro01:
yes you are right, it's vol up&vol down when it says "android one", it worked on my own functioning Mi A1, but on bootlooped Mi A1 it didn't (and I tried several times), so what's the next step :confused:
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Hmm, next thing is try to boot into stock recovery and see if you can connect to a pc and save your data.

Other than that, I don't see a way how you can save your data. Never did an edl recovery. We can do some research, and I don't have a mi a1 anymore, so it will be a blind support. Sorry about that.
[Xiaomi Mi A1 Questions & Answers] Gyro01:
is it dangerous to get into recovery screen?

is this how you do it? >>> https://xdaforums.com/mi-a1/help/help-booting-recovery-mi-a1-t3728452/post75035079
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
No, it's not dangerous.

And that's how you boot into the stock recovery
[Xiaomi Mi A1 Questions & Answers] Gyro01:
ohh so that's what you meant, I know this recovery menu, I use it to power off the device all the time.. but when the phone is in this mode, while connected to USB, the PC doesn't recognize anything (or even if the usb is connected only after getting to this mode)

btw I managed to get to the test point thing , the qualcomm driver was installed successfully, but I didn't know what to do next because i couldn't get to fastboot mode without the back panel that's needed for the side buttons :/ ... also the edl guide doesn't have enough info about how to do it with test point:

maybe while in testpoint mode I should try flash the last rom (with save date option) via MiFlash?
[Xiaomi Mi A1 Questions & Answers] mhardyman:
Hi I am rooted, using twrp and magisk. Phone is asking me to restart to update to October 8.1.0. currently on July security patch.

Usually fails patches, which suits me fine.

Any tips??
[Xiaomi Mi A1 Questions & Answers] Gyro01:
*update*

while in testpoint mode, I flashed 8.1.1 rom via MiFlash, I selected "save user data*, but it didn't save anything and the phone booted on factory default settings..

When my own mi a1 was bootlooped I did the same thing (via fastboot, not testpoint) and everything was saved, I guess this time on this phone the issue was much worse, or it's just the oem unlock that made it impossible to recover anything

btw after starting up the device in the first time it showed a quick encrypting screen
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Maybe you already had all your data corrupted and that's why you were in bootloop and now with flashing the rom with save data option, was no data to save...

Yap, anytime you flash/update factory encrypts your device... That's normal on Mi A1.

Have a suggestion, whilst you already lost data why not unlock bootloader. This will help you in the future if you encounter this problem again.
[Xiaomi Mi A1 Questions & Answers] Gyro01:
LOL that's the first thing I did < unlocking oem.. And I assume the data was probably corrupted beforehand, because on my own mi a1 MiFlash (with save user data) worked like a charm and kept everything without even changing the OS settings & apps

The owner was stupid to install shaddy phishing apps/viruses.. i don't feel that much guilt because i tried everything :angel:
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Awesome man. Hope he/she will be ok with lost data, but there was no other way anyway.

---------- Post added at 12:49 AM ---------- Previous post was at 12:41 AM ----------

So the ota update doesn't install after restart?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
So what phone did you end up buying Varben? Go for Poco if you're still on market :victory:
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Yes, I have a Poco now! :o
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Awesome... And thank you for that one ;)
[Xiaomi Mi A1 Questions & Answers] Sobhan Bhuyan:
I messed up something and it said "system has been destroyed" so I used miflash tool to flash stock ROM. So now my phone is in Android 7.1.2. I want to install twrp and flash liquid remix ROM.

My otas aren't installing. So is it possible to get twrp and flash ROM from 7.1.2 or I must go to Oreo and then get twrp?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
:o

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

I don't think you can. I tried a while ago. Why not download Oreo rom from official website flash it and then flash twrp.
[Xiaomi Mi A1 Questions & Answers] Gyro01:
Hey.. I tried to install magisk on the same MI A1 you helped me with via this guide

I enabled oem unlocking&usb debugging, installed the magisk manager apk (but didn't install anything via magisk manager itself, the guide doesn't tell to)

Then entered fastboot mode, entered on fastboot cmd "fastboot oem unlock".. the fastboot cmd showed

"OKAY [ 0.12s]

finiahsed. total time: 0.13s.

c:\adb>"

.. and then the device entered encryption screen :eek: (finished until 100%) and the entire phone got into factory default settings now :confused: wtf

*update* I tried to install it again, did exactly the same as before (except the oem unlocking via dev options, it was already unlocked this time) and now the phone is functioning with magisk.. but i still don't understand why did the phone had to be deleted
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Unlocking the bootloader, wipes the device clean! :)
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Yes, because with locked bootloader your device is encrypted and unlocking bootloader can't decrypt the device so that's why wipes everything.

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

Actually on Poco i had to install force encryption disable and magisk in twrp before i was able to boot into system, to avoid re-encryption... that was fun.

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

So far so good with Epic rom on my Mi A1, everything works great, use as main phone by my wifey, checked regularly by myself. There's only one problem i found so far: text messages doesn't send emojis, just an empty text... so if you're good with that, give it a try.
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Unlock bootloader, download magisk module image, download twrp, flash twrp with Windows cmd copy magisk in storage and install magisk with twrp. Need details? Let me know :o
[Xiaomi Mi A1 Questions & Answers] mhardyman:
Yes OTA fails, do I just uninstall magisk - update and all good?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
You can do that i guess or download the update from Xiaomi and try flashing in Miflash or download the latest official rom and flash, but isn't installing ota update erasing your magisk and custom recovery?
[Xiaomi Mi A1 Questions & Answers] technoatul10:
It's also happening with me , any solution on this?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
I don't know what would cause that, i've never experienced something like this. Did you try to re-download update and reinstall ota?
[Xiaomi Mi A1 Questions & Answers] technoatul10:
None I am on on stock ROM ,didn't done anything , just after the ota this is happening

---------- Post added at 06:25 AM ---------- Previous post was at 06:20 AM ----------

Tried with different cable/charger also used powerbank but seems October patch had issues which only few users like me are facing . Will reset after backing up . If that corrects the issue then good otherwise i have to go to service centre
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Can be something simple as notifications settings and /or permissions for call management and phone apps. Review your permissions, clean cache and force stop as a first resort.

---------- Post added at 06:29 AM ---------- Previous post was at 06:27 AM ----------

Yes, backup your data and internal storage, reinstall ota and factory reset. That may clear the bug.

---------- Post added at 06:38 AM ---------- Previous post was at 06:29 AM ----------

There's some good threads on XDA about how to port roms, use the search feature :o

---------- Post added at 06:53 AM ---------- Previous post was at 06:38 AM ----------

Search on the web, there's lots of sources to download from , but be aware of sketchy sites.
[Xiaomi Mi A1 Questions & Answers] technoatul10:
Check this out https://xdaforums.com/mi-a1/help/mi-a1-wont-charging-restart-charging-t3683437
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Yap, i can see there's some people with the charging issue. Did any of you reported the issue to Xiaomi?

Try a different rom and see if the problem persists. If you install a custom rom and encounter same charging problem as on factory one, then is no update bug, your phone has bigger issues, including hardware / battery failure.
[Xiaomi Mi A1 Questions & Answers] nazhungryy:
i got solution . if youre phone not charging just open the camera apps and swipe sensor upper sensor until the notification light turn on and its charging
[Xiaomi Mi A1 Questions & Answers] technoatul10:
What to swipe? I didn't get it
[Xiaomi Mi A1 Questions & Answers] nazhungryy:
just wipe your front facing sensor until the notification light turn on
[Xiaomi Mi A1 Questions & Answers] shafayetsabbir3:
I have a problem in my Mi a1.. I have install RR rom earlier & Set a Pin code with fingerprint.. So it always ask me My pin during every restart. bt when i delete all of my security settings it doesn't remove.. I have also tried by changing the pin bt i doesn't work my accept my current pin.. I had to use that pin which i used to lock my device for first time.. Please help me.
[Xiaomi Mi A1 Questions & Answers] mahanthv6:
Currently i am using RR rom (version 6.2). all the bank apps were working till i installed substratum now no bank apps are working . can anyone help me with this
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
You have an option in settings/security to deactivate pin during boot. Try to do that, plus deactivate screen lock password/pattern/pin and restart. If this doesn't work go in twrp go to Advanced, File manager and navigate to /data/system folder and delete 2 files that ends in ".key" (gatekeeper.password.key, gatekeeper.patterns.key) and the 3 files that contains the word "locksettings" in file name.

After you delete the files reboot your phone and you should be greeted by welcome screen without pass.

---------- Post added at 07:56 PM ---------- Previous post was at 07:52 PM ----------

@varben Congrats man for your new title. You deserve it :svetius:
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Thanks, I started just like you some years back... And here we are with some added responsibility!

Looking forward to see you mature here too and support the community! :)
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Sooner than later :angel:
[Xiaomi Mi A1 Questions & Answers] Mubaris:
I need help to flash my miA1
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
What do you want to flash? What's your phone state now, bootloop, stuck on boot, factory system, etc?
[Xiaomi Mi A1 Questions & Answers] Mubaris:
I tried to flash twrp but something went wrong..so i decided to flash stock rom but in both adb and mi flash tool saying that missmatched device and files.what should I do??
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Do you have an unlocked bootloader? I guess you do since you're trying to flash twrp... silly me :)

Are you 100% sure you downloaded the right Mi A1 rom? And how did you flashed twrp?
[Xiaomi Mi A1 Questions & Answers] Mubaris:
Yeah i have unlocked the bootloader for flashing twrp.and download the files from xda .i used adb for flashing twrp but failed
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
If you're stuck on boot, go to Xiaomi official and download the latest rom, unzip it in your computer, connect your phone in fastboot and run windows batch file "flash_all". This will wipe your internal storage and data. You can try to run "flash_all_except_storage" but i'm not sure if will preserve your internal. This should fix your boot problem.
[Xiaomi Mi A1 Questions & Answers] ChaithzLuci:
Will Mi A1 receive Android P update?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Yeap!
[Xiaomi Mi A1 Questions & Answers] chrztn:
I rooted by this method

https://xdaforums.com/mi-a1/how-to/root-mi-a1-oreo-8-0-disabling-ota-magisk-t3728654/page166

It says we should not make any changes to system. So what all can I do without making changes to system?

Can I use substratum without Andromeda

Can I apply any magisk module and still don't make any changes to the system?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
When you intalled magisk you already changed the system, so you may install anything you'll like, just be sure you know what you're doing... take it step by step, don't install everything at once. :good:

I personally uninstalled some of the system apps, got some adblocker modules, etc, so feel free to experiment but keep a full backup handy :cool:
[Xiaomi Mi A1 Questions & Answers] chrztn:
Thanks for helping. I still like to have some clarity - when ota comes now I can restore image and apply ota, so I was asking what changes applied will cease me from getting ota.can I use xposed and magisk modules as I like?:confused:
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Try this thread: https://xdaforums.com/mi-a1/how-to/guide-install-magisk-root-xposed-t3701009

OTA works with root and Magisk, not really sure if it works with xposed (i know xposed doesn't pass safetynet) but if we took this road is because we acknowledged that our privacy is more important than ota (my opinion)... Even so, you can download the latest official and flash it through twrp and preserve your data ?
[Xiaomi Mi A1 Questions & Answers] faddys123:
you found anything?
[Xiaomi Mi A1 Questions & Answers] ouroboros12:
I have the bug in almost all roms too. Currently using stock for better battery life. I'll try the new gsi as single boot next week
[Xiaomi Mi A1 Questions & Answers] Ashalby:
My device turns off after unplugging the power adapter . I have the same bug in every rom stock or custom .. Is it a hardware problem or some sort of safety ?
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
I never encountered this issue before. What was your phone state last time it worked normally? Was it stock One or unlocked, rooted, etc?
[Xiaomi Mi A1 Questions & Answers] Ashalby:
My phone is unlocked and rooted from the first day and i never noticed that problem until i installed LR pie and i thought that's a rom bug but it still turns off even when i returned to stock with unrooted and locked bootloader
[Xiaomi Mi A1 Questions & Answers] SnakeByte:
Looks to me that your battery was charging before you installed this rom. Didn't use it myself so i'm not sure how and what that rom changed. Did you tried to flash a clean factory rom, erasing absolutely everything?

If i remember right, few year ago we had a problem with Xperia Arc, i had that problem too, when we downgraded from Android 4 to Android 2 i think, and we got battery 0% never been able to charge again. Some of us end up replacing the mainboard, some ditched the phone because somehow that was a hardware related issue, yet after a long time our awesome devs came up with a patch for the battery issue which would show you 85% all the time, and be able to actually start it... so yap, this reminds me about those old times... i hope is nothing like that again.

Did you tried a custom kernel?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Which files? Ota update files? Or fastboot images?
[Xiaomi Mi A1 Questions & Answers] Maximaro:
which one is easier to use.

So for first i think Fastboot which i can get from here: https://drive.google.com/drive/folders/1dw87qgRNGxfj7UZduHK91LE6X1Xs7CWL

And OTA which is here, in xda thread: https://xdaforums.com/mi-a1/how-to/ota-xiaomi-mi-a1-ota-links-t3718542

and i just see that there is a twrp file new to it =)
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
For me fastboot images are the easiest to use with miflash tool.
[Xiaomi Mi A1 Questions & Answers] Maximaro:
yes i think also =)

now how to handle these files because when i open these, she looks totaly diffrent to the working one 8.1.10 =/
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Guide here, how to flash stock rom.

https://xdaforums.com/mi-a1/how-to/mi-a1-monthly-updates-t3750419
[Xiaomi Mi A1 Questions & Answers] Maximaro:
i allready know these but that isn´t what iam searching because it is not working with these files =(
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Then explain better what you want to do, because that's how you flash fastboot images.
[Xiaomi Mi A1 Questions & Answers] Maximaro:
then why i get these errors!?
[Xiaomi Mi A1 Questions & Answers] Lupin The Third:
Because in the path you are selecting there are spaces.

There shouldn't be any spaces in the whole path.

Try copying the folder with the fastboot image to a folder so the path can be without spaces..

Specifically, see the folder named "fail install ..." There's the glitch that miflash doesn't like.
[Xiaomi Mi A1 Questions & Answers] Maximaro:
Thx i mark me this for the future.

Just used twrp file and done =P but so far so good.
[Xiaomi Mi A1 Questions & Answers] mhdazhar:
Media volume level keeps getting muted after receiving a call or when playing whatsapp voicenotes or insta/facebook videos ..
[Xiaomi Mi A1 Questions & Answers] kentliu:
My phone screen shows "the system has been destroyed" after I lock the bootloader.. then I unlock it again and it back to normal..

how to get back to locked bootloader??

And I think my camera app is slower after I rooted my device and enable camera2 api, how can I fix it?