sm8250-common: Cleanup rootdir init scripts
This commit is contained in:
parent
70cf460c22
commit
f8539e08af
@ -6,28 +6,6 @@ import /vendor/etc/init/hw/init.mmi.overlay.rc
|
||||
|
||||
# Moto USB configuration
|
||||
import /vendor/etc/init/hw/init.mmi.usb.rc
|
||||
# Moto debugging
|
||||
import /vendor/etc/init/hw/init.mmi.debug.rc
|
||||
|
||||
# Moto diag_mdlog configuration
|
||||
import /vendor/etc/init/hw/init.mmi.diag_mdlog.rc
|
||||
|
||||
import /vendor/etc/init/hw/init.oem.rc
|
||||
import /vendor/etc/init/hw/init.mmi.common.rc
|
||||
import /vendor/etc/init/hw/init.mmi.nonab.rc
|
||||
|
||||
#Moto wlan configuration
|
||||
import /vendor/etc/init/hw/init.mmi.wlan.rc
|
||||
|
||||
# Moto verified boot extension
|
||||
import /vendor/etc/init/hw/init.mmi.hab.rc
|
||||
|
||||
# Test commands
|
||||
import /vendor/etc/init/hw/init.mmi.tcmd.rc
|
||||
|
||||
# Carrier specific script
|
||||
import /vendor/etc/init/carrier/init.${ro.boot.carrier}.rc
|
||||
import /vendor/etc/init/carrier/init.default.rc
|
||||
|
||||
on early-boot
|
||||
write /sys/module/subsystem_restart/parameters/disable_restart_work 0x0
|
||||
@ -42,12 +20,6 @@ on init
|
||||
chown system log /proc/driver/mmi_annotate
|
||||
chmod 0640 /proc/driver/mmi_annotate
|
||||
|
||||
on early-init && property:ro.bootmode=mot-factory
|
||||
setprop ro.vendor.mot.factory true
|
||||
|
||||
on early-init && property:ro.vendor.build.motfactory=1
|
||||
setprop ro.vendor.mot.factory true
|
||||
|
||||
on early-init
|
||||
# Need to wait for platform path for UTAGs driver to succeed
|
||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}/by-name/hw
|
||||
@ -170,8 +142,6 @@ on post-fs
|
||||
chmod 0660 /sys/class/capsense/calibrate
|
||||
|
||||
on post-fs-data
|
||||
setprop ro.vendor.build.fingerprint ${ro.product.vendor.brand}/${ro.product.vendor.name}/${ro.product.vendor.device}:${ro.vendor.build.version.release}/${ro.vendor.build.id}/${ro.vendor.build.version.incremental}:${ro.vendor.build.type}/${ro.vendor.build.tags}
|
||||
|
||||
# Setup folders for security
|
||||
mkdir /mnt/vendor/persist/security 02770 drmrpc drmrpc
|
||||
mkdir /data/vendor/dbvc 0750 vendor_tcmd shell
|
||||
@ -347,29 +317,6 @@ on boot
|
||||
chown system system /sys/class/capsense/reset
|
||||
chown system system /sys/class/capsense/int_state
|
||||
|
||||
service vendor.mmi-block-perm /vendor/bin/init.mmi.block_perm.sh
|
||||
class main
|
||||
user root
|
||||
oneshot
|
||||
|
||||
service vendor.pstore_annotate /vendor/bin/pstore_annotate.sh build
|
||||
class main
|
||||
user system
|
||||
group log
|
||||
oneshot
|
||||
|
||||
service vendor.apanic_copy /vendor/bin/apanic_copy.sh
|
||||
class late_start
|
||||
group log
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
service vendor.bl_logs_copy /vendor/bin/apanic_copy.sh -i
|
||||
class late_start
|
||||
group log
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on charger
|
||||
trigger early-fs
|
||||
trigger fs
|
||||
@ -380,124 +327,22 @@ on charger
|
||||
class_stop main
|
||||
class_stop late_start
|
||||
|
||||
service vendor.apanic_annotate /vendor/bin/apanic_save.sh build
|
||||
class late_start
|
||||
group log
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
service vendor.batt_health /vendor/bin/batt_health
|
||||
class late_start
|
||||
user vendor_pwric
|
||||
group vendor_pwric cache net_admin log
|
||||
disabled
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start vendor.batt_health
|
||||
|
||||
on property:sys.boot_completed=1 && property:ro.vendor.zram.product_swapon=""
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
swapon_all /vendor/etc/fstab.qcom
|
||||
write /proc/sys/vm/swappiness 100
|
||||
setprop sys.sysctl.swappiness 100
|
||||
|
||||
on property:sys.boot_completed=1 && property:ro.vendor.bootreason=coldboot
|
||||
start vendor.apanic_copy
|
||||
|
||||
on property:ro.vendor.bootreason=watchdog
|
||||
stop surfaceflinger
|
||||
stop zygote
|
||||
stop zygote_secondary
|
||||
stop sensors
|
||||
start vendor.apanic_annotate
|
||||
|
||||
on property:ro.vendor.bootreason=pmic_watchdog
|
||||
stop surfaceflinger
|
||||
stop zygote
|
||||
stop zygote_secondary
|
||||
stop sensors
|
||||
start vendor.apanic_annotate
|
||||
|
||||
on property:ro.vendor.bootreason=kernel_panic
|
||||
stop surfaceflinger
|
||||
stop zygote
|
||||
stop zygote_secondary
|
||||
stop sensors
|
||||
start vendor.apanic_annotate
|
||||
|
||||
on property:ro.vendor.bootreason=hw_warmreset
|
||||
stop surfaceflinger
|
||||
stop zygote
|
||||
stop zygote_secondary
|
||||
stop sensors
|
||||
start vendor.apanic_annotate
|
||||
|
||||
on property:persist.vendor.log.aplogd.enable=1
|
||||
start vendor.aplogd
|
||||
|
||||
on property:persist.vendor.log.aplogd.enable=0
|
||||
stop vendor.aplogd
|
||||
|
||||
service vendor.aplogd /vendor/bin/aplogd
|
||||
class late_start
|
||||
#user log
|
||||
#group log system sdcard_rw sdcard_r media_rw mount
|
||||
# The user and group definitions above are intentionally disabled and left
|
||||
# only as documentation. It actually starts as root and immediately drops
|
||||
# to log plus those groups after preserving CAP_SYS_ADMIN, which is required
|
||||
# for kernel logging.
|
||||
disabled
|
||||
|
||||
# from P onwards aplogd cannot read vold.post_fs_data_done so a new property
|
||||
# shall be used to allow aplogd checking if FBE has finished /data decryption
|
||||
on property:vold.post_fs_data_done=*
|
||||
setprop vendor.vold.post_fs_data_done ${vold.post_fs_data_done}
|
||||
|
||||
service vendor.mmi-boot-sh /vendor/bin/init.mmi.boot.sh
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
|
||||
service vendor.mmi-shutdown-sh /vendor/bin/init.mmi.shutdown.sh
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
# translate to qcom property name in order to keep the consistent with
|
||||
# our legacy property
|
||||
on property:persist.vendor.qc.sub.rdump.on=*
|
||||
setprop persist.vendor.ssr.enable_ramdumps ${persist.vendor.qc.sub.rdump.on}
|
||||
|
||||
# translate MMI property in order to keep the consistent with QCOM
|
||||
on property:ro.vendor.hw.dualsim=true
|
||||
setprop persist.radio.multisim.config dsds
|
||||
|
||||
on property:persist.vendor.qc.sub.rdump.on=*
|
||||
setprop persist.vendor.ssr.enable_ramdumps ${persist.vendor.qc.sub.rdump.on}
|
||||
|
||||
on property:ro.vendor.hw.dualsim=false
|
||||
setprop persist.radio.multisim.config ""
|
||||
|
||||
on property:sys.sysctl.swappiness=*
|
||||
write /proc/sys/vm/swappiness ${sys.sysctl.swappiness}
|
||||
|
||||
service vendor.mbm_spy /vendor/bin/mbm_spy
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start vendor.mbm_spy
|
||||
|
||||
service vendor.hw_revs /vendor/bin/hardware_revisions.sh
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
|
||||
service vendor.mmi-touch-sh /vendor/bin/init.mmi.touch.sh
|
||||
class core
|
||||
user root
|
||||
@ -521,13 +366,6 @@ service vendor.oem-super-image-detector-sh /vendor/bin/init.oem.hw.sh -M
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
service vendor.ident-fps-sh /vendor/bin/init.oem.fingerprint.sh
|
||||
class core
|
||||
user root
|
||||
group drmrpc system
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
service vendor.hal-fps-sh /vendor/bin/init.oem.fingerprint2.sh
|
||||
class late_start
|
||||
user root
|
||||
@ -627,9 +465,6 @@ on property:vendor.wifi.station=true
|
||||
on property:vendor.wifi.station=false
|
||||
write /sys/module/wlan/parameters/sar_sta disabled
|
||||
|
||||
on shutdown
|
||||
exec_start vendor.mmi-shutdown-sh
|
||||
|
||||
on property:persist.sys.locale=*
|
||||
mkdir /mnt/vendor/persist/chargeonly 0770 system system
|
||||
write /mnt/vendor/persist/chargeonly/locale ${persist.sys.locale}
|
||||
@ -645,3 +480,4 @@ on property:ro.sys.force_max_chrg_temp=*
|
||||
|
||||
on property:ro.sys.force_demo_mode=*
|
||||
write /sys/class/power_supply/battery/device/force_demo_mode ${ro.sys.force_demo_mode}
|
||||
|
||||
|
@ -1,258 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2009-2016, 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 BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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.
|
||||
#
|
||||
|
||||
# Define fastmmi
|
||||
service fastmmi /system_ext/bin/mmi
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
|
||||
service vendor.mmid /vendor/bin/mmid
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
|
||||
service mmi_diag /system_ext/bin/mmi_diag
|
||||
class main
|
||||
user root
|
||||
group root oem_2901
|
||||
disabled
|
||||
|
||||
on property:vendor.sys.boot_mode=ffbm
|
||||
write ${persist.vendor.mmi.misc_dev_path} "ffbm-01"
|
||||
|
||||
on property:vendor.sys.boot_mode=qmmi
|
||||
write ${persist.vendor.mmi.misc_dev_path} "qmmi"
|
||||
|
||||
on property:vendor.sys.boot_mode=normal
|
||||
write ${persist.vendor.mmi.misc_dev_path} "normal"
|
||||
|
||||
# Creating a scratch storage on /data for factory testing.
|
||||
on factory-fs && property:ro.bootmode=ffbm-00
|
||||
mount tmpfs tmpfs /data
|
||||
|
||||
on factory-fs && property:ro.bootmode=ffbm-01
|
||||
mount tmpfs tmpfs /data
|
||||
|
||||
# aligned the usb port with system standard, otherwise if only diag be added
|
||||
# Then in QMMI mode, the whole Andoid be booted, but due to the ro.bootmode is
|
||||
# not normal/unknow, then when it apply the default funcs, it will turn to MTP
|
||||
# which cause the diag/Wwan/modem port all be lost in qmmi mode. Details:
|
||||
# UsbDeviceManager.java---->getDefaultFunctions and trySetEnabledFunctions
|
||||
on property:persist.vendor.usb.config=*
|
||||
setprop persist.sys.usb.qmmi.func ${persist.vendor.usb.config}
|
||||
|
||||
on mmi && property:ro.bootmode=ffbm-00
|
||||
# ========================================================
|
||||
# This is FFBM only settings.
|
||||
# ========================================================
|
||||
#mkdir for factory data files.
|
||||
mkdir /mnt/vendor/persist/FTM_AP 0750 system system
|
||||
|
||||
start fastmmi
|
||||
# start qcom-post-boot to set the misc partition path property value
|
||||
start qcom-post-boot
|
||||
start mmi_diag
|
||||
|
||||
on mmi && property:ro.bootmode=ffbm-01
|
||||
# ========================================================
|
||||
# This is FFBM only settings.
|
||||
# ========================================================
|
||||
#mkdir for factory data files.
|
||||
mkdir /mnt/vendor/persist/FTM_AP 0750 system system
|
||||
|
||||
start fastmmi
|
||||
## start qcom-post-boot to set the misc partition path property value
|
||||
start qcom-post-boot
|
||||
start mmi_diag
|
||||
|
||||
on property:persist.vendor.usb.config=* && property:ro.bootmode=ffbm-00
|
||||
setprop sys.usb.config ${persist.vendor.usb.config}
|
||||
|
||||
on property:persist.vendor.usb.config=* && property:ro.bootmode=ffbm-01
|
||||
setprop sys.usb.config ${persist.vendor.usb.config}
|
||||
|
||||
on property:persist.vendor.usb.config=* && property:ro.bootmode=ffbm-02
|
||||
setprop sys.usb.config ${persist.vendor.usb.config}
|
||||
|
||||
on property:persist.vendor.usb.config=* && property:ro.bootmode=qmmi
|
||||
setprop sys.usb.config ${persist.vendor.usb.config}
|
||||
|
||||
on ffbm
|
||||
trigger early-fs
|
||||
trigger factory-fs
|
||||
trigger fs
|
||||
trigger post-fs
|
||||
|
||||
# Mount fstab in init.{$device}.rc by mount_all with '--late' parameter
|
||||
# to only mount entries with 'latemount'. This is needed if '--early' is
|
||||
# specified in the previous mount_all command on the fs stage.
|
||||
# With /system mounted and properties form /system + /factory available,
|
||||
# some services can be started.
|
||||
trigger late-fs
|
||||
|
||||
# Now we can mount /data. File encryption requires keymaster to decrypt
|
||||
# /data, which in turn can only be loaded when system properties are present.
|
||||
trigger post-fs-data
|
||||
|
||||
# Now we can start zygote for devices with file based encryption
|
||||
trigger zygote-start
|
||||
|
||||
# Load persist properties and override properties (if enabled) from /data.
|
||||
trigger load_persist_props_action
|
||||
|
||||
# Remove a file to wake up anything waiting for firmware.
|
||||
trigger firmware_mounts_complete
|
||||
|
||||
trigger early-boot
|
||||
trigger boot
|
||||
trigger mmi
|
||||
|
||||
|
||||
# ========================================================
|
||||
# Start for audio TC
|
||||
# ========================================================
|
||||
|
||||
service vendor.audio_tc53 /vendor/bin/mm-audio-ftm -tc 53
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
|
||||
service vendor.audio_tc51 /vendor/bin/mm-audio-ftm -tc 51
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc56 /vendor/bin/mm-audio-ftm -tc 56
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc222 /vendor/bin/mm-audio-ftm -tc 222
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc228 /vendor/bin/mm-audio-ftm -tc 228
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc229 /vendor/bin/mm-audio-ftm -tc 229
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc230 /vendor/bin/mm-audio-ftm -tc 230
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc225 /vendor/bin/mm-audio-ftm -tc 225
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc246 /vendor/bin/mm-audio-ftm -tc 246
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc247 /vendor/bin/mm-audio-ftm -tc 247
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc250 /vendor/bin/mm-audio-ftm -tc 250
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc251 /vendor/bin/mm-audio-ftm -tc 251
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc252 /vendor/bin/mm-audio-ftm -tc 252
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc253 /vendor/bin/mm-audio-ftm -tc 253
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc11 /vendor/bin/mm-audio-ftm -tc 11 -file /data/vendor/audio/ftm_headset_mic_record.wav
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc101 /vendor/bin/mm-audio-ftm -tc 101 -file /data/vendor/audio/ftm_mic1_record.wav
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc102 /vendor/bin/mm-audio-ftm -tc 102 -file /data/vendor/audio/ftm_mic2_record.wav
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc103 /vendor/bin/mm-audio-ftm -tc 103 -file /data/vendor/audio/ftm_mic3_record.wav
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.audio_tc104 /vendor/bin/mm-audio-ftm -tc 104 -file /data/vendor/audio/ftm_mic4_record.wav
|
||||
user audio
|
||||
group audio
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
# ========================================================
|
||||
# End for audio TC
|
||||
# ========================================================
|
@ -108,12 +108,6 @@ on boot
|
||||
# Load all wlan drivers
|
||||
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_qca6390 qca_cld3_qca6490
|
||||
|
||||
on property:vendor.display.lcd_density=560
|
||||
setprop dalvik.vm.heapgrowthlimit 256m
|
||||
|
||||
on property:vendor.display.lcd_density=640
|
||||
setprop dalvik.vm.heapgrowthlimit 512m
|
||||
|
||||
on boot && property:persist.vendor.usb.controller.default=*
|
||||
setprop vendor.usb.controller ${persist.vendor.usb.controller.default}
|
||||
|
||||
@ -162,19 +156,6 @@ on property:init.svc.vendor.per_mgr=running
|
||||
on property:sys.shutdown.requested=*
|
||||
stop vendor.per_proxy
|
||||
|
||||
on property:vendor.vold.post_fs_data_done=1 && property:ro.debuggable=1
|
||||
start vendor.wlan_logging
|
||||
|
||||
on property:vendor.vold.post_fs_data_done=1 && property:persist.wlan.debug_log=1
|
||||
start vendor.wlan_logging
|
||||
|
||||
service vendor.wlan_logging /system/vendor/bin/cnss_diag -q -f -b 128 -t HELIUM
|
||||
class main
|
||||
user system
|
||||
group system wifi inet sdcard_rw media_rw diag
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
service dcvs-sh /vendor/bin/init.qti.dcvs.sh
|
||||
class late_start
|
||||
user root
|
||||
|
Loading…
x
Reference in New Issue
Block a user