Sometimes when you flash a ROM, your phone doesn’t go beyond the boot animation. Once this happens there is no way to transfer the ROM flashable zip to your device. In situations like these, this method can be very useful. It is a very simple method and you’ll be able to flash the desired ROM using ADB.
- Android SDK (If you don’t have SDK installed just Download this ADB/fastboot zip file)
- Unlocked Bootloader.
- Rooted Device.
- Custom Recovery installed (Check: Guide to install Custom Recovery to a majority of Android devices)
- Flashable zip file of the desired ROM.
- Official device drivers installed.
- Navigate to the folder where you have the Android SDK installed. Usually “C:/Users/Username/android-sdk/platform-tools”. If you have downloaded the provided zip just unzip the file anywhere on the PC and navigate to that folder.
- Now press “shift + right click” and select “open command window here”.
- Once the cmd opens connect your device.
- Place the zip file of the ROM to be flashed in the same folder.
- Reboot your device into recovery mode.
- Go to “Mounts & Storage” and make sure that you can see “Unmount /sdcard/” and “Unmount /system/” (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount).
- Now connect your device to the PC.
- Once the phone is connected to the PC type “adb devices” in the cmd. If it returns a long alphanumeric string the phone is successfully connected in ADB mode.
- Now type “adb push ROM.zip /sdcard/ROM.zip” replace the word ROM with the exact name of the flashable zip.
- This may take a while so be patient.
- Once the process is complete you’ll see a message like <12345678kb to 1234567kb> on the cmd window.
- Now unplug the device.
- Go to the main screen of recovery and perform factory reset, wipe cache partition and then in advance menu wipe Dalvik cache.
- Now go to install zip from sdcard and choose the zip file you just transferred.
- Once the process is complete, reboot the device and enjoy the new ROM.