summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorguaiyihu <guaiyihu@foxmail.com>2018-06-08 13:11:25 +0800
committerTingyiChen <tingyi364@gmail.com>2019-08-13 11:47:00 +0200
commit7597a55eb5d7195624372f2d8ab909bea655cafd (patch)
tree1de0df3e8c7b2e0f6120e68d5937b838cbb82e58 /rootdir
parent73fe0127bc9c318e41b98609a2caed09e3b8f88e (diff)
wayne-common: rootdir: Clean up unused init scripts
* init.qcom.class_core.sh * init.qcom.coex.sh * init.qcom.crashdata.sh * init.qcom.efs.sync.sh * init.qcom.sdio.sh * init.qcom.syspart_fixup.sh * init.qcom.wifi.sh * init.qti.ims.sh * qca6234-service.sh Change-Id: Ib6ba59acb1f1d6b773aeca3c326944049784887c
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/Android.mk73
-rwxr-xr-xrootdir/bin/init.qcom.class_core.sh216
-rwxr-xr-xrootdir/bin/init.qcom.coex.sh115
-rwxr-xr-xrootdir/bin/init.qcom.crashdata.sh48
-rwxr-xr-xrootdir/bin/init.qcom.efs.sync.sh35
-rwxr-xr-xrootdir/bin/init.qcom.sdio.sh78
-rwxr-xr-xrootdir/bin/init.qcom.syspart_fixup.sh80
-rwxr-xr-xrootdir/bin/init.qcom.wifi.sh505
-rwxr-xr-xrootdir/bin/init.qti.ims.sh57
-rwxr-xr-xrootdir/bin/qca6234-service.sh87
-rwxr-xr-xrootdir/etc/init.qcom.rc22
11 files changed, 0 insertions, 1316 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index 6a9f7eb..41661ff 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -12,71 +12,6 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.class_core.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.class_core.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.coex.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.coex.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.crashdata.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.crashdata.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.efs.sync.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.efs.sync.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.sdio.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.sdio.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.syspart_fixup.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.syspart_fixup.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.wifi.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qcom.wifi.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := qca6234-service.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/qca6234-service.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.post_boot.sh
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
@@ -85,14 +20,6 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
-LOCAL_MODULE := init.qti.ims.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := bin/init.qti.ims.sh
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.rc
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
diff --git a/rootdir/bin/init.qcom.class_core.sh b/rootdir/bin/init.qcom.class_core.sh
deleted file mode 100755
index 8f8265d..0000000
--- a/rootdir/bin/init.qcom.class_core.sh
+++ /dev/null
@@ -1,216 +0,0 @@
-#!/vendor/bin/sh
-
-# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-# Set platform variables
-target=`getprop ro.board.platform`
-if [ -f /sys/devices/soc0/hw_platform ]; then
- soc_hwplatform=`cat /sys/devices/soc0/hw_platform` 2> /dev/null
-else
- soc_hwplatform=`cat /sys/devices/system/soc/soc0/hw_platform` 2> /dev/null
-fi
-if [ -f /sys/devices/soc0/soc_id ]; then
- soc_hwid=`cat /sys/devices/soc0/soc_id` 2> /dev/null
-else
- soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
-fi
-if [ -f /sys/devices/soc0/platform_version ]; then
- soc_hwver=`cat /sys/devices/soc0/platform_version` 2> /dev/null
-else
- soc_hwver=`cat /sys/devices/system/soc/soc0/platform_version` 2> /dev/null
-fi
-
-
-# Dynamic Memory Managment (DMM) provides a sys file system to the userspace
-# that can be used to plug in/out memory that has been configured as unstable.
-# This unstable memory can be in Active or In-Active State.
-# Each of which the userspace can request by writing to a sys file.
-#
-# ro.dev.dmm = 1; Indicates that DMM is enabled in the Android User Space. This
-# property is set in the Android system properties file.
-#
-# If ro.dev.dmm.dpd.start_address is set here then the target has a memory
-# configuration that supports DynamicMemoryManagement.
-init_DMM()
-{
- block=-1
-
- case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "msm8960")
- ;;
- *)
- return
- ;;
- esac
-
- mem="/sys/devices/system/memory"
- op=`cat $mem/movable_start_bytes`
- case "$op" in
- "0")
- log -p i -t DMM DMM Disabled. movable_start_bytes not set: $op
- ;;
-
- "$mem/movable_start_bytes: No such file or directory ")
- log -p i -t DMM DMM Disabled. movable_start_bytes does not exist: $op
- ;;
-
- *)
- log -p i -t DMM DMM available. movable_start_bytes at $op
- movable_start_bytes=0x`cat $mem/movable_start_bytes`
- block_size_bytes=0x`cat $mem/block_size_bytes`
- block=$((#${movable_start_bytes}/${block_size_bytes}))
-
- chown -h system.system $mem/memory$block/state
- chown -h system.system $mem/probe
- chown -h system.system $mem/active
- chown -h system.system $mem/remove
-
- case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
- echo $movable_start_bytes > $mem/probe
- case "$?" in
- "0")
- log -p i -t DMM $movable_start_bytes to physical hotplug succeeded.
- ;;
- *)
- log -p e -t DMM $movable_start_bytes to physical hotplug failed.
- return
- ;;
- esac
-
- echo online > $mem/memory$block/state
- case "$?" in
- "0")
- log -p i -t DMM \'echo online\' to logical hotplug succeeded.
- ;;
- *)
- log -p e -t DMM \'echo online\' to logical hotplug failed.
- return
- ;;
- esac
- ;;
- esac
-
- setprop ro.dev.dmm.dpd.start_address $movable_start_bytes
- setprop ro.dev.dmm.dpd.block $block
- ;;
- esac
-
- case "$target" in
- "msm8960")
- return
- ;;
- esac
-
- # For 7X30 targets:
- # ro.dev.dmm.dpd.start_address is set when the target has a 2x256Mb memory
- # configuration. This is also used to indicate that the target is capable of
- # setting EBI-1 to Deep Power Down or Self Refresh.
- op=`cat $mem/low_power_memory_start_bytes`
- case "$op" in
- "0")
- log -p i -t DMM Self-Refresh-Only Disabled. low_power_memory_start_bytes not set:$op
- ;;
- "$mem/low_power_memory_start_bytes No such file or directory ")
- log -p i -t DMM Self-Refresh-Only Disabled. low_power_memory_start_bytes does not exist:$op
- ;;
- *)
- log -p i -t DMM Self-Refresh-Only available. low_power_memory_start_bytes at $op
- ;;
- esac
-}
-
-#
-# For controlling console and shell on console on 8960 - perist.serial.enable 8960
-# On other target use default ro.debuggable property.
-#
-serial=`getprop persist.serial.enable`
-dserial=`getprop ro.debuggable`
-case "$target" in
- "msm8960")
- case "$serial" in
- "0")
- echo 0 > /sys/devices/platform/msm_serial_hsl.0/console
- ;;
- "1")
- echo 1 > /sys/devices/platform/msm_serial_hsl.0/console
- start console
- ;;
- *)
- case "$dserial" in
- "1")
- start console
- ;;
- esac
- ;;
- esac
- ;;
-
- "msm8610" | "msm8974" | "msm8226")
- case "$serial" in
- "0")
- echo 0 > /sys/devices/f991f000.serial/console
- ;;
- "1")
- echo 1 > /sys/devices/f991f000.serial/console
- start console
- ;;
- *)
- case "$dserial" in
- "1")
- start console
- ;;
- esac
- ;;
- esac
- ;;
- *)
- case "$dserial" in
- "1")
- start console
- ;;
- esac
- ;;
-esac
-
-case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
- insmod /system/lib/modules/ss_mfcinit.ko
- insmod /system/lib/modules/ss_vencoder.ko
- insmod /system/lib/modules/ss_vdecoder.ko
- chmod -h 0666 /dev/ss_mfc_reg
- chmod -h 0666 /dev/ss_vdec
- chmod -h 0666 /dev/ss_venc
-
- init_DMM
- ;;
-
- "msm8960")
- init_DMM
- ;;
-esac
diff --git a/rootdir/bin/init.qcom.coex.sh b/rootdir/bin/init.qcom.coex.sh
deleted file mode 100755
index a9a22f1..0000000
--- a/rootdir/bin/init.qcom.coex.sh
+++ /dev/null
@@ -1,115 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2009-2010, 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-LOG_TAG="qcom-bt-wlan-coex"
-LOG_NAME="${0}:"
-
-coex_pid=""
-ath_wlan_supported=`getprop wlan.driver.ath`
-
-loge ()
-{
- /system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@"
-}
-
-logi ()
-{
- /system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@"
-}
-
-failed ()
-{
- loge "$1: exit code $2"
- exit $2
-}
-
-start_coex ()
-{
- case "$ath_wlan_supported" in
- "2")
- echo "ATH WLAN Chip ID AR6004 is enabled"
- /system/bin/abtfilt -d -z -n -m -a -w wlan0 &
- ;;
- "1")
- echo "ATH WLAN Chip ID is enabled"
- # Must have -d -z -n -v -s -w wlan0 parameters for atheros btfilter.
- /system/bin/abtfilt -d -z -n -v -q -s -w wlan0 &
- ;;
- "0")
- echo "WCN WLAN Chip ID is enabled"
- # Must have -o turned on to avoid daemon (otherwise we cannot get pid)
- /system/bin/btwlancoex -o $opt_flags &
- ;;
- *)
- echo "NO WLAN Chip ID is enabled, so enabling ATH as default"
- # Must have -d -z -n -v -s -w wlan0 parameters for atheros btfilter.
- /system/bin/abtfilt -d -z -n -v -q -s -w wlan0 &
- ;;
- esac
- coex_pid=$!
- logi "start_coex: pid = $coex_pid"
-}
-
-kill_coex ()
-{
- logi "kill_coex: pid = $coex_pid"
- kill -TERM $coex_pid
- # this shell doesn't exit now -- wait returns for normal exit
-}
-
-# mimic coex options parsing -- maybe a waste of effort
-USAGE="${0} [-o] [-c] [-r] [-i] [-h]"
-
-while getopts "ocrih" f
-do
- case $f in
- o | c | r | i | h) opt_flags="$opt_flags -$f" ;;
- \?) echo $USAGE; exit 1;;
- esac
-done
-
-# init does SIGTERM on ctl.stop for service
-trap "kill_coex" TERM INT
-
-#Selectively start coex module
-target=`getprop ro.board.platform`
-
-if [ "$target" == "msm8960" ] && [ "$ath_wlan_supported" != "2" ]; then
- logi "btwlancoex/abtfilt is not needed"
-else
- # Build settings may not produce the coex executable
- if ls /system/bin/btwlancoex || ls /system/bin/abtfilt
- then
- start_coex
- wait $coex_pid
- logi "Coex stopped"
- else
- logi "btwlancoex/abtfilt not available"
- fi
-fi
-exit 0
diff --git a/rootdir/bin/init.qcom.crashdata.sh b/rootdir/bin/init.qcom.crashdata.sh
deleted file mode 100755
index 59cf68d..0000000
--- a/rootdir/bin/init.qcom.crashdata.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/vendor/bin/sh
-# Copyright (c) 2017, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-abnormalcnt="persist.vendor.crash.cnt"
-
-abnormal_cnt=`getprop $abnormalcnt`
-crash_detect=`getprop persist.vendor.crash.detect`
-
-if [ "$abnormal_cnt" = "" ]
-then
-setprop $abnormalcnt 0
-fi
-
-if [ "$crash_detect" = "true" ]
-then
-abnormal_cnt=`expr $abnormal_cnt + 1`
-setprop $abnormalcnt $abnormal_cnt
-elif [ "$crash_detect" = "false" ];then
-setprop persist.vendor.crash.detect true
-else
-setprop persist.vendor.crash.detect true
-fi
diff --git a/rootdir/bin/init.qcom.efs.sync.sh b/rootdir/bin/init.qcom.efs.sync.sh
deleted file mode 100755
index 5e7bfa1..0000000
--- a/rootdir/bin/init.qcom.efs.sync.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-#
-
-PATH=/system/bin:$PATH
-export PATH
-cat /sys/devices/platform/rs300000a7.65536/force_sync
-cat /sys/devices/platform/rs300100a7.65536/force_sync
diff --git a/rootdir/bin/init.qcom.sdio.sh b/rootdir/bin/init.qcom.sdio.sh
deleted file mode 100755
index df77745..0000000
--- a/rootdir/bin/init.qcom.sdio.sh
+++ /dev/null
@@ -1,78 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2010, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-# For successful WLAN card detection, WLAN needs SDIO polling turned on.
-# This script can be used to turn on/off SDIO polling on appropriate
-# SDIO slot on the MSM target (e.g. slot 3 on 7x30 surf).
-
-arg=$1
-target=`getprop ro.board.platform`
-
-case "$target" in
- "msm7627_6x")
- echo 1 > /sys/devices/platform/msm_sdcc.1/polling
- echo 1 > /sys/devices/platform/msm_sdcc.2/polling
- ;;
-
- "msm7627_ffa")
- echo 1 > /sys/devices/platform/msm_sdcc.2/polling
- ;;
-
- "msm7627_surf")
- echo 1 > /sys/devices/platform/msm_sdcc.1/polling
- echo 1 > /sys/devices/platform/msm_sdcc.2/polling
- ;;
-
- "msm7627a")
- echo 1 > /sys/devices/platform/msm_sdcc.2/polling
- ;;
-
- "msm7630_surf")
- echo 1 > /sys/devices/platform/msm_sdcc.3/polling
- ;;
-
- "msm7630_1x")
- echo 1 > /sys/devices/platform/msm_sdcc.3/polling
- ;;
-
- "msm7630_fusion")
- echo 1 > /sys/devices/platform/msm_sdcc.3/polling
- ;;
-
- "msm8660")
- echo 1 > /sys/devices/platform/msm_sdcc.4/polling
- ;;
-
- "msm8660_csfb")
- echo 1 > /sys/devices/platform/msm_sdcc.4/polling
- ;;
-esac
-
-exit 0
diff --git a/rootdir/bin/init.qcom.syspart_fixup.sh b/rootdir/bin/init.qcom.syspart_fixup.sh
deleted file mode 100755
index 38d00f1..0000000
--- a/rootdir/bin/init.qcom.syspart_fixup.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-target="$1"
-serial="$2"
-
-# No path is set up at this point so we have to do it here.
-PATH=/sbin:/system/sbin:/system/bin:/system/xbin
-export PATH
-
-mount_needed=false;
-
-if [ ! -f /system/etc/boot_fixup ];then
-# This should be the first command
-# remount system as read-write.
- mount -o rw,remount,barrier=1 /system
- mount_needed=true;
-fi
-
-# **** WARNING *****
-# This runs in a single-threaded, critical path portion
-# of the Android bootup sequence. This is to guarantee
-# all necessary system partition fixups are done before
-# the rest of the system starts up. Run any non-
-# timing critical tasks in a separate process to
-# prevent slowdown at boot.
-
-# Run modem link script
-if [ -f /system/etc/init.qcom.modem_links.sh ]; then
- /system/vendor/bin/init.qcom.modem_links.sh
-fi
-
-# Run mdm link script
-if [ -f /system/etc/init.qcom.mdm_links.sh ]; then
- /system/vendor/bin/init.qcom.mdm_links.sh
-fi
-
-# Run wifi script
-if [ -f /vendor/bin/init.qcom.wifi.sh ]; then
- /vendor/bin/init.qcom.wifi.sh "$target" "$serial"
-fi
-
-# Run the sensor script
-if [ -f /system/etc/init.qcom.sensor.sh ]; then
- /system/vendor/bin/init.qcom.sensor.sh
-fi
-
-touch /system/etc/boot_fixup
-
-if $mount_needed ;then
-# This should be the last command
-# remount system as read-only.
- mount -o ro,remount,barrier=1 /system
-fi
diff --git a/rootdir/bin/init.qcom.wifi.sh b/rootdir/bin/init.qcom.wifi.sh
deleted file mode 100755
index d8bb2d3..0000000
--- a/rootdir/bin/init.qcom.wifi.sh
+++ /dev/null
@@ -1,505 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# This script will load and unload the wifi driver to put the wifi in
-# in deep sleep mode so that there won't be voltage leakage.
-# Loading/Unloading the driver only incase if the Wifi GUI is not going
-# to Turn ON the Wifi. In the Script if the wlan driver status is
-# ok(GUI loaded the driver) or loading(GUI is loading the driver) then
-# the script won't do anything. Otherwise (GUI is not going to Turn On
-# the Wifi) the script will load/unload the driver
-# This script will get called after post bootup.
-
-target="$1"
-serialno="$2"
-
-btsoc=""
-
-# No path is set up at this point so we have to do it here.
-PATH=/sbin:/system/sbin:/system/bin:/system/xbin
-export PATH
-
-# Trigger WCNSS platform driver
-trigger_wcnss()
-{
- # We need to trigger WCNSS platform driver, WCNSS driver
- # will export a file which we must touch so that the
- # driver knows that userspace is ready to handle firmware
- # download requests.
-
- # See if an appropriately named device file is present
- wcnssnode=`ls /dev/wcnss*`
- case "$wcnssnode" in
- *wcnss*)
- # Before triggering wcnss, let it know that
- # caldata is available at userspace.
- if [ -e /data/misc/wifi/WCNSS_qcom_wlan_cal.bin ]; then
- calparm=`ls /sys/module/wcnsscore/parameters/has_calibrated_data`
- if [ -e $calparm ] && [ ! -e /data/misc/wifi/WCN_FACTORY ]; then
- echo 1 > $calparm
- fi
- fi
- # There is a device file. Write to the file
- # so that the driver knows userspace is
- # available for firmware download requests
- echo 1 > $wcnssnode
- ;;
-
- *)
- # There is not a device file present, so
- # the driver must not be available
- echo "No WCNSS device node detected"
- ;;
- esac
-
- # Plumb down the device serial number
- if [ -f /sys/devices/*wcnss-wlan/serial_number ]; then
- cd /sys/devices/*wcnss-wlan
- echo $serialno > serial_number
- cd /
- elif [ -f /sys/devices/platform/wcnss_wlan.0/serial_number ]; then
- echo $serialno > /sys/devices/platform/wcnss_wlan.0/serial_number
- fi
-}
-
-
-case "$target" in
- msm8974* | msm8226* | msm8610*)
-
-# Check whether device is plugged on the HSIC bus
-# Currently HSIC bus will be the first index
-
- if [ -e /sys/bus/platform/drivers/msm_hsic_host ]; then
- if [ ! -L /sys/bus/usb/devices/1-1 ]; then
- echo msm_hsic_host > /sys/bus/platform/drivers/msm_hsic_host/unbind
- fi
-
- chown -h system.system /sys/bus/platform/drivers/msm_hsic_host/bind
- chown -h system.system /sys/bus/platform/drivers/msm_hsic_host/unbind
- chmod -h 0200 /sys/bus/platform/drivers/msm_hsic_host/bind
- chmod -h 0200 /sys/bus/platform/drivers/msm_hsic_host/unbind
- fi
-
- wlanchip=""
-
-# force ar6004 is ar6004_wlan.conf existed.
- if [ -f /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf ]; then
- wlanchip=`cat /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf`
- fi
-
-# auto detect ar6004-sdio card
-# for ar6004-sdio card, the vendor id and device id is as the following
-# vendor id device id
-# 0x0271 0x0400
-# 0x0271 0x0401
- if [ "$wlanchip" == "" ]; then
- sdio_vendors=`echo \`cat /sys/bus/mmc/devices/*/*/vendor\``
- sdio_devices=`echo \`cat /sys/bus/mmc/devices/*/*/device\``
- ven_idx=0
-
- for vendor in $sdio_vendors; do
- case "$vendor" in
- "0x0271")
- dev_idx=0
- for device in $sdio_devices; do
- if [ $ven_idx -eq $dev_idx ]; then
- case "$device" in
- "0x0400" | "0x0401" | "0x0402")
- wlanchip="AR6004-SDIO"
- ;;
- *)
- ;;
- esac
- fi
- dev_idx=$(( $dev_idx + 1))
- done
- ;;
- *)
- ;;
- esac
- ven_idx=$(( $ven_idx + 1))
- done
- # auto detect ar6004-sdio card end
- fi
-
-# for ar6004-usb card, the vendor id and device id is as the following
-# vendor id product id
-# 0x0cf3 0x9374
-# 0x0cf3 0x9372
- if [ "$wlanchip" == "" ]; then
- usb_vendors=`echo \`cat /sys/bus/usb/devices/*/*/idVendor\``
- usb_products=`echo \`cat /sys/bus/usb/devices/*/*/idProduct\``
- ven_idx=0
-
- for vendor in $usb_vendors; do
- case "$vendor" in
- "0cf3")
- dev_idx=0
- for product in $usb_products; do
- if [ $ven_idx -eq $dev_idx ]; then
- case "$product" in
- "9374" | "9372")
- wlanchip="AR6004-USB"
- ;;
- *)
- ;;
- esac
- fi
- dev_idx=$(( $dev_idx + 1))
- done
- ;;
- *)
- ;;
- esac
- ven_idx=$(( $ven_idx + 1))
- done
- # auto detect ar6004-usb card end
- fi
-
- echo "The WLAN Chip ID is $wlanchip"
- case "$wlanchip" in
- "AR6004-USB")
- echo msm_hsic_host > /sys/bus/platform/drivers/msm_hsic_host/unbind
- setprop wlan.driver.ath 2
- setprop qcom.bluetooth.soc ath3k
- btsoc="ath3k"
- rm /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/ath6kl-3.5/ath6kl_usb.ko \
- /system/lib/modules/wlan.ko
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin_usb \
- /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin_usb \
- /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
- rm /system/etc/firmware/ath6k/AR6004/hw3.0/bdata.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw3.0/bdata.bin_usb \
- /system/etc/firmware/ath6k/AR6004/hw3.0/bdata.bin
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_ath6kl.conf \
- /system/etc/wifi/wpa_supplicant.conf
- ;;
-
- "AR6004-SDIO")
- setprop wlan.driver.ath 2
- setprop qcom.bluetooth.soc ath3k
- btsoc="ath3k"
- # Chown polling nodes as needed from UI running on system server
- chmod -h 0200 /sys/devices/msm_sdcc.1/polling
- chmod -h 0200 /sys/devices/msm_sdcc.2/polling
- chmod -h 0200 /sys/devices/msm_sdcc.3/polling
- chmod -h 0200 /sys/devices/msm_sdcc.4/polling
-
- chown -h system.system /sys/devices/msm_sdcc.1/polling
- chown -h system.system /sys/devices/msm_sdcc.2/polling
- chown -h system.system /sys/devices/msm_sdcc.3/polling
- chown -h system.system /sys/devices/msm_sdcc.4/polling
-
- rm /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/ath6kl-3.5/ath6kl_sdio.ko \
- /system/lib/modules/wlan.ko
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin_sdio \
- /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin_sdio \
- /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
- rm /system/etc/firmware/ath6k/AR6004/hw3.0/bdata.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw3.0/bdata.bin_sdio \
- /system/etc/firmware/ath6k/AR6004/hw3.0/bdata.bin
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_ath6kl.conf \
- /system/etc/wifi/wpa_supplicant.conf
- ;;
-
- *)
- echo "*** WI-FI chip ID is not specified in /persist/wlan_chip_id **"
- echo "*** Use the default WCN driver. **"
- setprop wlan.driver.ath 0
- rm /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/pronto/pronto_wlan.ko \
- /system/lib/modules/wlan.ko
- # Populate the writable driver configuration file
- if [ ! -s /data/misc/wifi/WCNSS_qcom_cfg.ini ]; then
- cp /system/etc/wifi/WCNSS_qcom_cfg.ini \
- /data/misc/wifi/WCNSS_qcom_cfg.ini
- chown -h system:wifi /data/misc/wifi/WCNSS_qcom_cfg.ini
- chmod -h 660 /data/misc/wifi/WCNSS_qcom_cfg.ini
- fi
-
- # The property below is used in Qcom SDK for softap to determine
- # the wifi driver config file
- setprop wlan.driver.config /data/misc/wifi/WCNSS_qcom_cfg.ini
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_wcn.conf \
- /system/etc/wifi/wpa_supplicant.conf
-
- # Trigger WCNSS platform driver
- trigger_wcnss &
- ;;
- esac
- ;;
-
- apq8084*)
- echo "*** Use the CNSS CLD driver.**"
- setprop wlan.driver.ath 0
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_wcn.conf \
- /system/etc/wifi/wpa_supplicant.conf
- ;;
-
- msm8960*)
-
- # Move cfg80211.ko to prima directory, the default cfg80211.ko is
- # for wcnss solution
- if [ ! -L /system/lib/modules/cfg80211.ko ]; then
- mv /system/lib/modules/cfg80211.ko /system/lib/modules/prima/
- fi
-
- wlanchip=""
-
- if [ -f /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf ]; then
- wlanchip=`cat /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf`
- fi
-
- if [ "$wlanchip" == "" ]; then
- # auto detect ar6004-usb card
- # for ar6004-usb card, the vendor id and device id is as the following
- # vendor id product id
- # 0x0cf3 0x9374
- # 0x0cf3 0x9372
- usb_vendors=`echo \`cat /sys/bus/usb/devices/*/*/idVendor\``
- usb_products=`echo \`cat /sys/bus/usb/devices/*/*/idProduct\``
- ven_idx=0
-
- for vendor in $usb_vendors; do
- case "$vendor" in
- "0cf3")
- dev_idx=0
- for product in $usb_products; do
- if [ $ven_idx -eq $dev_idx ]; then
- case "$product" in
- "9374" | "9372")
- wlanchip="AR6004-USB"
- ;;
- *)
- ;;
- esac
- fi
- dev_idx=$(( $dev_idx + 1))
- done
- ;;
- *)
- ;;
- esac
- ven_idx=$(( $ven_idx + 1))
- done
- # auto detect ar6004-usb card end
- fi
-
- if [ "$wlanchip" == "" ]; then
- # auto detect ar6004-sdio card
- # for ar6004-sdio card, the vendor id and device id is
- # as the following
- # vendor id device id
- # 0x0271 0x0400
- # 0x0271 0x0401
- sdio_vendors=`echo \`cat /sys/bus/mmc/devices/*/*/vendor\``
- sdio_devices=`echo \`cat /sys/bus/mmc/devices/*/*/device\``
- ven_idx=0
-
- for vendor in $sdio_vendors; do
- case "$vendor" in
- "0x0271")
- dev_idx=0
- for device in $sdio_devices; do
- if [ $ven_idx -eq $dev_idx ]; then
- case "$device" in
- "0x0400" | "0x0401")
- wlanchip="AR6004-SDIO"
- ;;
- *)
- ;;
- esac
- fi
- dev_idx=$(( $dev_idx + 1))
- done
- ;;
- *)
- ;;
- esac
- ven_idx=$(( $ven_idx + 1))
- done
- # auto detect ar6004-sdio card end
- fi
-
- echo "The WLAN Chip ID is $wlanchip"
- case "$wlanchip" in
- "AR6004-USB")
- setprop wlan.driver.ath 2
- rm /system/lib/modules/wlan.ko
- rm /system/lib/modules/cfg80211.ko
- ln -s /system/lib/modules/ath6kl-3.5/ath6kl_usb.ko \
- /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/ath6kl-3.5/cfg80211.ko \
- /system/lib/modules/cfg80211.ko
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin_usb \
- /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin_usb \
- /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_ath6kl.conf \
- /system/etc/wifi/wpa_supplicant.conf
- ;;
- "AR6004-SDIO")
- setprop wlan.driver.ath 2
- setprop qcom.bluetooth.soc ath3k
- btsoc="ath3k"
- rm /system/lib/modules/wlan.ko
- rm /system/lib/modules/cfg80211.ko
- ln -s /system/lib/modules/ath6kl-3.5/ath6kl_sdio.ko \
- /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/ath6kl-3.5/cfg80211.ko \
- /system/lib/modules/cfg80211.ko
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- rm /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin_sdio \
- /system/etc/firmware/ath6k/AR6004/hw1.3/fw.ram.bin
- ln -s /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin_sdio \
- /system/etc/firmware/ath6k/AR6004/hw1.3/bdata.bin
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_ath6kl.conf \
- /system/etc/wifi/wpa_supplicant.conf
- ;;
- *)
- echo "*** WI-FI chip ID is not specified in /persist/wlan_chip_id **"
- echo "*** Use the default WCN driver. **"
- setprop wlan.driver.ath 0
- rm /system/lib/modules/wlan.ko
- rm /system/lib/modules/cfg80211.ko
- ln -s /system/lib/modules/prima/prima_wlan.ko \
- /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/prima/cfg80211.ko \
- /system/lib/modules/cfg80211.ko
-
- # The property below is used in Qcom SDK for softap to determine
- # the wifi driver config file
- setprop wlan.driver.config /data/misc/wifi/WCNSS_qcom_cfg.ini
-
- # Use different wpa_supplicant.conf template between wcn driver
- # and ath6kl driver
- rm /system/etc/wifi/wpa_supplicant.conf
- ln -s /system/etc/wifi/wpa_supplicant_wcn.conf \
- /system/etc/wifi/wpa_supplicant.conf
-
- # Trigger WCNSS platform driver
- trigger_wcnss &
- ;;
- esac
- ;;
-
- msm7627a*)
-
- # The default cfg80211 module is for volans
- if [ ! -L /system/lib/modules/cfg80211.ko ]; then
- mv /system/lib/modules/cfg80211.ko /system/lib/modules/volans/
- fi
-
- wlanchip=`cat /persist/wlan_chip_id`
- echo "The WLAN Chip ID is $wlanchip"
- case "$wlanchip" in
- "ATH6KL")
- setprop wlan.driver.ath 1
- rm /system/lib/modules/wlan.ko
- rm /system/lib/modules/cfg80211.ko
- ln -s /system/lib/modules/ath6kl/ath6kl_sdio.ko \
- /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/ath6kl/cfg80211.ko \
- /system/lib/modules/cfg80211.ko
- ;;
- "WCN1314")
- setprop wlan.driver.ath 0
- rm /system/lib/modules/wlan.ko
- rm /system/lib/modules/cfg80211.ko
- ln -s /system/lib/modules/volans/WCN1314_rf.ko \
- /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/volans/cfg80211.ko \
- /system/lib/modules/cfg80211.ko
- ;;
- *)
- setprop wlan.driver.ath 1
- rm /system/lib/modules/wlan.ko
- rm /system/lib/modules/cfg80211.ko
- ln -s /system/lib/modules/ath6kl/ath6kl_sdio.ko \
- /system/lib/modules/wlan.ko
- ln -s /system/lib/modules/ath6kl/cfg80211.ko \
- /system/lib/modules/cfg80211.ko
- echo "************************************************************"
- echo "*** Error:WI-FI chip ID is not specified in"
- echo "/persist/wlan_chip_id"
- echo "******* WI-FI may not work ***************************"
- ;;
- esac
- ;;
-
- msm7627*)
- ln -s /data/hostapd/qcom_cfg.ini /etc/firmware/wlan/qcom_cfg.ini
- ln -s /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
- ;;
-
- msm8660*)
- ;;
-
- msm7630*)
- ;;
-
- *)
- ;;
-esac
-
diff --git a/rootdir/bin/init.qti.ims.sh b/rootdir/bin/init.qti.ims.sh
deleted file mode 100755
index c2ac44e..0000000
--- a/rootdir/bin/init.qti.ims.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2014, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-#
-
-dir0=/data
-trigger_file=$dir0/ims_diabled
-ims_disabled=`getprop persist.ims.disabled`
-target=`getprop ro.build.product`
-
-#if [ ! -e $trigger_file ]; then
-# for future use in doing conditional debugging
-#else
-#
-#fi
-echo "$ims_disabled"
-echo "$target"
-
-if [ "$ims_disabled" = "0" ]; then
- echo "ims will be enabled"
- setprop service.qti.ims.enabled 1
- exit
-fi
-
-if [ "$ims_disabled" = "1" ] || [ "$target" = "msm8909_512" ]; then
- echo "ims is disabled"
- setprop service.qti.ims.enabled 0
-else
- echo "ims is enabled"
- setprop service.qti.ims.enabled 1
-fi
diff --git a/rootdir/bin/qca6234-service.sh b/rootdir/bin/qca6234-service.sh
deleted file mode 100755
index ee0f4dc..0000000
--- a/rootdir/bin/qca6234-service.sh
+++ /dev/null
@@ -1,87 +0,0 @@
-#! /vendor/bin/sh
-
-# Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# Check whether device is plugged on the HSIC bus
-# Currently HSIC bus will be the first index
-
-PATH=/sbin:/system/sbin:/system/bin:/system/xbin
-export PATH
-
-deviceprop=`getprop ro.baseband`
-boardprop=`getprop ro.board.platform`
-
-if [ -e /sys/bus/platform/drivers/msm_hsic_host ]; then
- if [ ! -L /sys/bus/usb/devices/1-1 ]; then
- echo msm_hsic_host > /sys/bus/platform/drivers/msm_hsic_host/unbind
- fi
-
- chown -h system.system /sys/bus/platform/drivers/msm_hsic_host/bind
- chown -h system.system /sys/bus/platform/drivers/msm_hsic_host/unbind
- chmod -h 0200 /sys/bus/platform/drivers/msm_hsic_host/bind
- chmod -h 0200 /sys/bus/platform/drivers/msm_hsic_host/unbind
-fi
-
-wlanchip=""
-
-if [ "$deviceprop" == "apq" ] && [ "$boardprop" == "msm8974" ]; then
- wlanchip="AR6004-USB"
-fi
-
-# force ar6004 is ar6004_wlan.conf existed.
-if [ -f /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf ]; then
- wlanchip=`cat /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf`
-fi
-
-echo "The WLAN Chip ID is $wlanchip"
-if [ "$wlanchip" == "AR6004-USB" ]; then
- echo msm_hsic_host > /sys/bus/platform/drivers/msm_hsic_host/unbind
- setprop wlan.driver.ath 2
- setprop qcom.bluetooth.soc ath3k
- setprop wlan.driver.name /system/lib/modules/ath6kl-3.5/ath6kl_usb.ko
- setprop wlan.supp.template /system/etc/wifi/wpa_supplicant_ath6kl.conf
- btsoc="ath3k"
-elif [ "$wlanchip" == "AR6004-SDIO" ]; then
- setprop wlan.driver.ath 2
- setprop qcom.bluetooth.soc ath3k
- setprop wlan.driver.name /system/lib/modules/ath6kl-3.5/ath6kl_sdio.ko
- setprop wlan.supp.template /system/etc/wifi/wpa_supplicant_ath6kl.conf
- btsoc="ath3k"
-
- # Chown polling nodes as needed from UI running on system server
- chmod -h 0200 /sys/devices/msm_sdcc.1/polling
- chmod -h 0200 /sys/devices/msm_sdcc.2/polling
- chmod -h 0200 /sys/devices/msm_sdcc.3/polling
- chmod -h 0200 /sys/devices/msm_sdcc.4/polling
-
- chown -h system.system /sys/devices/msm_sdcc.1/polling
- chown -h system.system /sys/devices/msm_sdcc.2/polling
- chown -h system.system /sys/devices/msm_sdcc.3/polling
- chown -h system.system /sys/devices/msm_sdcc.4/polling
-fi
-
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 4524cac..2736b6d 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -548,11 +548,6 @@ on property:bluetooth.startbtlogger=true
on property:bluetooth.startbtlogger=false
stop bt_logger
-service qcom-c_core-sh /vendor/bin/init.qcom.class_core.sh
- class core
- user root
- oneshot
-
service qcom-c_main-sh /vendor/bin/init.class_main.sh
class main
user root
@@ -931,29 +926,12 @@ service qcom-sh /vendor/bin/init.qcom.sh
user root
oneshot
-service crashdata-sh /vendor/bin/init.qcom.crashdata.sh
- class late_start
- user root
- oneshot
-
service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh
class late_start
user root
disabled
oneshot
-service wifi-sdio-on /vendor/bin/init.qcom.sdio.sh
- class late_start
- group wifi inet
- disabled
- oneshot
-
-service wifi-crda /vendor/bin/init.crda.sh
- class late_start
- user root
- disabled
- oneshot
-
on property:sys.boot_completed=1
start qcom-post-boot