How to port 6.0.1 Marshmallow ROM for MediaTek MT6582:
You need:
- Android Kitchen
- Notepad ++
- Stock ROM
- Custom ROM for MT6582
1) Set up Android Kitchen and set up working folder for custom ROM in Android Kitchen
2) In android kitchen type 0, then 12, then w and then a
3) Copy stock boot.img to bootimg_xxxxxx_xxxxxx
4) Go to android kitchen and hit enter
5) Go to bootimg_xxxxxx_xxxxxx, copy zlmage and paste it in BOOT-EXTRACTED
6) Now go to bootimg_xxxxxx_xxxxxx/ramdisk, open init.rc with notepad ++ and copy #Camera lines
7) Go to BOOT-EXTRACTED/ramdisk, find init.mt6582_common.rc, open it with Notepad ++, find #Camera lines and press ctrl + v
8) Save it
9) Go to Android kitchen and type b
10) Close Android Kitchen
11) Go to working folder, delete recovery folder if there is, go to system and replace following files from stock to port
In system/bin
- gsm0710muxd
- gsm0710muxdmd2
- rild (replace from working CM 12.1 for your device)
In system/etc delete bluetooth, firmware and wifi folders
- Copy bluetooth, firmware and wifi folders from stock
In system/lib
- libaudio.primary.default.so
- libcamalgo.so
- libcamdrv.so
- libeatureio.so
- libcameracustom.so
- libMali.so
In system/lib/hw
- hwcomposer.mt6582.so
- sensors.default.so and change default to mt6582, so it will look like this: sensors.mt6582.so
12) Now open build.prop with notepad ++ and change brand, model, product, lcd density (for 5 inch screen with HD display is recomended LCD density 320) etc...
(If your phone does not have sensor buttons and only on-screen navigation buttons, add this line at the end of updater script.
qemu.hw.mainkeys=0
13) Go to META-INF/com/google/android, open updater-script with Notepad ++ and check, if mount points of system are 5 and data is 7
14) Zip your ROM and flash.