[OS Porting] A.S.Noman Khan:
At First Download

1.Notpad++

2.Boot.img unpacker

3.Win rar or 7zipper

MT6582 MOBILE

MT6582 mobile camera not conect:

STEP 1:

copy these from stock ROM to port ROM

system\lib\hw\camera.default.so

(N.B.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

(N.B.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.front.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

[NB:These step not required for some mobile]

#####

Audio Problem :

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]

[N.B. Some phone 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

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

########### Again Share My Old Experience ##########

Sim card problem :

*system/bin

SD Card Problem :

*system/etc/vold.fstab

*system/etc/vold.fstab.nand

Camera Focus Problem :

*system/lib/libcameraservice.so

[NB:These step not required for Walton Primo GF,GH,GH+ & GH2]

Boot loop problem :

*system/lib/libandroid_runtime.so

*system/lib/libandroid_servers.so

*system/lib/libmedia_jni.so

Other Problem :

*system/etc/dhcpcd

*system/etc/permissions

*system/etc/security

*system/etc/audio

*system/etc/bluetooth

*system/etc/wifi

*system/lib/drm

*system/lib/egl

*system/lib/soundfx

=================BUILD.PROP TWEAKS==================

# By PurePerformances NK

# System Tweaks

ro.HOME_APP_ADJ=1

ro.mot.eri.losalert.delay=1000

ro.config.hw_fast_dormancy=1

ro.ril.enable.amr.wideband=1

ro.config.hw_fast_dormancy=1

ro.config.hw_quickpoweron=true

# Miscellaneous Tweaks

persist.sys.NV_FPSLIMIT=90

debug.qctwa.statusbar=1

debug.qctwa.preservebuf=1

debug.qc.hardware=true

com.qc.hardware=true

ro.telephony.sms_segment_size=160

persist.telephony.support.ipv6=1

persist.telephony.support.ipv4=1

ro.config.hw_fast_dormancy=1

persist.sys.shutdown.mode=hibernate

ro.config.hw_power_saving=true

ro.media.enc.hprof.vid.fps=65

ro.mot.buttonlight.timeout=1

ro.ril.set.mtu1472=1

touch.presure.scale=0.001

# Makes streaming videos stream faster

media.stagefright.enable-player=true

media.stagefright.enable-meta=true

media.stagefright.enable-scan=true

media.stagefright.enable-http=true

media.stagefright.enable-record=true

# Graphics Enhancement

debug.performance.tuning=1

video.accelerate.hw=1

ro.media.dec.jpeg.memcap=20000000

ro.media.enc.hprof.vid.bps=8000000

ro.media.enc.jpeg.quality=100

# Scrolling Responsiveness

windowsmgr.max_events_per_sec=90

persist.cust.tel.eons=1

# Power Saving Tweaks

ro.ril.disable.power.collapse=1

pm.sleep_mode=1

wifi.supplicant_scan_interval=180

# Dialing Tweaks

ro.telephony.call_ring.delay=0

ro.lge.proximity.delay=25

mot.proximity.delay=25

# DalvikVM

dalvik.vm.verify-bytecode=false

dalvik.vm.execution-mode=int:fast

dalvik.vm.checkjni=false

dalvik.vm.dexopt-data-only=1

dalvik.vm.heapstartsize=1m

dalvik.vm.heapgrowthlimit=64m

dalvik.vm.heapsize=128m

dalvik.vm.verify-bytecode=false

dalvik.vm.execution-mode=int:jit

dalvik.vm.lockprof.threshold=250

dalvik.vm.dexopt-flags=m=v,o=y

dalvik.vm.jmiopts=forcecopy

# Performance

debug.composition.type=gpu

ro.max.fling_velocity=20000

ro.min.fling_velocity=18000

debug.performance.tuning=1

debug.kill_allocating_task=0

debug.overlayui.enable=1

debug.egl.profiler=1

debug.egl.hw=1

debug.sf.hw=1

hw3d.force=1

hw2d.force=1

force_hw_ui=true

profiler.force_disable_err_rpt=1

profiler.force_disable_ulog=1

ro.min_pointer_dur=8

debug.kill_allocating_task=0

persist.sys.ui.hw=1

ro.debuggable=1

ro.config.disable.hw_accel=false

ro.kernel.android.checkjni=0

persist.sys.purgeable_assets=1

persist.sys.use_dithering=1

ro.secure=0

ro.min_pointer_dur=1

# 16bit Transparency

persist.sys.use_16bpp_alpha=1