klte-common: cleanup init files

Change-Id: I11ca4869c0d449f1efa6cd9eb76d9c5b5a53739e
This commit is contained in:
OzzysCmAcc 2017-03-21 19:33:41 +01:00 committed by Oskar Kratochvil
parent e562c96ae6
commit 722ab7ae6d
2 changed files with 39 additions and 59 deletions

View File

@ -215,10 +215,6 @@ on post-fs-data
chown system root /data/.psm.info
chmod 0660 /data/.psm.info
# MTP permission
chmod 0660 /dev/usb_mtp_gadget
chown system mtp /dev/usb_mtp_gadget
# symlink to bugreport storage location
symlink /data/data/com.android.shell/files/bugreports /data/bugreports
@ -233,9 +229,8 @@ on post-fs-data
# IR_LED
chown system radio /sys/class/sec/sec_ir/ir_send
chown system radio /sys/class/sec/sec_ir/ir_send_result
chown system system /dev/ice4_dev
chmod 0660 /dev/ice4_dev
# Flash
chown system camera /sys/class/flash/flash/flash_power
chmod 660 /sys/class/flash/flash/flash_power
@ -279,13 +274,9 @@ on boot
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth net_bt_stack /dev/ttyHS0
chmod 0660 /sys/module/hci_uart/parameters/ath_lpm
chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /dev/ttyHS2
chown bluetooth bluetooth /dev/ttyHS2
# for BT MAC address
mkdir /efs/bluetooth 0775 radio system
@ -293,14 +284,6 @@ on boot
chown radio system /efs/bluetooth
chmod 0775 /efs/bluetooth
# For WiFi
chown wifi wifi /dev/rfkill
chmod 0600 /dev/rfkill
#Audience ES705 UART
chmod 0660 /dev/ttyHS3
chown media audio /dev/ttyHS3
#Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
@ -373,10 +356,6 @@ on boot
# 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.
@ -739,10 +718,6 @@ on boot
chown system radio /sys/class/sensors/gesture_sensor/ir_current
chown system radio /sys/class/sensors/gesture_sensor/selftest
# SHTC1 BULK
chmod 0600 /dev/shtc1_sensor
chown system system /dev/shtc1_sensor
# Permissions for SSRM
chmod 0664 /sys/devices/platform/sec-thermistor/temperature
chmod 0664 /sys/class/power_supply/battery/siop_level
@ -762,13 +737,9 @@ on boot
symlink /dev/pn547 /dev/pn544
symlink /dev/pn547 /dev/pn54x
# NFC_BROADCOM
mkdir /data/nfc
mkdir /data/nfc/param
chmod 0700 /data/nfc
chmod 0700 /data/nfc/param
chown nfc nfc /data/nfc
chown nfc nfc /data/nfc/param
# NFC_SLSI
mkdir /data/nfc 0700 nfc nfc
mkdir /data/nfc/param 0700 nfc nfc
# Permissions for Charging
chown system radio /sys/class/power_supply/battery/batt_reset_soc
@ -863,8 +834,6 @@ on boot
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
chmod 0600 /dev/btlock
chown bluetooth bluetooth /dev/btlock
# Sensors
chown system system /efs/prox_cal

View File

@ -44,7 +44,6 @@
#permissions for CSVT
/dev/smd11 0660 radio radio
/dev/radio0 0640 system system
/dev/rfcomm0 0660 bluetooth bluetooth
/dev/smdcntl0 0640 radio radio
@ -145,23 +144,47 @@
/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
/dev/i2c-5 0660 media media
/dev/voice_svc 0660 system audio
#Audience ES705 UART
/dev/ttyHS3 0660 media audio
# Bluetooth
/dev/ttyHS0 0660 bluetooth net_bt_stack
/dev/ttyHS2 0660 bluetooth bluetooth
# bluetooth LPM
/dev/btlock 0600 bluetooth bluetooth
# Broadcast devices
/dev/tsc_mux0 0660 media media
/dev/tsc_ci0 0660 media media
# DVB devices
/dev/dvb/adapter0/demux* 0440 media media
/dev/dvb/adapter0/dvr* 0660 media media
/dev/dvb/adapter0/video* 0660 media media
# Fingerprint
/dev/vfsspi 0660 system system
# DVB devices
/dev/dvb/adapter0/demux* 0440 media media
/dev/dvb/adapter0/dvr* 0660 media media
/dev/dvb/adapter0/video* 0660 media media
# IR_LED
/dev/ice4_dev 0660 system system
# Broadcast devices
/dev/tsc_mux0 0660 media media
/dev/tsc_ci0 0660 media media
# NFC_NXP
/dev/pn547 0660 nfc nfc
# NFC
/dev/bcm2079x 0600 nfc nfc
/dev/pn547 0660 nfc nfc
# SHTC1 BULK
/dev/shtc1_sensor 0600 system system
# UIO devices
/dev/uio0 0660 system system
/dev/uio1 0660 system system
/dev/uio2 0660 system system
# wlan
/dev/rfkill 0600 wifi wifi
# sensors
/sys/devices/i2c-12/12-* pollrate_ms 0664 system system
@ -174,18 +197,6 @@
/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/assd 0660 nfc nfc
# UIO devices
/dev/uio0 0660 system system
/dev/uio1 0660 system system
/dev/uio2 0660 system system
# sensorhub
/dev/batch_io 0660 system system
/dev/ssp_sensorhub 0660 system system