yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] mauronofrio:
This is the Xiaomi Mi A2's TOOL ALL IN ONE Discussion Thread more info and download go to the Original Thread

TOOL ALL IN ONE

[IMG="TOOL ALL IN ONE screen"]https://i.postimg.cc/d0yxFd77/Toolaio-V2-main.png[/IMG]

ADVANCED OPTIONS

[IMG="Advanced Options screen"]https://i.postimg.cc/bwd564p9/Toolaio-V2-advanced.png[/IMG]

FUNCTIONS

Install Drivers

Install Drivers

Unlock Bootloader

Lock Bootloader (use carefully)

Flash TWRP Recovery

Flash Stock Recovery

Flash Stock Factory Image

Automatic ROOT

Install APKs

Uninstall APKs

Take a Screenshot

Take a Screen Reocrd

Flash Partitions

Erase All Data (This function can decrypt the phone)

Reboot Phone

Update the Tool to latest version

Update Adb and Fastboot to latest version

Set Adb and Fastboot priviliges in system wide

Install Zip directly from PC (Required TWRP on phone)(These functions work perfectly on my pc but i have perfect adb drivers on my pc and perfect TWRP on my phone)

Flash Fastboot ROM

Delete downloaded files

ADB File Manager

DEVICE LIST

If you want you can send a request to add a new device here:

New Device Request Form

Device List

DOWNLOAD

Original Thread

DONATE LINK

If you want to support the project please consider making a donation, thanks.

[IMG="Donate link"]https://s31.postimg.org/srcv48myj/paypal.png[/IMG]​
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] rodrimx4:
Thanks ! I used this tool in my zuk z2 pro and is fantastic
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] GK_NL:
Is it possible to used it for enabling cam2api?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] mauronofrio:
Unfortunately no
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Kaito Akimoto:
help

when i try to flash a recovery (booting a recovery) the name of files change to strange things like "1ZHqTVOIAgWdUqtIh5WLxD" or "c0kpXH7r0OESNfLgZQCsOZboc0TkvtiKKwOeEAVAp3H", not letting me flash anything.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] mauronofrio:
It's because actually decryption is not working in the twrp
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
This is the Xiaomi Mi A2 Lite's TOOL ALL IN ONE Discussion Thread more info and download go to the Original Thread

TOOL ALL IN ONE

[IMG="TOOL ALL IN ONE screen"]https://i.postimg.cc/d0yxFd77/Toolaio-V2-main.png[/IMG]

ADVANCED OPTIONS

[IMG="Advanced Options screen"]https://i.postimg.cc/bwd564p9/Toolaio-V2-advanced.png[/IMG]

FUNCTIONS

Install Drivers

Install Drivers

Unlock Bootloader

Lock Bootloader (use carefully)

Flash TWRP Recovery

Flash Stock Recovery

Flash Stock Factory Image

Automatic ROOT

Install APKs

Uninstall APKs

Take a Screenshot

Take a Screen Reocrd

Flash Partitions

Erase All Data (This function can decrypt the phone)

Reboot Phone

Update the Tool to latest version

Update Adb and Fastboot to latest version

Set Adb and Fastboot priviliges in system wide

Install Zip directly from PC (Required TWRP on phone)(These functions work perfectly on my pc but i have perfect adb drivers on my pc and perfect TWRP on my phone)

Flash Fastboot ROM

Delete downloaded files

ADB File Manager

DEVICE LIST

If you want you can send a request to add a new device here:

New Device Request Form

Device List

DOWNLOAD

Original Thread

DONATE LINK

If you want to support the project please consider making a donation, thanks.

[IMG="Donate link"]https://s31.postimg.org/srcv48myj/paypal.png[/IMG]​
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mumith3:
Yay ^_^ Thanks for the efforts Respected devs. Hope it makes life way easier for people here at the community ^_^
[Xiaomi Mi A2 Lite Guides, News, & Discussion] machine1104:
unlock bootloader and root still delete all of my files right?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
Yes
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Tigris92:
Xiaomi Mi A2 Lite got messed up

