gts4lvwifi: Import init.gts4lvwifi.rc from stock
Change-Id: I8790ea5d488ef0391991be6075fe9ff7bb53b4ef
This commit is contained in:
@@ -18,5 +18,9 @@
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay
|
||||
|
||||
# Device init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
init.gts4lvwifi.rc
|
||||
|
||||
# Inherit from gts4lv-common
|
||||
$(call inherit-product, device/samsung/gts4lv-common/gts4lv.mk)
|
||||
|
||||
11
rootdir/Android.mk
Normal file
11
rootdir/Android.mk
Normal file
@@ -0,0 +1,11 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
# Device init scripts
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.gts4lvwifi.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.gts4lvwifi.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
74
rootdir/etc/init.gts4lvwifi.rc
Normal file
74
rootdir/etc/init.gts4lvwifi.rc
Normal file
@@ -0,0 +1,74 @@
|
||||
# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
on boot
|
||||
# SSWAP
|
||||
write /proc/sys/vm/swappiness 160
|
||||
|
||||
# DP AUX switch control
|
||||
chmod 0660 /sys/class/dp_sec/dp_sbu_sw_sel
|
||||
chown system system /sys/class/dp_sec/dp_sbu_sw_sel
|
||||
|
||||
# DP DEX control
|
||||
chmod 0660 /sys/class/dp_sec/dex
|
||||
chown system system /sys/class/dp_sec/dex
|
||||
|
||||
# DP AUX dev control
|
||||
chmod 0660 /dev/secdp_aux
|
||||
chown system system /dev/secdp_aux
|
||||
|
||||
# DP error info
|
||||
chmod 0660 /sys/class/dp_sec/dp_error_info
|
||||
chown system system /sys/class/dp_sec/dp_error_info
|
||||
|
||||
# DP monitor info
|
||||
chmod 0440 /sys/class/dp_sec/monitor_info
|
||||
chown system system /sys/class/dp_sec/monitor_info
|
||||
|
||||
# DP dex version
|
||||
chmod 0440 /sys/class/dp_sec/dex_ver
|
||||
chown system system /sys/class/dp_sec/dex_ver
|
||||
|
||||
on fs
|
||||
wait /dev/block/bootdevice/by-name/sec_efs
|
||||
mount ext4 /dev/block/bootdevice/by-name/sec_efs /efs nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic
|
||||
restorecon -R /efs
|
||||
|
||||
# faced
|
||||
service faced /system/bin/faced
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
|
||||
# SSWAP
|
||||
service swapon /sbin/sswap -s -z -f 2048
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
seclabel u:r:sswap:s0
|
||||
oneshot
|
||||
Reference in New Issue
Block a user