[Micromax A110] superdragonpt:
:laugh::laugh::laugh::laugh:

Hey dark4droid

This is something i fixed on my ROM Wi-Fi's, some file in system/keychars was causing instability on wifi

Check your dev ROM, before release

---------- Post added at 05:27 PM ---------- Previous post was at 05:19 PM ----------

@Dark4droid

Check this and Patch if necessary:

Files with the mods DONE

meta_init.rc

on early-init
# Set init and its forked children's oom_adj.
write /proc/1/oom_adj -16

start ueventd

write /proc/bootprof "INIT: usr/eng build setting"
# create mountpoints
mkdir /mnt 0775 root system
mkdir /storage 0055 system sdcard_r
mkdir /storage/sdcard0 0000 system system
mkdir /storage/sdcard1 0000 system system
mkdir /mnt/cd-rom 0000 system system
# for backwards compatibility
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sdcard2

on init

sysclktz 0

loglevel 3
write /proc/bootprof "INIT: on init start"

export PATH /sbin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /system/lib
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb

symlink /system/etc /etc

mkdir /sdcard 0000 system system
mkdir /system
mkdir /data 0771 system system
mkdir /backup 0600 system system
mount /tmp /tmp tmpfs

#################################################################
#Create for sdcard directory
# Direcory for putting things only root should see.
mkdir /mnt/secure 0700 root root

# Direcotry for staging bindmounts
mkdir /mnt/secure/staging 0700 root root

# Direcory-target for where the secure container
# imagefile directory will be bind-mounted
mkdir /mnt/secure/asec 0700 roo root

# Secure container public mount points
mkdir /mnt/asec 0700 root system
mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
################################################################
mount rootfs rootfs / ro remount

write /proc/sys/kernel/panic_on_oops 1
write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
write /proc/sys/kernel/sched_compat_yield 1

#disable USB function until sets sys.usb.com_config
write /sys/devices/platform/mt_usb/cmode 0

# adbd is controlled via property triggers in init.<platform>.usb.rc
service adbd /sbin/adbd
class core
disabled

# mount different fs start

on fs_property:ro.mount.fs=YAFFS
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
write /proc/bootprof "INIT:NAND:Mount_START"
mount yaffs2 mtd@system /system
mkdir /system/secro 0600 system system
mount yaffs2 mtd@system /system ro remount
mount yaffs2 mtd@userdata /data nosuid nodev
# mount secro partition
mount yaffs2 mtd@secstatic /system/secro ro
mount yaffs2 mtd@cache /cache nosuid nodev
write /proc/bootprof "INIT:NAND:Mount_END"

on fs_property:ro.mount.fs=EXT4
write /proc/bootprof "INIT:eMMC:Mount_START"
exec /sbin/e2fsck -p /emmc@android
# Mount /system rw first to give the filesystem a chance to save a checkpoint
#mount ext4 emmc@android /system wait commit=1,data=journal,noauto_da_alloc
mount ext4 /emmc@android /system wait commit=1,noauto_da_alloc
mkdir /system/secro 0600 system system
mount ext4 /emmc@android /system noatime ro remount wait
exec /sbin/e2fsck -pfD /emmc@usrdata
exec /sbin/tune2fs -O has_journal /emmc@usrdata
exec /system/bin/ext4_resize
mount ext4 /emmc@usrdata /data noatime nosuid nodev wait commit=1,nodelalloc,noauto_da_alloc
mount ext4 /emmc@sec_ro /system/secro ro wait
write /proc/bootprof "INIT:eMMC:Mount_END"

on fs_property:ro.mount.fs=UBIFS
write /proc/bootprof "INIT:NAND:Mount_START"
mount ubifs ubi@system /system
mkdir /system/secro 0600 system system
mount ubifs ubi@system /system ro remount
mount ubifs ubi@userdata /data nosuid nodev
mount ubifs ubi@cache /cache nosuid nodev
mount ubifs ubi@secstatic /system/secro ro
write /proc/bootprof "INIT:NAND:Mount_END"
# mount different fs end

