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