Originally Posted by jcrinji
Wanted MIUI V5 on my Nexus 4 and tried doing it through unlock and root. Now I have apparently unlocked and rooted I can't boot into Android (stays on the X animation for >10 minutes) and I can't factory reset through recovery.
After installing the Android SDK I tried to unlock through fastboot.exe using the command "fastboot oem unlock" (from here http://www.youtube.com/watch?v=ywaMf29yExQ
). It unlocked, I installed a recovery menu using the command "fastboot flash recovery openrecovery-twrp-188.8.131.52-mako.img" and when I booted into it it asked for a password. I used my phone pin but it didn't work so I just skipped it.
After this the phone wouldn't get past the X animation when trying to load the OS so I tried using the Nexus 4 toolkit (from http://forum.xda-developers.com/show....php?t=1995688
) to install stock android 4.2.2 and it didn't work.
This is my first time into Android DIY so please avoid getting too complicated.
Follow the directions in the guide at http://forum.xda-developers.com/show....php?t=2266654
. I would recommend TWRP 2.5.0. You will need to transfer the MIUI ROM and Gapps files to the Nexus internal storage using adb. Download the ROM and Gapps at http://forum.xda-developers.com/show....php?t=2327158
. Boot your phone into recovery, connect the USB cable from the Nexus to your computer, and transfer the ROM and Gapps files from a command prompt opened on your computer in the folder on where you have installed adb and fastboot using the command "adb push mako_miui_3.8.23_Stock+r165.zip /sdcard/mako_miui_3.8.23_Stock+r165.zip" and "adb push ROM.zip /sdcard/ROM.zip" followed by "adb push GAPPS+EXTRAS_V2.zip /sdcard/GAPPS+EXTRAS_V2.zip". Finally, use TWRP to wipe the system, install miui_3.8.23_Stock+r165.zip followed by GAPPS+EXTRAS_V2.zip, clear the cache and Dalvik cache, and reboot the phone.
ROM • Gravity|Z
KERNEL • Matrix 11.5
RADIO • 2.0.1700.84
RECOVERY • TWRP 184.108.40.206