on fs
chown system system /data
chmod 0771 /data

# create basic filesystem structure
mkdir /data/nvram 0770 root nvram
mkdir /data/misc 01771 system misc
#migrate from 2.1 example CH Yeh 01089
mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
#mkdir /data/misc/hcid 0770 bluetooth bluetooth
mkdir /data/misc/keystore 0700 keystore keystore
mkdir /data/misc/vpn 0770 system system
mkdir /data/misc/vpn/profiles 0770 system system
mkdir /data/local 0771 shell shell
mkdir /data/local/tmp 0771 shell shell
mkdir /data/data 0771 system system
mkdir /data/app-private 0771 system system
mkdir /data/app 0771 system system
mkdir /data/property 0700 root root

# create the lost+found directories, so as to enforce our permissions
mkdir /data/lost+found 0770

# double check the perms, in case lost+found already exists, and set owner
chown root root /data/lost+found
chmod 0770 /data/lost+found

# WiFi
mkdir /data/misc/wifi 0770 system wifi
mkdir /data/misc/wifi/sockets 0770 system wifi
mkdir /data/system/wpa_supplicant 0770 system wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp

# Touch Panel
chown system system /sys/touchpanel/calibration
chmod 0660 /sys/touchpanel/calibration

chmod 0777 /dev/pmem_multimedia
chmod 0777 /dev/mt6516-isp
chmod 0777 /dev/mt6516-IDP
chmod 0777 /dev/mt9p012
chmod 0777 /dev/mt6516_jpeg
# chmod 0777 /dev/FM50AF Teng
chmod 0777 /dev/OV8825AF

# GPS
chmod 0666 /dev/gps

# RTC
mkdir /data/misc/rtc 0770 system system

# Modem related device nodes
mkdir /data/nvram/md 0770 root nvram

insmod /system/lib/modules/ccci_plat.ko
insmod /system/lib/modules/ccci.ko
insmod /system/lib/modules/ccmni.ko

# mknod /dev/ccci c 184 0
mknod /dev/ccci_fs c 178 0
mknod /dev/ccci_sys_rx c 184 2
mknod /dev/ccci_sys_tx c 184 3
mknod /dev/ccci_pcm_rx c 184 4
mknod /dev/ccci_pcm_tx c 184 5
# mknod /dev/ccci_uart1_rx c 184 6
# mknod /dev/ccci_uart1_rx_ack c 184 7
mknod /dev/ccci_uem_rx c 184 18
mknod /dev/ccci_uem_tx c 184 19
chmod 0660 /dev/ccci_uem_rx
chmod 0660 /dev/ccci_uem_tx

mknod /dev/ccci_md_log_rx c 184 42
mknod /dev/ccci_md_log_tx c 184 43
chmod 0660 /dev/ccci_md_log_rx
chmod 0660 /dev/ccci_md_log_tx

# chmod 0666 /dev/ccci
chmod 0660 /dev/ccci_fs
chmod 0660 /dev/ccci_pcm_rx
chmod 0660 /dev/ccci_pcm_tx
chmod 0660 /dev/ccci_sys_rx
chmod 0660 /dev/ccci_sys_tx
# chmod 0600 /dev/ccci_uart1_rx
# chmod 0600 /dev/ccci_uart1_rx_ack
chmod 0660 /dev/ttyC0
chmod 0660 /dev/ttyC1
chmod 0660 /dev/ttyC2

chown ccci ccci /dev/ccci_fs
chown ccci ccci /dev/ccci_sys_rx
chown ccci ccci /dev/ccci_sys_tx
chown ccci ccci /dev/ccci_pcm_rx
chown ccci ccci /dev/ccci_pcm_tx
chown ccci ccci /dev/ccci_uem_rx
chown ccci ccci /dev/ccci_uem_tx
chown ccci ccci /dev/ccci_ipc_1220_0
chown ccci ccci /dev/ttyC0
chown ccci ccci /dev/ttyC1
chown ccci ccci /dev/ttyC2
chown ccci ccci /dev/ccci_md_log_rx
chown ccci ccci /dev/ccci_md_log_tx
chown ccci ccci /sys/class/BOOT/BOOT/boot/md
# M4U
insmod /system/lib/modules/m4u.ko
mknod /dev/M4U_device c 188 0
chmod 0444 /dev/M4U_device
chown system media /dev/M4U_device

