Help: press any key to shutdown in fastboot

Sep 17, 2015
31
4
0
Islamabad
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.

 
Last edited:

devcon69

Senior Member
Jul 20, 2012
378
351
0
Philippines
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.

reinstall adb drivers. https://androidfilehost.com/?fid=746010030569952951
try other usb ports
 
  • Like
Reactions: drmuruga

kamrul.auntu

Senior Member
Apr 16, 2011
297
24
0
Dhaka
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.

This is due to wired Kedacom Device Driver. No matter how many times you install drivers your PC will again install this bullshit. I was in this trap for a while and asked for recommendation but later on I figured out this issue and stop wasting time on this matter. I just did my job with laptop.

Please try with another PC preferable not Windows 10 machine. Hope this helps.
 

askpcguy

Senior Member
Aug 8, 2010
1,952
189
0
This is due to wired Kedacom Device Driver. No matter how many times you install drivers your PC will again install this bullshit. I was in this trap for a while and asked for recommendation but later on I figured out this issue and stop wasting time on this matter. I just did my job with laptop.

Please try with another PC preferable not Windows 10 machine. Hope this helps.
I am using Win 8 and still get the same behavior on my Mix 2s.

-edit When the phone is in Fasboot mode and connected to the Win 8 laptop running Mi-unlock tool, the phone instantly switches to "Press any key to shutdown" and looking in Device Manager, there is no Kedacom driver, just the Android Bootloader Interface
 
Last edited:

Patoilo

Senior Member
Mar 2, 2017
74
72
0
Lisbon
Mate, in most cases, this is the issue of MIUI Fastboot not being compatible with USB 3.0 ports. The solution is to use a USB 2.0 port instead or, in cases where you only have USB 3.0 ports, connect the device through a USB hub and you are good to go.
 

Little Grey

New member
Jul 4, 2018
2
0
0
Mate, in most cases, this is the issue of MIUI Fastboot not being compatible with USB 3.0 ports. The solution is to use a USB 2.0 port instead or, in cases where you only have USB 3.0 ports, connect the device through a USB hub and you are good to go.
In fact, I failed on my PC (wherever USB 2.0/3.0 ports), but successed with my laptop that only has USB 3.0 :p
 

JerryLF

New member
Mar 4, 2019
1
6
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
 

sharulhafiz

Member
May 11, 2020
5
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
nope, not working
 

galaktyk

New member
May 23, 2020
1
0
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thankyou it works :)
!!!!! for those who copy the text from the forum you have to remove space from "Contr ol" to "Control".
 

huuugy

New member
Jun 3, 2020
1
0
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
I registered to say thank you.
 

huynhovip

Member
Aug 28, 2017
26
0
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thank you very much, just remove space between Contr ol
 

mr.ghx

New member
Jul 12, 2020
1
0
0
My solution

Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.



Just try using a USB HUB, no matter the port. I worked wonders. The dumbest thing though. xD
 

Sidgup1998

Senior Member
Jan 11, 2020
333
52
28
Meerut
Edit: mobile Redmi note 5(china AI version)
When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.



Just try using a USB HUB, no matter the port. I worked wonders. The dumbest thing though. xD
Yeahh that seems to be the problem with either Usb 3.0 or Using Amd builds as they're not fastboot friendly.I have an amd 2500u apu, I was facing same problem using Usb hub solved that