Skip to content

Commit

Permalink
dragon: set wifi country code
Browse files Browse the repository at this point in the history
Change-Id: I4fda8c9bad4db9e7d092959cadf6787fb71922d4
  • Loading branch information
Stephen Barber committed Sep 24, 2015
1 parent 919b0a4 commit 1bcfb6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions init_regions.sh
Expand Up @@ -25,3 +25,4 @@ case "${REGION}" in
esac

setprop ro.product.locale "${LANGUAGE}-${COUNTRY}"
setprop ro.boot.wificountrycode "${COUNTRY}"
1 change: 1 addition & 0 deletions sepolicy/locale.te
Expand Up @@ -6,6 +6,7 @@ type locale_exec, exec_type, file_type;
init_daemon_domain(locale)

set_prop(locale, product_locale_prop)
set_prop(locale, wifi_region_prop)

# use cat to read /sys/firmware/vpd/ro/region
allow locale shell_exec:file rx_file_perms;
1 change: 1 addition & 0 deletions sepolicy/property.te
@@ -1,2 +1,3 @@
type product_locale_prop, property_type;
type debug_bq25892_prop, property_type;
type wifi_region_prop, property_type;
1 change: 1 addition & 0 deletions sepolicy/property_contexts
@@ -1,2 +1,3 @@
boot.wificountrycode u:object_r:wifi_region_prop:s0
product.locale u:object_r:product_locale_prop:s0
debug.bq25892 u:object_r:debug_bq25892_prop:s0

0 comments on commit 1bcfb6e

Please sign in to comment.