# Sensor
chmod 0666 /dev/sensor

# GPIO
chmod 0664 /dev/mtgpio

# Android SEC related device nodes
insmod /system/lib/modules/sec.ko
mknod /dev/sec c 182 0
chmod 0660 /dev/sec
chown root system /dev/sec

#for 6620_launcher
chmod 0660 /dev/ttyMT2
chown system system /dev/ttyMT2

#
# MT6620 related modules and character device nodes (Begin)
#
# STP, SDIO, WMT, GPS, FM and BT Driver
insmod /system/lib/modules/mtk_hif_sdio.ko
insmod /system/lib/modules/mtk_stp_wmt.ko
insmod /system/lib/modules/mtk_stp_uart.ko
insmod /system/lib/modules/mtk_stp_gps.ko
insmod /system/lib/modules/mtk_stp_bt.ko
insmod /system/lib/modules/mtk_wmt_wifi.ko

# Create char device file for WMT, GPS, BT, FM, WIFI
mknod /dev/stpwmt c 190 0;
mknod /dev/stpgps c 191 0;
mknod /dev/stpbt c 192 0;

chmod 0660 /dev/stpwmt
chown system system /dev/stpwmt

mknod /dev/wmtWifi c 153 0
chmod 0666 /dev/wmtWifi
chmod 0660 /dev/stpgps
chmod 0666 /dev/stpbt

# Load WiFi Driver
#insmod /system/lib/modules/wlan.ko

# BT

chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
write sys/class/rfkill/rfkill0/state 0

#otp
chmod 0660 /dev/otp
chown root nvram /dev/otp
#
# MT6620 related modules and character device nodes (ends)
#

on post-fs-data
# Encrypt phone function
setprop vold.post_fs_data_done 1

on property:fmradio.driver.enable=1
insmod /system/lib/modules/mtk_fm_drv.ko
insmod /system/lib/modules/mtk_fm_priv.ko
mknod /dev/fm c 193 0;
chmod 0666 /dev/fm

on property:vold.decrypt=trigger_reset_main
class_reset main

on property:vold.decrypt=trigger_load_persist_props
load_persist_props

on property:vold.decrypt=trigger_post_fs_data
trigger post-fs-data

on property:vold.decrypt=trigger_restart_min_framework
class_start main

on property:vold.decrypt=trigger_restart_framework
start permission_check
class_start main
class_start late_start

on property:vold.decrypt=trigger_shutdown_framework
class_reset late_start
class_reset default
class_reset main

on property:vold.decrypt=trigger_stop_modem_and_default
stop gsm0710muxd
stop rild
stop ccci_fsd
stop ccci_mdinit
class_reset default

on boot

ifup lo
hostname localhost
domainname localdomain

class_start default
start vold
start sdcard

service console /system/bin/sh
class core
console
disabled
user root
group log

service adbd /sbin/adbd
disabled

service ueventd /sbin/ueventd
class core
critical

service permission_check /system/bin/permission_check
user root
group nvram
oneshot

service ccci_fsd /system/bin/ccci_fsd
user ccci
group nvram ccci system
oneshot

service ccci_mdinit /system/bin/ccci_mdinit
user system
group ccci system
oneshot

service meta_tst /sbin/meta_tst

service nvram_daemon /system/bin/nvram_daemon
user root
group nvram
oneshot

service mobile_log_d /system/bin/mobile_log_d

#
# MT6620 related services (Begin)
#
service 662x_launcher /system/bin/logwrapper /system/bin/6620_launcher -b 4000000 -p /system/etc/firmware/ -d /dev/ttyMT2
user system
group system
oneshot

#
# MT6620 related services (End)
#

