Prepare 5 window on your desktop
1. Window PORT ROM window (ported results, first leave it blank) = (P)
2. Window STOCK ROM window (Extract Stock rom here) = (S)
3. Window BASE ROM window (MIUI Rom V5 extract here) = (B)
4. Android Image Kitchen Window (S)
5. Android Image Kitchen Window (B)
NB:
P=Port
S=Stock
B=Base
1st Chapter, META-INF.
1. Copy the META-INF (S) to the window (P)
Here in use updater-script (S), edit UI PRINT with which you prefer.
2. Replace All SET PERMISSION and symlinks in Updater Script (P) to have (B), remember that replaced only part SET PERMISSION & symlink ALONE!, SHOULD THE FORMAT PARTITION WITH STOCK ROM (S)!, IF YOU OWN ANY negligent BRICK YOUR DEVICE!
2nd Chapter, boot.img
1. Extract the Android Image Kitchen, in which two different places to make it easier.
2. Copy the boot.img (S) and (B) in each folder android image in the kitchen which has been extracted earlier.
3. Drag the file to the boot.img unpackimg.bat, and boot.img already tar extracts.
4. Open the ramdisk folder, open the file init.rc (S) & (B) with Notepad ++, delete the row EXPORTBOOTCLASSPATCH ... (S), and copy lines bootclasspath ... (B) to init.rc (S), Tarok in place which removed earlier, SAVE.
5. Return to the Kitchen Android Image (S), click repackimg.bat, copy-new.img image file (s) into the window (P), rename it so boot.img. So boot.img in use that have (S) which has been edited earlier.
3rd Chapter, SYSTEM
1. Copy the folder system (B) and all its contents to the window (P)
2. Copy and replace files BIN (S) is, to BIN (P):
- NETD
- Wpa_suplicant
- Wpa_cli
- Fmconfig
- Sensorservice
- Radiooptions
- Hostapd
- dhcpcd
- Vold
- netcfg
- Hostapd_cli
- Mpdecision
- Fm_qsoc_patches
- Ifconfig
3. Copy and replace files / folders ETC (S) is, to the ETC (P):
- Folder dhcpcd
- Folder FIRMWARE
- Folder PERMISSIONS
- Folder PPP
- Folder WIFI
- Audio_effects.conf, audio_policy.conf, audioFilter.csv
- DHCPD-run-hooks, gps.conf, hosts, media_profiles.xml, init.qcom.wifi.sh
- Vold.emmc.fstab & Vold.fstab
4. Copy and replace files / folders LIB (S) is, to LIB (P):
- Folder MODULES
- Folder HW, except files, audio_policy * .so, hwcomposer * .so
- All files Libchromatic * .so
- All files LibOmx * .so
- Mmi_audio.so
- Libhardware_legacy.so
- Libgps.so
- Libgps.utils.so
- Libaudioalasa.so, libaudiosffect_jni.so, libaudioeq.so, libaudioutils.so
- Libwpa_client.so
- Liboemcamera.so
- Libcameraservice.so
- All files libmmcamera * .so
- Libsensorservice.so
- All files libvideo * .so
- Mmi_audio.so
- All files mmi_camera * .so
- Mmi_wifi.so
- Mmi_battery.so
- Liboem_rapi.so
- Libcamera_client.so
5. Copy and replace Folder USR (P) with USR folder (s)
6. Edit Bulid.prop to edit information / add tweaks
Final Chapter, MAKE ZIP INSTALLER
1. Block All Files & Folders in the window (P), the META-INF, system and boot.img.
2. Right-click, select add to archive .. (use winrar), select the zip file, rename it, press OK
3. Now it's finished zip files, can be installed directly via CWM or TWRP