Home | History | Annotate | Download | only in wahoo
      1 #
      2 # Copyright (C) 2016 The Android Open-Source Project
      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 
     17 on init
     18     chmod 666 /dev/diag
     19 
     20 on post-fs-data
     21     # Modem logging collection
     22     mkdir /data/vendor/radio 0777 radio radio
     23     mkdir /data/vendor/radio/diag_logs 0777 system system
     24     chmod 777 /data/vendor/radio/diag_logs/cfg
     25     chmod 777 /data/vendor/radio/diag_logs/custom_cfg
     26     # WLAN logging collection
     27     mkdir /data/vendor/wifi 0777 system system
     28     mkdir /data/vendor/wifi/cnss_diag 0777 system system
     29 
     30 service vendor.diag_mdlog_start /vendor/bin/diag_mdlog
     31     class late_start
     32     user shell
     33     group system diag media_rw
     34     disabled
     35     oneshot
     36 
     37 service vendor.diag_mdlog_stop /vendor/bin/diag_mdlog -k
     38     class late_start
     39     user shell
     40     group system diag media_rw
     41     disabled
     42     oneshot
     43 
     44 on boot && property:persist.sys.modem.diag.mdlog=*
     45     setprop sys.modem.diag.mdlog ${persist.sys.modem.diag.mdlog}
     46 
     47 on property:sys.modem.diag.mdlog=true
     48     start vendor.diag_mdlog_start
     49 
     50 on property:sys.modem.diag.mdlog=false
     51     start vendor.diag_mdlog_stop
     52 
     53 on property:persist.sys.cnss.diag_qxdm=true
     54     start vendor.cnss_diag
     55 
     56 on property:persist.sys.cnss.diag_qxdm=false
     57     stop vendor.cnss_diag
     58 
     59 on property:persist.sys.cnss.diag_txt=true
     60     start vendor.cnss_diag_txt
     61 
     62 on property:persist.sys.cnss.diag_txt=false
     63     stop vendor.cnss_diag_txt
     64 
     65 service vendor.cnss_diag /vendor/bin/cnss_diag -q -u -w
     66     class late_start
     67     user system
     68     group system
     69     disabled
     70     oneshot
     71 
     72 service vendor.cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag/cnss_diag.conf
     73     class late_start
     74     user system
     75     group system
     76     disabled
     77     oneshot
     78 
     79 on property:vendor.debug.ramdump.force_crash=true
     80     write /proc/sysrq-trigger "c"
     81 
     82 on property:sys.logger.bluetooth=true
     83    setprop persist.vendor.service.bdroid.snooplog true
     84    setprop persist.vendor.service.bdroid.fwsnoop true
     85 
     86 on property:sys.logger.bluetooth=false
     87    setprop persist.vendor.service.bdroid.snooplog false
     88    setprop persist.vendor.service.bdroid.fwsnoop false
     89 
     90 on property:persist.bluetooth.btsnoopenable=true
     91    setprop persist.vendor.service.bdroid.soclog true
     92 
     93 on property:persist.bluetooth.btsnoopenable=false
     94    setprop persist.vendor.service.bdroid.soclog false
     95 
     96 on property:vendor.usb.config=*
     97    start usbd
     98 
     99 on property:persist.vendor.usb.usbradio.config=*
    100    start usbd
    101