diff options
author | davidevinavil <davidevinavil@gmail.com> | 2017-01-11 02:46:32 +0100 |
---|---|---|
committer | davidevinavil <davidevinavil@gmail.com> | 2017-01-14 15:52:31 +0100 |
commit | f3fc36ece723a6ec95914bd98ff6ce25331d5ef1 (patch) | |
tree | f8787aa0c4f88b1e1711eb4cfce484e31192d9d5 | |
parent | 938e398f6a1476e509ab1d56c711bdc62dfb3713 (diff) |
z2_plus: Add more cpuset
Change-Id: Ie2c04a60e543ec3d28b037c023396d7d0d60cb35
-rwxr-xr-x | BoardConfig.mk | 2 | ||||
-rw-r--r-- | rootdir/Android.mk | 9 | ||||
-rw-r--r-- | rootdir/etc/init.qcom.bt.sh | 334 | ||||
-rwxr-xr-x | rootdir/etc/init.qcom.rc | 54 | ||||
-rwxr-xr-x | rootdir/etc/init.target.rc | 280 |
5 files changed, 39 insertions, 640 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index ac1a09a..a4d8bf3 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -69,7 +69,7 @@ TARGET_KERNEL_APPEND_DTB := true TARGET_KERNEL_ARCH := arm64 TARGET_KERNEL_HEADER_ARCH := arm64 TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- -TARGET_KERNEL_CONFIG := cyanogenmod_z2_defconfig +TARGET_KERNEL_CONFIG := cyanogenmod_z2_plus_defconfig TARGET_KERNEL_SOURCE := kernel/zuk/msm8996 # QCOM hardware diff --git a/rootdir/Android.mk b/rootdir/Android.mk index ecb80b8..c126825 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -57,12 +57,3 @@ LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/ueventd.qcom.rc LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) include $(BUILD_PREBUILT) - -# Configuration scripts - -include $(CLEAR_VARS) -LOCAL_MODULE := init.qcom.bt.sh -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/init.qcom.bt.sh -include $(BUILD_PREBUILT) diff --git a/rootdir/etc/init.qcom.bt.sh b/rootdir/etc/init.qcom.bt.sh deleted file mode 100644 index 100859c..0000000 --- a/rootdir/etc/init.qcom.bt.sh +++ /dev/null @@ -1,334 +0,0 @@ -#!/system/bin/sh -# Copyright (c) 2009-2013, 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. -# - -#Read the arguments passed to the script -config="$1" - -BLUETOOTH_SLEEP_PATH=/proc/bluetooth/sleep/proto -LOG_TAG="qcom-bluetooth" -LOG_NAME="${0}:" - -hciattach_pid="" - -loge () -{ - /system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@" -} - -logi () -{ - /system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@" -} - -failed () -{ - loge "$1: exit code $2" - exit $2 -} - -# -# enable bluetooth profiles dynamically -# -config_bt () -{ - baseband=`getprop ro.baseband` - target=`getprop ro.board.platform` - if [ -f /sys/devices/soc0/soc_id ]; then - soc_hwid=`cat /sys/devices/soc0/soc_id` - else - soc_hwid=`cat /sys/devices/system/soc/soc0/id` - fi - btsoc=`getprop qcom.bluetooth.soc` - - case $baseband in - "apq") - setprop ro.qualcomm.bluetooth.opp true - setprop ro.qualcomm.bluetooth.ftp true - setprop ro.qualcomm.bluetooth.nap false - setprop ro.bluetooth.sap false - setprop ro.bluetooth.dun false - # For MPQ as baseband is same for both - case $soc_hwid in - "130") - setprop ro.qualcomm.bluetooth.hsp true - setprop ro.qualcomm.bluetooth.hfp true - setprop ro.qualcomm.bluetooth.pbap false - setprop ro.qualcomm.bluetooth.map false - ;; - *) - setprop ro.qualcomm.bluetooth.hsp false - setprop ro.qualcomm.bluetooth.hfp false - setprop ro.qualcomm.bluetooth.pbap true - setprop ro.qualcomm.bluetooth.map true - ;; - esac - ;; - "mdm" | "svlte2a" | "svlte1" | "csfb") - setprop ro.qualcomm.bluetooth.opp true - setprop ro.qualcomm.bluetooth.hfp true - setprop ro.qualcomm.bluetooth.hsp true - setprop ro.qualcomm.bluetooth.pbap true - setprop ro.qualcomm.bluetooth.ftp true - setprop ro.qualcomm.bluetooth.map true - setprop ro.qualcomm.bluetooth.nap true - setprop ro.bluetooth.sap true - case $target in - "apq8084") - setprop ro.bluetooth.dun true - logi "Enabling BT-DUN for APQ8084" - ;; - *) - setprop ro.bluetooth.dun false - ;; - esac - ;; - "msm") - setprop ro.qualcomm.bluetooth.opp true - setprop ro.qualcomm.bluetooth.hfp true - setprop ro.qualcomm.bluetooth.hsp true - setprop ro.qualcomm.bluetooth.pbap true - setprop ro.qualcomm.bluetooth.ftp true - setprop ro.qualcomm.bluetooth.nap true - setprop ro.bluetooth.sap true - setprop ro.bluetooth.dun true - case $btsoc in - "ath3k") - setprop ro.qualcomm.bluetooth.map false - ;; - *) - setprop ro.qualcomm.bluetooth.map true - ;; - esac - ;; - *) - setprop ro.qualcomm.bluetooth.opp true - setprop ro.qualcomm.bluetooth.hfp true - setprop ro.qualcomm.bluetooth.hsp true - setprop ro.qualcomm.bluetooth.pbap true - setprop ro.qualcomm.bluetooth.ftp true - setprop ro.qualcomm.bluetooth.map true - setprop ro.qualcomm.bluetooth.nap true - setprop ro.bluetooth.sap true - setprop ro.bluetooth.dun true - ;; - esac - - #Enable Bluetooth Profiles specific to target Dynamically - case $target in - "msm8960") - if [ "$btsoc" != "ath3k" ] && [ "$soc_hwid" != "130" ] - then - setprop ro.bluetooth.hfp.ver 1.6 - setprop ro.qualcomm.bt.hci_transport smd - fi - ;; - "msm8974" | "msm8226" | "msm8610" | "msm8916" | "msm8909" | "msm8952" ) - if [ "$btsoc" != "ath3k" ] - then - setprop ro.bluetooth.hfp.ver 1.7 - setprop ro.qualcomm.bt.hci_transport smd - fi - ;; - "apq8084" | "mpq8092" | "msm8994" | "msm8992" | "msm8996" ) - if [ "$btsoc" != "rome" ] - then - setprop ro.qualcomm.bt.hci_transport smd - elif [ "$btsoc" = "rome" ] - then - setprop ro.bluetooth.hfp.ver 1.6 - fi - ;; - *) - ;; - esac - -if [ -f /system/etc/bluetooth/stack.conf ]; then -stack=`cat /system/etc/bluetooth/stack.conf` -fi - -case "$stack" in - "bluez") - logi "Bluetooth stack is $stack" - setprop ro.qc.bluetooth.stack $stack - reason=`getprop vold.decrypt` - case "$reason" in - "trigger_restart_framework") - start dbus - ;; - esac - ;; - *) - logi "Bluetooth stack is Bluedroid" - ;; -esac - -} - -start_hciattach () -{ - /system/bin/hciattach -n $BTS_DEVICE $BTS_TYPE $BTS_BAUD & - hciattach_pid=$! - logi "start_hciattach: pid = $hciattach_pid" - echo 1 > $BLUETOOTH_SLEEP_PATH -} - -kill_hciattach () -{ - echo 0 > $BLUETOOTH_SLEEP_PATH - logi "kill_hciattach: pid = $hciattach_pid" - ## careful not to kill zero or null! - kill -TERM $hciattach_pid - # this shell doesn't exit now -- wait returns for normal exit -} - -logi "init.qcom.bt.sh config = $config" -case "$config" in - "onboot") - config_bt - exit 0 - ;; - *) - ;; -esac - -# mimic hciattach options parsing -- maybe a waste of effort -USAGE="hciattach [-n] [-p] [-b] [-t timeout] [-s initial_speed] <tty> <type | id> [speed] [flow|noflow] [bdaddr]" - -while getopts "blnpt:s:" f -do - case $f in - b | l | n | p) opt_flags="$opt_flags -$f" ;; - t) timeout=$OPTARG;; - s) initial_speed=$OPTARG;; - \?) echo $USAGE; exit 1;; - esac -done -shift $(($OPTIND-1)) - -# Note that "hci_qcomm_init -e" prints expressions to set the shell variables -# BTS_DEVICE, BTS_TYPE, BTS_BAUD, and BTS_ADDRESS. - -#Selectively Disable sleep -BOARD=`getprop ro.board.platform` -STACK=`getprop ro.qc.bluetooth.stack` - -# BR/EDR & LE power class configurations -POWER_CLASS=`getprop qcom.bt.dev_power_class` -LE_POWER_CLASS=`getprop qcom.bt.le_dev_pwr_class` - -#find the transport type -TRANSPORT=`getprop ro.qualcomm.bt.hci_transport` -logi "Transport : $TRANSPORT" -case $STACK in - "bluez") - logi "** Bluez stack **" - ;; - *) - logi "** Bluedroid stack **" - setprop bluetooth.status off - ;; -esac - - -case $POWER_CLASS in - 1) PWR_CLASS="-p 0" ; - logi "Power Class: 1";; - 2) PWR_CLASS="-p 1" ; - logi "Power Class: 2";; - 3) PWR_CLASS="-p 2" ; - logi "Power Class: CUSTOM";; - *) PWR_CLASS=""; - logi "Power Class: Ignored. Default(1) used (1-CLASS1/2-CLASS2/3-CUSTOM)"; - logi "Power Class: To override, Before turning BT ON; setprop qcom.bt.dev_power_class <1 or 2 or 3>";; -esac - -case $LE_POWER_CLASS in - 1) LE_PWR_CLASS="-P 0" ; - logi "LE Power Class: 1";; - 2) LE_PWR_CLASS="-P 1" ; - logi "LE Power Class: 2";; - 3) LE_PWR_CLASS="-P 2" ; - logi "LE Power Class: CUSTOM";; - *) LE_PWR_CLASS="-P 1"; - logi "LE Power Class: Ignored. Default(2) used (1-CLASS1/2-CLASS2/3-CUSTOM)"; - logi "LE Power Class: To override, Before turning BT ON; setprop qcom.bt.le_dev_pwr_class <1 or 2 or 3>";; -esac - -eval $(/system/bin/hci_qcomm_init -e $PWR_CLASS $LE_PWR_CLASS && echo "exit_code_hci_qcomm_init=0" || echo "exit_code_hci_qcomm_init=1") - -case $exit_code_hci_qcomm_init in - 0) logi "Bluetooth QSoC firmware download succeeded, $BTS_DEVICE $BTS_TYPE $BTS_BAUD $BTS_ADDRESS";; - *) failed "Bluetooth QSoC firmware download failed" $exit_code_hci_qcomm_init; - case $STACK in - "bluez") - logi "** Bluez stack **" - ;; - *) - logi "** Bluedroid stack **" - setprop bluetooth.status off - ;; - esac - - exit $exit_code_hci_qcomm_init;; -esac - -# init does SIGTERM on ctl.stop for service -trap "kill_hciattach" TERM INT - -case $TRANSPORT in - "smd") - case $STACK in - "bluez") - logi "** Bluez stack **" - echo 1 > /sys/module/hci_smd/parameters/hcismd_set - ;; - *) - logi "** Bluedroid stack **" - setprop bluetooth.status on - ;; - esac - ;; - *) - logi "start hciattach" - start_hciattach - case $STACK in - "bluez") - logi "Bluetooth is turning On with Bluez stack " - ;; - *) - logi "** Bluedroid stack **" - setprop bluetooth.status on - ;; - esac - - wait $hciattach_pid - logi "Bluetooth stopped" - ;; -esac - -exit 0 diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 2df57e9..a63cc01 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -68,11 +68,6 @@ on fs mount_all fstab.qcom on boot - # Update foreground and background cpusets - write /dev/cpuset/foreground/cpus 0-3 - write /dev/cpuset/foreground/boost/cpus 2-3 - write /dev/cpuset/background/cpus 0-1 - write /dev/cpuset/system-background/cpus 0-3 # Secure touch chmod 0660 /sys/devices/soc/75ba000.i2c/i2c-12/12-004a/secure_touch_enable @@ -473,6 +468,7 @@ service fingerprintd /system/bin/fingerprintd class late_start user system group system + writepid /dev/cpuset/system-background/tasks service qfp-daemon /system/bin/qfp-daemon class late_start @@ -488,13 +484,14 @@ service qvop-daemon /system/bin/qvop-daemon service per_mgr system/bin/pm-service class late_start user system - group system net_raw - ioprio rt 4 + group system + writepid /dev/cpuset/system-background/tasks service per_proxy /system/bin/pm-proxy class late_start user system group system + writepid /dev/cpuset/system-background/tasks disabled on property:init.svc.per_mgr=running @@ -507,13 +504,15 @@ service qseecomd /system/bin/qseecomd class core user root group root + writepid /dev/cpuset/system-background/tasks service perfd /system/vendor/bin/perfd - class main - user root - socket perfd seqpacket 0666 root system - disabled - writepid /dev/cpuset/system-background/tasks + class main + user root + group root readproc + disabled + socket perfd seqpacket 0666 root system + writepid /dev/cpuset/system-background/tasks service seempd /system/bin/seempd class late_start @@ -533,14 +532,13 @@ service thermal-engine /system/vendor/bin/thermal-engine socket thermal-recv-client stream 0660 system system socket thermal-recv-passive-client stream 0666 system system group root - socket thermal-send-client stream 0666 system system - socket thermal-recv-client stream 0660 system system - socket thermal-recv-passive-client stream 0666 system system + writepid /dev/cpuset/system-background/tasks service time_daemon /system/bin/time_daemon class late_start user root group root + writepid /dev/cpuset/system-background/tasks service adsprpcd /system/bin/adsprpcd class main @@ -620,12 +618,14 @@ service imsqmidaemon /system/bin/imsqmidaemon user system socket ims_qmid stream 0660 system radio group radio net_raw log diag + writepid /dev/cpuset/system-background/tasks service imsdatadaemon /system/bin/imsdatadaemon class main user system socket ims_datad stream 0660 system radio group system wifi radio inet net_raw log diag net_admin + writepid /dev/cpuset/system-background/tasks disabled service pd_mapper /system/vendor/bin/pd-mapper @@ -653,6 +653,7 @@ service imscmservice /system/bin/imscmservice class main user system group radio net_raw diag diag log + writepid /dev/cpuset/system-background/tasks disabled on property:sys.ims.DATA_DAEMON_STATUS=1 @@ -818,10 +819,14 @@ on property:persist.env.fastdorm.enabled=true service cnd /system/bin/cnd class main socket cnd stream 660 root inet + group root wakelock + writepid /dev/cpuset/system-background/tasks service dpmd /system/bin/dpmd class late_start socket dpmd stream 660 root system + group system readproc + writepid /dev/cpuset/system-background/tasks service irsc_util /system/bin/irsc_util "/etc/sec_config" class core @@ -831,15 +836,19 @@ service irsc_util /system/bin/irsc_util "/etc/sec_config" service rmt_storage /system/bin/rmt_storage class core user root + group system wakelock + writepid /dev/cpuset/system-background/tasks service rfs_access /system/bin/rfs_access class core user root group system net_raw + writepid /dev/cpuset/system-background/tasks service tftp_server /system/bin/tftp_server class main user root + writepid /dev/cpuset/system-background/tasks on property:wc_transport.start_hci=true start start_hci_filter @@ -946,10 +955,13 @@ service qmiproxy /system/bin/qmiproxy service qmuxd /system/bin/qmuxd class main user root - group radio audio bluetooth gps nfc qcom_diag + group radio audio bluetooth gps nfc qcom_diag wakelock + writepid /dev/cpuset/system-background/tasks service netmgrd /system/bin/netmgrd class main + group radio system wakelock + writepid /dev/cpuset/system-background/tasks service ipacm-diag /system/bin/ipacm-diag class main @@ -961,16 +973,19 @@ service ipacm /system/bin/ipacm class main user net_admin group net_admin inet + writepid /dev/cpuset/system-background/tasks service qti /system/vendor/bin/qti class main user radio group radio net_raw qcom_diag usb net_admin + writepid /dev/cpuset/system-background/tasks service sensors /system/bin/sensors.qcom class core user root group root + writepid /dev/cpuset/system-background/tasks on property:ro.use_data_netmgrd=false # netmgr not supported on specific target @@ -1166,6 +1181,7 @@ service loc_launcher /system/bin/loc_launcher # loc_launcher will start as root and set its uid to gps class late_start group gps inet net_raw qcom_diag net_admin wifi + writepid /dev/cpuset/system-background/tasks service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh class late_start @@ -1413,3 +1429,9 @@ service seemp_healthd /system/vendor/bin/seemp_healthd class late_start user system group system + +#IFAA service +service ifaad /system/bin/ifaad + class late_start + user system + group system diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc deleted file mode 100755 index 628c6a5..0000000 --- a/rootdir/etc/init.target.rc +++ /dev/null @@ -1,280 +0,0 @@ -# Copyright (c) 2013-2015, 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 early-init - mkdir /firmware 0771 system system - mkdir /bt_firmware 0771 system system - symlink /data/tombstones /tombstones - mkdir /dsp 0771 media media - chown system root /sys/module/msm_thermal/core_control/cpus_offlined - chmod 666 /sys/module/msm_thermal/core_control/cpus_offlined - -on post-fs - export LD_PRELOAD libNimsWrap.so - -on init - write /sys/module/qpnp_rtc/parameters/poweron_alarm 1 - -on fs - wait /dev/block/bootdevice - mount_all fstab.qcom - swapon_all fstab.qcom - - restorecon_recursive /persist - mkdir /persist/data 0700 system system - mkdir /persist/wlan_bt 0700 system system - mkdir /persist/audio 0777 media audio - -on post-fs-data - mkdir /data/tombstones 0771 system system - mkdir /tombstones/modem 0771 system system - mkdir /tombstones/lpass 0771 system system - mkdir /tombstones/wcnss 0771 system system - mkdir /tombstones/dsps 0771 system system - mkdir /persist/data/sfs 0700 system system - mkdir /persist/data/tz 0700 system system - mkdir /persist/qc_senseid 0700 system system - mkdir /data/misc/dts 0770 media audio - mkdir /data/nfc 0770 nfc nfc - mkdir /data/misc/tloc/ 0700 system drmrpc - mkdir /data/misc/qvop 0660 system system - mkdir /data/misc/qvr 0770 system system - mkdir /data/misc/audio_pp 0771 media audio - chown system system /dev/sysmatdrv - chmod 0660 /dev/sysmatdrv - mkdir /data/fpc 0770 system system - mkdir /data/fpc/s 0770 system system - -on boot - start rmt_storage - - # Access permission for secure touch - chmod 0660 /sys/devices/soc/75ba000.i2c/i2c-12/12-0020/secure_touch_enable - chmod 0440 /sys/devices/soc/75ba000.i2c/i2c-12/12-0020/secure_touch - chown system drmrpc /sys/devices/soc/75ba000.i2c/i2c-12/12-0020/secure_touch_enable - chown system drmrpc /sys/devices/soc/75ba000.i2c/i2c-12/12-0020/secure_touch - - # Access permission for led torch - chmod 0666 /sys/class/leds/led:torch_0/brightness - chmod 0666 /sys/class/leds/led:torch_1/brightness - chmod 0666 /sys/class/leds/led:switch/brightness - - # Access permission for smartPA - chmod 0666 /dev/i2c-3 - chmod 0666 /dev/i2c-9 - -# Audio smartPA cold boot -service tfa_cold_boot /system/bin/sh /system/bin/tfa_coldboot.sh /etc/silence_short.wav 15 1 - class main - user system - group system - disabled - oneshot - -on property:service.soundcard.detected=1 - start tfa_cold_boot - -# Start camera server as daemon -service qcamerasvr /system/bin/mm-qcamera-daemon - class late_start - user camera - group camera system inet input graphics - writepid /dev/cpuset/system-background/tasks - -# Fingerprint service -service fingerprintd /system/bin/fingerprintd - class late_start - user system - group system sdcard_rw - -service qvop-daemon /system/bin/qvop-daemon - class late_start - user system - group system drmrpc - -# Start up peripheral manager -service per_mgr system/bin/pm-service - class core - user system - group system net_raw - ioprio rt 4 - -service per_proxy /system/bin/pm-proxy - class core - user system - group system - disabled - -on property:init.svc.per_mgr=running - start per_proxy - -on property:sys.shutdown.requested=* - stop per_proxy - -service qseecomd /system/bin/qseecomd - class core - user root - group root - -service thermal-engine /system/vendor/bin/thermal-engine - class main - user root - socket thermal-send-client stream 0666 system system - socket thermal-recv-client stream 0660 system system - socket thermal-recv-passive-client stream 0666 system system - group root - -service time_daemon /system/bin/time_daemon - class late_start - user root - group root - -service adsprpcd /system/bin/adsprpcd - class main - user media - group media - -service audiod /system/bin/audiod - class late_start - user system - group system - -service imsqmidaemon /system/bin/imsqmidaemon - class main - user system - socket ims_qmid stream 0660 system radio - group radio net_raw log diag - -service imsdatadaemon /system/bin/imsdatadaemon - class main - user system - socket ims_datad stream 0660 system radio - group system wifi radio inet net_raw log diag net_admin - disabled - -service pd_mapper /system/vendor/bin/pd-mapper - class core - disabled - -on property:persist.sys.pd_enable=1 - start pd_mapper - write /sys/class/service_locator/service_locator_status 1 - -on property:persist.sys.pd_enable=0 - write /sys/class/service_locator/service_locator_status 0 - -on property:sys.ims.QMI_DAEMON_STATUS=1 - start imsdatadaemon - -service ims_rtp_daemon /system/bin/ims_rtp_daemon - class main - user system - socket ims_rtpd stream 0660 system radio - group radio net_raw diag inet log - disabled - -service imscmservice /system/bin/imscmservice - class main - user system - group radio net_raw diag diag log - disabled - -on property:sys.ims.DATA_DAEMON_STATUS=1 - start ims_rtp_daemon - start imscmservice - -service ppd /system/vendor/bin/mm-pp-dpps - class late_start - user system - group system graphics - socket pps stream 0660 system system - disabled - -on property:init.svc.surfaceflinger=stopped - stop displayfeature - stop ppd - -on property:init.svc.surfaceflinger=running - start displayfeature - start ppd - -on property:init.svc.surfaceflinger=restarting - stop displayfeature - stop ppd - -on property:init.svc.zygote=stopped - stop displayfeature - stop ppd - -on property:init.svc.zygote=running - start displayfeature - start ppd - -on property:init.svc.zygote=restarting - stop displayfeature - stop ppd - -service tlocd /system/bin/tloc_daemon - class late_start - user system - group drmrpc gps net_raw - -service displayfeature /system/bin/displayfeature - class late_start - user root - group root - -service qpaydaemon /system/vendor/bin/qpaydaemon - class late_start - user system - group system - -service nv_fem /system/bin/nv_fem - class main - user root - group net_raw - oneshot - -service nv_mac /system/bin/nv_mac - class main - user root - group net_raw - oneshot - -service mmbn-daemon /system/bin/mmbn-daemon - class main - oneshot - -on property:slpi.restart=1 - write /sys/kernel/debug/msm_subsys/slpi restart - -on property:persist.sys.display_oled_hbm=0 - write /sys/devices/virtual/graphics/fb0/msm_fb_dispparam 0xE00 - -on property:persist.sys.display_oled_hbm=1 - write /sys/devices/virtual/graphics/fb0/msm_fb_dispparam 0xD00 |