mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226: Commonize init scripts
Change-Id: Iab43f5a4174edd758e0654f127d7820f9912fdb4
This commit is contained in:
parent
4b3a03195c
commit
7c1e6cf7e1
7 changed files with 2154 additions and 0 deletions
51
rootdir/Android.mk
Normal file
51
rootdir/Android.mk
Normal file
|
@ -0,0 +1,51 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
# Configuration scripts
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.crda.sh
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.crda.sh
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.bt.sh
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.qcom.bt.sh
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
# Init scripts
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.rc
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.qcom.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.power.rc
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.qcom.power.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.usb.rc
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.qcom.usb.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := ueventd.qcom.rc
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/ueventd.qcom.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
34
rootdir/etc/init.crda.sh
Normal file
34
rootdir/etc/init.crda.sh
Normal file
|
@ -0,0 +1,34 @@
|
|||
#!/system/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.
|
||||
#
|
||||
|
||||
country=`getprop wlan.crda.country`
|
||||
# crda takes input in COUNTRY environment variable
|
||||
if [ $country != "" ]
|
||||
then
|
||||
COUNTRY="$country" /system/bin/crda
|
||||
fi
|
68
rootdir/etc/init.qcom.bt.sh
Normal file
68
rootdir/etc/init.qcom.bt.sh
Normal file
|
@ -0,0 +1,68 @@
|
|||
#!/system/bin/sh
|
||||
|
||||
LOG_TAG="qcom-bluetooth"
|
||||
LOG_NAME="${0}:"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
setprop ro.qualcomm.bt.hci_transport smd
|
||||
|
||||
# Note that "hci_qcomm_init -e" prints expressions to set the shell variables
|
||||
# BTS_DEVICE, BTS_TYPE, BTS_BAUD, and BTS_ADDRESS.
|
||||
|
||||
# BR/EDR & LE power class configurations
|
||||
POWER_CLASS=`getprop qcom.bt.dev_power_class`
|
||||
LE_POWER_CLASS=`getprop qcom.bt.le_dev_pwr_class`
|
||||
|
||||
setprop bluetooth.status off
|
||||
|
||||
case $POWER_CLASS in
|
||||
1) PWR_CLASS="-p 0" ;
|
||||
logi "Power Class: 1";;
|
||||
2) PWR_CLASS="-p 1" ;
|
||||
logi "Power Class: 2";;
|
||||
3) PWR_CLASS="-p 2" ;
|
||||
logi "Power Class: CUSTOM";;
|
||||
*) PWR_CLASS="";
|
||||
logi "Power Class: Ignored. Default(1) used (1-CLASS1/2-CLASS2/3-CUSTOM)";
|
||||
logi "Power Class: To override, Before turning BT ON; setprop qcom.bt.dev_power_class <1 or 2 or 3>";;
|
||||
esac
|
||||
|
||||
case $LE_POWER_CLASS in
|
||||
1) LE_PWR_CLASS="-P 0" ;
|
||||
logi "LE Power Class: 1";;
|
||||
2) LE_PWR_CLASS="-P 1" ;
|
||||
logi "LE Power Class: 2";;
|
||||
3) LE_PWR_CLASS="-P 2" ;
|
||||
logi "LE Power Class: CUSTOM";;
|
||||
*) LE_PWR_CLASS="-P 1";
|
||||
logi "LE Power Class: Ignored. Default(2) used (1-CLASS1/2-CLASS2/3-CUSTOM)";
|
||||
logi "LE Power Class: To override, Before turning BT ON; setprop qcom.bt.le_dev_pwr_class <1 or 2 or 3>";;
|
||||
esac
|
||||
|
||||
eval $(/system/bin/hci_qcomm_init -e $PWR_CLASS $LE_PWR_CLASS && echo "exit_code_hci_qcomm_init=0" || echo "exit_code_hci_qcomm_init=1")
|
||||
|
||||
case $exit_code_hci_qcomm_init in
|
||||
0) logi "Bluetooth QSoC firmware download succeeded, $BTS_DEVICE $BTS_TYPE $BTS_BAUD $BTS_ADDRESS";;
|
||||
*) failed "Bluetooth QSoC firmware download failed" $exit_code_hci_qcomm_init;
|
||||
setprop bluetooth.status off
|
||||
exit $exit_code_hci_qcomm_init;;
|
||||
esac
|
||||
|
||||
setprop bluetooth.status on
|
||||
|
||||
exit 0
|
101
rootdir/etc/init.qcom.power.rc
Normal file
101
rootdir/etc/init.qcom.power.rc
Normal file
|
@ -0,0 +1,101 @@
|
|||
# Copyright (c) 2009-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.
|
||||
#
|
||||
|
||||
on charger
|
||||
write /sys/devices/system/cpu/cpu1/online 1
|
||||
write /sys/devices/system/cpu/cpu2/online 1
|
||||
write /sys/devices/system/cpu/cpu3/online 1
|
||||
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 0
|
||||
write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 0
|
||||
write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 0
|
||||
write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 0
|
||||
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
write /sys/module/lpm_levels/enable_low_power/l2 4
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
|
||||
|
||||
write /sys/devices/system/cpu/cpu1/online 1
|
||||
write /sys/devices/system/cpu/cpu2/online 1
|
||||
write /sys/devices/system/cpu/cpu3/online 1
|
||||
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
chown root system /sys/devices/system/cpu/cpu1/online
|
||||
chown root system /sys/devices/system/cpu/cpu2/online
|
||||
chown root system /sys/devices/system/cpu/cpu3/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu1/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu2/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu3/online
|
||||
|
||||
start mpdecision
|
||||
|
||||
on property:init.svc.bootanim=stopped
|
||||
# Configure interactive governor
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 90
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 998400
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 1
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 40000
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 100000
|
||||
|
||||
# Configure CPU boost
|
||||
write /sys/module/cpu_boost/parameters/boost_ms 20
|
||||
write /sys/module/cpu_boost/parameters/sync_threshold 600000
|
||||
write /sys/module/cpu_boost/parameters/input_boost_freq 998400
|
||||
write /sys/module/cpu_boost/parameters/input_boost_ms 40
|
||||
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
|
||||
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000
|
||||
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000
|
||||
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000
|
899
rootdir/etc/init.qcom.rc
Normal file
899
rootdir/etc/init.qcom.rc
Normal file
|
@ -0,0 +1,899 @@
|
|||
# Copyright (c) 2009-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.
|
||||
#
|
||||
|
||||
import init.qcom.power.rc
|
||||
import init.qcom.usb.rc
|
||||
import init.target.rc
|
||||
|
||||
on early-init
|
||||
export LD_SHIM_LIBS /system/lib/libril.so|libril_shim.so
|
||||
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
|
||||
mkdir /firmware 0771 system system
|
||||
mkdir /firmware-modem 0771 system system
|
||||
|
||||
mkdir /persist 0771 system system
|
||||
|
||||
mkdir /efs 0771 system radio
|
||||
|
||||
symlink /data/tombstones /tombstones
|
||||
|
||||
on init
|
||||
# Support legacy paths
|
||||
symlink /sdcard /mnt/sdcard
|
||||
symlink /sdcard /storage/sdcard0
|
||||
|
||||
on fs
|
||||
mount_all fstab.qcom
|
||||
|
||||
restorecon_recursive /efs
|
||||
restorecon_recursive /persist
|
||||
|
||||
mkdir /persist/data 0700 system system
|
||||
mkdir /persist/data/sfs 0700 system system
|
||||
mkdir /persist/data/tz 0700 system system
|
||||
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
setprop qcom.audio.init complete
|
||||
|
||||
# Kickstart the Wireless subsystem
|
||||
write /dev/wcnss_wlan 1
|
||||
|
||||
on post-fs-data
|
||||
# Create the directory used by bluetooth
|
||||
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
|
||||
|
||||
# Create the directories used by the Wireless subsystem
|
||||
mkdir /data/misc/wifi 0770 wifi wifi
|
||||
mkdir /data/misc/wifi/sockets 0770 wifi wifi
|
||||
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
|
||||
mkdir /data/misc/dhcp 0775 dhcp dhcp
|
||||
chown dhcp dhcp /data/misc/dhcp
|
||||
|
||||
# Create the directories used by CnE subsystem
|
||||
mkdir /data/connectivity 0771 system system
|
||||
chown system system /data/connectivity
|
||||
|
||||
# For WIFI TRP/TIS
|
||||
chown system root /data/.psm.info
|
||||
chmod 0664 /data/.psm.info
|
||||
|
||||
# For WIFI Antena Selection
|
||||
chown system root /data/.ant.info
|
||||
chmod 0664 /data/.ant.info
|
||||
|
||||
# For WIFI Version
|
||||
write /data/.wifiver.info 0
|
||||
chown system root /data/.wifiver.info
|
||||
chmod 0664 /data/.wifiver.info
|
||||
|
||||
# For WIFI Cert
|
||||
chmod 0664 /data/.bustxglom.info
|
||||
chmod 0664 /data/.roamoff.info
|
||||
chmod 0664 /data/.frameburst.info
|
||||
chmod 0664 /data/.txbf.info
|
||||
|
||||
# For WIFI MAC address
|
||||
mkdir /efs/wifi 0775 radio system
|
||||
chown system wifi /efs/wifi/.mac.info
|
||||
chmod 0660 /efs/wifi/.mac.info
|
||||
restorecon /efs/wifi/.mac.info
|
||||
chmod 0660 /efs/wifi/.mac.cob
|
||||
|
||||
# Create directory used by audio subsystem
|
||||
mkdir /data/misc/audio 0770 audio audio
|
||||
|
||||
# Create directory used by radio subsystem
|
||||
mkdir /data/radio 0770 radio radio
|
||||
|
||||
# Create directory used by the DASH client
|
||||
mkdir /data/misc/dash 0770 media audio
|
||||
|
||||
# Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
|
||||
# We chown/chmod /persist again so because mount is run as root + defaults
|
||||
chown system system /persist
|
||||
chmod 0771 /persist
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.2/polling
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.4/polling
|
||||
|
||||
# Chown polling nodes as needed from UI running on system server
|
||||
chown system system /sys/devices/platform/msm_sdcc.1/polling
|
||||
chown system system /sys/devices/platform/msm_sdcc.2/polling
|
||||
chown system system /sys/devices/platform/msm_sdcc.3/polling
|
||||
chown system system /sys/devices/platform/msm_sdcc.4/polling
|
||||
|
||||
# Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant
|
||||
mkdir /data/system 0775 system system
|
||||
|
||||
# Create directories for gpsone_daemon services
|
||||
mkdir /data/misc/gpsone_d 0770 system gps
|
||||
|
||||
# Create directories for QuIPS
|
||||
mkdir /data/misc/quipc 0770 system gps
|
||||
|
||||
# Create directories for Location services
|
||||
mkdir /data/misc/location 0770 gps gps
|
||||
mkdir /data/misc/location/gpsone_d 0770 system gps
|
||||
mkdir /data/misc/location/mq 0770 gps gps
|
||||
mkdir /data/misc/location/quipc 0770 system gps
|
||||
mkdir /data/misc/location/xtwifi 0770 gps gps
|
||||
|
||||
# Create directory from IMS services
|
||||
mkdir /data/shared 0755
|
||||
chown system system /data/shared
|
||||
|
||||
# Create directory for FOTA
|
||||
mkdir /data/fota 0771
|
||||
chown system system /data/fota
|
||||
|
||||
# Create directory for hostapd
|
||||
mkdir /data/hostapd 0771 system wifi
|
||||
|
||||
# Create /data/time folder for time-services
|
||||
mkdir /data/time/ 0700 system system
|
||||
|
||||
# Enable the setgid bit on the directory
|
||||
mkdir /data/bluetooth 0770 bluetooth bluetooth
|
||||
chmod 2770 /data/bluetooth
|
||||
|
||||
# Enable the setgid bit on the directory
|
||||
mkdir /data/audio/ 0770 media audio
|
||||
chmod 2770 /data/audio
|
||||
|
||||
# Create a folder for SRS to be able to create a usercfg file
|
||||
mkdir /data/data/media 0770 media media
|
||||
|
||||
# Gpio DVS
|
||||
chown radio system /sys/class/secgpio_check/secgpio_check_all/secgpio_ctrl
|
||||
|
||||
# Create thombstone folders
|
||||
mkdir /data/tombstones 0771 system system
|
||||
mkdir /tombstones/modem 0771 system system
|
||||
|
||||
# Create directory for ril data
|
||||
mkdir /data/misc/radio 0775 radio radio
|
||||
mkdir /data/misc/radio/hatp 0775 radio system
|
||||
|
||||
# DRM and related files in EFS
|
||||
mkdir /efs/drm 0774 drm system
|
||||
mkdir /efs/drm/sdrm 0774 drm system
|
||||
mkdir /efs/drm/sdrm/data_agent 0774 drm system
|
||||
restorecon /efs/drm
|
||||
restorecon /efs/drm/sdrm
|
||||
restorecon /efs/drm/sdrm/data_agent
|
||||
|
||||
# DivX DRM
|
||||
mkdir /efs/.files 0775
|
||||
mkdir /efs/.files/.dx1 0775
|
||||
mkdir /efs/.files/.dm33 0775
|
||||
mkdir /efs/.files/.mp301 0775
|
||||
chown media system /efs/.files/.dx1
|
||||
chown media system /efs/.files/.dm33
|
||||
chown media system /efs/.files/.mp301
|
||||
chmod 0775 /efs/.files/.dx1
|
||||
chmod 0775 /efs/.files/.dm33
|
||||
chmod 0775 /efs/.files/.mp301
|
||||
|
||||
# DRK permission
|
||||
mkdir /efs/prov 0770 radio system
|
||||
chown radio system /efs/prov/libdevkm.lock
|
||||
chmod 0660 /efs/prov/libdevkm.lock
|
||||
|
||||
# ICD
|
||||
exec check_icd
|
||||
chown system system /dev/icd
|
||||
chmod 0644 /dev/icd
|
||||
chown system system /dev/icdr
|
||||
chmod 0644 /dev/icdr
|
||||
chown system system /dev/tzic
|
||||
|
||||
# Permissions for svc led
|
||||
chown system system /sys/class/sec/led/led_r
|
||||
chown system system /sys/class/sec/led/led_g
|
||||
chown system system /sys/class/sec/led/led_b
|
||||
chown system system /sys/class/sec/led/led_pattern
|
||||
chown system system /sys/class/sec/led/led_blink
|
||||
chown system system /sys/class/sec/led/led_lowpower
|
||||
|
||||
# Symlink to bugreport storage location
|
||||
symlink /data/data/com.android.shell/files/bugreports /data/bugreports
|
||||
|
||||
setprop vold.post_fs_data_done 1
|
||||
|
||||
on early-boot
|
||||
# Set RLIMIT_MEMLOCK to 64MB
|
||||
setrlimit 8 67108864 67108864
|
||||
|
||||
# Allow subsystem (modem etc) debugging
|
||||
write /sys/module/subsystem_restart/parameters/enable_debug ${persist.sys.ssr.enable_debug}
|
||||
|
||||
on boot
|
||||
mount debugfs /sys/kernel/debug /sys/kernel/debug
|
||||
|
||||
# Permissions for bluetooth
|
||||
mkdir /efs/bluetooth 0775 radio system
|
||||
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
|
||||
chown bluetooth net_bt_stack ro.bt.bdaddr_path
|
||||
chown radio net_bt_stack /efs/bluetooth/bt_addr
|
||||
chmod 0755 /efs/bluetooth/bt_addr
|
||||
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
|
||||
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
|
||||
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
|
||||
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
|
||||
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm
|
||||
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite
|
||||
chown system system /sys/module/sco/parameters/disable_esco
|
||||
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
|
||||
chmod 0660 /sys/module/bluetooth_power/parameters/power
|
||||
chmod 0660 /sys/class/rfkill/rfkill0/state
|
||||
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
|
||||
chmod 0660 /proc/bluetooth/sleep/proto
|
||||
chmod 0660 /sys/module/hci_uart/parameters/ath_lpm
|
||||
chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite
|
||||
chown bluetooth bluetooth /dev/ttyHS0
|
||||
chown bluetooth bluetooth /dev/ttyHS2
|
||||
chmod 0660 /dev/ttyHS0
|
||||
chmod 0660 /dev/ttyHS2
|
||||
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
|
||||
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
|
||||
restorecon_recursive /efs/bluetooth
|
||||
|
||||
# IMEI
|
||||
mkdir /efs/imei 0775 radio radio
|
||||
restorecon -R /efs
|
||||
|
||||
mkdir /efs/drm/playready 0775
|
||||
chown drm system /efs/drm/playready
|
||||
chmod 0775 /efs/drm/playready
|
||||
|
||||
# for BT MAC address
|
||||
mkdir /efs/bluetooth 0775 radio system
|
||||
|
||||
# Audience ES705 UART
|
||||
chmod 0660 /dev/ttyHS3
|
||||
chown system system /dev/ttyHS3
|
||||
|
||||
# Create QMUX deamon socket area
|
||||
mkdir /dev/socket/qmux_radio 0770 radio radio
|
||||
chmod 2770 /dev/socket/qmux_radio
|
||||
mkdir /dev/socket/qmux_audio 0770 media audio
|
||||
chmod 2770 /dev/socket/qmux_audio
|
||||
mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
|
||||
chmod 2770 /dev/socket/qmux_bluetooth
|
||||
mkdir /dev/socket/qmux_gps 0770 gps gps
|
||||
chmod 2770 /dev/socket/qmux_gps
|
||||
|
||||
# Modem requires this
|
||||
chown root radio /proc/cmdline
|
||||
chmod 0644 /proc/cmdline
|
||||
|
||||
# Remove SUID bit for iproute2 ip tool
|
||||
chmod 0755 /system/bin/ip
|
||||
|
||||
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
|
||||
|
||||
# For bridgemgr daemon to inform the USB driver of the correct transport
|
||||
chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
|
||||
|
||||
# To allow interfaces to get v6 address when tethering is enabled
|
||||
write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2
|
||||
write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2
|
||||
|
||||
# To prevent out of order acknowledgements from making
|
||||
# connection tracking to treat them as not belonging to
|
||||
# the connection they belong to.
|
||||
# Otherwise, a weird issue happens in which some long
|
||||
# connections on high-throughput links get dropped when
|
||||
# an ack packet comes out of order
|
||||
write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1
|
||||
|
||||
# NFC local data and nfcee xml storage
|
||||
mkdir /data/nfc 0770 nfc nfc
|
||||
mkdir /data/nfc/param 0770 nfc nfc
|
||||
|
||||
# Set the console loglevel to < KERN_INFO
|
||||
# Set the default message loglevel to KERN_INFO
|
||||
# modified by SEC, SEC use a loglevel path with another way.
|
||||
# write /proc/sys/kernel/printk "6 6 1 7"
|
||||
|
||||
# Flash storage isn't a good entropy source, and only causes locking
|
||||
# overhead in the kernel. Turn it off.
|
||||
write /sys/block/mmcblk0/queue/add_random 0
|
||||
|
||||
# MUIC
|
||||
chown system radio /sys/class/sec/switch/adc
|
||||
chown system radio /sys/class/sec/switch/reset_switch
|
||||
chown radio system /sys/class/sec/switch/usb_state
|
||||
|
||||
chown radio system /sys/devices/system/cpu/kernel_max
|
||||
chmod 664 /sys/devices/system/cpu/kernel_max
|
||||
|
||||
chown radio system /sys/class/kgsl/kgsl-3d0/max_pwrlevel
|
||||
chmod 664 /sys/class/kgsl/kgsl-3d0/max_pwrlevel
|
||||
chown radio system /sys/class/kgsl/kgsl-3d0/min_pwrlevel
|
||||
chmod 664 /sys/class/kgsl/kgsl-3d0/min_pwrlevel
|
||||
chown radio system /sys/class/kgsl/kgsl-3d0/gpu_available_frequencies
|
||||
chmod 664 /sys/class/kgsl/kgsl-3d0/gpu_available_frequencies
|
||||
|
||||
chown radio system /sys/class/devfreq/qcom,cpubw.68/available_frequencies
|
||||
chmod 664 /sys/class/devfreq/qcom,cpubw.68/available_frequencies
|
||||
chown radio system /sys/class/devfreq/qcom,cpubw.68/available_governors
|
||||
chmod 664 /sys/class/devfreq/qcom,cpubw.68/available_governors
|
||||
chown radio system /sys/class/devfreq/qcom,cpubw.68/governor
|
||||
chmod 664 /sys/class/devfreq/qcom,cpubw.68/governor
|
||||
chown radio system /sys/class/devfreq/qcom,cpubw.68/max_freq
|
||||
chmod 664 /sys/class/devfreq/qcom,cpubw.68/max_freq
|
||||
chown radio system /sys/class/devfreq/qcom,cpubw.68/min_freq
|
||||
chmod 664 /sys/class/devfreq/qcom,cpubw.68/min_freq
|
||||
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
|
||||
|
||||
# Assume SMP uses shared cpufreq policy for all CPUs
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
|
||||
# Auto Brightness
|
||||
chown system system /sys/class/backlight/panel/auto_brightness
|
||||
chmod 0660 /sys/class/backlight/panel/auto_brightness
|
||||
|
||||
# LCD mdnie and panel work
|
||||
chown system system /sys/class/mdnie/mdnie/negative
|
||||
chown system media_rw /sys/class/mdnie/mdnie/accessibility
|
||||
|
||||
chown radio system /sys/class/lcd/panel/lcd_power
|
||||
chown radio system /sys/class/lcd/panel/lcd_type
|
||||
chown radio system /sys/class/lcd/panel/power_reduce
|
||||
chown radio system /sys/class/lcd/panel/siop_enable
|
||||
|
||||
chown system system /sys/class/leds/keyboard-backlight/brightness
|
||||
chown system system /sys/class/leds/lcd-backlight/brightness
|
||||
chown system system /sys/class/leds/button-backlight/brightness
|
||||
|
||||
chown system system /sys/kernel/ipv4/tcp_wmem_min
|
||||
chown system system /sys/kernel/ipv4/tcp_wmem_def
|
||||
chown system system /sys/kernel/ipv4/tcp_wmem_max
|
||||
chown system system /sys/kernel/ipv4/tcp_rmem_min
|
||||
chown system system /sys/kernel/ipv4/tcp_rmem_def
|
||||
chown system system /sys/kernel/ipv4/tcp_rmem_max
|
||||
|
||||
chown root radio /proc/cmdline
|
||||
|
||||
# Adjust YUV to RGB Conversion(CSC_Conversion)
|
||||
chown system media_rw /sys/class/graphics/fb0/csc_cfg
|
||||
chmod 0660 /sys/class/graphics/fb0/csc_cfg
|
||||
|
||||
# Display color calibration
|
||||
chown system system /sys/devices/virtual/graphics/fb0/rgb
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/rgb
|
||||
|
||||
# OTG Test
|
||||
chown system radio /sys/class/host_notify/usb_otg/booster
|
||||
chmod 0660 /sys/class/host_notify/usb_otg/booster
|
||||
|
||||
# Essential node for usbservice
|
||||
mkdir /dev/bus/ 755 root root
|
||||
mkdir /dev/bus/usb 755 root root
|
||||
|
||||
# Permissions for Camera
|
||||
chown root system /sys/class/camera/rear/rear_camantibanding
|
||||
chown system radio /sys/class/camera/rear/rear_camfw
|
||||
chown system radio /sys/class/camera/rear/rear_camfw_full
|
||||
chown system radio /sys/class/camera/rear/rear_camfw_load
|
||||
chown system radio /sys/class/camera/rear/rear_camtype
|
||||
chown system radio /sys/class/camera/rear/rear_corever
|
||||
chown system radio /sys/class/camera/rear/rear_companionfw_full
|
||||
chown system radio /sys/class/camera/rear/rear_calcheck
|
||||
chown system radio /sys/class/camera/rear/rear_fwcheck
|
||||
chown system radio /sys/class/camera/rear/isp_core
|
||||
chown system radio /sys/class/camera/flash/rear_flash
|
||||
chown system radio /sys/class/camera/front/front_camfw
|
||||
chown system radio /sys/class/camera/front/front_camtype
|
||||
|
||||
# Accelerometer_sensor
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/calibration
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/vendor
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/name
|
||||
chown system input /sys/class/input/input3/data
|
||||
chown system input /sys/class/input/input3/delay
|
||||
chown system input /sys/class/input/input3/enable
|
||||
chown system input /sys/class/input/input3/filter_enable
|
||||
chown system input /sys/class/input/input3/modalias
|
||||
chown system input /sys/class/input/input3/name
|
||||
chown system input /sys/class/input/input3/offset
|
||||
chown system input /sys/class/input/input3/phys
|
||||
chown system input /sys/class/input/input3/position
|
||||
chown system input /sys/class/input/input3/properties
|
||||
chown system input /sys/class/input/input3/threshold
|
||||
chown system input /sys/class/input/input5/data
|
||||
chown system input /sys/class/input/input5/delay
|
||||
chown system input /sys/class/input/input5/enable
|
||||
chown system input /sys/class/input/input5/filter_enable
|
||||
chown system input /sys/class/input/input5/modalias
|
||||
chown system input /sys/class/input/input5/name
|
||||
chown system input /sys/class/input/input5/offset
|
||||
chown system input /sys/class/input/input5/phys
|
||||
chown system input /sys/class/input/input5/position
|
||||
chown system input /sys/class/input/input5/properties
|
||||
chown system input /sys/class/input/input5/threshold
|
||||
|
||||
# Gyro_sensor
|
||||
chown system radio /sys/class/sensors/gyro_sensor/power_on
|
||||
chown system radio /sys/class/sensors/gyro_sensor/temperature
|
||||
chown system radio /sys/class/sensors/gyro_sensor/selftest
|
||||
chown system radio /sys/class/sensors/gyro_sensor/vendor
|
||||
chown system radio /sys/class/sensors/gyro_sensor/name
|
||||
|
||||
# Light_sensor
|
||||
chown system radio /sys/class/sensors/light_sensor/lux
|
||||
chown system radio /sys/class/sensors/light_sensor/raw_data
|
||||
chown system radio /sys/class/sensors/light_sensor/vendor
|
||||
chown system radio /sys/class/sensors/light_sensor/name
|
||||
chown system input /sys/class/input/input5/id
|
||||
chown system input /sys/class/input/input5/poll_delay
|
||||
|
||||
# Magnetic_sensor
|
||||
chown system radio /sys/class/sensors/magnetic_sensor/selftest
|
||||
chown system radio /sys/class/sensors/magnetic_sensor/raw_data
|
||||
chown system radio /sys/class/sensors/magnetic_sensor/vendor
|
||||
chown system radio /sys/class/sensors/magnetic_sensor/name
|
||||
chown system radio /sys/class/sensors/magnetic_sensor/adc
|
||||
chown system radio /sys/class/sensors/magnetic_sensor/status
|
||||
chown compass input /sys/class/input/input5/dynamic_matrix
|
||||
chown compass input /sys/class/input/input5/offsets
|
||||
chown compass input /sys/class/input/input7/dynamic_matrix
|
||||
chown compass input /sys/class/input/input7/offsets
|
||||
chown system input /sys/class/input/input2/name
|
||||
chown system input /sys/class/input/input2/poll
|
||||
chown system input /sys/class/input/input2/id
|
||||
chown system input /sys/class/input/input4/name
|
||||
chown system input /sys/class/input/input4/poll
|
||||
chown system input /sys/class/input/input4/id
|
||||
chown system input /sys/class/input/input4/data
|
||||
chown system input /sys/class/input/input4/delay
|
||||
chown system input /sys/class/input/input4/enable
|
||||
chown system input /sys/class/input/input4/filter_enable
|
||||
chown system input /sys/class/input/input4/filter_len
|
||||
chown system input /sys/class/input/input4/filter_noise
|
||||
chown system input /sys/class/input/input4/filter_threshold
|
||||
chown system input /sys/class/input/input4/position
|
||||
chown system input /sys/class/input/input5/name
|
||||
chown system input /sys/class/input/input5/poll
|
||||
chown system input /sys/class/input/input5/id
|
||||
chown system input /sys/class/input/input5/distortion
|
||||
chown system input /sys/class/input/input5/self_test
|
||||
chown system input /sys/class/input/input5/threshold
|
||||
chown system input /sys/class/input/input6/name
|
||||
chown system input /sys/class/input/input6/poll
|
||||
chown system input /sys/class/input/input6/id
|
||||
chown system input /sys/class/input/input6/data
|
||||
chown system input /sys/class/input/input6/delay
|
||||
chown system input /sys/class/input/input6/enable
|
||||
chown system input /sys/class/input/input6/filter_enable
|
||||
chown system input /sys/class/input/input6/filter_len
|
||||
chown system input /sys/class/input/input6/filter_noise
|
||||
chown system input /sys/class/input/input6/filter_threshold
|
||||
chown system input /sys/class/input/input6/position
|
||||
chown system input /sys/class/input/input7/distortion
|
||||
chown system input /sys/class/input/input7/self_test
|
||||
chown system input /sys/class/input/input7/threshold
|
||||
chown system input /dev/alps_io
|
||||
chown system input /system/etc/param.dat
|
||||
chown system input /system/etc/alp_cal.dat
|
||||
|
||||
# Proximity_sensor
|
||||
chown system radio /sys/class/sensors/proximity_sensor/state
|
||||
chown system radio /sys/class/sensors/proximity_sensor/prox_avg
|
||||
chown system radio /sys/class/sensors/proximity_sensor/prox_cal
|
||||
chown system radio /sys/class/sensors/proximity_sensor/prox_cal2
|
||||
chown system radio /sys/class/sensors/proximity_sensor/prox_offset_pass
|
||||
chown system radio /sys/class/sensors/proximity_sensor/prox_tresh
|
||||
chown system radio /sys/class/sensors/proximity_sensor/raw_data
|
||||
chown system radio /sys/class/sensors/proximity_sensor/vendor
|
||||
chown system radio /sys/class/sensors/proximity_sensor/state
|
||||
chown system radio /sys/class/sensors/proximity_sensor/name
|
||||
chown system input /sys/class/input/input4/enable
|
||||
chown system input /sys/class/input/input4/id
|
||||
|
||||
# MPU6050 sensor
|
||||
chown system input /sys/class/input/input3/acc_enable
|
||||
chown system input /sys/class/input/input3/acc_delay
|
||||
chown system input /sys/class/input/input3/gyro_enable
|
||||
chown system input /sys/class/input/input3/gyro_delay
|
||||
chown system input /sys/class/input/input3/self_test
|
||||
|
||||
# Sensors
|
||||
chown system system /efs/FactoryApp/baro_delta
|
||||
chmod 0640 /efs/FactoryApp/baro_delta
|
||||
restorecon /efs/FactoryApp/baro_delta
|
||||
|
||||
chown system system /efs/gyro_cal_data
|
||||
chmod 0640 /efs/gyro_cal_data
|
||||
restorecon /efs/gyro_cal_data
|
||||
|
||||
# Torch
|
||||
chown system system /sys/class/leds/led:flash_torch/brightness
|
||||
chmod 0666 /sys/class/leds/led:flash_torch/brightness
|
||||
|
||||
# Permissions for SSRM
|
||||
chmod 0664 /sys/devices/platform/sec-thermistor/temperature
|
||||
chmod 0664 /sys/class/power_supply/battery/siop_level
|
||||
chmod 0664 /sys/class/power_supply/battery/test_charge_current
|
||||
chown radio system /sys/devices/platform/sec-thermistor/temperature
|
||||
chown radio system /sys/class/power_supply/battery/siop_level
|
||||
chown radio system /sys/class/power_supply/battery/test_charge_current
|
||||
|
||||
# NFC_NXP
|
||||
setprop ro.nfc.port "I2C"
|
||||
chmod 0660 /dev/pn547
|
||||
chown nfc nfc /dev/pn547
|
||||
symlink /dev/pn547 /dev/pn544
|
||||
|
||||
# Permissions for Charging
|
||||
chown system radio /sys/class/power_supply/battery/batt_reset_soc
|
||||
chown system radio /sys/class/power_supply/battery/update
|
||||
chown system radio /sys/class/power_supply/battery/factory_mode
|
||||
chown system radio /sys/class/power_supply/battery/batt_slate_mode
|
||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/call
|
||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/video
|
||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/music
|
||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/browser
|
||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/hotspot
|
||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/camera
|
||||
chown system radio /sys/class/power_supply/battery/talk_wcdma
|
||||
chown system radio /sys/class/power_supply/battery/talk_gsm
|
||||
chown system radio /sys/class/power_supply/battery/call
|
||||
chown system radio /sys/class/power_supply/battery/data_call
|
||||
chown system radio /sys/class/power_supply/battery/gps
|
||||
chown system radio /sys/class/power_supply/battery/wifi
|
||||
chown system radio /sys/class/power_supply/battery/lte
|
||||
chown system radio /sys/class/power_supply/battery/wc_enable
|
||||
chown system radio /sys/class/power_supply/battery/lcd
|
||||
|
||||
# Permission for fast dormancy for RIL
|
||||
chown system radio /sys/devices/virtual/sec/bamdmux/waketime
|
||||
|
||||
# Permissions for gpio_keys
|
||||
chown system radio /sys/class/sec/sec_key/wakeup_keys
|
||||
write /sys/class/sec/sec_key/wakeup_keys 116,172
|
||||
|
||||
# Permission for HALL IC
|
||||
chown system radio /sys/class/sec/sec_key/hall_detect
|
||||
|
||||
# Vibetonz
|
||||
chmod 0660 /dev/tspdrv
|
||||
chown vibe vibe /dev/tspdrv
|
||||
|
||||
# Vibrator
|
||||
chmod 0644 /sys/class/timed_output/vibrator/pwm_value
|
||||
chown system system /sys/class/timed_output/vibrator/pwm_value
|
||||
chown system system /sys/class/timed_output/vibrator/enable
|
||||
|
||||
# Permissions for TSP
|
||||
chown system system /sys/class/sec/tsp/cmd
|
||||
chown system system /sys/class/sec/tsp/input/enabled
|
||||
chown system system /sys/class/input/input0/enabled
|
||||
chown system system /sys/class/input/input1/enabled
|
||||
chown system system /sys/class/input/input2/enabled
|
||||
chmod 0664 /sys/class/sec/tsp/cmd
|
||||
chmod 0660 /sys/class/sec/tsp/input/enabled
|
||||
chmod 0664 /sys/class/input/input0/enabled
|
||||
chmod 0664 /sys/class/input/input1/enabled
|
||||
chmod 0664 /sys/class/input/input2/enabled
|
||||
chown system system /sys/class/sec/sec_touchkey/brightness
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/brightness
|
||||
|
||||
# Permission for touchkey
|
||||
chown system system /sys/class/sec/sec_touchkey/keypad_enable
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_brightness
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_menu
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_back
|
||||
chown system system /sys/class/sec/sec_touchkey/touch_version
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_firm_version_panel
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_firm_version_phone
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_firm_update_status
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_firm_update
|
||||
chown system system /sys/class/sec/sec_touchkey/touch_sensitivity
|
||||
chown system system /sys/class/sec/sec_touchkey/touchkey_threshold
|
||||
chown system system /sys/devices/virtual/sec/sec_touchkey/brightness
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/keypad_enable
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_brightness
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_menu
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_back
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touch_version
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_firm_version_panel
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_firm_version_phone
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_firm_update_status
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_firm_update
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touch_sensitivity
|
||||
chmod 0664 /sys/class/sec/sec_touchkey/touchkey_threshold
|
||||
chmod 0664 /sys/devices/virtual/sec/sec_touchkey/brightness
|
||||
restorecon /sys/class/sec/sec_touchkey/keypad_enable
|
||||
|
||||
# Assign TCP buffer thresholds to be ceiling value of technology maximums
|
||||
# Increased technology maximums should be reflected here.
|
||||
write /proc/sys/net/core/rmem_max 2097152
|
||||
write /proc/sys/net/core/wmem_max 2097152
|
||||
|
||||
on charger
|
||||
wait /dev/block/platform/msm_sdcc.1/by-name/system
|
||||
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1
|
||||
class_start charger
|
||||
|
||||
# Services begin here
|
||||
|
||||
service adsprpcd /system/bin/adsprpcd
|
||||
class main
|
||||
user media
|
||||
group media
|
||||
|
||||
service audiod /system/bin/audiod
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
|
||||
service config_bluetooth /system/bin/sh /system/etc/init.qcom.bt.sh "onboot"
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
|
||||
on property:vold.decrypt=trigger_restart_framework
|
||||
start config_bluetooth
|
||||
|
||||
service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
|
||||
class late_start
|
||||
group radio wifi inet
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:persist.data.ds_fmc_app.mode=1
|
||||
start ds_fmc_appd
|
||||
|
||||
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
|
||||
class late_start
|
||||
user bluetooth
|
||||
group bluetooth net_bt_admin
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:bluetooth.hciattach=true
|
||||
start hciattach
|
||||
|
||||
on property:bluetooth.hciattach=false
|
||||
setprop bluetooth.status off
|
||||
|
||||
service irsc_util /system/bin/irsc_util "/etc/sec_config"
|
||||
class main
|
||||
user root
|
||||
oneshot
|
||||
|
||||
service mpdecision /system/bin/mpdecision --avg_comp
|
||||
class main
|
||||
user root
|
||||
disabled
|
||||
|
||||
service qcamerasvr /system/bin/mm-qcamera-daemon
|
||||
class late_start
|
||||
user camera
|
||||
group camera system inet input graphics
|
||||
|
||||
service qmuxd /system/bin/qmuxd
|
||||
class main
|
||||
user radio
|
||||
group radio audio bluetooth gps qcom_diag
|
||||
|
||||
service qseecomd /system/bin/qseecomd
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
|
||||
service rfs_access /system/bin/rfs_access
|
||||
class core
|
||||
user system
|
||||
group system net_raw
|
||||
|
||||
service rmt_storage /system/bin/rmt_storage
|
||||
class core
|
||||
user root
|
||||
disabled
|
||||
|
||||
on property:ro.boot.emmc=true
|
||||
start rfs_access
|
||||
start rmt_storage
|
||||
|
||||
# Limit to SoC reset (1) and independent SSR (3)
|
||||
on property:persist.sys.ssr.restart_level=1
|
||||
write /sys/module/subsystem_restart/parameters/restart_level 1
|
||||
|
||||
on property:persist.sys.ssr.restart_level=3
|
||||
write /sys/module/subsystem_restart/parameters/restart_level 3
|
||||
|
||||
service thermal-engine /system/bin/thermal-engine -c /etc/thermal-engine-8226.conf
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
|
||||
service time_daemon /system/bin/time_daemon
|
||||
class late_start
|
||||
user root
|
||||
group root
|
||||
|
||||
service wcnss-service /system/bin/wcnss_service
|
||||
class late_start
|
||||
user system
|
||||
group system wifi
|
||||
oneshot
|
||||
|
||||
service wifi-crda /system/bin/sh /system/etc/init.crda.sh
|
||||
class late_start
|
||||
user root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
# WPA
|
||||
service p2p_supplicant /system/bin/wpa_supplicant \
|
||||
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
|
||||
-I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
|
||||
-O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \
|
||||
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
|
||||
# we will start as root and wpa_supplicant will switch to user wifi
|
||||
# after setting up the capabilities required for WEXT
|
||||
# user wifi
|
||||
# group wifi inet keystore
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service wpa_supplicant /system/bin/wpa_supplicant \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
|
||||
-O/data/misc/wifi/sockets \
|
||||
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
|
||||
# we will start as root and wpa_supplicant will switch to user wifi
|
||||
# after setting up the capabilities required for WEXT
|
||||
# user wifi
|
||||
# group wifi inet keystore
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:init.svc.wpa_supplicant=stopped
|
||||
stop dhcpcd
|
||||
|
||||
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_p2p /system/bin/dhcpcd -ABKLG
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service iprenew_wlan0 /system/bin/dhcpcd -n
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service iprenew_p2p /system/bin/dhcpcd -n
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service iprenew_bt-pan /system/bin/dhcpcd -n
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:crypto.driver.load=1
|
||||
insmod /system/lib/modules/qce.ko
|
||||
insmod /system/lib/modules/qcedev.ko
|
||||
|
||||
on property:crypto.driver.load=0
|
||||
exec /system/bin/rmmod qcedev.ko
|
||||
exec /system/bin/rmmod qce.ko
|
||||
|
||||
service ril-daemon1 /system/bin/rild -l /system/lib/libsec-ril-dsds.so -c 2
|
||||
class main
|
||||
socket rild2 stream 660 root radio
|
||||
socket rild-debug2 stream 660 radio system
|
||||
user root
|
||||
group radio cache inet misc audio log qcom_diag system drmrpc sdcard_r sdcard_rw shell
|
803
rootdir/etc/init.qcom.usb.rc
Normal file
803
rootdir/etc/init.qcom.usb.rc
Normal file
|
@ -0,0 +1,803 @@
|
|||
# Copyright (c) 2011-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.
|
||||
#
|
||||
|
||||
on init
|
||||
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
|
||||
write /sys/class/android_usb/android0/f_rndis/wceis 1
|
||||
chown system system /sys/class/android_usb/android0/usb30en
|
||||
chmod 0660 /sys/class/android_usb/android0/usb30en
|
||||
chown system system /sys/class/android_usb/android0/terminal_version
|
||||
chmod 0660 /sys/class/android_usb/android0/terminal_version
|
||||
|
||||
on charger
|
||||
setprop sys.usb.config mass_storage
|
||||
|
||||
on fs
|
||||
mkdir /dev/usb-ffs 0770 shell shell
|
||||
mkdir /dev/usb-ffs/adb 0770 shell shell
|
||||
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
|
||||
write /sys/class/android_usb/android0/f_ffs/aliases adb
|
||||
|
||||
# Following are the parameters required for usb functionality. They provide configurable options like
|
||||
# product_id/vendor id and allows specifying required functions:
|
||||
#
|
||||
# Required parameters:
|
||||
#
|
||||
# /sys/class/android_usb/android0/enable: Enables/disables usb composition
|
||||
# Value: 0 (disable), 1 (enable)
|
||||
#
|
||||
# /sys/class/android_usb/android0/idVendor: Stores Vendor ID
|
||||
# Value: 05c6 (Vendor id for Qualcomm Inc)
|
||||
#
|
||||
# /sys/class/android_usb/android0/idProduct: Stores Product id corresponding to usb composition
|
||||
# Value: 0x9xxx for composite interface, 0xFxxx for single interface
|
||||
#
|
||||
# /sys/class/android_usb/android0/f_diag/clients: Stores name of clients representing a diag interface.
|
||||
# Value: Passed one per interface. e.g. diag[,diag_mdm, diag_qsc, diag_mdm2]
|
||||
#
|
||||
# /sys/class/android_usb/android0/functions: Stores name of the function drivers used in usb composition.
|
||||
# Value: Passed one per function driver. e.g. diag[,adb]
|
||||
#
|
||||
#Optional parameters:
|
||||
#
|
||||
# /sys/class/android_usb/android0/f_serial/transports: Stores type of underlying transports used to
|
||||
# communicate to serial interface.
|
||||
# Value: Passed one per interface. One value represents control and data transport together.
|
||||
# e.g. smd[,sdio,tty,hsic]
|
||||
# Only required if serial interface is present.
|
||||
#
|
||||
# /sys/class/android_usb/android0/f_serial/transport_names: Stores name of the underlying transports
|
||||
# used to communicate to serial interface. This is used to distinguish between more than one interface
|
||||
# using same transport type.
|
||||
# Value: Passed one per interface. One value represents control and data transport together.
|
||||
# e.g. serial_hsic[,serial_hsusb]
|
||||
# Only required for transport type hsic, optional for other transport types.
|
||||
#
|
||||
# /sys/class/android_usb/android0/f_rmnet/transports: Stores type of underlying transports used to
|
||||
# communicate to rmnet interface.
|
||||
# Value: Passed two per interface as control, data transport type pair.
|
||||
# e.g. smd,bam[,hsuart,hsuart]
|
||||
# Only required if rmnet interface is present.
|
||||
#
|
||||
# /sys/class/android_usb/android0/f_rmnet/transport_names: Stores name of the underlying transports
|
||||
# used to communicate to rmnet interface. This is used to distinguish between more than one interface
|
||||
# using same transport type.
|
||||
# Value: Passed one per interface. One value represents control and data transport together.
|
||||
# e.g. rmnet_hsic[,rmnet_hsusb]
|
||||
# Only required for transport type hsic, optional for other transport types.
|
||||
|
||||
|
||||
# USB Composite for Samsung USB Driver
|
||||
|
||||
on property:sys.usb.config=mtp,conn_gadget
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions mtp,acm,conn_gadget
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,conn_gadget,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions mtp,acm,conn_gadget,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions mtp,acm
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/functions mtp,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions mtp,acm,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
|
||||
on property:sys.usb.config=ptp
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6865
|
||||
write /sys/class/android_usb/android0/functions ptp
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=ptp,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6866
|
||||
write /sys/class/android_usb/android0/functions ptp,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6863
|
||||
write /sys/class/android_usb/android0/functions rndis
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6864
|
||||
write /sys/class/android_usb/android0/functions rndis,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# rndis,acm,diag and rmnet,acm,diag are used for IOT Hidden Menu
|
||||
on property:sys.usb.config=rndis,acm,diag
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6864
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions rndis,acm,diag
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rmnet,acm,diag
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 685D
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,acm,rmnet
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 685D
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions diag,acm,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# For CDFS composite
|
||||
on property:sys.usb.config=mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 685B
|
||||
write /sys/class/android_usb/android0/functions mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 685E
|
||||
write /sys/class/android_usb/android0/f_acm/instances 1
|
||||
write /sys/class/android_usb/android0/functions mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mass_storage,mtp
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/functions mtp,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mass_storage,mtp,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/functions mtp,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# As request from the CHINA GOVERNMENT SECURITY POLICY
|
||||
on property:sys.usb.config=askon
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/functions ${sys.usb.config}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=askon,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/functions ${sys.usb.config}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_smd,serial_tty,rmnet_bam,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9025
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd,tty
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm_smd,acm_tty,rmnet_bam,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903D
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports smd,tty
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_smd,serial_tty,rmnet_bam,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9026
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd,tty
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm_smd,acm_tty,rmnet_bam,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903E
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports smd,tty
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,serial_sdio,serial_smd,rmnet_smd_sdio,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9037
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_serial/transports sdio,smd
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet_smd_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,acm_sdio,acm_smd,rmnet_smd_sdio,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903B
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports sdio,smd
|
||||
write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet_smd_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,serial_sdio,serial_smd,rmnet_smd_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9038
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_serial/transports sdio,smd
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet_smd_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,acm_sdio,acm_smd,rmnet_smd_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903C
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports sdio,smd
|
||||
write /sys/class/android_usb/android0/functions diag,acm,rmnet_smd_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,serial_sdio,serial_tty,rmnet_sdio,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9031
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_serial/transports sdio,tty
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,acm_sdio,acm_tty,rmnet_sdio,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903B
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports sdio,tty
|
||||
write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,serial_sdio,serial_tty,rmnet_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9032
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_serial/transports sdio,tty
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,acm_sdio,acm_tty,rmnet_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903C
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports sdio,tty
|
||||
write /sys/class/android_usb/android0/functions diag,acm,rmnet_sdio,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_tty,serial_tty,rmnet_smd,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9025
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports tty,tty
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
start port-bridge
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm_tty,acm_tty,rmnet_smd,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903D
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports tty,tty
|
||||
write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
start port-bridge
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_tty,serial_tty,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9026
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports tty,tty
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start port-bridge
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm_tty,acm_tty,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903E
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports tty,tty
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_smd,serial_tty,rmnet_smd,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9025
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd,tty
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm_smd,acm_tty,rmnet_smd,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903D
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports smd,tty
|
||||
write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
start port-bridge
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_smd,serial_tty,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9026
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd,tty
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,acm_smd,acm_tty,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903E
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_acm/acm_transports smd,tty
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet_smd,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 composition
|
||||
on property:sys.usb.config=diag,serial_hsic,serial_tty,rmnet_hsic,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9025
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,tty
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 composition with diag_mdm and adb
|
||||
on property:sys.usb.config=diag,diag_mdm,serial_hsic,serial_tty,rmnet_hsic,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9031
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,tty
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 composition with diag_mdm
|
||||
on property:sys.usb.config=diag,diag_mdm,serial_hsic,serial_tty,rmnet_hsic,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9032
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,tty
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 DSDA composition with adb
|
||||
on property:sys.usb.config=diag,diag_mdm,diag_qsc,serial_hsic,serial_hsuart,rmnet_hsic,rmnet_hsuart,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9065
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,hsuart
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic,serial_hsuart
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic,hsuart,hsuart
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic,rmnet_hsuart
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 DSDA composition without adb
|
||||
on property:sys.usb.config=diag,diag_mdm,diag_qsc,serial_hsic,serial_hsuart,rmnet_hsic,rmnet_hsuart,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9066
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,hsuart
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic,serial_hsuart
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic,hsuart,hsuart
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic,rmnet_hsuart
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 DSDA2 composition with adb
|
||||
on property:sys.usb.config=diag,diag_mdm,diag_mdm2,serial_hsic,serial_hsusb,rmnet_hsic,rmnet_hsusb,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9065
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_mdm2
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic,serial_hsusb
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic,hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic,rmnet_hsusb
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 3 DSDA2 composition without adb
|
||||
on property:sys.usb.config=diag,diag_mdm,diag_mdm2,serial_hsic,serial_hsusb,rmnet_hsic,rmnet_hsusb,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9066
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_mdm2
|
||||
write /sys/class/android_usb/android0/f_serial/transports hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_serial/transport_names serial_hsic,serial_hsusb
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports hsic,hsic,hsic,hsic
|
||||
write /sys/class/android_usb/android0/f_rmnet/transport_names rmnet_hsic,rmnet_hsusb
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 2.2 composition with diag_qsc and adb
|
||||
on property:sys.usb.config=diag,diag_qsc,serial_smd,serial_tty,serial_hsuart,rmnet_hsuart,mass_storage,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9053
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_qsc
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd,tty,hsuart
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam,hsuart,hsuart
|
||||
write /sys/class/android_usb/android0/functions diag,adb,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# Fusion 2.2 composition with diag_qsc
|
||||
on property:sys.usb.config=diag,diag_qsc,serial_smd,serial_tty,serial_hsuart,rmnet_hsuart,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9054
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_qsc
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd,tty,hsuart
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam,hsuart,hsuart
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,mass_storage
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9041
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions rndis,diag
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,diag_mdm,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9042
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions rndis,diag,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9086
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/functions rndis,diag
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,diag_mdm,diag_qsc,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9087
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/functions rndis,diag,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9040
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions mtp,diag
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,diag,diag_mdm,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 903F
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions mtp,diag,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9088
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/functions mtp,diag
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=mtp,diag,diag_mdm,diag_qsc,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9089
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm,diag_qsc
|
||||
write /sys/class/android_usb/android0/functions mtp,diag,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,ccid
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9045
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions diag,ccid
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,ccid,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9044
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions diag,adb,ccid
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,qdss
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 904A
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/functions diag,qdss
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,qdss,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9060
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/functions diag,qdss,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,qdss,rmnet_bam
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9083
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,qdss,rmnet
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,qdss,rmnet_bam,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9084
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,qdss,adb,rmnet
|
||||
write /sys/module/dwc3/parameters/tx_fifo_resize_enable 1
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,qdss
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9081
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/functions rndis,diag,qdss
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,qdss,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9082
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/functions rndis,diag,qdss,adb
|
||||
write /sys/module/dwc3/parameters/tx_fifo_resize_enable 1
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=ncm
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 0525
|
||||
write /sys/class/android_usb/android0/idProduct A4A1
|
||||
write /sys/class/android_usb/android0/functions ncm
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=ncm,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 908C
|
||||
write /sys/class/android_usb/android0/functions ncm,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=charging
|
||||
stop adbd
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 04E8
|
||||
write /sys/class/android_usb/android0/idProduct 6860
|
||||
write /sys/class/android_usb/android0/functions charging
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# USB midi configuration
|
||||
on property:sys.usb.config=midi
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 18D1
|
||||
write /sys/class/android_usb/android0/idProduct 4EE8
|
||||
write /sys/class/android_usb/android0/functions ${sys.usb.config}
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
# USB midi configuration, with adb
|
||||
on property:sys.usb.config=midi,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 18D1
|
||||
write /sys/class/android_usb/android0/idProduct 4EE9
|
||||
write /sys/class/android_usb/android0/functions ${sys.usb.config}
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
198
rootdir/etc/ueventd.qcom.rc
Normal file
198
rootdir/etc/ueventd.qcom.rc
Normal file
|
@ -0,0 +1,198 @@
|
|||
# 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.
|
||||
#
|
||||
|
||||
# the DIAG device node is not world writable/readable.
|
||||
/dev/diag 0660 system qcom_diag
|
||||
|
||||
/dev/genlock 0666 system system
|
||||
/dev/kgsl 0666 system system
|
||||
/dev/kgsl-3d0 0666 system system
|
||||
/dev/kgsl-2d0 0666 root root
|
||||
/dev/kgsl-2d1 0666 root root
|
||||
/dev/ion 0664 system system
|
||||
/dev/rtc0 0600 system system
|
||||
/dev/smd0 0660 system system
|
||||
/dev/smd4 0660 system system
|
||||
/dev/smd_cxm_qmi 0640 radio radio
|
||||
/dev/smd5 0660 system system
|
||||
/dev/smd6 0660 system system
|
||||
/dev/smd7 0660 bluetooth bluetooth
|
||||
|
||||
# Permissions for CSVT
|
||||
/dev/smd11 0660 radio radio
|
||||
|
||||
/dev/radio0 0640 system system
|
||||
/dev/rfcomm0 0660 bluetooth bluetooth
|
||||
/dev/smdcntl0 0640 radio radio
|
||||
/dev/smdcntl1 0640 radio radio
|
||||
/dev/smdcntl2 0640 radio radio
|
||||
/dev/smdcntl3 0640 radio radio
|
||||
/dev/smdcntl4 0640 radio radio
|
||||
/dev/smdcntl5 0640 radio radio
|
||||
/dev/smdcntl6 0640 radio radio
|
||||
/dev/smdcntl7 0640 radio radio
|
||||
/dev/smdcnt_rev0 0640 radio radio
|
||||
/dev/smdcnt_rev1 0640 radio radio
|
||||
/dev/smdcnt_rev2 0640 radio radio
|
||||
/dev/smdcnt_rev3 0640 radio radio
|
||||
/dev/smdcnt_rev4 0640 radio radio
|
||||
/dev/smdcnt_rev5 0640 radio radio
|
||||
/dev/smdcnt_rev6 0640 radio radio
|
||||
/dev/smdcnt_rev7 0640 radio radio
|
||||
/dev/smdcnt_rev8 0640 radio radio
|
||||
/dev/smuxctl32 0640 radio radio
|
||||
/dev/sdioctl0 0640 radio radio
|
||||
/dev/sdioctl1 0640 radio radio
|
||||
/dev/sdioctl2 0640 radio radio
|
||||
/dev/sdioctl3 0640 radio radio
|
||||
/dev/sdioctl4 0640 radio radio
|
||||
/dev/sdioctl5 0640 radio radio
|
||||
/dev/sdioctl6 0640 radio radio
|
||||
/dev/sdioctl7 0640 radio radio
|
||||
/dev/sdioctl8 0640 radio radio
|
||||
/dev/rmnet_mux_ctrl 0640 radio radio
|
||||
/dev/hsicctl0 0640 radio radio
|
||||
/dev/hsicctl1 0640 radio radio
|
||||
/dev/hsicctl2 0640 radio radio
|
||||
/dev/hsicctl3 0640 radio radio
|
||||
/dev/hsicctl4 0640 radio radio
|
||||
/dev/hsicctl5 0640 radio radio
|
||||
/dev/hsicctl6 0640 radio radio
|
||||
/dev/hsicctl7 0640 radio radio
|
||||
/dev/hsicctl8 0640 radio radio
|
||||
/dev/hsicctl9 0640 radio radio
|
||||
/dev/hsicctl10 0640 radio radio
|
||||
/dev/hsicctl11 0640 radio radio
|
||||
/dev/hsicctl12 0640 radio radio
|
||||
/dev/hsicctl13 0640 radio radio
|
||||
/dev/hsicctl14 0640 radio radio
|
||||
/dev/hsicctl15 0640 radio radio
|
||||
/dev/hsicctl16 0640 radio radio
|
||||
/dev/video* 0660 system camera
|
||||
/dev/media* 0660 system camera
|
||||
/dev/v4l-subdev* 0660 system camera
|
||||
/dev/qseecom 0660 system drmrpc
|
||||
/dev/gemini0 0660 system camera
|
||||
/dev/jpeg0 0660 system camera
|
||||
/dev/jpeg1 0660 system camera
|
||||
/dev/jpeg2 0660 system camera
|
||||
/dev/msm_camera/* 0660 system camera
|
||||
/dev/gemini/ 0660 system camera
|
||||
/dev/mercury0 0660 system camera
|
||||
/dev/msm_vidc_reg 0660 system audio
|
||||
/dev/msm_vidc_dec 0660 system audio
|
||||
/dev/msm_vidc_dec_sec 0660 system audio
|
||||
/dev/msm_vidc_enc 0660 system audio
|
||||
/dev/msm_vidc_enc_sec 0660 system audio
|
||||
/dev/msm_rotator 0660 system system
|
||||
/dev/hw_random 0660 system system
|
||||
/dev/adsprpc-smd 0664 media camera
|
||||
/dev/graphics/* 0660 system graphics
|
||||
/dev/tun 0660 system vpn
|
||||
|
||||
# Permissions for audio
|
||||
/dev/msm_qcelp 0660 system audio
|
||||
/dev/msm_evrc 0660 system audio
|
||||
/dev/msm_wma 0660 system audio
|
||||
/dev/msm_wmapro 0660 system audio
|
||||
/dev/msm_amrnb 0660 system audio
|
||||
/dev/msm_amrwb 0660 system audio
|
||||
/dev/msm_amrwb_in 0660 system audio
|
||||
/dev/msm_amrwbplus 0660 system audio
|
||||
/dev/msm_aac 0660 system audio
|
||||
/dev/msm_multi_aac 0660 system audio
|
||||
/dev/msm_aac_in 0660 system audio
|
||||
/dev/msm_qcelp_in 0660 system audio
|
||||
/dev/msm_evrc_in 0660 system audio
|
||||
/dev/msm_amrnb_in 0640 system audio
|
||||
/dev/msm_a2dp_in 0660 system audio
|
||||
/dev/msm_ac3 0660 system audio
|
||||
/dev/msm_acdb 0660 system audio
|
||||
/dev/msm_cad 0660 system audio
|
||||
/dev/msm_fm 0660 system audio
|
||||
/dev/msm_mvs 0660 system audio
|
||||
/dev/msm_pcm_lp_dec 0660 system audio
|
||||
/dev/msm_preproc_ctl 0660 system audio
|
||||
/dev/msm_rtac 0660 system audio
|
||||
/dev/msm_sps 0660 system audio
|
||||
/dev/msm_voicememo 0660 system audio
|
||||
/dev/radio0 0640 fm_radio fm_radio
|
||||
/dev/smd3 0660 bluetooth net_bt_stack
|
||||
/dev/smd2 0660 bluetooth net_bt_stack
|
||||
/dev/ttyHSL0 0660 radio system
|
||||
/dev/ttyHSL1 0660 system system
|
||||
/dev/mdm 0660 system radio
|
||||
/dev/sdio_tty_ciq_00 0660 system system
|
||||
/dev/tty_sdio_00 0660 system system
|
||||
/dev/ttyGS0 0660 system system
|
||||
/dev/i2c-5 0660 media media
|
||||
/sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio
|
||||
|
||||
# DVB devices
|
||||
/dev/dvb/adapter0/demux* 0440 media media
|
||||
/dev/dvb/adapter0/dvr* 0660 media media
|
||||
/dev/dvb/adapter0/video* 0660 media media
|
||||
|
||||
# Charger
|
||||
/dev/keychord 0660 system system
|
||||
|
||||
# Broadcast devices
|
||||
/dev/tsc_mux0 0660 media media
|
||||
/dev/tsc_ci0 0660 media media
|
||||
|
||||
# Sensors
|
||||
/sys/devices/i2c-12/12-* pollrate_ms 0664 system system
|
||||
/sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system
|
||||
/sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/proximity ps_adc 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system
|
||||
/sys/devices/virtual/input/input* poll 0660 input system
|
||||
/sys/devices/virtual/input/input* pollrate_ms 0660 input system
|
||||
|
||||
# WLAN
|
||||
/dev/wcnss_wlan 0660 system system
|
||||
/dev/wcnss_ctrl 0660 system system
|
||||
|
||||
|
||||
# NFC permissions
|
||||
/dev/nfc-nci 0660 nfc nfc
|
||||
/dev/pn547 0660 nfc nfc
|
||||
/sys/devices/f9925000.i2c/i2c-2/2-0028 init_deinit 0200 nfc nfc
|
||||
/sys/devices/f9925000.i2c/i2c-2/2-0028 set_pwr 0200 nfc nfc
|
||||
/sys/devices/f9925000.i2c/i2c-2/2-0028 res_ready 0400 nfc nfc
|
||||
/sys/devices/f9925000.i2c/i2c-2/2-0028 recv_rsp 0600 nfc nfc
|
||||
/sys/devices/f9925000.i2c/i2c-2/2-0028 send_cmd 0200 nfc nfc
|
||||
|
||||
# UIO devices
|
||||
/dev/uio0 0660 system system
|
||||
/dev/uio1 0660 system system
|
||||
/dev/uio2 0660 system system
|
||||
|
||||
# Permission for dun
|
||||
/dev/dun 0660 system system
|
Loading…
Reference in a new issue