[OS Porting] A.S.Noman Khan:
How to Port MT6582 to MT6582

OR,

How to Port all MTK Device KITKAT & JellyBean(MT65xx & MT65xx)

It is very esy.....

Requirements :

*Windows XP/7/8

* 7-Zip

* Notepad++

* Java Jdk

*Cywing

* Boot.img Unpack/Repack Tools or Android kitchen

* Stock ROM

*Port RomRom

[N.B : There are two type roms

1. Stock rom [ orginal rom from your mobile ]

2. Port rom [ Whichever you want to port rom ]]

*SO NOW PORTING START......

# TIPS FOR SYSTEM FOLDER

+++ Replace it from your stock rom to the port rom

##jelly Bean

*system/etc/firmware [[Delete to port Rom & Copy from Stock Rom]]

*system/etc/permission/platform.xml

*system/etc/permission/handheld_core_hardware.xml

*system/lib/hw [[Delete to port Rom & Copy from Stock Rom]]

*system/lib/modules [[Delete to port Rom & Copy from Stock Rom]]

*system/lib/ libaudio.primary.default.so

*system/lib/ libcamdrv.so

*system/lib/libcamalgo.so

*system/lib/libcameracustom.so

*system/lib/libdpframework.so

*system/lib/ libsensorservice.so

*system/lib/libvcodecdrv.so

*system/lib/libsync.so

*system/usr/keylayout

##KITKAT ONLY

*system/bin/pq

*system/bin/vold

*system/etc/bluetooth

*system/etc/firmware

*system/etc/permission/platform.xml

*system/etc/permission/handheld_core_hardware.xml

*system/etc/wifi

*system/etc/apns-conf.xml

*system/lib/egl [[Delete to port Rom & Copy from Stock Rom]]

*system/lib/hw [[Delete to Port Rom & Copy from Stock Ron]]

*system/lib/modules [[Delete to port rom & Copy from stock rom]]

*system/lib/libaudio.primary.default.so

*system/lib/libcamdrv.so

*system/lib/libcamalgo.so

*system/lib/libcameracustom.so

*system/lib/libcameraservice.so

*system/lib/libdpframework.so

*system/lib/libsensorservice.so

*system/lib/lilbinput.so

*system/lib/libinputservice.so

*system/lib/libvcodecdrv.so

*system/lib/libsync.so

*system/usr/keylayout

*system/vendor [[Delete to Port Rom & Copy from stock rom Stock Rom ]]

*system/xbin/libmnlp_mt65xx

[N.B Some Rom Not Port, Flow The Next 2 Step ]

STEP 1

*system/bin/pq

*system/bin/vold

*system/etc/bluetooth

*system/etc/firmware

*system/etc/permission/platform.xml

*system/etc/permission/handheld_core_hardware.xml

*system/etc/wifi

*system/etc/apns-conf.xml

*system/lib [Delete Port Lib Folder And Pest Stock Lib Folder ]

*system/usr/keylayout

*system/vendor [[Delete to Port Rom & Copy from stock rom Stock Rom]]

*system/xbin/libmnlp_mt65xx

STEP 2

## Delete to some folder port rom & copy form same folder stock rom

*system/bin

*system/etc

*system/lib

*system/usr

*system/vendor

*seystem/xbin

N.B : Some rom not port

[ FIXING PROBLEM ]

Sim card problem :

*system/bin

SD Card Problem :

*system/bin/vold

*system/etc/vold.fstab

*system/etc/vold.fstab.nand

Camera Focus Problem :

*system/lib/libcameraservice.so

Boot loop problem :

*system/lib/libandroid_runtime.so

*system/lib/libandroid_servers.so

*system/lib/libmedia_jni.so

Other Problem :

*system/etc/dhcpcd

*system/etc/permissions

*system/etc/security

*system/etc/audio

*system/etc/bluetooth

*system/etc/wifi

*system/lib/drm

*system/lib/egl

*system/lib/soundfx

* Replace the stock boot.img to port rom

* Now open the Port rom folder go to META-INF/google/Android / and open updater-script in Notpad++

And change these line.......

[mmcblkOp3 ----- mmcblkOp9]

* Now go to back the folder of port rom and you will see two folder and one file name

+ META-INF

+ system

+ boot.img

* Now select these 2 folder 1 file and click right mouse button and click on 7zip ->> add to archive

* Now a dialouge box should

appear!

* Configure the Format like This:

Archive format: ZIP

Compression Level : Normal

Compression Method: Deflate

Dictoioany Size: 32k

Word Size 32

* Now Start Zipping and Push the

ZIP to your Memory Card

* Go to Recovery >> Install ZIP &

Wipe Data

Finished!!

[# Camera Drive problem fixing]

* Extract the boot.img for android kitchen [ Both stock & port boot.img]

* and open init.rc/# camera

* Find these missing line port to stock boot.img and whole missing line paste it (#Camera)

Example :

#Camera

chmod 0660 /dev/camera-sysram

chmod 0660 /dev/camera-isp

chmod 0660 /dev/camera-pipemgr

chmod 0660 /dev/kd_camera_hw

chmod 0660 /dev/kd_camera_flashlight

chmod 0660 /dev/kd_camera_hw_bus2

chmod 0660 /dev/FM50AF

chmod 0660 /dev/OV8825AF

chmod 0660 /dev/OV88252AF

chmod 0660 /dev/OV8850AF

chmod 0660 /dev/CAM_CAL_DRV

chown system camera /dev/camera-sysram

chown system camera /dev/camera-isp

chown system camera /dev/camera-pipemgr

chown system camera /dev/kd_camer

______________A.s. Noman Khan