• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# init_regions.sh reads region from vpd and sets
2# ro.product.locale property
3type locale, domain, domain_deprecated;
4type locale_exec, exec_type, file_type;
5
6init_daemon_domain(locale)
7
8set_prop(locale, product_locale_prop)
9set_prop(locale, wifi_region_prop)
10
11# use cat to read /sys/firmware/vpd/ro/region
12allow locale shell_exec:file rx_file_perms;
13
14# execute toolbox/toybox
15allow locale toolbox_exec:file rx_file_perms;
16