Tag Archives: Custom Rom

Resurrecting Soft Bricked Moto E

So I had a Moto E that was showing weird issues. Sometimes when it’s rebooted it stucks in bootloop and fails to finish the boot sequence. The home screen just doesn’t appear. I manage to flash a fresh ROM on it and after which it starts to work. I haven’t been able to identify the problem yet, but the turnaround is working good as of now. So I just want to document the process of fixing the soft bricked Moto E:

Please note that this is just a documentation of the process I followed to fix my Moto E. This is by no means an accurate or official guide to fix your Moto E. If you do mess up your phone trying to follow this documentation, you can't blame me.

The simple procedure for a fresh Moto E is to first unlock the bootloader of Moto E. Which is a simple one time process which includes using the following command in fastboot mode: fastboot oem get_unlock_data. The unlock is complete when you enter a code on Motorola website and they give you a return string to unlock it. The guide is here.

Once the phone is unlocked its time to flash a custom recovery. This is done by downloading the TWRP recovery for Moto E here:  http://d-h.st/1Zp.

And then booting the phone in fastboot mode and sending following command:

fastboot flash recovery moto_e_twrp2.7.0.0_v1.2.img

Once the recovery is flashed you can reboot in recovery mode manually or by following command:

fastboot reboot

From recovery mode you can do all sorts of things like clearing out the cache (which sometimes fixes issues), and going into adb sideload mode. From this sideload mode, you can send sideload commands which can be used to install a custom ROM. The custom ROM for Moto E can be downloaded from below link: http://forum.xda-developers.com/moto-e/development/rom-stock-motorola-lollipop-rom-t3167111. (The one which worked for me was: Retail Dual-SIM (Asia | World) 5.1 ROM (Optimized) v1.1 (287mb) Deodexed).

This ROM can be sideloaded by going into the sideload mode and sending following command:

adb sideload "I:\Moto E\XT1022_Retail_DualSim_51_Optimized_v1.1.zip"

After the above command, it will take some time and progress can be viewed on phone. Once that’s done you can reboot the device and the phone should start. First run takes a lot of times since it “optimizes” the app etc.

This ends the procedure. If you want to recreate all partitions from scratch, you may try to follow the following guide of flashing the stock firmware: http://forum.xda-developers.com/showthread.php?t=2759495.

The above guide tells to download the stock firmware from following location:


(I choose XT1022_CONDOR_RETAILDSDS_5.1_LPCS23.13-34.8-3_cid7 (Newer Build))

To flash the stock firmware the above guide says to follow the below series of commands:

fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot.exe flash system system.img_sparsechunk.0
fastboot.exe flash system system.img_sparsechunk.1
fastboot.exe flash system system.img_sparsechunk.2
fastboot.exe flash system system.img_sparsechunk.3
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1 
fastboot erase modemst2 
fastboot flash fsg fsg.mbn
fastboot erase cache 
fastboot erase userdata 
fastboot reboot

I had to still try to flash the custom ROM instead of stock firmware to get my Moto E to successfully boot.

Installing Ubuntu Touch on your rooted Nexus 7

If you haven’t rooted your Nexus 7 yet, you can follow my previous post and do that easily. This guide assumes you have connected your device with your PC and can use ADB to push commands over to your device. If this doesn’t make any sense, read my previous guide.

In this post I am about to write how can you easily install Ubuntu Touch on your Nexus 7. Before we do that, you can read this article on why shouldn’t install Ubuntu Touch: 4 Reasons Why You Shouldn’t Install Ubuntu Touch on Your Nexus | OMG! Ubuntu!
But since we are dual booting the Ubuntu with Android, the reasons stated above won’t matter!

1. Installing Custom Recovery (Flashing TWRP Multi ROM)
Using adb commands the next you need to do is to flash a version of TWRP recovery which is tweaked for MultiROM support. The file I downloaded was “TWRP_multirom_grouper_20131022.img” from here: [MOD][OCT 22] MultiROM v16a (fix SuperSU for secondary ROMs) – xda-developers, and used following command to flash it.

fastboot flash recovery d:\path-to-recovery\TWRP_multirom_grouper_20131022.img
Continue reading Installing Ubuntu Touch on your rooted Nexus 7