userdebug_or_eng(`
   # qxdmlogger rundiag perms
   allow platform_app diag_logs:dir rw_dir_perms;
   allow platform_app diag_logs:file create_file_perms;
   allow platform_app diag_device:chr_file rw_file_perms;
')

allow platform_app oem_qmi_server:unix_stream_socket connectto;