vendor.qti.hardware.charger_monitor@1.0-service.rc 1.11 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
#

service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
    class main
    user system
    group system wakelock
    capabilities BLOCK_SUSPEND WAKE_ALARM
    disabled

service vendor.qti-chg-policy-sh /vendor/bin/init.qti.chg_policy.sh
    class core
    user root
    oneshot
    disabled

on boot
    enable vendor.qti-chg-policy-sh
    start vendor.qti-chg-policy-sh

on charger
    chown radio wakelock /sys/power/wake_lock
    chmod 0660 /sys/power/wake_lock
    chown radio wakelock /sys/power/wake_unlock
    chmod 0660 /sys/power/wake_unlock
    mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
31
    mount_all /vendor/etc/charger_fstab.qti --early
32
33
34
35
36
37
38
39
    enable vendor.qti-chg-policy-sh
    start vendor.qti-chg-policy-sh

on property:persist.vendor.hvdcp_opti.start=1
    mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
    enable vendor.hvdcp_opti
    start vendor.hvdcp_opti
    setprop persist.vendor.hvdcp_opti.start 0