$ mkdir micode
$ cd micode
$ git clone -b jellybean git://github.com/MiCode/patchrom_android.git android
$ git clone -b jellybean git://github.com/MiCode/patchrom_build.git build
$ git clone -b jellybean git://github.com/MiCode/patchrom_miui.git miui
$ git clone -b jellybean git://github.com/MiCode/patchrom_tools.git tools
$ git clone -b master git://github.com/sijav/patchrom_nypon.git nypon
- for patchrom fix run
$ ./fix_patchrom.sh
$ . build/envsetup.sh -p nypon
$ export PATH=$PATH:/path_to/micode/tools
$ cd nypon
$ make fullota
- you will get error on compiling the framework-miui-res.apk so enter this code:
$ ./fmr.sh
After everything is compiled, you need to manually fix updater-script from zip! (this isn't nessesary)
- Please do look in temp folder for conflicts and try to fix remaining bugs, Thnx.
- for now Phone.apk and Provision.apk and SEMCSetupWizard.apk are not working, deleting them will make rom booting.
- after installing you need to run these command as some files won't have the right permissions if you don't fix the updater-script from zip:
adb shell chmod 06755 /system/xbin/*
adb shell chmod 755 /system/bin/* - there is a folder named changes it containes the changes that has been made to the untouched frameworks until the first initial import