fastboot getvar stuck - Xiaomi Mi 8 Questions & Answers

So I unlocked the bootloader for my Mi8, and now I'm trying to flash MIUI Global visa fastboot.
I'm running Linux and using USB2.0 with original cable and fastboot version 9.0.0_r30
When I type
Code:
fastboot devices
I can see that the phone is connected.
But when I try
Code:
fastboot getvar all
or any parameter for getvar , it just get stuck. By that I mean, the fastboot process hangs in there for a while and cannot be stopped with Crtl+C.
Also note that
Code:
fastboot oem device-info
works fine.
Another thing I noticed, when I repeate multiple instances of fastboot devices or oem device-info I get the 'press any key to shutdown'.
I'm not sure what is the problem. Any thoughts? I tried rebooting and changing USB ports but didn't help.

Bump

Related

Unlock OEM via ADB

Hi, so my Xiaomi MI A2 is kinda not working and I think that wiping cache partition might help but I can't access the recovery so I wanted to install TWRP. The thing is I have the boatloader locked, I have the USB depuration activated but not the OEM, so how can I unlock boatload or unlock OEM via fastboot?
Thanks
_08_ said:
Hi, so my Xiaomi MI A2 is kinda not working and I think that wiping cache partition might help but I can't access the recovery so I wanted to install TWRP. The thing is I have the boatloader locked, I have the USB depuration activated but not the OEM, so how can I unlock boatload or unlock OEM via fastboot?
Thanks
Click to expand...
Click to collapse
run "fastboot oem unlock" and "fastboot oem unlock_critical" see if its execute without error , then run " fastboot oem device-info" , let us know what the result.
shihabrumel said:
run "fastboot oem unlock" and "fastboot oem unlock_critical" see if its execute without error , then run " fastboot oem device-info" , let us know what the result.
Click to expand...
Click to collapse
It won't let me. It says:
my command: fastboot oem unlock System: FAILED (remote "flashing unlock is not allowed")
Fastboot: error: command failed.
Same with the critical. I also had an error trying another command, it said, not allowed in lock mode.
Actually, I'm trying other commands and it's the same error with all comands.
My Mi A2 was not booting
My mi a2 last updated to 19/04/05 pie version, then i install the Google camera using below steps..
1. Turn on debugging mode/oem & turn off the phone
2. Then power button+vol dwn Fastboot mode & connect to pc (Pc already have the adb)
3. In pc>adb>folder>Cmd> type "fastboot oem unlock"
4. Then factory reset the phone and reboot again to fastboot mode
5. Then boot the patched image for phone
6. Then install the magisk and gcam work perfectly.
Simply i used these methods
the***********.com/enable-camera2-api-xiaomi-mi-a2-lite-guide/
But then I tried to relock the bootloader, using below commands on cmd
1. "adb reboot-bootloader"
2."fastboot oem lock"
I tried these 2 commands 4 or 5 times
But phone is not power on with locked bootloader. Then I unlock again oem and try again,, But not working,
Then i unlock bootloader again and try these commands to lock it again,
1. "adb reboot-bootloader"
2."fastboot flashing lock"
3. "fastboot oem lock"
Unfortunately it is not work, also i can't give command "fastboot oem unlock", also i can't turn on my phone, Please help me... I want to restore my phone to working mode... Please help me, Quick, urgent :crying::crying::crying::crying:

Xiaomi MI A2 totally hard bricked

Hello, I installed Havoc OS on my MI A2, but then an update was requested, I did the update, but when I rebooted the device, it did not start, I went into fastboot mode and I reinstalled the havoc. "androidOne" screen and nothing happens, now I have to enter fastboot mode with the command "fastboot boot twrp.img" and the error "failed to load / authentication boot image" appears, I tried flashing the rom stock using the MiFlash, and the cell phone persists with the same error, now my cell phone is with the bootloader locked and I do not know what to do
gmoura5010 said:
Hello, I installed Havoc OS on my MI A2, but then an update was requested, I did the update, but when I rebooted the device, it did not start, I went into fastboot mode and I reinstalled the havoc. "androidOne" screen and nothing happens, now I have to enter fastboot mode with the command "fastboot boot twrp.img" and the error "failed to load / authentication boot image" appears, I tried flashing the rom stock using the MiFlash, and the cell phone persists with the same error, now my cell phone is with the bootloader locked and I do not know what to do
Click to expand...
Click to collapse
Hi
Enter to fastboot and try this:
open a cmd
fastboot devices
fastboot -w
fastboot getvar current-slot ( you can see it a or b)
fasboot set_active b
Then
Try boot into twrp etc
Have luck pal !!
rodrimx4 said:
Hi
Enter to fastboot and try this:
open a cmd
fastboot devices
fastboot -w
fastboot getvar current-slot ( you can see it a or b)
fasboot set_active b
Then
Try boot into twrp etc
Have luck pal !!
Click to expand...
Click to collapse
Thanks, I was able to repair after unlocking the bootloader again and then unlocking the critical parts, so I flashed a stock rom from August 2018, however didn't block the bootloader again.

