[Moto E General] Simomaster1:
Hello guys, I'm here to explain you how to compile an updated MIUI rom using kowakx's patchrom tree. I decided to do this guide to give everyone a possibility to enjoy a bugless MIUI rom (exept for dual sim RIL). I don't upload a precompiled version because over time the rom become out of date anyway also patchrom tree need updates but i think that there will be few updates by the MIUI team since the release of MIUI 8.

But now is the time to explain you how to compile the rom:D

1. You have to work on a linux environment so you can use ubuntu installed on your pc or on a virtual machine (you can follow this guide. You have to make an hard disk of 40 GB, for me sufficed 30 GB but I won't answer to any question on expanding a virtual hard disk).

2. Follow this guide from "STEP-1: Preparing build environment" to "repo sync" command (if you run those commands like they are written all files will be stored to /root directory so if you want to see all files on desktop you have to substitute all "~/" with the directory of your desktop "/home/xxxx/Desktop" where "xxxx" is the username that you insterted during the configuration of ubuntu or of the virtual machine with ubuntu). If the following command give you an error skip it

sudo apt-get install bison build-essential curl flex git git-core gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-7-jdk openjdk-7-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev unzip lib32readline-gplv2-dev lib32z1-dev make python-networkx zlib1g-dev:i386 phablet-tools

3. Enter the following commands

sudo apt-get install git

cd /home/xxxx/Desktop

where "xxxx" is the username that you insterted during the configuration of ubuntu or of the virtual machine with ubuntu

git clone https://github.com/ElKowak/patchrom_condor.git

sudo chmod 777 /home/xxxx/Desktop/patchrom_condor

where "xxxx" is the username that you insterted during the configuration of ubuntu or of the virtual machine with ubuntu

4. Enter the folder created on your desktop, open "customize_framework.sh" and replace "cp -rf ../android/Editor/* $BUILD_OUT/framework/smali/android/widget/" with "cp -rf $BUILD_OUT/framework_miui/smali/android/widget/Editor* $BUILD_OUT/framework/smali/android/widget/" (this is an important step to solve a problem in the rom. The solution is provided by kowax). Save.

5. Download this rom

6. Move the downloaded rom into "/home/xxxx/Desktop/patchrom_condor"

where "xxxx" is the username that you insterted during the configuration of ubuntu or of the virtual machine with ubuntu

7. Run these commands

cd ~/patchrom

(remember what I said at the beginning of this guide about "~/")

source build/envsetup.sh

cd /home/xxxx/Desktop/patchrom_condor

where "xxxx" is the username that you insterted during the configuration of ubuntu or of the virtual machine with ubuntu

make fullota

Now the compilation is started. If the process stopped during the compilation of ThemeManager.apk run the following command

/home/xxxx/Desktop/patchrom/tools/apktool --quiet b -a /home/xxxx/Desktop/patchrom/tools/aapt out/ThemeManager -o out/ThemeManager.apk

where "xxxx" is the username that you insterted during the configuration of ubuntu or of the virtual machine with ubuntu

then run again "make fullota"

If you have to shutdown the pc or to close the terminal you have to run again the commands of step 7

8. The output rom is in "/home/xxxx/Desktop/patchrom_condor/out" and is named "fullota.zip". At this point the rom have little problems but to solve them you have to put inside the output rom in "/system/media/theme/default" 2 files that are attached below in "Theme.zip" file ("com.miui.home" and "framework-miui-res"). Right now the rom don't have a camera...if you want the MIUI camera put "Camera2.apk" attached below inside the zip in "/system/app"

9. Now you can enjoy this wonderful rom:D

If i missed something in this guide and you have to install some additional packages the terminal will tell you.