Notice

NoticeThis blog side in under construction.

Custom Rom Bug Fix After Porting

This guide works on CM base and all other based rom.

SO LET STARTED:

2G/3G Related Issue?

Replace in Port Rom From Stock Rom etc Folder:

mddb folder if
agps_profiles_conf
apns-conf
epo_conf
spn-conf
virtual-spn-conf-by-efpnn
virtual-spn-conf-by-efspn
virtual-spn-conf-by-imsi
WiFi Toggle Problem?

Replace in Port Rom From Stock Rom etc folder:

wide-dhcpv6
Internal/External Storage not Mounting?

Compare Port Rom & Stock Rom boot.img:

fstab mt65xx


FOR NO RADIO SIGNAL:

Replace from stock to port ROM

System/etc/firmware/ROMV2_lm_patch_1_0_hdr.bin
Systemetc/firmware/ROMv2_lm_patch_1_1_hdr.bin
Systemetc/firmware/WMT.SOC.cfg
System/lib/libfmcust.so
COMPASS PROBLEM:

System/lib/libsensorservice.so


GPS:

System/bin /mtk_agpsd


TOUCHSCREEN:

System/lib/libinput.so
System/usr
System/usr/keylayout/generic.kl (fix home button or capacitive)


FOR SOUND/AUDIO:

System/lib/libaudio.primary.default.so
(If above doesn’t work replace all files starting with libaudio.xxxx in System/lib/)
(if this above cause bootloop replace only libaudio.a2dp.default.so


STORAGE PROBLEM:

System/bin/vold
System/bin/pq
Edit storage_list.xml in framework-res.apk


BOOTLOOP ISSUE:

System/lib/libandroid_runtime.so
System/lib/libandroid_servers.so
System/lib/media_jni.so
Re-edit boot image


High Volume issue?

Replace in Port Rom From Stock Rom lib folder:

libcustom_nvram.so


Camera Not Connected/Green?

Replace in Port Rom From Stock Rom lib folder:

libcamdrv.so
libcameraservice.so


FOR FLASH LIGHT NOT COMING FROM CAMERA:

Replace libfeatureio.so from /lib


TO FIX VIDEO SHOWING PIXELS AND GLITCHE

Replace libvcodecdrv.so from Porting:)


SHOWING WRONG RAM INFO IN TASK MANAGER:

Don’t change ro.product.device value from the you are porting.


FOR GREEN CAMERA:

Replace libdpframework.so from lib folder


ANY RESOLUTION PROBLEM

Add this line to build.prop:

ro.sf.lcd_density=your phone screen dpi
SENSOR FIX:

System/bin/akmdxxxx (mean 3 files who start with akmd)
System/lib/libsensorservice.so
System/bin/servicemanager
System/bin/sensorservice


CAMERA FC OR NOT CONNECTING:

System/lib/libcameracustom.so (if you copy this when you port no need copy again)
System/lib/libcameraservice.so (sometimes cause bootloop in some mm roms. why?? who knows.
System/lib/libfeatureio.so (don’t use this with other files,in some mt6580 can cause problems
.use if problem continue,and use alone)
Unpack boot image and replace camera lines from init.rc (stock boot image) to init.mt65xx.rc (custom ROM)
For mt6580 replace camera lines from init.mt6580.rc (stock) to init.mt6580.rc (custom)


CAMERA FOCUS:

System/lib/libcameraservice.so
System/lib/libfeatureio.so


FOR MT6580 GENERAL CAMERA FIX:

System/lib/libjpeg.so
System/lib/libdpframework.so
System/lib/featureio.so (for some mt6580)
System/lib/libcam.exif.so
System/lib/libcamdrv.so
System/lib/libcam.paramsmgr.so
System/lib/libcamalgo.so
System/lib/libcameracustom.so


OTHER CAMERA PROBLEMS:

System/lib/hw/camera.default.so (use camera.mt65xx.so if not present this)
System/lib/libcamera_client.so
System/lib/libcameracustom.so
System/lib/libcameraprofile.so (not present in some roms,just skip)
System/lib/libcameraservice.so
System/lib/libcam.halsensor.so
System/lib/libcam.hal3a.v3.so
System/lib/libmhallImageCodec.so
System/lib/libmhalsenario.so
System/lib/libmhalutility.so
System/etc/permission/android.hardware.camera.front.xml (not have on some ROM and SOC)
System/etc/permission/android.hardware.camera.xml
if some lib missing skip
those permission files compare lines



CREDITS:
PEDRO P DARKKILLER
XDA FORUMS
GOOGLE
THANK YOU ALL

No comments:

Theme images by Dizzo. Powered by Blogger.