solve Bugs On Porting Roms

***How To solve Bugs On Porting Roms***



BUG SOLVING USES HIT AND TRIAL METHOD.I mentioned one or more ways to solve ,you try one by one and see which works for you.


COPY THESE FILES FROM STOCK TO PORT

FM not Working

\system\lib\libaudio.a2dp.default.so

\system\lib\libaudio.primary.default.so

\system\lib\libaudiocompensationfilter.so

\system\lib\libaudiocustparam.so

\system\lib\libaudioeffect_jni.so

\system\lib\libaudioflinger.so

\system\lib\libaudiosetting.so

\system\lib\libfmar1000.so

\system\lib\libfmcust.so

\system\lib\libfmjni.so

\system\lib\libfmmt6616.so

\system\lib\libfmmt6620.so

\system\lib\libfmmt6626.so

\system\lib\libfmmt6628.so

OR try this

system/etc/firmware/mt6620_patch_e3_hdr.bin

system/etc/firmware/mt6620_patch_e6_hdr.bin-> If yours is MT6628, you'll need to patch

all mt6628_fm_*_*.bin too

system/etc/firmware/WMT.CFG-> This is the antenna cfg, without this, FMradio cannot receive clearly

system/lib/modules/mtk_fm_drv.ko

system/lib/libfmcust.so


Camera not Working

->Unpack boot.img again and go to BOOT-EXTRACTED/boot.img-ramdisk/init.project.rc and edit with notepad++,

also open stock bootextracted/ramdisk/init.project.rc.

Now find camera permissions and replace whole camera line with stock camera lines.

->then open init.rc of both port and stock and find camera lines and copy/replace camera lines from stock to port.

->Now repack boot.img

OR


copy these from stock to port

system\lib\hw\camera.default.so< --- (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

or


copy from system/lib of stock to port.

- libmhal.so<

- libmhalcontent.so

- libmhaldrv.so

- libmhalmdp.so

- libmhalpipe.so

- libmhalscenario.so

- libmhalutility.so

or


Put libcamdrv.so of rom only or campare the file of size of your porting rom file and the base rom then who


size is same leave it and whose size is greater in ur stock rom jst add and replace that file only.


or

lib3a.so

liba3m.so

libacdk.so

libaudioflinger.so

libc.so

libcam.camadapter.so

libcam.campipe.so

libcam.camshot.so

libcam.client.so

libcam.paramsmgr.so

libcam.utils.so

libcam_camera_exif.so

libcamalgo.so

libcamdrv.so

libcamera_client.so

libcamera_jni_eglfence.so

libcamera_metadata.so

libcameracustom.so

libcameraservice.so

libgn_camera_feature.so

libexif.so

libfeatureio.so

libfrsdk.so

libft.so

libgcomm_jni.so

libgoggles_clientvision.so

libgui.so

libimageio.so

libja3m.so

libjni_mosaic.so

(Skip if any missing)


or


Replace camera.apk in sysyem/app


And do a ctrl+f search in system/lib for anything called 'camera', 'camrecorder', or just 'cam' and replace those.

WIFI/Bluetooth not Working

system/lib/modules/mtk_wmt_wifi.ko -> After patching, both works & can be individually switch on/ off


system/lib/libbluetooth_mtk.so


system/lib/libbluetoothem_mtk.so -> MTK Engineering will show MT6628 if not patch...


system/etc/firmware -> if yours is MT6628, you'll need to patch all WIFI_RAM_CODE_* too


GPS Problem Fix


system/xbin/libmnlp


or, If you porting From MT6628 to MT6620, some apps at system/vendor/operator/ is blocking GPS so just delete


all apps & use MTK Engineering mode to confirmed it...


Edit in build.prop


fmradio.driver.chip=1 -> if yours is MT6628 then change it to 3


mediatek.wlan.chip=MT6620 -> if yours is MT6628 then change last digit to 8


mediatek.wlan.module.postfix=_mt6620 -> if yours is MT6628 then change last digit to 8

Storage Mount Problem Fix

copy paste sytem/etc/vold.fstab from stock to port

Minimum Screen Brightness

ro.init.screen_brightness=110 in build prop

Date & Time Error Fix

check build prop region and compare and replace from stock build prop.


or


Use gravity box date and time fix

Audio Problem Fix

copy paste sytem/lib/ all audio lib file from stock to port.(search by ctrl+f)

USB NOT MOUNTING IN PC FIX


copy init.usb.rc from stock boot.img extracted to port and repack.

If App Force Closing


Use Updated App or if only rooted apps are getting Force close then Check Root


If nothing helped then removed that apk from system folder.

If a weird image Showing Between Boot logo and boot animation

Use stock rom's system/media/images/boot_logo in port. 

Romfree4u.com

No comments

Powered by Blogger.