Phone bootloop, FRP locked

Hi guys....the phone is bricked.. but it comes in bootloop only when is on charge or connected to a laptop... If it is disconnected from the previus solution it dont turn on. I can only enter in fastboot mode but adb dont find the device as the image attached...thanks for the solutions.
diablod said:
Hi guys....the phone is bricked.. but it comes in bootloop only when is on charge or connected to a laptop... If it is disconnected from the previus solution it dont turn on. I can only enter in fastboot mode but adb dont find the device as the image attached...thanks for the solutions.
Click to expand...
Click to collapse
In Fastboot you cannot use adb commands but fastboot commands like:
Code:
fastboot devices
PAUSE
fastboot oem get-bootinfo
PAUSE
fastboot oem get-psid
PAUSE
fastboot oem get_hwnff_ver
PAUSE
fastboot oem hwdog certify begin
PAUSE
fastboot oem get-product-model
PAUSE
fastboot oem get-build-number
PAUSE
fastboot oem oeminforead-SYSTEM_VERSION
PAUSE
fastboot getvar vendorcountry
PAUSE
REM fastboot getvar rescue_enter_recovery
PAUSE
fastboot reboot
Some will probably not work with BL and FRP locked.
Your best bet is DC Phoenix, they can even unlock FRP without entering to System.
Discuss with them in advance, to know how many credits you must buy:
https://www.dc-unlocker.com/DC-Phoenix-flash-repair-tutorial
Thanks you for the answer...but, I don't understand why the phon don't start if it is unplugged from laptop or charger... If it is plug in pc it came only in bootloop or fastboot ..
Help guys.... I have bought 15 credits from DC unlocking but my P9 is not supported... I receive this message...
Ask them for help, you must first unlock FRP and for that you have to use HCU client:
http://hcu-client.com/
I never had to use HCU Client but people reported that they bought credits at DC and used for both HCU and FRP
diablod said:
Hi guys... I want to unlock a bootloader of my p9. I have bought a credits from DC unlocking but it don't works because my phone is not supported.. are any others methods to unlock a bootloader?
My phone is bricked and start only in fastboot and rescue mode..
Thanks
Click to expand...
Click to collapse
There are:
https://funkyhuawei.club/
https://chimeratool.com/
https://ministryofsolutions.com/huawei-bootloader-unlock-paid-service-html
https://t.me/joinchat/MtyvC0TmAuRnwZ0cimIEag
Hi, did you manage to revive your p9? Im experiencing the same issue
I used test point. Search huawei p9 test point xda. It worked . All software are free. Only problem is that I can't get it's updates . I'm looking for a way to update to nougat. https://forum.xda-developers.com/p9/how-to/solution-dead-p9-bootloader-locked-fpr-t3997631/amp/
I bricked mine in a failed downgrade

stuck at fastboot mode

