REQUIREMENTS
1.Notpad++
2.Boot.img unpacker
3.Win rar or 7zip
INSTRUCTIONS
MT6582 MOBILE
MT6582 mobile camera not conect:
STEP 1:
copy these from stock ROM to port ROM
system\lib\hw\camera.default.so
Note : .if you have two files like camera.goldfish.so delete this the one with the goldfish
system/lib/ libcamdrv.so
system/lib/libcamalgo.so
system/lib/libcameracustom.so
system/lib/libdpframework.so
system\etc\permissions\android.hardware.camera.xml
STEP 2:
unpcack the boot.img from Port ROM
open init.rc file add/replace below lines
#Camera
#chmod 0660 /dev/FM50AF
chmod 0660 /dev/OV8825AF
chmod 0660 /dev/CAM_CAL_DRV
#chown system camera /dev/FM50AF
chown system camera /dev/OV8825AF
chown system camera /dev/CAM_CAL_DRV
& repack boot.img
MT65XX MOBILE
STEP 1:
Other mediateck Mobile camera not conect :
Copy these from stock ROM to port ROM
system\lib\hw\camera.default.so
Note: if you have two files like camera.goldfish.so delete this the one with the goldfish
system\lib\libcamera_client.so
system\lib\libcameracustom.so
system\lib\libcameraprofile.so
system\lib\libcameraservice.so
system\etc\permissions\android.hardware.camera.xml
STEP 2:
- Unpcack the boot.img from Port ROM
- Open init.rc file add/replace below lines
#Camera
#chmod 0660 /dev/FM50AF
chmod 0660 /dev/OV8825AF
chmod 0660 /dev/CAM_CAL_DRV
#chown system camera /dev/FM50AF
chown system camera /dev/OV8825AF
chown system camera /dev/CAM_CAL_DRV
& repack boot.img
Some Bug Fix All Mediatek Mobile
Camera Force closed or camera not conect :
copy these from stock rom to port Rom
system\lib\hw\camera.default.so
system\lib\libcamera_client.so
system\lib\libcameracustom.so
system\lib\libcameraprofile.so
system\lib\libcameraservice.so
system\lib\libmhal.so
system\lib\libmhalcontent.so
system\lib\libmhaldrv.so
system\lib\libmhalmdp.so
system\lib\libmhalpipe.so
system\lib\libmhalscenario.so
system\lib\libmhalutility.so
system\etc\permission\android.hardware.camera.fron t.xml
system\etc\permission\android.hardware.camera.xml
FOR CAMERA NOT CONNECTED ISSUE /CAMERA GREEN /CAMERA FORCE CLOSE "unfortunately camera has stopped"
Replace first libcamdrv.so (needed for 6582
devices) and check if not success then replace
libcameraservice.so from/lib.
Camera Focus Problem :
system/lib/libcameraservice.so
system/lib/libfeatureio.so from
Note : These step not required for some mobile]
AUDIO NOT COMING IN LOUDSPEAKER MODE
Replace to
system/lib/libaudio.primary.default.so
[If still sound related problem: Replace all libaud*.so Sometimes replacing all audio files give you a boot loop in that case replace only]
system/lib/libaudio.a2dp.default.so
system/lib/libaudio.primary.default.so
system/lib/libaudiocompensationfilter.so
system/lib/libaudiocustparam.so
system/lib/libaudiosetting.so
system/lib/libaudioutils.so
system/lib/libcustom_nvram.so[HIGH AUDIO VOLUME ISSUE]
Note : Some phones not working
SD CARD PROBLEM :
fix internal & external SD Card Problem mount
system/etc/vold.fstab [mount problem Fix]
system/etc/vold.fstab.nand
system/etc/vold [Default problem fix]
Download epo Problem :
Replace in framework folder
mediatek-common.jar
mediatek-framework.jar
mediatek-op.jar
mediatek-telephony-common.jar
3G Problem
Replace to
system/etc/mddb
system/etc/agps_profiles_conf.xml
system/etc/apns-conf.xml
system/etc/epo_conf.xml
system/etc/spn- conf.xml
system/etc/virtual-spn-conf-by-efpnn.xml
system/etc/virtual-spn-conf-by-efspn.xml
system/etc/virtual-spn-conf-by-imsi.xml
WIFI TOGGLE PROBLEM :
system/etc/wide-dhcpv6
system/etc/wifi
system\lib\modules\mtk_stp_wmt.ko
system\lib\modules\mtk_wmt_wifi.ko
COMPASS PROBLEM :
system/lib/libsensorservice.so
VIDEO SHOWING PIXELS AND GLITCHES PROBLEM :
system/lib/libvcodecdrv.so from /lib
FM PROBLEM
system/lib/modul/mtk_fm_drv.k0
GPS Problem:
system/lib/module folder mtk_stp_gps.ko
TOUCH SCREEN PROBLEM :
system/lib/libinput.so
CREDITS : A.S.Noman Khan (xdaforums)
Thanks for reading my news about Guide for fixing bugs while porting custom roms at my blog Mods Firmware if you want too share this article, please put the resource, and if you think this article is very usefully dont forget to bookmark this site with CTRL + D on your keyboard to web browser.