1#!/system/bin/sh 2# 3# Intialize region settings. Ref: crosbug.com/p/44779 4 5REGION_VPD_FILE=/sys/firmware/vpd/ro/region 6 7REGION="us" 8LANGUAGE="en" 9COUNTRY="US" 10 11if [ -f "${REGION_VPD_FILE}" ]; then 12 REGION="$(cat ${REGION_VPD_FILE})" 13fi 14 15case "${REGION}" in 16 gb | ie) 17 COUNTRY="GB" 18 ;; 19 au | nz) 20 COUNTRY="AU" 21 ;; 22 de) 23 COUNTRY="DE" 24 ;; 25esac 26 27setprop ro.product.locale "${LANGUAGE}-${COUNTRY}" 28setprop ro.boot.wificountrycode "${COUNTRY}" 29