gts3llte: init: Import some of original init.carrier.rc contents and rename it
Signed-off-by: Deokgyu Yang <secugyu@gmail.com> Change-Id: Id5237a528dc35c28d3cdaf5ff232526218205508
This commit is contained in:
parent
73224d11cd
commit
06199779c2
3 changed files with 81 additions and 10 deletions
|
@ -23,7 +23,7 @@ DEVICE_PACKAGE_OVERLAYS += \
|
|||
|
||||
# Device init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
init.carrier.rc \
|
||||
init.gts3llte.rc \
|
||||
init.rilchip.rc \
|
||||
init.rilcommon.rc
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ LOCAL_PATH := $(call my-dir)
|
|||
# Device init scripts
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.carrier.rc
|
||||
LOCAL_MODULE := init.gts3llte.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.carrier.rc
|
||||
LOCAL_SRC_FILES := etc/init.gts3llte.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
|
|
|
@ -4,6 +4,16 @@
|
|||
# This is a common source of Android security bugs.
|
||||
#
|
||||
|
||||
on init
|
||||
|
||||
on fs
|
||||
|
||||
#For Verizon Device Stats Partition
|
||||
mkdir /vzw 0755 system system
|
||||
|
||||
chown system system /vzw
|
||||
chmod 0755 /vzw
|
||||
|
||||
on boot
|
||||
# permission for MUIC(waterproof)
|
||||
chown system radio /sys/class/sec/switch/uart_en
|
||||
|
@ -23,6 +33,9 @@ on boot
|
|||
chown bluetooth bluetooth /dev/ttyHS0
|
||||
chmod 0660 /dev/ttyHS0
|
||||
|
||||
# SSWAP
|
||||
write /proc/sys/vm/swappiness 130
|
||||
|
||||
# Permissions for System LSI NFC
|
||||
# NFC : Permissions for NFC
|
||||
chmod 0660 /dev/sec-nfc
|
||||
|
@ -56,6 +69,18 @@ on boot
|
|||
chown system radio /sys/class/fingerprint/fingerprint/vendor
|
||||
chown system radio /sys/class/fingerprint/fingerprint/adm
|
||||
|
||||
# SENSOR FRAMEWORK : starts fingerprintService
|
||||
#service vcsFPService /system/bin/vcsFPService
|
||||
# class late_start
|
||||
# user system
|
||||
# group system
|
||||
#
|
||||
# FINGERPRINT FRAMEWORK : starts fingerprintd
|
||||
#service fingerprintd /system/bin/fingerprintd
|
||||
# class late_start
|
||||
# user system
|
||||
# group system
|
||||
#
|
||||
on post-fs-data
|
||||
# permissions for audio
|
||||
chown system radio /sys/class/rt5508_cal/trigger
|
||||
|
@ -80,3 +105,49 @@ on post-fs-data
|
|||
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
|
||||
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/device/extldo
|
||||
|
||||
# sem_daemon permission
|
||||
chown system system /efs/sec_efs/ssp_data
|
||||
chmod 0644 /efs/sec_efs/ssp_data
|
||||
|
||||
# sem_daemon
|
||||
#service sem_daemon /system/bin/sem_daemon
|
||||
# class core
|
||||
# user system
|
||||
# group system nfc
|
||||
# disabled
|
||||
#
|
||||
#on property:sys.boot_completed=1
|
||||
# setprop security.semdaemonfinish 0
|
||||
# start sem_daemon
|
||||
#
|
||||
#on property:security.semdaemonfinish=1
|
||||
# stop sem_daemon
|
||||
#
|
||||
# cooldown mode for lpm animation
|
||||
on charger
|
||||
mkdir /vzw 0744 system system
|
||||
wait /dev/block/bootdevice/by-name/carrier
|
||||
mount ext4 /dev/block/bootdevice/by-name/carrier /vzw nosuid nodev noatime noauto_da_alloc,discard,journal_async_commit,errors=panic
|
||||
chown system system /vzw
|
||||
chmod 0744 /vzw
|
||||
|
||||
# SSWAP
|
||||
service swapon /sbin/sswap -s -f 2048
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
seclabel u:r:sswap:s0
|
||||
oneshot
|
||||
|
||||
# Bluetooth
|
||||
on property:wc_transport.start_hci=true
|
||||
start start_hci_filter
|
||||
|
||||
on property:wc_transport.start_hci=false
|
||||
stop start_hci_filter
|
||||
|
||||
service start_hci_filter /system/bin/wcnss_filter
|
||||
class late_start
|
||||
user bluetooth
|
||||
group bluetooth
|
||||
disabled
|
Loading…
Reference in a new issue