[Tested] How To Port/CrossPort Roms For Meditek Devices. Normal Port Guide Means MT6572 To MT6572 Or MT6582 To MT65982 Or MT6582 T...
[Tested] How To Port/CrossPort Roms For Meditek Devices.
Normal Port Guide Means MT6572 To MT6572 Or MT6582 To MT65982 Or MT6582 To MT6592
Normal Port Guide For Nought Based Rom :
system/etc/firmware [Whole Folder]
Replace Below lib From Stock system/lib
- libaudio.primary.default.so
- libcamalgo.so
- libcamdrv.so
- libcameracustom.so
- libdpframework.so
- libfeatureio.so
- libMali.so
Replace Below lib From Stock system/lib/hw
- hwcomposer.mt6592.so
- Replace Kernel From Stock Boot.img To Port Boot.img
- Replace Uneventd.rc From Stock Boot.img To Port Boot.img
- Replace Cameralines From Stock/Boot.img/Ramdisk/Init.rc To Port/Boot.img/Ramdisk/Init.mt65xx.rc [If Not Work, Then Merge Cameralines]
In Updater Script
- Change Mount Point According To Your Device
- Remove Assert Code [If Any]
[Assert Code Look Like Below Point]
assert(getprop("ro.product.device") == "IRISX8" || getprop("ro.build.product") == "IRISX8" || abort("E3004: This package is for device: IRISX8; this device is " + getprop("ro.product.device") + "."););
Normal Port Guide For CM12.1/13/Stock Based Rom :
Replace Below Files From Stock Rom To Port Rom
1. In System Folder
system/etc
- Whole Folder (Bluetooth)
- Whole Folder (Firmware)
- Whole Folder (Wifi)
- android.hardware.camera.xml
- android.hardware.microphone.xml
- libcam.camadapter.so
- libcam.exif.so
- libcam.paramsmgr.so
- libcamalgo.so
- libcamdrv.so
- libcameracustom.so
- libfeatureio.so
- libimageio.so
- libimageio_plat_drv.so
- libdpframework.so
- libMali.so
- camera.default.so
- hwcomposer.mt65xx.so
- ro.sf.lcd_density=xxx [Change Display Density According To Your Device]
- Change Model And Brand
- Replace Whole Kernel Folder
- Replace ueventd.rc (First Try Without This)
- Edit Meta.inf
- Change Mount Point In "updater-script" According To Your Device
- Removed Assert Line If Show "Error 7"
Crossporting Guide :
Method No - 1 :
Base Rom May Be Stable Lineage 13/Lineage 14/Stock Rom According To Port Rom.
Port Rom Means Which Rom You Want To Crossport It For Your Device.
- addon.d
- apps
- font
- framework
- media
- priv-app
- build.prop
For System/Bin
Step 1. Go To "base/system/bin" Select All Files
Step 2. Now Paste In port/system/bin (By Skip)
Step 3. Go To "port/system/bin" Now Select All Files
Step 4. Paste In base/system/bin (By Replace/Overwrite)
For System/Lib
Step 1. Go To "base/system/lib" Select All Libs Except Folders
Step 2. Now Paste In port/system/libs (By Skip)
Step 3. Go To "port/system/lib" Now Select All Libs Except lib.android**, libjava**, libweb**
Step 4. Paste In base/system/lib (By Replace/Overwrite)
After Crossport, Replace Stock To Crossported Rom
system/etc
- etc/firmware (Whole Folder)
- libcam.exif.so
- libcamdrv.so
- libcameracustom.so
- libfeatureio.so
- libdpframework.so
- libMali.so
- camera.default.so
- hwcomposer.mt65xx.so
- sensorservice.so
- Change Display Density In Build.prop ro.sf.lcd_density=xxx
- Use Stock Boot Image
- Replace Storage_list.xml In framework-res.Apk (Only If Not Boot)
- Compare Mount Points And Flash.
Method No - 2 :
Delete These Folders From Base Rom
- addon.d
- apps
- font
- framework
- media
- priv-app
- build.prop
Replace These Folders From Port Rom To Base Rom
system/bin
- Merge Extra Bins
Delete Every Thing From Base Except Below Two Files.
- Handheld_core_hardware.xml
- Platform.xml
system/lib
- Merge Extra Libs.
- libandroidserver.so
- libanddoidruntime.so
- libandroidfw.so
- libwebview*
- libjava*
Boot.img
- Use Base Rom Boot
- Just Take Init.environ.rc Of Port Rom
Credit :
- AhmadNaseerHK
- Sunmughan Swamy
- Samar Vispute
- Raj Kumar
- All Dev's
COMMENTS