Rom Porting

How to Port Rom

You need:
  • STOCK ROM 
  • PORT ROM
Use below links to download ROMs for Porting:
Note: STOCK ROM and PORT ROM must be of same android version i.e. android 4.4.4 can't be ported for 4.4.2.
STOCK ROM and PORT ROM must be of same chipset i.e. MT6582 or MT6582m

Step 1: 
Unzip/Extract all files using 7-Zip
Note: If downloaded PORT ROM is SP flash tool flashable and not recovery flashable then extract system.img using ext2explore or dsixda's Android Kitchen.
Rename stock ROM (original rom of your phone) as STOCK and port rom (which you want to port) as PORT

Step 2: 
a) Open STOCK and PORT ROMs in separate windows as shown below
b) Delete META-INF and boot.img from PORT
c) Copy META-INF and boot.img from STOCK
d) Paste META-INF and boot.img in PORT


Step 3:
a) Open folder system/bin in STOCK and copy files pq and vold (use ctrl key to select multiple files)
b) Open folder system/bin in PORT and paste pq and vold (Select Copy and Replace for both files)


Step 4:
a) open folder system/etc in PORT and delete folders bluetooth, firmware and wifi
b) open folder system/etc in STOCK and copy folders bluetooth, firmware and wifi 
c) open folder system/etc in PORT and paste folders bluetooth, firmware and wifi

Step 5: 
a) open folder system/lib in PORT and delete folder egl and hw
b) open folder system/lib in STOCK and copy folder egl and hw
c) open folder system/lib in PORT and paste folder egl and hw


Step 6:
a) open folder system/lib in STOCK and copy all files which starts with libaudio
b) open folder system/lib in PORT and paste all libaudio files


Step 7:
a) open folder system/lib in STOCK and copy following files:
  • libcamalgo.so
  • libcamdrv.so
  • libcameracustom.so
  • libdpframework.so
  • libsensorservice.so
  • libsync.so
  • libvcodecdrv.so
b) open folder system/lib in PORT and paste all files


Step 8:
a) open folder system/usr/keylayout in STOCK and copy file Generic.kl
b) open folder system/usr/keylayout in PORT and paste file Generic.kl


Step 9:
a) open folder system in PORT and delete folder vendor
b) open folder system in STOCK and copy folder vendor
c) open folder system in PORT and paste folder vendor


Step 10:
Open build.prop in PORT and search line ro.sf.hwrotation=
If value is 0 then change it to 180 as MMX A106, Myphone Agua Rio Lite, Wiko Bloom have flipped screen.

In build.prop search lines
  • ro.product.locale.language=
  • ro.product.locale.region=
For English change it to
  • ro.product.locale.language=en
  • ro.product.locale.region=US
Step 11:
Compress/zip META-INF, system and boot.img using 7-Zip as port.zip and flash using any custom recovery.
First boot may take 2-3 minutes

Please add proper credits in your ported ROMs

Bug fixing:

Showing black screen after logo?
Replace following file from STOCK to PORT
  • system/lib/libMali.so
Stuck at logo/Bootloop?
Replace following files from STOCK to PORT
  • system/lib/libandroid_runtime.so
  • system/lib/libandroid_servers.so
  • system/lib/libmedia_jni.so
Camera focus not working?
Replace following file from STOCK to PORT
  • system/lib/libfeatureio.so
Camera showing wrong model in pic property?
Change model in build.prop
Still not working? Replace following file from STOCK to PORT
  • system/lib/libexif.so
Camera not working/force close?
Replace following files from STOCK to PORT
  • all files from system/lib folder which starts with libcam
Resolution problem?
open build.prop and add following line
  • ro.sf.lcd_density=240
Pixalation in video?
Replace following file from STOCK to PORT
  • system/lib/libvcodecdrv.so
Flipped touch screen?
Replace following files from STOCK to PORT
  • system/lib/libinput.so
Storage not mounting?
Decompile framework-res.apk using apktool or apk multitool and replace following file from STOCK framework-res.apk to PORT framework-res.apk
  • /res/xml/storage_list.xml
LED not working?
Replace following files from STOCK to PORT
  • system/lib/libfeatureio.so
- See more at: http://www.micromaxunite2.net/2015/02/how-to-port-kitkat-roms-from-mt6582-devices-to-micromax-a106.html#sthash.dcCDVfpX.dpuf

No comments:

Post a Comment