• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Purpose : for access storage file
2allow netdiag sdcard_type:dir create_dir_perms;
3allow netdiag sdcard_type:file create_file_perms;
4allow netdiag net_data_file:file r_file_perms;
5allow netdiag net_data_file:dir search;
6allow netdiag storage_file:dir search;
7allow netdiag storage_file:lnk_file read;
8allow netdiag mnt_user_file:dir search;
9allow netdiag mnt_user_file:lnk_file read;
10allow netdiag platform_app:dir search;
11allow netdiag untrusted_app:dir search;
12allow netdiag mnt_media_rw_file:dir search;
13allow netdiag vfat:dir create_dir_perms;
14allow netdiag vfat:file create_file_perms;
15allow netdiag tmpfs:lnk_file read;
16
17#Purpose : for network log property
18set_prop(netdiag, debug_netlog_prop)
19set_prop(netdiag, persist_mtklog_prop)
20set_prop(netdiag, debug_mtklog_prop)
21
22# Purpose : for acess /system/bin/toybox, mmc_prop,proc_net and safemode_prop
23allow netdiag device_logging_prop:file { getattr open };
24allow netdiag mmc_prop:file { getattr open };
25
26# purpose: allow netdiag to access storage in new version
27allow netdiag media_rw_data_file:file  { create_file_perms };
28allow netdiag media_rw_data_file:dir { create_dir_perms };
29