Skip to main content

SOLVING BUGS ON PORTING ROM

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. 

FM NOT WORKING:-
  

COPY THESE FILES FROM STOCK TO PORT:-
\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


For WiFi Bluethooth:-
  

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


For GPS:-
  

->>>> 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


For Camera:-
  

->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 whose 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
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.


Storage mount Problem Fix:-
  

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


USB NOT MOUNTING IN PC FIX:-
  

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


Audio Problem Fix:-
  

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


ICON RESIZER:-


DATE AND TIME ERROR FIX:-
  

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

or
Use gravity box date and time fix


Minimum Brightness:-
  

ro.init.screen_brightness=110 in build prop


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.

Comments

Popular posts from this blog

How To Check DoulCi Server Status

Many people already unlocked their iPhone with iCloud  bypassed activation method using  DoulCi service , but a lot of people who are still not able to bypass their iPhone  iCloud Activation  just because of doulCi server status; as the doulCi server is offline now and then so we find something here to  check DoulCi server status  whether the server is online or offline just read this post for more details. Advertisements iCloud lock is very big shield against thieves, but generally the iPhone user forgot their device password or buy such an iPhone which is locked one, so there is no official mean to bypass the this iCloud Activation except few are available in the market such  Chronicunlocks  which is not a free service, as one have to pay about $149 for unlock service, but on the other hand the doulCi is a free service to bypass iCloud Activation lock. See Also: Apple iCloud Activation Lock Bypassed To Unlock Stolen iPhones iCloud Removal Tool Released By ChronicUnlo
dolby digital plus for lava iris x1 * download here   dolby digital plus.zip *flash it from cwm recovery !!! iam not resoponsible for your mobile. take your own risk,

PORTING ROMS FOR MEDIATEK

FEATURE OF THIS GUIDE- NOOB -> EXPERT  I DONT KNOW THE METHOD I USE TO PORT WILL WORK FOR OTHER CHIPSET DEVICES OR NOT AS I ONLY USED MEDIATEK DEVICE. IF YOU ARE IN A HURRY THEN SEE HERE MY 1-MIN PORTING GUIDE. AND YOU CAN FIND HERE MY TRICKY CONCEPT- "X" TO SAVE MONEY,TIME,NET DATA. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- WORK BEGINS -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- THINGS NEEDED (INSTALL BELOW THINGS AS PER YOUR OS BIT VERSION,IF YOU HAVE 32 BIT OS THEN INSTALL 32 BIT STUFFS AND IF YOU HAVE 64 BIT OS THEN CHOOSE 64 BIT STUFFS. WIndows Running PC or Laptop. JAVA -  Download Cygwin -  Download 7zip Compressor- Downl