blob: 7fc31f5314ad1f5357e6eebc89fd8d1f2efa6e55 [file] [log] [blame]
#!/system/bin/sh
#
# Intialize region settings. Ref: crosbug.com/p/44779
REGION_VPD_FILE=/sys/firmware/vpd/ro/region
REGION="us"
LANGUAGE="en"
COUNTRY="US"
if [ -f "${REGION_VPD_FILE}" ]; then
REGION="$(cat ${REGION_VPD_FILE})"
fi
case "${REGION}" in
gb | ie)
COUNTRY="GB"
;;
au | nz)
COUNTRY="AU"
;;
de)
COUNTRY="DE"
;;
esac
setprop ro.product.locale "${LANGUAGE}-${COUNTRY}"
setprop ro.boot.wificountrycode "${COUNTRY}"