update init scripts
This commit is contained in:
parent
b0a0589653
commit
3a4b0a93d2
@ -32,10 +32,3 @@ LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/ueventd.qcom.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.sec.boot.sh
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.sec.boot.sh
|
||||
include $(BUILD_PREBUILT)
|
||||
|
@ -1,23 +0,0 @@
|
||||
# Android fstab file.
|
||||
# The filesystem that contains the filesystem e2fsck binary (typically /system) cannot
|
||||
# specify 'check', and must come before any filesystems that do specify 'check'
|
||||
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,errors=panic wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 nosuid,nodev,noatime,noauto_da_alloc,errors=continue,commit=20 wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,errors=continue,commit=20 wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware-modem vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,journal_async_commit,errors=panic wait,check
|
||||
/dev/block/platform/msm_sdcc.1/by-name/fota /misc emmc defaults defaults
|
||||
|
||||
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults recoveryonly
|
||||
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults recoveryonly
|
||||
|
||||
/devices/msm_sdcc.3/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
|
||||
/dev/block/zram0 none swap defaults zramsize=25%,zramstreams=4,swapprio=10,notrim
|
||||
|
||||
/devices/platform/xhci-hcd* auto auto defaults voldmanaged=usb:auto
|
@ -1,17 +1,18 @@
|
||||
# Android fstab file.
|
||||
# The filesystem that contains the filesystem e2fsck binary (typically /system) cannot
|
||||
# specify 'check', and must come before any filesystems that do specify 'check'
|
||||
|
||||
# NOTE: /system partition is now early-mounted and the fstab entry is specified in device tree:
|
||||
# /proc/device-tree/firmware/android/fstab/system
|
||||
|
||||
#
|
||||
# NOTE: /system partition is now early-mounted and the fstab entry is explicitly
|
||||
# specified for recovery-mount only:
|
||||
#
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,errors=panic wait,recoveryonly
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 nosuid,nodev,noatime,noauto_da_alloc,errors=continue,commit=20 wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,errors=continue,commit=20 wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware-modem vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware sdfat ro,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware-modem sdfat ro,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,journal_async_commit,errors=panic wait,check
|
||||
/dev/block/platform/msm_sdcc.1/by-name/fota /misc emmc defaults defaults
|
||||
|
||||
@ -20,6 +21,6 @@
|
||||
|
||||
/devices/msm_sdcc.3/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
|
||||
/dev/block/zram0 none swap defaults zramsize=25%,zramstreams=4,swapprio=10,notrim
|
||||
/dev/block/zram0 none swap defaults zramsize=25%,max_comp_streams=4,swapprio=10,notrim
|
||||
|
||||
/devices/platform/xhci-hcd* auto auto defaults voldmanaged=usb:auto
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Copyright (c) 2009-2012, Code Aurora Forum. All rights reserved.
|
||||
# 2017, The LineageOS Project. All rights reserved.
|
||||
# 2017-2018, The LineageOS Project. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
@ -27,11 +27,8 @@
|
||||
#
|
||||
|
||||
import init.qcom.usb.rc
|
||||
import init.target.rc
|
||||
|
||||
on early-init
|
||||
export LD_SHIM_LIBS /system/vendor/lib/hw/camera.vendor.msm8974.so|libshim_camera.so:/system/lib/libcutils.so|libshim_cutils_atomic.so
|
||||
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
chmod 0755 /sys/kernel/debug
|
||||
|
||||
@ -98,6 +95,7 @@ on post-fs-data
|
||||
write /data/.wifiver.info 0
|
||||
chown system root /data/.wifiver.info
|
||||
chmod 0664 /data/.wifiver.info
|
||||
restorecon /data/.wifiver.info
|
||||
|
||||
# for WIFI Cert
|
||||
chmod 0664 /data/.bustxglom.info
|
||||
@ -111,6 +109,10 @@ on post-fs-data
|
||||
chmod 0660 /efs/wifi/.mac.info
|
||||
restorecon /efs/wifi/.mac.info
|
||||
|
||||
# for WIFI Front End Module
|
||||
chown system system /data/.cid.info
|
||||
chmod 0664 /data/.cid.info
|
||||
|
||||
# Create directory used by audio subsystem
|
||||
mkdir /data/misc/audio 0770 audio audio
|
||||
|
||||
@ -239,18 +241,9 @@ on post-fs-data
|
||||
|
||||
# Remove symlinks to avoid issues with migrate after nandroid restores
|
||||
# Will be recreated at end of boot
|
||||
# Normal path
|
||||
rm /data/data/com.android.providers.telephony/databases
|
||||
rm /data/data/com.android.providers.telephony/shared_prefs
|
||||
|
||||
# COMPAT: Handle upgrade from previous implementation of this idea. If the
|
||||
# above could not be unlinked then we have the old symlinked files
|
||||
# scenario. Clean that up.
|
||||
rm /data/data/com.android.providers.telephony/databases/telephony.db
|
||||
rm /data/data/com.android.providers.telephony/shared_prefs/preferred-apn.xml
|
||||
rmdir /data/data/com.android.providers.telephony/databases
|
||||
rmdir /data/data/com.android.providers.telephony/shared_prefs
|
||||
|
||||
setprop vold.post_fs_data_done 1
|
||||
|
||||
on early-boot
|
||||
@ -293,8 +286,6 @@ on boot
|
||||
mkdir /dev/socket/qmux_gps 0770 gps gps
|
||||
chmod 2770 /dev/socket/qmux_gps
|
||||
|
||||
mkdir /persist/bluetooth 0770 bluetooth bluetooth
|
||||
|
||||
# Allow QMUX daemon to assign port open wait time
|
||||
chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait
|
||||
|
||||
@ -448,16 +439,16 @@ on boot
|
||||
# LCD mdnie and panel work
|
||||
chown system system /sys/class/mdnie/mdnie/lcdtype
|
||||
chown system system /sys/class/mdnie/mdnie/lcd_power
|
||||
chown system media_rw /sys/class/mdnie/mdnie/scenario
|
||||
chown system system /sys/class/mdnie/mdnie/scenario
|
||||
chmod 0660 /sys/class/mdnie/mdnie/scenario
|
||||
|
||||
chown system system /sys/class/mdnie/mdnie/tuning
|
||||
chown system media_rw /sys/class/mdnie/mdnie/outdoor
|
||||
chown system system /sys/class/mdnie/mdnie/outdoor
|
||||
chown system system /sys/class/mdnie/mdnie/mdnie_temp
|
||||
chown system system /sys/class/mdnie/mdnie/mode
|
||||
chown system system /sys/class/mdnie/mdnie/negative
|
||||
chown system media_rw /sys/class/mdnie/mdnie/playspeed
|
||||
chown system media_rw /sys/class/mdnie/mdnie/accessibility
|
||||
chown system system /sys/class/mdnie/mdnie/playspeed
|
||||
chown system system /sys/class/mdnie/mdnie/accessibility
|
||||
chown system system /sys/class/mdnie/mdnie/cabc
|
||||
chown system system /sys/class/mdnie/mdnie/bypass
|
||||
|
||||
@ -834,6 +825,7 @@ on boot
|
||||
|
||||
# Set permissions for firmware path control
|
||||
chown wifi wifi /sys/module/dhd/parameters/firmware_path
|
||||
chown wifi wifi /sys/module/dhd/parameters/nvram_path
|
||||
|
||||
# Services begin here
|
||||
|
||||
@ -901,8 +893,8 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
-I/system/etc/wifi/wpa_supplicant_overlay.conf -N \
|
||||
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
|
||||
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
|
||||
-puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
|
||||
-g@android:wpa_wlan0
|
||||
-puse_p2p_group_interface=1 \
|
||||
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
@ -911,15 +903,13 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
service macloader /vendor/bin/macloader
|
||||
class late_start
|
||||
oneshot
|
||||
user system
|
||||
group system wifi
|
||||
seclabel u:r:macloader:s0
|
||||
|
||||
on property:wlan.driver.status=ok
|
||||
start macloader
|
||||
|
||||
on property:init.svc.macloader=stopped
|
||||
chown system root /data/.cid.info
|
||||
chmod 0664 /data/.cid.info
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
setprop sys.io.scheduler bfq
|
||||
|
||||
@ -950,6 +940,17 @@ on property:sys.boot_completed=1
|
||||
write /sys/module/msm_pm/modes/cpu3/retention/suspend_enabled 1
|
||||
write /sys/module/msm_thermal/core_control/enabled 0
|
||||
|
||||
# Bring all CPUs online, and set node permissions
|
||||
write /sys/devices/system/cpu/cpu1/online 1
|
||||
write /sys/devices/system/cpu/cpu2/online 1
|
||||
write /sys/devices/system/cpu/cpu3/online 1
|
||||
chmod 664 /sys/devices/system/cpu/cpu1/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu2/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu3/online
|
||||
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
|
||||
|
||||
# Configure the CPU governor
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
|
||||
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
|
||||
@ -968,13 +969,6 @@ on property:sys.boot_completed=1
|
||||
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000
|
||||
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000
|
||||
|
||||
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
|
||||
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
# Configure the cpu-boost module
|
||||
@ -987,18 +981,13 @@ on property:sys.boot_completed=1
|
||||
rm /data/system/perfd/default_values
|
||||
start mpdecision
|
||||
|
||||
# Symlink directories to access telephony.db and preferred-apn.xml required by cbd
|
||||
# Symlink directories to access telephony.db and preferred-apn.xml required by libsec-ril
|
||||
symlink /data/user_de/0/com.android.providers.telephony/databases /data/data/com.android.providers.telephony/databases
|
||||
symlink /data/user_de/0/com.android.providers.telephony/shared_prefs /data/data/com.android.providers.telephony/shared_prefs
|
||||
|
||||
service charger /charger
|
||||
class charger
|
||||
seclabel u:r:healthd:s0
|
||||
|
||||
service sec-sh /system/bin/sh /system/etc/init.sec.boot.sh
|
||||
class main
|
||||
user root
|
||||
oneshot
|
||||
seclabel u:r:charger:s0
|
||||
|
||||
on property:persist.sys.ssr.restart_level=1
|
||||
write /sys/module/subsystem_restart/parameters/restart_level 1
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
# start deferred initcalls
|
||||
cat /proc/deferred_initcalls
|
@ -147,8 +147,9 @@
|
||||
/dev/i2c-5 0660 media media
|
||||
/dev/voice_svc 0660 system audio
|
||||
|
||||
#Audience ES705 UART
|
||||
/dev/ttyHS3 0660 media audio
|
||||
# Audience ES705 UART - do not be tempted to uncomment the below unless you
|
||||
# want firmware loading to be blocked by selinux
|
||||
#/dev/ttyHS3 0660 media audio
|
||||
|
||||
# Bluetooth
|
||||
/dev/ttyHS0 0660 bluetooth bluetooth
|
||||
|
Loading…
Reference in New Issue
Block a user