14e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# 24e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# Copyright (C) 2016 The Android Open-Source Project 34e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# 44e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# Licensed under the Apache License, Version 2.0 (the "License"); 54e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# you may not use this file except in compliance with the License. 64e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# You may obtain a copy of the License at 74e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# 84e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# http://www.apache.org/licenses/LICENSE-2.0 94e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# 104e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# Unless required by applicable law or agreed to in writing, software 114e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# distributed under the License is distributed on an "AS IS" BASIS, 124e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# See the License for the specific language governing permissions and 144e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# limitations under the License. 154e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel# 164e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel 17b06c4b445b4fa1b0565eca72f588a175b74ef80dJeff Vander Stoepon init 18b06c4b445b4fa1b0565eca72f588a175b74ef80dJeff Vander Stoep chmod 666 /dev/diag 19b06c4b445b4fa1b0565eca72f588a175b74ef80dJeff Vander Stoep 204e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudelon post-fs-data 214e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel # Modem logging collection 2218aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song mkdir /data/vendor/radio 0777 radio radio 2321ec03152e84ec2426a0ed8abdf5bda8fa684055Jie Song mkdir /data/vendor/radio/diag_logs 0777 system system 24d78f9a1f87e608cd486be6231e25ae938796832cJie Song chmod 777 /data/vendor/radio/diag_logs/cfg 25d78f9a1f87e608cd486be6231e25ae938796832cJie Song chmod 777 /data/vendor/radio/diag_logs/custom_cfg 264e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel # WLAN logging collection 2733e42325ffb576c2756f85f822f3b7e84c58f5d3Jie Song mkdir /data/vendor/wifi 0777 system system 2833e42325ffb576c2756f85f822f3b7e84c58f5d3Jie Song mkdir /data/vendor/wifi/cnss_diag 0777 system system 294e18dc435b633b7b6adceda10f84f29d081f0d6aThierry Strudel 306c5945b4b7b1f10a56fef980f86d5e1b64589735Jie Songservice vendor.diag_mdlog_start /vendor/bin/diag_mdlog 3118aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song class late_start 3218aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song user shell 3318aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song group system diag media_rw 3418aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song disabled 3518aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song oneshot 3618aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song 37491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seokservice vendor.diag_mdlog_stop /vendor/bin/diag_mdlog -k 3818aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song class late_start 3918aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song user shell 4018aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song group system diag media_rw 4118aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song disabled 4218aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song oneshot 4318aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song 44b29da9d49229551d41ea6b3fb5054ec3b153f8c3Jie Songon boot && property:persist.sys.modem.diag.mdlog=* 45b29da9d49229551d41ea6b3fb5054ec3b153f8c3Jie Song setprop sys.modem.diag.mdlog ${persist.sys.modem.diag.mdlog} 46b29da9d49229551d41ea6b3fb5054ec3b153f8c3Jie Song 47b29da9d49229551d41ea6b3fb5054ec3b153f8c3Jie Songon property:sys.modem.diag.mdlog=true 48491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seok start vendor.diag_mdlog_start 4918aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song 50b29da9d49229551d41ea6b3fb5054ec3b153f8c3Jie Songon property:sys.modem.diag.mdlog=false 51491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seok start vendor.diag_mdlog_stop 5218aecb7cb88b086b70d6ac27b7f0df1635fe0241Jie Song 539570fb16c7df56aeaedb13596f8058738cdc867fEcco Parkon property:persist.sys.cnss.diag_qxdm=true 54491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seok start vendor.cnss_diag 559570fb16c7df56aeaedb13596f8058738cdc867fEcco Park 569570fb16c7df56aeaedb13596f8058738cdc867fEcco Parkon property:persist.sys.cnss.diag_qxdm=false 57491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seok stop vendor.cnss_diag 589570fb16c7df56aeaedb13596f8058738cdc867fEcco Park 599570fb16c7df56aeaedb13596f8058738cdc867fEcco Parkon property:persist.sys.cnss.diag_txt=true 60491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seok start vendor.cnss_diag_txt 619570fb16c7df56aeaedb13596f8058738cdc867fEcco Park 629570fb16c7df56aeaedb13596f8058738cdc867fEcco Parkon property:persist.sys.cnss.diag_txt=false 63491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seok stop vendor.cnss_diag_txt 649570fb16c7df56aeaedb13596f8058738cdc867fEcco Park 65491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seokservice vendor.cnss_diag /vendor/bin/cnss_diag -q -u -w 669570fb16c7df56aeaedb13596f8058738cdc867fEcco Park class late_start 679570fb16c7df56aeaedb13596f8058738cdc867fEcco Park user system 689570fb16c7df56aeaedb13596f8058738cdc867fEcco Park group system 69245704da172d235e8b89d4d6d81e79f4e08eb50bKumar Anand disabled 709570fb16c7df56aeaedb13596f8058738cdc867fEcco Park oneshot 719570fb16c7df56aeaedb13596f8058738cdc867fEcco Park 72491d56144b5d3a4192533867fe889f97eb4e2fbdJaekyun Seokservice vendor.cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag/cnss_diag.conf 739570fb16c7df56aeaedb13596f8058738cdc867fEcco Park class late_start 749570fb16c7df56aeaedb13596f8058738cdc867fEcco Park user system 759570fb16c7df56aeaedb13596f8058738cdc867fEcco Park group system 769570fb16c7df56aeaedb13596f8058738cdc867fEcco Park disabled 779570fb16c7df56aeaedb13596f8058738cdc867fEcco Park oneshot 78dceb04a94f33971e2021183bb2007f9954b416f3Andrew Chant 79274196bca441761fd5b706fe6908be45d80bb0aaJaekyun Seokon property:vendor.debug.ramdump.force_crash=true 80dceb04a94f33971e2021183bb2007f9954b416f3Andrew Chant write /proc/sysrq-trigger "c" 8198a67963fba19d795339f7ab350414c999dd8c3bEcco Park 8298a67963fba19d795339f7ab350414c999dd8c3bEcco Parkon property:sys.logger.bluetooth=true 83906e91433b7b849219d859dae6fe71f32d76c842Petri Gynther setprop persist.vendor.service.bdroid.snooplog true 84906e91433b7b849219d859dae6fe71f32d76c842Petri Gynther setprop persist.vendor.service.bdroid.fwsnoop true 8598a67963fba19d795339f7ab350414c999dd8c3bEcco Park 8698a67963fba19d795339f7ab350414c999dd8c3bEcco Parkon property:sys.logger.bluetooth=false 87906e91433b7b849219d859dae6fe71f32d76c842Petri Gynther setprop persist.vendor.service.bdroid.snooplog false 88906e91433b7b849219d859dae6fe71f32d76c842Petri Gynther setprop persist.vendor.service.bdroid.fwsnoop false 89640d7d038af7cf26985738d4807a89a423bad712Petri Gynther 90640d7d038af7cf26985738d4807a89a423bad712Petri Gyntheron property:persist.bluetooth.btsnoopenable=true 91906e91433b7b849219d859dae6fe71f32d76c842Petri Gynther setprop persist.vendor.service.bdroid.soclog true 92640d7d038af7cf26985738d4807a89a423bad712Petri Gynther 93640d7d038af7cf26985738d4807a89a423bad712Petri Gyntheron property:persist.bluetooth.btsnoopenable=false 94906e91433b7b849219d859dae6fe71f32d76c842Petri Gynther setprop persist.vendor.service.bdroid.soclog false 95c5ec9e09d1e11b1f24b7519af505dd956d048631Badhri Jagan Sridharan 96c5ec9e09d1e11b1f24b7519af505dd956d048631Badhri Jagan Sridharanon property:vendor.usb.config=* 97c5ec9e09d1e11b1f24b7519af505dd956d048631Badhri Jagan Sridharan start usbd 98c5ec9e09d1e11b1f24b7519af505dd956d048631Badhri Jagan Sridharan 99c5ec9e09d1e11b1f24b7519af505dd956d048631Badhri Jagan Sridharanon property:persist.vendor.usb.usbradio.config=* 100c5ec9e09d1e11b1f24b7519af505dd956d048631Badhri Jagan Sridharan start usbd 101