Oleg Matcovschi | 0c537e6 | 2017-02-17 14:03:32 -0800 | [diff] [blame] | 1 | # |
Chris Fries | dc2b50d | 2017-06-27 12:02:00 -0500 | [diff] [blame] | 2 | # Copyright (C) 2016 The Android Open-Source Project |
Oleg Matcovschi | 0c537e6 | 2017-02-17 14:03:32 -0800 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
Hungyen Weng | f689593 | 2019-12-19 09:28:04 +0800 | [diff] [blame] | 17 | on init |
| 18 | chmod 666 /dev/diag |
| 19 | |
| 20 | on post-fs-data |
| 21 | mkdir /data/vendor/radio 0777 radio radio |
| 22 | mkdir /data/vendor/radio/diag_logs 0777 system system |
| 23 | rm /data/vendor/radio/diag_logs/logs/diag_poweron_log.qmdl |
| 24 | |
| 25 | service diag_mdlog_start /vendor/bin/diag_mdlog |
| 26 | class late_start |
| 27 | user shell |
| 28 | group system diag media_rw |
| 29 | disabled |
| 30 | oneshot |
| 31 | |
| 32 | service diag_mdlog_stop /vendor/bin/diag_mdlog -k |
| 33 | class late_start |
| 34 | user shell |
| 35 | group system diag media_rw |
| 36 | disabled |
| 37 | oneshot |
| 38 | |
Hungyen Weng | a8954a7 | 2020-03-03 01:16:10 +0800 | [diff] [blame] | 39 | on property:persist.vendor.sys.modem.diag.mdlog=* |
Hungyen Weng | f689593 | 2019-12-19 09:28:04 +0800 | [diff] [blame] | 40 | rm /data/vendor/radio/diag_logs/diag_mdlog_pid |
| 41 | setprop vendor.sys.modem.diag.mdlog ${persist.vendor.sys.modem.diag.mdlog} |
| 42 | |
| 43 | on property:vendor.sys.modem.diag.mdlog=true |
| 44 | start diag_mdlog_start |
| 45 | |
| 46 | on property:vendor.sys.modem.diag.mdlog=false |
| 47 | start diag_mdlog_stop |
| 48 | |
| 49 | on property:persist.vendor.verbose_logging_enabled=* |
| 50 | setprop persist.vendor.sys.modem.diag.mdlog ${persist.vendor.verbose_logging_enabled} |