From d4b5cf42ac66478a1b7596ac05e1b8260aede4ff Mon Sep 17 00:00:00 2001 From: Abhishek Arpure Date: Sat, 13 May 2017 13:54:36 -0700 Subject: [PATCH] Install init.qcom.debug.sh to /vendor. Change-Id: I1543d4b21c82069ebd24a8211a28a4bf2dc2767c --- rootdir/Android.mk | 1 + rootdir/etc/init.qcom.debug.sh | 3 ++- rootdir/etc/init.qcom.test.rc | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 9c9e832c..31f8fc98 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -184,6 +184,7 @@ LOCAL_MODULE := init.qcom.debug.sh LOCAL_MODULE_TAGS := debug LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/init.qcom.debug.sh +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) include $(BUILD_PREBUILT) include $(CLEAR_VARS) diff --git a/rootdir/etc/init.qcom.debug.sh b/rootdir/etc/init.qcom.debug.sh index c22d6334..d14c4970 100644 --- a/rootdir/etc/init.qcom.debug.sh +++ b/rootdir/etc/init.qcom.debug.sh @@ -1,4 +1,5 @@ -#!/system/bin/sh +#! /vendor/bin/sh + # Copyright (c) 2014-2017, The Linux Foundation. All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/rootdir/etc/init.qcom.test.rc b/rootdir/etc/init.qcom.test.rc index 948cd9e3..53378554 100644 --- a/rootdir/etc/init.qcom.test.rc +++ b/rootdir/etc/init.qcom.test.rc @@ -28,14 +28,14 @@ write /proc/sys/kernel/kptr_restrict 0 # Coresight early boot service -service cs-early-boot /system/bin/sh /persist/coresight/qdss.agent.sh early-boot /system/etc/init.qcom.debug.sh +service cs-early-boot /vendor/bin/sh /persist/coresight/qdss.agent.sh early-boot /vendor/bin/init.qcom.debug.sh class core user root oneshot seclabel u:r:qti-testscripts:s0 # Coresight post boot servive -service cs-post-boot /system/bin/sh /persist/coresight/qdss.agent.sh post-boot /system/etc/init.qcom.debug.sh +service cs-post-boot /vendor/bin/sh /persist/coresight/qdss.agent.sh post-boot /vendor/bin/init.qcom.debug.sh user root disabled oneshot