2017-03-02 16:50:16 -08:00
|
|
|
#
|
|
|
|
|
# Copyright (C) 2016 The Android Open-Source Project
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
#
|
|
|
|
|
|
2017-06-30 09:50:35 -07:00
|
|
|
on init
|
|
|
|
|
chmod 666 /dev/diag
|
|
|
|
|
|
2017-03-02 16:50:16 -08:00
|
|
|
on post-fs-data
|
|
|
|
|
# Modem logging collection
|
2017-05-10 09:27:57 -07:00
|
|
|
mkdir /data/vendor/radio 0777 radio radio
|
2017-04-05 10:49:30 -07:00
|
|
|
mkdir /data/vendor/radio/diag_logs 0777 system system
|
2018-01-08 17:17:50 -08:00
|
|
|
chmod 777 /data/vendor/radio/diag_logs/cfg
|
|
|
|
|
chmod 777 /data/vendor/radio/diag_logs/custom_cfg
|
2017-03-02 16:50:16 -08:00
|
|
|
# WLAN logging collection
|
2017-04-10 17:25:14 -07:00
|
|
|
mkdir /data/vendor/wifi 0777 system system
|
|
|
|
|
mkdir /data/vendor/wifi/cnss_diag 0777 system system
|
2017-03-02 16:50:16 -08:00
|
|
|
|
2018-02-02 13:15:26 -08:00
|
|
|
service vendor.diag_mdlog_start /vendor/bin/diag_mdlog
|
2017-05-10 09:27:57 -07:00
|
|
|
class late_start
|
|
|
|
|
user shell
|
|
|
|
|
group system diag media_rw
|
|
|
|
|
disabled
|
|
|
|
|
oneshot
|
|
|
|
|
|
2017-09-14 16:07:36 +09:00
|
|
|
service vendor.diag_mdlog_stop /vendor/bin/diag_mdlog -k
|
2017-05-10 09:27:57 -07:00
|
|
|
class late_start
|
|
|
|
|
user shell
|
|
|
|
|
group system diag media_rw
|
|
|
|
|
disabled
|
|
|
|
|
oneshot
|
|
|
|
|
|
2017-06-16 18:18:11 -07:00
|
|
|
on boot && property:persist.sys.modem.diag.mdlog=*
|
|
|
|
|
setprop sys.modem.diag.mdlog ${persist.sys.modem.diag.mdlog}
|
|
|
|
|
|
|
|
|
|
on property:sys.modem.diag.mdlog=true
|
2017-09-14 16:07:36 +09:00
|
|
|
start vendor.diag_mdlog_start
|
2017-05-10 09:27:57 -07:00
|
|
|
|
2017-06-16 18:18:11 -07:00
|
|
|
on property:sys.modem.diag.mdlog=false
|
2017-09-14 16:07:36 +09:00
|
|
|
start vendor.diag_mdlog_stop
|
2017-05-10 09:27:57 -07:00
|
|
|
|
2017-04-11 11:32:03 -07:00
|
|
|
on property:persist.sys.cnss.diag_qxdm=true
|
2017-09-14 16:07:36 +09:00
|
|
|
start vendor.cnss_diag
|
2017-04-11 11:32:03 -07:00
|
|
|
|
|
|
|
|
on property:persist.sys.cnss.diag_qxdm=false
|
2017-09-14 16:07:36 +09:00
|
|
|
stop vendor.cnss_diag
|
2017-04-11 11:32:03 -07:00
|
|
|
|
|
|
|
|
on property:persist.sys.cnss.diag_txt=true
|
2017-09-14 16:07:36 +09:00
|
|
|
start vendor.cnss_diag_txt
|
2017-04-11 11:32:03 -07:00
|
|
|
|
|
|
|
|
on property:persist.sys.cnss.diag_txt=false
|
2017-09-14 16:07:36 +09:00
|
|
|
stop vendor.cnss_diag_txt
|
2017-04-11 11:32:03 -07:00
|
|
|
|
2017-09-14 16:07:36 +09:00
|
|
|
service vendor.cnss_diag /vendor/bin/cnss_diag -q -u -w
|
2017-04-11 11:32:03 -07:00
|
|
|
class late_start
|
|
|
|
|
user system
|
|
|
|
|
group system
|
2017-12-14 11:14:39 -08:00
|
|
|
disabled
|
2017-04-11 11:32:03 -07:00
|
|
|
oneshot
|
|
|
|
|
|
2017-09-14 16:07:36 +09:00
|
|
|
service vendor.cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag/cnss_diag.conf
|
2017-04-11 11:32:03 -07:00
|
|
|
class late_start
|
|
|
|
|
user system
|
|
|
|
|
group system
|
|
|
|
|
disabled
|
|
|
|
|
oneshot
|
2017-07-06 16:57:24 -07:00
|
|
|
|
2018-03-22 18:11:45 +09:00
|
|
|
on property:vendor.debug.ramdump.force_crash=true
|
2017-07-06 16:57:24 -07:00
|
|
|
write /proc/sysrq-trigger "c"
|
2017-09-13 19:07:28 -07:00
|
|
|
|
|
|
|
|
on property:sys.logger.bluetooth=true
|
2018-05-11 16:35:43 -07:00
|
|
|
setprop persist.vendor.service.bdroid.snooplog true
|
|
|
|
|
setprop persist.vendor.service.bdroid.fwsnoop true
|
2017-09-13 19:07:28 -07:00
|
|
|
|
|
|
|
|
on property:sys.logger.bluetooth=false
|
2018-05-11 16:35:43 -07:00
|
|
|
setprop persist.vendor.service.bdroid.snooplog false
|
|
|
|
|
setprop persist.vendor.service.bdroid.fwsnoop false
|
2017-09-25 16:24:19 -07:00
|
|
|
|
|
|
|
|
on property:persist.bluetooth.btsnoopenable=true
|
2018-05-11 16:35:43 -07:00
|
|
|
setprop persist.vendor.service.bdroid.soclog true
|
2017-09-25 16:24:19 -07:00
|
|
|
|
|
|
|
|
on property:persist.bluetooth.btsnoopenable=false
|
2018-05-11 16:35:43 -07:00
|
|
|
setprop persist.vendor.service.bdroid.soclog false
|
2018-03-06 12:46:40 -08:00
|
|
|
|
|
|
|
|
on property:vendor.usb.config=*
|
|
|
|
|
start usbd
|
|
|
|
|
|
|
|
|
|
on property:persist.vendor.usb.usbradio.config=*
|
|
|
|
|
start usbd
|