sm7250-common: rootdir: Remove unused FTM init scripts
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
This commit is contained in:
committed by
KakatkarAkshay
parent
c39d21ce33
commit
4ff4462ed7
@@ -188,14 +188,11 @@ PRODUCT_PACKAGES += \
|
|||||||
|
|
||||||
# Common init scripts
|
# Common init scripts
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
ftm_power_config.sh \
|
|
||||||
init.class_main.sh \
|
init.class_main.sh \
|
||||||
init.cust.rc \
|
init.cust.rc \
|
||||||
init.oem.debug.rc \
|
init.oem.debug.rc \
|
||||||
init.oem.minidump.sdx55m.rc \
|
init.oem.minidump.sdx55m.rc \
|
||||||
init.oem.rc \
|
init.oem.rc \
|
||||||
init.oem.sec.rc \
|
|
||||||
init.oem_ftm.rc \
|
|
||||||
init.oplus_chg.sh \
|
init.oplus_chg.sh \
|
||||||
init.qcom.class_core.sh \
|
init.qcom.class_core.sh \
|
||||||
init.qcom.early_boot.sh \
|
init.qcom.early_boot.sh \
|
||||||
@@ -211,9 +208,7 @@ PRODUCT_PACKAGES += \
|
|||||||
init.recovery.qcom.rc \
|
init.recovery.qcom.rc \
|
||||||
init.target.rc \
|
init.target.rc \
|
||||||
fstab.qcom \
|
fstab.qcom \
|
||||||
ueventd.qcom.rc \
|
ueventd.qcom.rc
|
||||||
vendor.oem_ftm.rc \
|
|
||||||
vendor.oem_ftm_svc_disable.rc
|
|
||||||
|
|
||||||
# Component overrides
|
# Component overrides
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|||||||
@@ -80,14 +80,6 @@ LOCAL_SRC_FILES := bin/init.qti.qcv.sh
|
|||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := ftm_power_config.sh
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_SRC_FILES := etc/ftm_power_config.sh
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := init.cust.rc
|
LOCAL_MODULE := init.cust.rc
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
@@ -104,14 +96,6 @@ LOCAL_SRC_FILES := etc/init.oem.debug.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)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := init.oem_ftm.rc
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_SRC_FILES := etc/init.oem_ftm.rc
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := init.oem.rc
|
LOCAL_MODULE := init.oem.rc
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
@@ -187,22 +171,6 @@ LOCAL_SRC_FILES := etc/fstab.qcom
|
|||||||
LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT)
|
LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT)
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := vendor.oem_ftm.rc
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_SRC_FILES := etc/vendor.oem_ftm.rc
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := vendor.oem_ftm_svc_disable.rc
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_SRC_FILES := etc/vendor.oem_ftm_svc_disable.rc
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := ueventd.qcom.rc
|
LOCAL_MODULE := ueventd.qcom.rc
|
||||||
LOCAL_MODULE_STEM := ueventd.rc
|
LOCAL_MODULE_STEM := ueventd.rc
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
#!/system/bin/sh
|
|
||||||
echo "ftm_power_config start" >> /dev/kmsg
|
|
||||||
bootmode=`getprop ro.vendor.factory.mode`
|
|
||||||
target=`getprop ro.board.platform`
|
|
||||||
/vendor/bin/sh /vendor/bin/init.qcom.post_boot.sh
|
|
||||||
|
|
||||||
echo s2idle > /sys/power/mem_sleep
|
|
||||||
|
|
||||||
sleep 5
|
|
||||||
echo 0 > /sys/devices/system/cpu/cpu4/online
|
|
||||||
echo 0 > /sys/devices/system/cpu/cpu5/online
|
|
||||||
echo 0 > /sys/devices/system/cpu/cpu6/online
|
|
||||||
echo 0 > /sys/devices/system/cpu/cpu7/online
|
|
||||||
|
|
||||||
sleep 10
|
|
||||||
echo 0 > /sys/devices/system/cpu/cpu3/online
|
|
||||||
echo 0 > /sys/devices/system/cpu/cpu2/online
|
|
||||||
|
|
||||||
if [ "$target" == "lito" ]; then
|
|
||||||
echo 614400 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
|
||||||
echo 1075200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
|
||||||
else
|
|
||||||
echo 518400 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
|
||||||
echo 883200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "ftm_power_config ftrace config start" >> /dev/kmsg
|
|
||||||
echo 0 > /sys/kernel/debug/tracing/tracing_on
|
|
||||||
echo "" > /sys/kernel/debug/tracing/set_event
|
|
||||||
echo "" > /sys/kernel/debug/tracing/trace
|
|
||||||
echo power:cpu_idle power:cpu_frequency power:cpu_frequency_switch_start msm_low_power:* sched:sched_switch sched:sched_wakeup sched:sched_wakeup_new sched:sched_enq_deq_task >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo power:memlat_dev_update power:memlat_dev_meas msm_bus:bus_update_request msm_bus:* power:bw_hwmon_update power:bw_hwmon_meas >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo power:bw_hwmon_meas power:bw_hwmon_update>> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo clk:clk_set_rate clk:clk_enable clk:clk_disable >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo power:clock_set_rate power:clock_enable power:clock_disable msm_bus:bus_update_request >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo cpufreq_interactive:cpufreq_interactive_target cpufreq_interactive:cpufreq_interactive_setspeed >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo irq:* >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo mdss:mdp_mixer_update mdss:mdp_sspp_change mdss:mdp_commit >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo workqueue:* >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo kgsl:kgsl_pwrlevel kgsl:kgsl_buslevel kgsl:kgsl_pwr_set_state >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo regulator:regulator_set_voltage_complete regulator:regulator_disable_complete regulator:regulator_enable_complete >> /sys/kernel/debug/tracing/set_event
|
|
||||||
echo thermal:* >> /sys/kernel/debug/tracing/set_event
|
|
||||||
cat /sys/kernel/debug/tracing/set_event
|
|
||||||
echo 40000 > /sys/kernel/debug/tracing/buffer_size_kb
|
|
||||||
cat /sys/kernel/debug/tracing/buffer_size_kb
|
|
||||||
|
|
||||||
sleep 5
|
|
||||||
echo "ftm_power_config capture ftrace start" >> /dev/kmsg
|
|
||||||
echo 0 > /sys/kernel/debug/tracing/tracing_on && cat /sys/kernel/debug/tracing/trace > /data/local/trace.txt && echo 0 > /sys/kernel/debug/tracing/tracing_on && echo "" > /sys/kernel/debug/tracing/trace && sleep 1 && echo 1 > /sys/kernel/debug/tracing/tracing_on && sleep 40 && echo 0 > /sys/kernel/debug/tracing/tracing_on && cat /sys/kernel/debug/tracing/trace > /mnt/vendor/op2/trace.txt&
|
|
||||||
|
|
||||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
|
||||||
baseband=`getprop ro.baseband`
|
|
||||||
echo "ftm_power_config done baseband=$baseband" >> /dev/kmsg
|
|
||||||
@@ -243,6 +243,7 @@ on fs
|
|||||||
chmod 0666 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
|
chmod 0666 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
|
||||||
chmod 0666 /sys/class/drm/card0-DSI-1/dither_en
|
chmod 0666 /sys/class/drm/card0-DSI-1/dither_en
|
||||||
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_msd_aod
|
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_msd_aod
|
||||||
|
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number_AT
|
||||||
|
|
||||||
chmod 0666 /sys/class/drm/card0-DSI-1/osc_mode
|
chmod 0666 /sys/class/drm/card0-DSI-1/osc_mode
|
||||||
chown radio radio /sys/class/drm/card0-DSI-1/osc_mode
|
chown radio radio /sys/class/drm/card0-DSI-1/osc_mode
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#factory load rc
|
|
||||||
|
|
||||||
import /vendor/etc/init/hw/vendor.oem_ftm_svc_disable.rc
|
|
||||||
import /system/etc/init/hw/init.rc
|
|
||||||
import /vendor/etc/init/hw/vendor.oem_ftm.rc
|
|
||||||
@@ -34,7 +34,6 @@ import /vendor/etc/init/hw/init.oem.sec.rc
|
|||||||
import /vendor/etc/init/hw/init.qcom.usb.rc
|
import /vendor/etc/init/hw/init.qcom.usb.rc
|
||||||
import /vendor/etc/init/hw/init.target.rc
|
import /vendor/etc/init/hw/init.target.rc
|
||||||
import /vendor/etc/init/hw/init.qcom.factory.rc
|
import /vendor/etc/init/hw/init.qcom.factory.rc
|
||||||
import /vendor/etc/init/hw/init.qcom.test.rc
|
|
||||||
|
|
||||||
on early-init
|
on early-init
|
||||||
mount debugfs debugfs /sys/kernel/debug
|
mount debugfs debugfs /sys/kernel/debug
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
on post-fs-data
|
|
||||||
chmod 0666 /dev/block/sda6
|
|
||||||
chmod 0666 /dev/param
|
|
||||||
|
|
||||||
service wcnss-service-f /system/bin/wcnss_service -f
|
|
||||||
class main
|
|
||||||
user root
|
|
||||||
group system wifi radio
|
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service factory /vendor/bin/factory
|
|
||||||
class late_start
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service ftm_power_config /vendor/bin/sh /vendor/etc/init/hw/ftm_power_config.sh
|
|
||||||
class late_start
|
|
||||||
user root
|
|
||||||
disabled
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
on oem_ftm
|
|
||||||
chmod 0666 /sys/module/sysctl/parameters/oem_en_chg_prk_lv
|
|
||||||
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number_AT
|
|
||||||
chown system system /vendor/bin/factory
|
|
||||||
chmod 0755 /vendor/bin/factory
|
|
||||||
chown system system /vendor/bin/ptt_socket_app
|
|
||||||
chmod 0755 /vendor/bin/ptt_socket_app
|
|
||||||
write /sys/class/power_supply/battery/charging_enabled 0
|
|
||||||
start qcom-sh
|
|
||||||
start vendor.qmuxd
|
|
||||||
start ptt_ffbm
|
|
||||||
start ftm_power_config
|
|
||||||
start cnss-daemon
|
|
||||||
start qcom-c_main-sh
|
|
||||||
write /dev/kmsg "factory boot mode is:${ro.vendor.factory.mode}"
|
|
||||||
start vendor.mdm_launcher
|
|
||||||
|
|
||||||
on property:ro.vendor.factory.mode=ftm
|
|
||||||
start factory
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
# this file should import init.rc and then add some oem defined service
|
|
||||||
|
|
||||||
#this service is a non-use service and just use to duplicate real console service
|
|
||||||
service console /system/bin/xxx
|
|
||||||
class core
|
|
||||||
console
|
|
||||||
disabled
|
|
||||||
user root
|
|
||||||
group shell log
|
|
||||||
oneshot
|
|
||||||
seclabel u:r:shell:s0
|
|
||||||
|
|
||||||
#this service is a non-use service and just use to duplicate real surfaceflinger service
|
|
||||||
service surfaceflinger /system/bin/xxx
|
|
||||||
class core
|
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.fps_hal /vendor/bin/hw/XXX
|
|
||||||
class hal
|
|
||||||
user system
|
|
||||||
group system input uhid everybody
|
|
||||||
disabled
|
|
||||||
|
|
||||||
#disable below services to solve AT current peaks issue start
|
|
||||||
service zygote /system/bin/xxx
|
|
||||||
class main
|
|
||||||
user system
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service zygote_secondary /system/bin/xxx
|
|
||||||
class main
|
|
||||||
user root
|
|
||||||
group root readproc reserved_disk
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.cdsprpcd /vendor/bin/xxx
|
|
||||||
class main
|
|
||||||
user system
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service cameraserver /system/bin/xxx
|
|
||||||
class late_start
|
|
||||||
user cameraserver
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service iorapd /system/bin/xxx
|
|
||||||
class main
|
|
||||||
user iorapd
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service feature_enabler_client /vendor/bin/xxx
|
|
||||||
class late_start
|
|
||||||
user system
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.vppservice /vendor/bin/XXX
|
|
||||||
class hal
|
|
||||||
user media
|
|
||||||
group camera system
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service biometrics_face_service /vendor/bin/hw/xxx
|
|
||||||
class hal
|
|
||||||
user system
|
|
||||||
disabled
|
|
||||||
#disable below services to solve AT current peaks issue end
|
|
||||||
|
|
||||||
service oemasserttip /system/bin/xxx
|
|
||||||
class main
|
|
||||||
user system
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.oneplus.cwb-1-0 /vendor/bin/hw/xxx
|
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.qti.hardware.display.composer /vendor/bin/hw/xxx
|
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.light-hal-2-0 /vendor/bin/hw/xxx
|
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
|
|
||||||
service vendor.imsdaemon /vendor/bin/imsdaemon
|
|
||||||
class main
|
|
||||||
user radio
|
|
||||||
group radio wifi inet vendor_qti_diag log
|
|
||||||
disabled
|
|
||||||
Reference in New Issue
Block a user