Hi there!

I have just received my new Xiaomi Mi A2 Lite phone and wanted to pass all of my data from my old phone to it in a way that it was required to be rooted.

KingRoot didn't work on this new phone, so I unlocked bootloader and tried to install TWRP recovery on my phone.

Installing to the recovery partition did not work. I searched the error it gave me and found a thread saying that flashing it to the boot partition worked for them. So I did. Next thing that happened is that my phone did not boot into the OS (operating system) ever again. It only booted TWRP.

I have since been able to remove TWRP (though I made a back up of it) but the phone still stays on just the loading part before going to the OS.

I have since been able to get back the fastboot and stock recovery, but the phone will not start into the OS anymore.

How can I fix this?

I have been searching for ways to restore my android to the 8.1 Oreo version that it was.

Can I do it with this Tool All In One? Please help! Thank you in advance!! Much appreciated!!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] chillout23:
hello

i have unlocked bootloader and wait for TWRP and want to root my phone.

Can I flash TWRP and root with this tool easy? And will I lost all data if do that?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
If you need to flash twrp and root.no, you will not lose data
[Xiaomi Mi A2 Lite Guides, News, & Discussion] chillout23:
Ok. Thank you very much for answer :)

Then will try :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] hossman:
I would suggest using the root method mentioned here

https://xdaforums.com/mi-a2-lite/how-to/guide-install-magisk-proper-support-ota-t3836952

Twrp does not have good results for most people.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] chillout23:
With this method I will lost all data on my phone and I do not want to setup phone 1 more time. Twice was just enough :)

I know that already but thank you anyway
[Xiaomi Mi A2 Lite Guides, News, & Discussion] hossman:
If your bootloader is unlocked, you should not lose any data just installing magisk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] chillout23:
Yes...my fault. My BL is unlocked already.

But I posted in that thread...because of some reason does not work. But this is not thread about it :)

Thanks for help
[Xiaomi Mi A2 Lite Guides, News, & Discussion] chillout23:
So...Installed TWRP but does not recognize anything in internal storage. Not recognize SD card.

When boot again to TWRP goes to "something"...some kind of empty stock recovery with android logo and nothing more.

Oh man...that will be interesting ride...to put TWRP or root device :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] uptowner:
Because your not supposed to install the twrp image just boot from it and if you do install it then you have to flash the original boot image for which ever 8.1 update your on to get rid of it.

This is explained on the team win page for daisy wish i had read that first after re flashing my os twice and boot image once trying to install this am just using the phone as is for now until i get the urge to try again
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
This tool can only boot the recovery or can boot the recovery and automatic flash the installer, i'm not udnerstanding which is the problem
[Xiaomi Mi A2 Lite Guides, News, & Discussion] chillout23:
Installed TWRP image. I know what is .img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] uptowner:
:o oops sorry i should check what thread this is before trying to answer a question i blame alcohol .

Thing is there are posts out on the net that advices people with the a2 lite to install the twrp image to their inactive slot and not to just boot it and that's where things seem to start going wrong.

This has absolutely nothing to do with this tool and sorry i just dived in here and confused people.

maybe some kind passing mod will get rid of the post apologies again
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Le Spatula:
Hi, I bought this device one weeks ago. I wanna flash new android pie OTA update. I dont know how to use this program exactly and I dont wanna lose my data and deal with brick risk.

