Monday, May 2, 2016

[Guide] Cyanogenmod 13 Porting for Mediatek MT6592 Devices

Guide to port Fire855's Cyanogenmod 13 to Mediatek Devices

Here I am posting guide how to port Fire855's Cyanogenmod 13 to Mediatek devices based on MT6592 SoC.


@fire855 Cyanogenmod 13 thread --> http://ift.tt/1SHuMvQ

Required Tools

Java Development Kit
http://ift.tt/1j0b50c

Dat File Extractor
https://goo.gl/W5tBQV

Cygwin
https://goo.gl/TfcKNR

Android Kitchen
https://goo.gl/Xcjiuj

Meta-Inf Folder
https://goo.gl/4PueHv

Notepad++
http://ift.tt/1GFCQXO


Extracting system.new.dat file from Fire855 build
- Use extractor
- First Extract fire855 build zip using Winrar or 7z software.
- Put following files in "place_for_supported_files_here" folder
- file_contexts
- system.new.dat
- system.patch.dat
- system.transfer.list
- Run Extraktor_En.cmd
- Type 1 and press enter
- Your files will be extracted in "extract_file_here" folder
- Now copy these files from "system.dat" in "system" folder of Fire855 build
- Delete ".jounal" file from "/system" folder


Before Porting
- Delete Meta-Inf folder from Fire855 build
- Delete "system.new.dat", "system.patch.dat", "system.transfer.list
- Replace it with the Meta-inf folder given above
- You will have these folder and files now
- Install
- Meta-inf
- System
- boot.img
- file_contexts
- Now compress these above files and folder in one standard zip format.


Setting up Android Kitchen and Extracting Boot.img
1. Extract the Cygwin. In this folder you will find another folder named cygwin_packages and a file named setup. Copy these to C :\cygwin (create a folder named cygwin if it doesn't exist)

2. Open the cygwin folder in C:

3. Now in cygwin folder right click on the setup.exe and Run as Administrator

4. Click Next and then select Install from Local Directory

5. Select the path to the cygwin folder in C: then click Next

6. Select the path to the cygwin_packages folder (C:\cygwin\cygwin_packages) then click Next

7. Click Next. A message will appear click OK

8. Single click in the area between the Red box

9. Click Next. A message will appear, click Next. After this, installation will take place. After the installation process is complete check / tick the Create icon on Desktop and click on Finish. After this Right click on the Cygwin desktop icon and Run as Administrator. Some processes will take place after the completion of the process, close it


10. Now open C Drive. In the drive you will find a folder named Cygwin, Open it


11. Now open the home folder. In this folder you will find another folder having your Username, open it


12. Don't delete any file. Make a new folder named Kitchen

13. Open the folder named Kitchen. Now extract the file named dsixda Android Kitchen that you copied on your computer's desktop, then open the extracted folder of dsixda Android Kitchen


14. Copy all the files that are in the extracted folder of dsixda Android Kitchen and paste them in the Kitchen folder that you made


15. Now do Right click on the Cygwin desktop icon and Run as Administrator

16. Cygwin window will open. Now type "cd kitchen" (without "") then press Enter

17. Now type "./menu" then press Enter

18. After this Android Kitchen will open

You're good to go!

(You can use pictorial guide given on (http://ift.tt/1SIctVc)


Files needs to be ported

In Boot.img
- zimage (simply your device kernel)
- uevented.rc (if only device get bootloops)

Lib files need to replace from your Stock ROM

From "/system/lib/hw" folder

- hwcomposer.mt6592.so
- sensors.default.so (first rename this file to sensors.mt6592.so and then copy it same location in Fire855 build)

From "system/lib" folder
- libMali.so
- libaudio.primary.defaults.so
- libcameracustom.so
- libfeatureio.so
- libcamdrv.so
- libcamalgo.so
- libdpframework.so
- libcamparamsmgr.so

From "system/bin" folder
- gsm0710muxd
- gsm0710muxdmd2
- rild

From "/system/etc" folder
- Bluetooth folder
- Wifi Folder
- Firmware Folder

Making changes in boot.img only for devices having Emulated storage
Note: (No need of change for Non-emulated storage devices)

Edit fstab file in ramdisk folder after extracting boot.img in Android Kitchen

Refer this post by @Typhus_ --> http://ift.tt/1oAxVOf

Note : Edit system and data mount points according to your device in updater-script using Notepad++.


from xda-developers http://ift.tt/1SIcvMY
via IFTTT

No comments:

Post a Comment