Thursday, July 2, 2015

[TUT]How to Port MT6592 to MT6592, MT5695 to MT6595 & MT6589 to MT6589

Hi as my promised I will teach you the basic procedure on how to port mt6592 chipset. I've noticed some of you want to learn this porting or cross porting method.  But before you proceed make sure you have back up and have knowledges in flashing via SPFT because this is not an easy task it can cause bootloop, lost IMEI and sometimes hard brick of your device.

How to Port mt6592 Screenshot 1



Note: I'm not liable for any damages of your device.  Do it at your own risk!

Requirements :

*Windows XP/7/8
* 7-Zip
* Notepad++
* Java Jdk
* Cygwin
* Boot.img Unpack/Repack Tools or Android kitchen
* Stock ROM
* Port Rom

Note : There are two type of roms
     1. Stock rom [ original rom from your mobile ]
     2. Port rom [ Any Rom you want to Port]

Procedure:
 
 1. Replace it from your Stock rom to the Port rom
     [ FOLDER & FILE TO REPLACE ]

*system/etc/firmware
*system/etc/permission/platform.xml
*system/etc/permission/handheld_core_hardware.xml
*system/lib/hw
*system/lib/modules
*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



[ FIXING PROBLEM ]
Sim card problem :
*system/bin

SD Card Problem :
*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

2. Replace the Stock boot.img to Port rom

3. Now open the Port rom folder go to META-INF/google/Android / and open updater-script in Notepad++
And change these line.......
[mmcblkOp3 ----- mmcblkOp9]
Find the mountpoints of your SYSTEM and DATA via MTKDROIDTOOLS or  terminal emulator.
Using this command: adb shell cat/proc/dumchar_info



4. Now go to back the folder of port rom and you will see two folder and one file name
+ META-INF
+ system
+ boot.img

5. 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

6. Go to Custom Recovery >> Install ZIP
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_camera_hw
chown system camera /dev/kd_camera_flashlight
chown system camera /dev/kd_camera_hw_bus2
chown system camera /dev/FM50AF
chown system camera /dev/OV8825AF
chown system camera /dev/OV88252AF
chown system camera /dev/OV8850AF
chown system camera /dev/CAM_CAL_DRV


Credits:
XDA

No comments:

Post a Comment