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
|
# Device init scripts
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
init.carrier.rc \
|
init.gts3llte.rc \
|
||||||
init.rilchip.rc \
|
init.rilchip.rc \
|
||||||
init.rilcommon.rc
|
init.rilcommon.rc
|
||||||
|
|
||||||
|
@ -53,4 +53,4 @@ PRODUCT_PACKAGES += \
|
||||||
android.hardware.vibrator@1.0-service
|
android.hardware.vibrator@1.0-service
|
||||||
|
|
||||||
# Inherit from gts3l-common
|
# Inherit from gts3l-common
|
||||||
$(call inherit-product, device/samsung/gts3l-common/gts3l.mk)
|
$(call inherit-product, device/samsung/gts3l-common/gts3l.mk)
|
||||||
|
|
|
@ -3,10 +3,10 @@ LOCAL_PATH := $(call my-dir)
|
||||||
# Device init scripts
|
# Device init scripts
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := init.carrier.rc
|
LOCAL_MODULE := init.gts3llte.rc
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
LOCAL_MODULE_CLASS := ETC
|
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
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
|
|
|
@ -4,17 +4,27 @@
|
||||||
# This is a common source of Android security bugs.
|
# 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
|
on boot
|
||||||
# permission for MUIC(waterproof)
|
# permission for MUIC(waterproof)
|
||||||
chown system radio /sys/class/sec/switch/uart_en
|
chown system radio /sys/class/sec/switch/uart_en
|
||||||
|
|
||||||
# permission for touchkey grip
|
# permission for touchkey grip
|
||||||
chown system radio /sys/class/sec/sec_touchkey/sar_enable
|
chown system radio /sys/class/sec/sec_touchkey/sar_enable
|
||||||
chown system radio /sys/class/sec/sec_touchkey/sw_reset
|
chown system radio /sys/class/sec/sec_touchkey/sw_reset
|
||||||
|
|
||||||
# op mode for charger
|
# op mode for charger
|
||||||
chmod 0664 /sys/class/power_supply/sm5705-charger/charger_op_mode
|
chmod 0664 /sys/class/power_supply/sm5705-charger/charger_op_mode
|
||||||
chown system radio /sys/class/power_supply/sm5705-charger/charger_op_mode
|
chown system radio /sys/class/power_supply/sm5705-charger/charger_op_mode
|
||||||
|
|
||||||
# Permissions for Charging
|
# Permissions for Charging
|
||||||
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/store_mode
|
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/store_mode
|
||||||
|
@ -22,7 +32,10 @@ on boot
|
||||||
# bluetooth
|
# bluetooth
|
||||||
chown bluetooth bluetooth /dev/ttyHS0
|
chown bluetooth bluetooth /dev/ttyHS0
|
||||||
chmod 0660 /dev/ttyHS0
|
chmod 0660 /dev/ttyHS0
|
||||||
|
|
||||||
|
# SSWAP
|
||||||
|
write /proc/sys/vm/swappiness 130
|
||||||
|
|
||||||
# Permissions for System LSI NFC
|
# Permissions for System LSI NFC
|
||||||
# NFC : Permissions for NFC
|
# NFC : Permissions for NFC
|
||||||
chmod 0660 /dev/sec-nfc
|
chmod 0660 /dev/sec-nfc
|
||||||
|
@ -30,8 +43,8 @@ on boot
|
||||||
chown nfc nfc /dev/sec-nfc
|
chown nfc nfc /dev/sec-nfc
|
||||||
|
|
||||||
# Permissions for S.LSI ESE
|
# Permissions for S.LSI ESE
|
||||||
chmod 0660 /dev/p3
|
chmod 0660 /dev/p3
|
||||||
chown system system /dev/p3
|
chown system system /dev/p3
|
||||||
|
|
||||||
# Permissions for NXP NFC
|
# Permissions for NXP NFC
|
||||||
# NFC : Permissions for NFC
|
# NFC : Permissions for NFC
|
||||||
|
@ -56,6 +69,18 @@ on boot
|
||||||
chown system radio /sys/class/fingerprint/fingerprint/vendor
|
chown system radio /sys/class/fingerprint/fingerprint/vendor
|
||||||
chown system radio /sys/class/fingerprint/fingerprint/adm
|
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
|
on post-fs-data
|
||||||
# permissions for audio
|
# permissions for audio
|
||||||
chown system radio /sys/class/rt5508_cal/trigger
|
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/type
|
||||||
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/device/extldo
|
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