Friday, September 30, 2016
Fix Bugs on Custom Rom
Fix Bugs on Custom Rom
Copy from stock to port
For Network
system/etc/firmware/modem_1_wg_n.img
If not working try copy the whole firmware folder
For Bluetooth
system/etc/bluetooth
Copy the whole folder
For Wifi
system/etc/wifi
Copy the whole folder
For Gps
system/xbin/libmnlp_mt6582
For Camera
system/lib/libcameracustom.so
or
First replace libcamdrv.so and check if it work. If not replace libcameraservice.so from your stock rom system/lib folder.
If still nothing then keep on replacing libcamXXX one file at a time and check. Be patient :D
For Sensor/Compase
system/lib/libsensorservice.so
App Force Close/Other Problem
system/lib/libdpframework.so
or
change lcd density that make the rom working properly
Change LCD Density
Go to system/build prop
Edit build.prop with notepad+++ and add these line **** ro.sf.lcd_density=240 ***
240 is the value of lcd density. change the value to change lcd density.
Note: If these line already exist on the build.prop just chenge the value. No need to add these line one more.
Softkey Vibration
Go to system/usr/keylayout/generic.kl
Edit generic.kl with notepad+++
Go to line 139,158,172 and add (VIRTUAL)
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
Must be 14 space before the VIRTUAL"
No Audio From Loudspeaker
Replace libaudio.primary.default.so from your stock rom system/lib folder
If dont work try replace all libaudio***. This may cause bootloop and if it does than replace only :
libaudio.a2dp.default.so
libaudio.primary.default.so
libaudiocompensationfilter.so
libaudiocustparam.so
libaudiosetting.so
libaudioutils.so
High Audio Valume Issue!
Replace libcustom_nvram.so from your stock rom system/lib folder.
If not working replace libaudio.primary.default.so from any other working rom for ur devices
No Flash From Camera!
Replace libfeatureio.so from your stock rom system/lib folder.
Video Showing Pixels And Glitches!
Replace libvcodecdrv.so from your stock rom system/lib folder.
Problem With Touchscreen!
Replace libinput.so from your stock rom system/lib folder.
Screen is Upside Down!
In build.prop find this line
ro.sf.hwrotation=180
change the value from 0 to 180 or from 180 to 0
Wifi Tethering Problem
Replace dnsmasq from system/bin folder.
Replace These Files For Network Drop Issue To Fix:-
system/bin/rild
system/bin/rildmd2
system/etc/ril/oper.lis
system/lib/ibreference-ril.so
system/lib/libril.so
system/lib/librilmtk.so
system/lib/librilmtkmd2.so
system/lib/librilutils.so
system/lib/mtk-ril.so
system/lib/mtk-rilmd2.so
Changes for offline charging are:
/system/bin/ipod
/system/bin/boot_logo_updater
/system/lib/libipod.so
/system/lib/libshowlogo.so
and in boot.img:
init2
init.charging.rc
For factory/meta mode (includes changes for offline charging like init2):
/system/bin/factory
boot.img:
all init.rc files with factory or meta in the file name
Fix Your Storage Problem (Internal+External)
extract the framework-res.apk from your Ported rom
Open the framework-res.apk using 7zip
Then Go to res/xml.......
here you will find storage_list.xml
Just replace the storage_list.xml with your stock rom framework-res.apk
that it close the winrar.... add the framework-res.apk to your ported rom install the rom and enjoy
Note : After Using This Method on Some Rom the internal and external sdcard get swap like internal become external and external become internal.....
to fix this you have to decompile the framework-res.apk using apktool and then edit the storage_list.xml.....
in storage_list.xml ....you have to just rename the sdcard0 and sdcard1 to sdcard1 and sdcard0 vise versa receptively
Another Storage Problem Solved
The SD entry card is wrong. My external SD card is shown as internal and so, every files like cache, temp files etc. where written to external SD card.
So i have change the the vold.fstab in system/etc. and change the this two line from:
dev_mount sdcard /storage/sdcard0 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
to :
dev_mount sdcard /storage/sdcard1 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
And now, the cards are correct mounted.
Good Luck
Available link for download