Error while flashing the raw file
Hello ! I've tried to unlock bootloader at first and succeeded in that when i was on the lollipop . Unlocking is done by the unlock tool provided by the ASUS Officials.
Then i flashed the cynogen 12.1 unofficial via a boot.img , atwrp v3.img & a system.img.
Everything was fine until i needed to revert back to stock firmware.
And also everytime when i try to boot into recovery via Power & volume (-) button , it boots into system.
I used "adb reboot recovery" to boot into twrp recovery .
So, to revert back i saw a method in which we flash a raw firmware , and i downloaded a 4.0.3 for Asus Zenfone 4.
But after flashing it , the bootloader i unlocked , got locked by itself (means i can open droid boot but cannot modify boot and recovery partition via "fastboot flash boot boot.img" & "fastboot flash recovery recovery.img" ).
I can only flash system via " fastboot flash system system.img".
I tried to unlock it on Jelly Bean but no success.
Also i tried updating the firmawre via OTA and flashing zip in recovery mode but i was not able to boot into recovery mode, even with "adb reboot recovery".
It always ends up with a reboot , then booting into a 'Android logo for 200 to 300 millisec' , & then boot into system.
Then i found a KitKat firmware raw file , but when i flashed it via AFT 1.0.0.0 , it always gives error "no space left for flashing modem binary".
I tried "fastboot erase data" ,"fastboot erase userdata" ,"fastboot erase cache" , & "fastboot erase system" , but ended up with stock rom with no modem binary.
So , i tried to unlock the bootloader again by the "unlock tool" provided by ASUS , but even after connected to a high speed Wifi , It gives connection error and rest of the other things are working fine like browser etc.
I also tried to flash the modem.zip inside the stock firmware zip via fastboot as : "fastboot flash update modem.zip. It has flashed the zip but still no modem binary.
Then i tried to flash the bin file inside the modem.zip as : fastboot flash radio radio_firmware.bin and it gives error : No space left for flashing modem binary.
Now i have a bootloader (locked) but no recovery and a stock firmware with no modem binary.