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