i was trying to install twrp in my rog 2 but while installing twrp from fastboot and adb i got stuck in fastboot mode and cannot boot into main OS PLEASE HELP ME
Check current slot and then switch to other slot and boot.
First try
fastboot devices (make sure your device is listed)
if it boots to fastboot again
fastboot getvar current-slot
fastboot --set-active=a or fastboot --set-active=b
fastboot reboot
rabunz1105 said:
Check current slot and then switch to other slot and boot.
First try
fastboot devices (make sure your device is listed)
if it boots to fastboot again
fastboot getvar current-slot
fastboot --set-active=a or fastboot --set-active=b
fastboot reboot
Click to expand...
Click to collapse
Have the same problem. Did all that you say but keeps restarting.
ED_STUFF said:
Have the same problem. Did all that you say but keeps restarting.
Click to expand...
Click to collapse
I had this problem, and I had to download the RAW firmware files and run the "flashall.bat" file through fastboot.
ED_STUFF said:
Have the same problem. Did all that you say but keeps restarting.
Click to expand...
Click to collapse
Did you manage to solve this issue? I have the same problem.
rabunz1105 said:
Check current slot and then switch to other slot and boot.
First try
fastboot devices (make sure your device is listed)
if it boots to fastboot again
fastboot getvar current-slot
fastboot --set-active=a or fastboot --set-active=b
fastboot reboot
Click to expand...
Click to collapse
I was in csc fastboot mode then i mistakenly did some fastboot adb commands from github rog phone 2(am having rog 3, works same) try those and you will get into fast boot mode from csc fastboot mode after than try above for any query contaact me on my mail [email protected]
Thanks xda love you
rabunz1105 said:
Check current slot and then switch to other slot and boot.
First try
fastboot devices (make sure your device is listed)
if it boots to fastboot again
fastboot getvar current-slot
fastboot --set-active=a or fastboot --set-active=b
fastboot reboot
Click to expand...
Click to collapse
Flash fastboot Raw firmware
My phone is stuck in a bootloop. Original firmware, rom, everything, not rooted, bootloader locked. It just restarted by itself randomly and has been stuck in a bootloop ever since. I've flashed raw firmware but it didn't help. Help please
shinnsan said:
My phone is stuck in a bootloop. Original firmware, rom, everything, not rooted, bootloader locked. It just restarted by itself randomly and has been stuck in a bootloop ever since. I've flashed raw firmware but it didn't help. Help please
Click to expand...
Click to collapse
Have you fixed your issue? if not, have you tried flashing both slots, _a and _b, using the same raw rom? use fastboot cmd's to set either slot_a or slot_b to active so you know you're flashing each slot

Relock the Bootloader?

I know asking this question at a very early point would be very foolish, I tried searching various places for the answer but didn't, can anyone from previous experience or with answer tell me how can the Bootloader be locked again?
Thanks in advance!
EDIT: Thanks to IDunnoLookatXDA The BL can be locked using
Code:
fastboot oem asus-lock
THEHOLYG0D said:
I know asking this question at a very early point would be very foolish, I tried searching various places for the answer but didn't, can anyone from previous experience or with answer tell me how can the Bootloader be locked again?
Thanks in advance!
Click to expand...
Click to collapse
Fastboot oem lock
bs3pro said:
Fastboot oem lock
Click to expand...
Click to collapse
Nope, I've tried all the asus specific and default fastboot commands:
Code:
fastboot oem asus-back
fastboot oem asus-csc_lk
fastboot flashing lock
fastboot flashing lock_critical
fastboot oem lock
fastboot oem lock_critical
fastboot flash !frp-partition! default_key.bin
None of this worked
THEHOLYG0D said:
Nope, I've tried all the asus specific and default fastboot commands:
Code:
fastboot oem asus-back
fastboot oem asus-csc_lk
fastboot flashing lock
fastboot flashing lock_critical
fastboot oem lock
fastboot oem lock_critical
fastboot flash !frp-partition! default_key.bin
None of this worked
Click to expand...
Click to collapse
oem asus-lock
IDunnoLookatXDA said:
oem asus-lock
Click to expand...
Click to collapse
Holy SH1T that actually worked
for beginners oem is no command
To lock the bootloader (or remove the annoying prompt you get at startup)
Code:
fastboot oem asus-lock
THEHOLYG0D said:
Holy SH1T that actually worked
for beginners oem is no command
To lock the bootloader (or remove the annoying prompt you get at startup)
Code:
fastboot oem asus-lock
Click to expand...
Click to collapse
This does not work for me. This is what I get from the cmd prompt:
C:\Users\uli13>fastboot oem asus-lock
...
FAILED (remote: Command not supported in default implementation)
finished. total time: 0.004s
Please help
I've sent the device back because of Display issues, and no longer own it.
But what I understood from your response and suggest you is:
Turn off the device and put it in fastboot mode, then issue the above command and it should work. Hope it helps
THEHOLYG0D said:
Nope, I've tried all the asus specific and default fastboot commands:
Code:
fastboot oem asus-back
fastboot oem asus-csc_lk
fastboot flashing lock
fastboot flashing lock_critical
fastboot oem lock
fastboot oem lock_critical
fastboot flash !frp-partition! default_key.bin
None of this worked
Click to expand...
Click to collapse
fastboot oem asus-csc_lk worked for me after that wipe data

Categories

Resources