type mds_app, domain;

app_domain(mds_app)

userdebug_or_eng(`
  net_domain(mds_app)

  allow mds_app app_api_service:service_manager find;
  allow mds_app surfaceflinger_service:service_manager find;

  allow mds_app diag_device:chr_file rw_file_perms;

  set_prop(mds_app, modem_diag_prop)
')