service vold /system/bin/vold
class core
socket vold stream 0660 root mount
ioprio be 2

#mass_storage,adb,acm
on property:sys.usb.com_config=0
write /sys/class/android_usb/android0/iSerial $ro.serialno
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 0bb4
write /sys/class/android_usb/android0/idProduct 0005
write /sys/class/android_usb/android0/f_acm/instances 1
write /sys/class/android_usb/android0/functions mass_storage,adb,acm
write /sys/class/android_usb/android0/enable 1
write /sys/devices/platform/mt_usb/cmode 1
start adbd

#acm
on property:sys.usb.com_config=1
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/iSerial " "
write /sys/class/android_usb/android0/idVendor 0e8d
write /sys/class/android_usb/android0/idProduct 2007
write /sys/class/android_usb/android0/f_acm/instances 1
write /sys/class/android_usb/android0/functions acm
write /sys/class/android_usb/android0/bDeviceClass 02
write /sys/class/android_usb/android0/enable 1
write /sys/devices/platform/mt_usb/cmode 1

init.project.rc

on fs
# mount mtd partitions

on post-fs
# Add by Mtk

on post-fs-data

#
# MT6620 related device nodes & configuration (begin)
#

#/dev/ttyMT2 for MT6620 BT/FM/GPS usage
chmod 0660 /dev/ttyMT2
chown system system /dev/ttyMT2

# Turn off MT6620 by default
chmod 0664 /sys/class/rfkill/rfkill0/state
chown system system /sys/class/rfkill/rfkill0/state
write sys/class/rfkill/rfkill0/state 0

# STP, WMT, GPS, FM and BT Driver
insmod /system/lib/modules/mtk_hif_sdio.ko
insmod /system/lib/modules/mtk_stp_wmt.ko
insmod /system/lib/modules/mtk_stp_uart.ko
insmod /system/lib/modules/mtk_stp_gps.ko
insmod /system/lib/modules/mtk_stp_bt.ko
insmod /system/lib/modules/mtk_fm_drv.ko
insmod /system/lib/modules/mtk_fm_priv.ko
insmod /system/lib/modules/mtk_wmt_wifi.ko

# Create char device file for WMT, GPS, BT, FM, WIFI
mknod /dev/stpwmt c 190 0;
mknod /dev/stpgps c 191 0;
mknod /dev/stpbt c 192 0;

chmod 0660 /dev/stpwmt
chown system system /dev/stpwmt

mknod /dev/wmtWifi c 153 0
chmod 0660 /dev/wmtWifi
chown system system /dev/wmtWifi

# BT
chmod 0660 /dev/stpbt
chown bluetooth radio /dev/stpbt

# GPS
chown gps gps /dev/stpgps
chown gps gps /sys/class/gpsdrv/gps/pwrctl
chown gps gps /sys/class/gpsdrv/gps/suspend
chown gps gps /sys/class/gpsdrv/gps/state
chown gps gps /sys/class/gpsdrv/gps/pwrsave
chown gps gps /sys/class/gpsdrv/gps/status
chmod 0660 /dev/stpgps

# WiFi
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wpa_supplicant 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
chown wifi wifi /data/misc/wifi

# Load WiFi Driver
insmod /system/lib/modules/wlan.ko

# Char device for BT 3.0 HS
mknod /dev/ampc0 c 151 0
chown bluetooth bluetooth /dev/ampc0
chmod 0660 /dev/ampc0

#
# MT6620 related device nodes & configuration (end)
#

# Encrypt phone function
setprop vold.post_fs_data_done 1

on boot

#
# MT6620 related services (Begin)
#
service 662x_launcher /system/bin/logwrapper /system/bin/6620_launcher -b 4000000 -p /system/etc/firmware/ -d /dev/ttyMT2
user system
group system
class core

service wlanLoader /system/bin/wlan_loader
user root
group root
class main
oneshot

service stp_dump /system/bin/stp_dump3
user system
group system net_admin
class main
# oneshot

# oneshot
#
# MT6620 related services (End)
#