Monday, March 6, 2017

Music Murs – Captain California Album Â

Music Murs – Captain California Album Â


To the point!
When you found a bug when porting a Kitkat Mediatek ROM, you can try to fix using this methods! 

Just replace it from Stock ROM to your Custom ROMs.

Note: This guide is supposed to work on kitkat roms. for fixing bugs in Lollipop/cm roms see another guide.

Bootloop when porting:
/system/lib/libandroid_runtime.so
/system/lib/libandroid_servers.so
/system/lib/libmedia_jni.so
*Repack boot.image

Showing black screen after logo:
system/lib/libMali.so

RadioFM :
system infmradio
systemetcfirmwaremt6620_patch_e3_hdr.bin
systemetcfirmwaremt6620_patch_e6_hdr.bin 
systemetcfirmwareWMT.CFG 
systemlibmodulesmtk_fm_drv.ko
systemliblibfmcust.so


Sensors :
/system/bin/akmd*
/system/lib/libsensors.so
/system/lib/libms3c_yamaha.so
/system/etc/firmware (folder)
/system/bin/servicemanager


BluetoothWifi not turning OnOff :
systemlibmodulemtk_stp_wmt

Bluetooth :
/system/bin/bd_prov
/system/bin/uim*
/system/bin/hcid
/system/bin/bluetooth*
/system/bin/hciattach
/system/bin/sdptool
/system/xbin/hciconfig
/system/bin/brcm_patchram_plus
/system/lib/libbluetooth_mtk.so
/system/lib/libbluetoothem_mtk.so 


Wifi :
/system/bin/netcfg
/system/bin/dhcpcd
/system/bin/ifconfig
/system/bin/hostap
/system/bin/hostapd
/system/bin/hostapd_bin
/system/bin/pcscd
/system/bin/wlan*
/system/bin/wpa*
/system/bin/netd -> Fix wifi hotspot
/system/lib/libhardwarelegacy.so -> Fix wifi /system/lib/modules/mtk_stp_wmt.ko/system/lib/modules/mtk_wmt_wifi.ko
/system/etc/wifi (folder)
/system/etc/firmware (folder)


Camera :
system/lib/libfeatureio.so - camera not working
/system/etc/media_profiles.xml
/system/lib/libcamera.so
/system/lib/liboemcamera.so
systemlibhwcamera.default.so
systemliblibcamera_client.so
systemliblibcameracustom.so
systemliblibcamer aprofile.so
systemliblibcameraservice.so
systemliblibmhal.so
systemliblibmhalcontent.s o
systemliblibmhaldrv.so
systemliblibmhalmdp.so
systemliblibmhalpipe.so
systemliblibmhalscenario.so
systemliblibmhalutility.so
systemetcpermissionandroid.hardware.camera.fro nt.xml
systemliblibOmx*.so -fix camcoder
systemliblibfeatureo.so -fix cam focus
# camera not working or force close or any other problem
 copy all libs starting with /libcam*.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

SD card/Memory:

/system/bin/vold
systemetcvold.fstab -> edit file for swap internal and external
systemetcvold.fstab.nand


*Note:If not present leave this. from kitkat 4.4.x this file hase been moved into boot.img

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

GPS:
systemxbinlibmnlp 
/system/etc/gps.conf 


Touch Screen(Haptic):
/system/usr
/system/usrkeylayoutGeneric.kl ->fix HomeKey 


Sim1/2 (RIL):
systemetcfirmwaremodem.img
systemetcpermission (RIL)
/system/bin/stmd
/system/bin/rild*
/system/etc/rril


Audio/Sound:
systemliblibaudio* .so

Ads:
/system/etc/hosts ->replace with new files or use tweak.

Resolution problem:
open build.prop and add following line
ro.sf.lcd_density=240
[ex: 240 but your dpi maybe deferent]

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

LED not working:
Replace following files from STOCK to PORT

system/lib/libfeatureio.so

Fix Network / 3G Network:
/ system / etc / agps_profiles_conf
/ system / etc / APNs-conf
/ system / etc / epo-conf
/ system / etc / spn-conf
/ system / etc / virtual-spn-conf-by-efspn
/ system / etc / virtual-spn-conf-by-IMSI



If you know Any tell me ill add them.

See Also


How to fix bugs when porting lollipop,cyanogenmod based roms

Available link for download