1# This file gets copied as /init.angler.diag.rc
2
3on post-fs-data
4    # Modem logging collection
5    mkdir /data/diag_logs 0777 system system
6
7    #Create folder subsystem_ramdump
8    mkdir /data/ramdump 0700 system system
9
10on boot
11    chmod 666 /dev/diag
12    write /sys/module/msm_poweroff/parameters/enable_edl 1
13
14# diag and adb
15on property:sys.usb.config=diag,adb
16    stop adbd
17    write /sys/class/android_usb/android0/enable 0
18    write /sys/class/android_usb/android0/idVendor 05C6
19    write /sys/class/android_usb/android0/idProduct 901D
20    write /sys/class/android_usb/android0/f_diag/clients diag
21    write /sys/class/android_usb/android0/functions diag,adb
22    write /sys/class/android_usb/android0/enable 1
23    start adbd
24    setprop sys.usb.state ${sys.usb.config}
25