I understood only one thing from other websites:I must use sideload method .Can someone guide me?Actually I have experience from my old devices(Note 4, Lg optimus, Xperia P) but this is new. I dont wanna broke it immediately .XD.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Read the op follow it exactly how it says if u don't know something research it.i have root with no problems if u do as the op says u shouldn't have no problems
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Will this work on pie at all?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] antimatter.web:
Same question
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
I'm unable to test personally the tool on pie, but there are not reason it will not work.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
I'll try to test when I get to work..I'll let u know if it does let's hope I don't brick nothing.lol
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Any advice would be great I'm planning on just adb side loading the image patch.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
To sideload the patch you can use the sideload option that you can find in advanced options
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
That's exactlyy plan lol
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Seems like Im having a driver issue I'll keep messing with it.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauryxyo:
i've tried this tool after the update to pie that is full of bugs and i can't even connect to wifi so after a few hours from the first boot of the phone i have to start modding because the ''stabe version'' from google is simply useless! so whit this tool now i've only unlocked the bootloader but flashing recovery and root doesn't work
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
The best tools are your hands and common sense. Inside this forum you can find all infos needed to do it all yourself step by step.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mauronofrio:
Can you explain the problem you got? Maybe is an adb driver problem
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Birthdayb0y:
I tried to unlock the bootloader but as soon as I try to reboot info system it shows me a warning for a few seconds saying the device can't be trusted and then it goes into bootloop. I tried re-locking the bootloader and it reset itself. What's wrong with my device? :( Can anyone help?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Voodoojonny:
have you tried to unlock your bootloader via fastboot. It´s quite simple. Just type in cmd

fastboot oem unlock
[Xiaomi Mi A2 Lite Guides, News, & Discussion] capajga:
Did you click on trust this device on your PC?

When I first plugged my device with USB debuging enabled I got a notification from my system (I'm using Win 10)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Birthdayb0y:
Yes I have done the procedure via fastboot. I gave the command, it gave the the screen with the splash screen with "unlocked" on the bottom but then it gave me the warning saying the device can't be trusted and then the Android one animation goes into bootloop

---------- Post added at 11:05 AM ---------- Previous post was at 11:04 AM ----------

It didn't ask me to trust the PC, the PC isn't the problem though, I can give commands to the phone without any issues via fastboot but it just refuses to boot into system once I unlocked the bootloader for some reason. I'm on Android Pie on the MiA2 lite if it can help give some more info, on the latest update
[Xiaomi Mi A2 Lite Guides, News, & Discussion] capajga:
When you unlock the bootloader the data is lost and sometimes it takes around 5 minutes or more to boot in the system ( at least thats how it was in my case )

You can try and wait for 5-10 minutes to see if it finaly boots or in the worst case scenario flash stock Pie again
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Birthdayb0y:
I know but it didn't boot into system at all. It went from warning message info bootanimation back to warning and into boot animation again and again and again. I'll try and do it again and see how it goes on Wednesday cause I am away now. But thanks for the information!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Birthdayb0y:
This is the image that appeared by the way and from here if just goes into bootloop
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Voodoojonny:
But that looks fine! That´s how the unlocked start sceen looks like. Now you can flash any stock rom you want.

If you want to stay with stock:

1) Download the latest fastboot rom from here and extract it

2) go to fastboot: pwr + vol- pressed as long as you can see the fastboot screen

3) download latest miflash and extract it somewhere

4) download fastboot and adb and install it

5) go to fastboot folder (where you installed it) press shift and right mousebutton -> "open power shell window here"

6) type into powershell the following command

./fastboot oem edl

7) run miflashtool and select "clear all" -> all your data is lost (problem is, if you don´t wipe, you may stay in bootloop) and select the folder you extracted the fastboot rom

8) press flash. When you get "success", unplug your phone and press pwr for more than 10sec.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Birthdayb0y:
Alright I'll try to do that as soon as I can, thanks a lot! The problem is that I don't think the bootloop I encountered after is that normal lol
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Zilath:
Hi,

is Miflash the only procedure to get out bootlloop?

My A2 lite too is in bootloop.

I successfully unlocked bootloader and flash TWRP.

After that phone boot correctly but asked me for a Pin to unlock home. As I set a pin to unlock I try enter my usual pin but phone say me it was uncorrect.

After a few trials with different pin I thought to do a factory reset doing a Wipe in recovery mode but after that phone entered in bootloop.

Now I still manage to enter in TWRP and I would reinstall stock rom but I'm afraid to not know correct procedure.

Please, could someone tell me which is safer procedure: Miflash or I could use Tool all in one? or TWRP ?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Voodoojonny:
Ok, seems that you broke encryption by formatting data via twrp.

