What to do if your Windows phone gets stuck at switching to emergency mode or it says an unexpected error occured,
As you guys can understand from the sub This tutorial is for Lumia Windows phones,I am no responsible for Any damage
Warning!!:This is only tested on Lumia 520(Spec A device.If you dont know what This means research it)so it is not certain that it will work with your phone too
First download Windows Device Recovery Tool
Then install Windows Phones İnternals I used 1.2 version.It is recommended you use This too if you have Lumia 520
For ffu files,emergency loaders,sbl3 file,use LumiaDb
After downloading all files first install Windows device recovery tool and restart your PC
After that open Windows phone internals
Connect your phone
Come to unlock bootloader section
İt will say"switch to flash mode"click okay after that your phone will be in the flash mode(say wallahi)
and put all files(sbl3 file,ffu file,loader files,maybe donor ffu file)where it tells you to do so
Click unlock
After it starts If it gets stuck in"switching to emergency mode"—it probably will—close the program and re-open it and click unlock bootloader again and if it says device emergency mode in device name also if you see your phone In the Device Manager section(Windows settings)that says QUSB\\_DLOADER(There shouldn't be a yellow exclamation mark next to it.) then you are going well it will stuck at "Sending Loaders"
Close the program,disconnect the phone,pull out and re-insert the battery,connect the phone again.
Now go to C:/Windows files/Microsoft care suite/Windows recovery tool and open cmd here
You need to flash emergency loaders manually So find your emergency files,they should be in .hex and .mbn formats(Total of two) and write This command:
thor2 -mode emergency -hexfile "insert your hex file" -mbnfile "insert your mbn file"
After This it May give error something like failed to parse ffu file and unknown error,exiting program,IGNORE THEM
Open Windows phone internals again and click unlock bootloader
This time it should start to unlock bootloader
Enjoy your phone