xref: /aosp_15_r20/system/extras/partition_tools/lpdumpd.rc (revision 288bf5226967eb3dac5cce6c939ccc2a7f2b4fe5)
1*288bf522SAndroid Build Coastguard Worker#
2*288bf522SAndroid Build Coastguard Worker# Copyright (C) 2019 The Android Open Source Project
3*288bf522SAndroid Build Coastguard Worker#
4*288bf522SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
5*288bf522SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
6*288bf522SAndroid Build Coastguard Worker# You may obtain a copy of the License at
7*288bf522SAndroid Build Coastguard Worker#
8*288bf522SAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
9*288bf522SAndroid Build Coastguard Worker#
10*288bf522SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
11*288bf522SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
12*288bf522SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*288bf522SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
14*288bf522SAndroid Build Coastguard Worker# limitations under the License.
15*288bf522SAndroid Build Coastguard Worker#
16*288bf522SAndroid Build Coastguard Worker
17*288bf522SAndroid Build Coastguard Workerservice lpdumpd /system/bin/lpdumpd
18*288bf522SAndroid Build Coastguard Worker    # TODO(b/129011369): make this killable by lmkd
19*288bf522SAndroid Build Coastguard Worker    oneshot
20*288bf522SAndroid Build Coastguard Worker    disabled
21*288bf522SAndroid Build Coastguard Worker    user system
22*288bf522SAndroid Build Coastguard Worker    group system
23*288bf522SAndroid Build Coastguard Worker    # On Launch devices, assume "super". On virtual devices, ${ro.boot.super_partition}
24*288bf522SAndroid Build Coastguard Worker    # might be something else.
25*288bf522SAndroid Build Coastguard Worker    file /dev/block/by-name/${ro.boot.super_partition:-super} r
26*288bf522SAndroid Build Coastguard Worker    # On retrofit devices, ${ro.boot.super_partition} is slot-suffixed.
27*288bf522SAndroid Build Coastguard Worker    # Use NO_SUCH_DEVICE_NO_SUCH_SUFFIX as default values so that host_init_verifier does
28*288bf522SAndroid Build Coastguard Worker    # not complain about missing sysprops
29*288bf522SAndroid Build Coastguard Worker    file /dev/block/by-name/${ro.boot.super_partition:-NO_SUCH_DEVICE}${ro.boot.slot_suffix:-_NO_SUCH_SUFFIX} r
30*288bf522SAndroid Build Coastguard Worker
31*288bf522SAndroid Build Coastguard Workeron property:sys.lpdumpd=start
32*288bf522SAndroid Build Coastguard Worker    start lpdumpd
33*288bf522SAndroid Build Coastguard Worker
34*288bf522SAndroid Build Coastguard Workeron property:sys.lpdumpd=stop
35*288bf522SAndroid Build Coastguard Worker    stop lpdumpd
36