There are two possible ways to get your phone fixed:

1. Disable force encryption:

- Install this via twrp

2. Factory reset with stock recovery:

- Download fastboot image of your stock rom (which you have installed)

- extract it and under "folders" you can find "boot.img" -> copy it to your fastboot folder

- reboot to bootloader and type in

fastboot flash boot boot.img

and

fastboot reboot

and keep vol+ holding wile hitting enter

- if you see "no command" press vol+ and pwr until you see recovery options (always pressing short and together)

- wipe data - factory reset -> reboot -> now it should rebuid your encryption

In general:

If you have the problem with not working pin, just reboot to twrp and go to filemanager

-> go to /data/system/ and delete all files with "locksettings" in the filename

=> that removes all the locksettings incl. your pin!

Good Luck!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Zilath:
Many thank for your suggestions but as I could get rid of phone data, I decide upon flash a stock firmware with Miflash.

Luckly everything went well.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Andrew.kathy:
Do i just click the unlock bootloader ? that easy?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] GNDawg:
Can't install TWRP.

I've installed TWRP with this tool and with adb sideload manually, but when I boot to recovery, it boots to "MI-Recovery 3.0" instead of TWRP. I can boot to TWRP, but it doesn't install permanently.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] SubwayChamp:
You have to boot to TWRP first and if you want that it won't be replaced then you have to flash the TWRP installer while you are in TWRP not through fastboot nor this tool.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] GNDawg:
Bigger problem :(

I was going to do that, but then TWRP touch screen stopped working, since I saw it was a "common" problem, I was going to try locking and unlocking the device again, but now I can't unlock the device. First of all, it already came unlocked (brand new, in the box, which is strange), now it doesn't unlock with fastboot, it gives me "Token verification failed" and with Mi Unlock it says the account is not bound to the device, but I can't turn on the device because I don't have an OS installed anymore, I erased it when I was trying to install another Rom. I'm all day trying to figure this out.

Some other info:

fastboot getvar product

(bootloader) Device tampered: false

(bootloader) Device unlocked: false

(bootloader) Device critical unlocked: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

OKAY [ 0.306s]

finished. total time: 0.307s

fastboot getvar product

product: sakura

fastboot getvar version-bootloader

version-bootloader: MSM8953_DAISY1.0_20181019193735

Does "sakura" mean the device is a Redmi 6 Pro instead of a Mi A2 Lite? Because it actually came with Android One, but it has Mi Recovery and it was already unlocked when I first turned it on.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] SubwayChamp:
Yes, it looks like a Redmi 6 Pro with some AOSP/vanilla rom flashed.

First of all you have to check bootloader status before to proceed so there are too some devices that are sold unlocked from the sellers to put on them global versions but this looks like a second hand based on your comments..

Now that you locked you can´t unlock it at the same way that Mi A 2 Lite so devices running Miui out of the box have other procedure basically, bind an account and use MiFlash Unlock tool to unlock them.

You can go here https://www.imei.info put your IMEI and you will have your real model just to be sure.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] GNDawg:
The bootloader is locked, I've checked it with the ALL IN ONE tool, before I locked it it said that is was unlocked, then I locked it through the same tool and now it says it is locked.

I can't go to the android system, I don't have any OS installed, so I don't know how to bind an account, there is now way since I don't have a system installed in the phone and can't go to settings and do all the steps they ask. Man, I'm so frustrated, this phone got here today, I would send it back for refund if I knew it was second handed but now that I can't even install an os in it so im pretty much f*&%ed.

I tried using the IMEI from the box, which is a Mi A2 Lite box, so obviously the site said the IMEI was from a Mi A2 Lite, but I don't know how to get the phone's IMEI, since it probably isn't even from that box. I've tried through fastboot:

fastboot oem get-psid

...

FAILED (remote: unknown command)

finished. total time: 0.006s

