summaryrefstree
path: root/system_ext/etc/init/netdiag.rc
blob: 7ad378847548c13ac529ccd4291a2498dcc918d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on boot

##Netlog tool
   #change permissions about terminal
    chown root radio /proc/net/vlan/config
    chmod 0640 /proc/net/vlan/config
    chown root radio /proc/net/ip6_tables_matches
    chown root radio /proc/net/ip6_tables_names
    chown root radio /proc/net/ip6_tables_targets
    chown root radio /proc/net/arp_tables_targets
    chown root radio /proc/net/arp_tables_matches
    chown root radio /proc/net/arp_tables_names
    chown root radio /proc/net/ip_tables_targets
    chown root radio /proc/net/ip_tables_matches
    chown root radio /proc/net/ip_tables_names
    chown root radio /proc/net/ip_conntrack_expect
    chown root radio /proc/net/ip_conntrack
    chown root radio /proc/net/nf_conntrack
    chown root radio /proc/net/nf_conntrack_expect
    chown root radio /proc/net/netfilter/nfnetlink_log
    chown root radio /proc/net/netfilter/nfnetlink_queue


on post-fs-data
 mkdir /data/debuglogger 0770 shell log

service netdiag /system_ext/bin/netdiag
    class main
    user shell
    group log system radio sdcard_rw inet shell media_rw net_raw net_admin net_bw_stats readproc net_bt input 
    capabilities NET_ADMIN NET_RAW
    socket netdiag stream 660 shell log

on property:persist.vendor.em.dy.debug=1
    stop netdiag