urgent help needed.. - Xiaomi Mi A1 Questions & Answers

i got stuck in boot loop while flashing stock rom with mi flash tool.
i forgot to backup. i am on partition b. help me to get back on partition a
:crying::crying::crying::crying:

Command on PC should be:
"fastboot set_active a" or "fastboot set_active b"
To check your current slot type:
fastboot getvar current-slot

If you are flashing via Mi Flash and don't disturb the process in the middle, the slot doesn't really matter. Because Mi flash will flash both slots with same version during the process.

Related

Trying to flash stock on nexus 6p command prompt not recognizing commands

I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
1) Is this on Windows, Linux, or Mac?
2) Were you able to unlock the bootloader on this same computer with no issues?
3) Are you getting this error after each fastboot command or just for "fastboot flash vendor"? If this is an error for any command, you should first update your platform-tools and fastboot.
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
Do you have the correct drivers and sdk files installed on your pc listed here? http://developer.android.com/sdk/index.html#download
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
You need to setup Android SDK tools on your PC. The generic process is by downloading, installing, and setting up the Android SDK. Once that is done, you should be good to go.

MI A1 stuck at MIFlash

hi guys, today i'll install a custom ROM on my MI A1..
i've flashed Nougat official ROM with MIflash and the command flash_all (so with internal storage too)..
but now my phone still on fastboot mode and miflash is stucked at "fastboot -s (serial num) set active_a" from 1707s
why this happenned? unlocked bootloader with oem unlock, never had a problem like that with MIflash and i don't know how to continue....
I had this problem too with nougat, you can write in CMD this commands:
fastboot set_active a
fastboot reboot
Or just reboot your phone. It's a problem with miflash and nougat rom
You can view the same problem here
http://en.miui.com/thread-1433616-1-1.html
mihailrusia said:
I had this problem too with nougat, you can write in CMD this commands:
fastboot set_active a
fastboot reboot
Or just reboot your phone. It's a problem with miflash and nougat rom
You can view the same problem here
http://en.miui.com/thread-1433616-1-1.html
Click to expand...
Click to collapse
thanks, just unplugged and rebooted the phone:good:

switch boot partition for ota update

I have a rooted a1 with android 7 (no magisk or twrp).
I want to do an OTA update to Oreo.
I was looking for the command to boot from other partition which is unrooted to perform the update.
can anybody please point me to the command to switch partitions, if possible directly from phone without a pc
thx
Not sure that would work, I recommend flashing clean and rooting with Magisk to keep the ability to OTA.
If you want to try, the command on PC would be:
Code:
fastboot set_active slot
Replace slot with a or b, the opposite of your current slot. You can find out with:
Code:
fastboot getvar current-slot

Boot partition corrupted? Phone boots into bootloader

Ocasionally (approximately 1 out of 10 times) when I reboot my phone, I end up in the bootloader.
Whatever I do, I cannot reboot my phone at that point.
It looks like the boot_a or boot_b get corrupted ocasionally.
Then only thing which then helps is to do:
Code:
fastboot flash boot_a boot.img
fastboot reboot
Anybody has experience this? Any idea what might be causing it?
It happend both when I reboot my phone normally or when I do "adb reboot" from a command shell.
I am rooted, running beta4, but I debloated beta4 a bit.
I did some further experiments:
Make sure that both _a and _b partitions are exactly the same.
When the problem happens, I can do:
fastboot set_active a ... or
fastboot sec_active b
then:
fastboot continue
and the phone will boot normally. I checked the boot_a and boot_b and the are the same; so the boot_a/b partition is not corrupted.
But it seems the device has "lost" its active_slot ... for some weird reason.

can‘t install or boot images on Oneplus 6t

Hi! My goal is to install twrp recovery on my Oneplus 6t but when i flash it with the command fastboot flash boot twrp.img it does just boot into fastboot mode and the OS is deleted. i can’t use the command fastboot flash recovery twrp.img because i believe i have an A/B Partitioned device because everytime i use this command it says soemthing like: can’t find recovery_a. I can‘t use the command fastboot boot twrp.img because everytime i use this command the phone is stuck on the fastboot splash screen. I need help!
You should flash a fastboot rom of your device to fix this problem
The command is fastboot boot twrp.img. You can only boot it not flash it from fastboot. Once In twrp you can make it permanent in the settings

Categories

Resources