I'm so frustrated man, damn. Thank you for your help in advance, appreciate it a lot!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] SubwayChamp:
OK, I ever take note on a safe place of my IMEI given from device itself and then compare with the other on the box so assumed this.

Probably you can try with fastboot getvar imei

The idea behind to know your exact model is to flash the right firmware using MiFlash tool if not through fastboot then in download mode.

If you have access to Mi Recovery 3.0 used exclusively for Xiaomi devices running Miui and not the standard recovery then most likely is aRedmi 6 Pro and also this lead to other option to recover your device through this tool that can sideload official firmware through Mi Recovery 3.0 https://www.xiaomitool.com/
[Xiaomi Mi A2 Lite Guides, News, & Discussion] GNDawg:
So, with this command you gave. tried it twice, no sucess:

fastboot getvar imei

imei:

finished. total time: 0.007s

fastboot getvar imei

imei:

finished. total time: 0.002s

So I've downloaded XiaomiTool and XiaomiTool V2, and no sucess in both of them. In the first version, it waits do find a usb debugging enabled device, which I can't enable because there's no os. In V2, there are two options: "My device works normally, I want to mod it." and "My device is bricked. I want to unbrick it". If i click to unbrick it, it just pops up saying "Feature not available yet.". And the first option does the same as the first tool, it looks for a usb debugging device. So no sucess in these too.

In the Mi-Recovery 3.0 menu, there's a "Connect with MiAssistant", when I click it, it says to connect to USB and below it has a link: "pcsuite.mi.com"

I've entered it and downloaded the Mi PC Suite app. In the app, when click to connect the device and go to the "Connect with MiAssistant" the PC recognizes it, but the app doesn't. When I go to fastboot mode, the app says "Try connect in normal mode then switch". It probably means to boot to the os, which I can't do.

I think I'll burn the phone and sell the metals. :(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] GNDawg:
So, some more information, when I use fastboot flashing unlock:

fastboot flashing unlock

...

FAILED (remote: unknown command)

finished. total time: 0.004s

fastboot flashing lock

...

FAILED (remote: unknown command)

finished. total time: 0.005s

fastboot flashing unlock_critical

...

FAILED (remote: unknown command)

finished. total time: 0.007s

fastboot flashing get_unlock_ability

...

FAILED (remote: unknown command)

finished. total time: 0.007s

So the option "flashing" isn't recognized by the phone at all I guess, I guess (that's why it's written "remote" before the error, right?)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] SubwayChamp:
NO, unfortunately in this condition any of the fastboot commands will work nor this tool so the option USB debugging was probably disabled when you relock bootloader again.

This tool needs that USB debugging is enabled and for fastboot commands for sensitive partitions and to flash some image you need that OEM unlock is enabled.

At this stage you have two ways in my point of view:

- Claim to the seller that according your comments was totally dishonest selling you a model instead of other, despite the price and the specs between both are similar but this lead you to this frustrating situation.

- Use Test Point method to force device to enter to download mode and flash the latest firmware for Redmi 6 Pro through MiFlash Tool cause in bootloader/fastboot mode won´t work.

I used in some devices (Mi Max, Redmi 5 Plus) here a reference about it https://www.androidbrick.com/xiaomi-redmi-6-pro-test-points/
[Xiaomi Mi A2 Lite Guides, News, & Discussion] GNDawg:
Man, you know what is strange? Everything in the box, including the phone, looks brand new, the charger is wrapped around plastic, exactly like new, there's no evidence at all that this phone is used. So, did Xiaomi do this, like, faked the phone?

I'll talk to the seller, I can't thank you enough for your attention, man! You really helped me, is there any way I could make a small donation for you? I can't think of any other way to thank you. Anyways, thank you so much! :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] SubwayChamp:
It´s really strange, only comes to mind that a kind of a large distributor place their products to other small sellers like who sold you but according the firmware that doesn´t match with the product device looks like was tampered, of course it could be possible that Xiaomi flashed an incorrect firmware but again this is very hard to think of.

Really apreciate, don´t care about donation, just solve your issue and have a nice day.