Search code examples
androidlocaledefault

How can I modify the default locale in android?


By default, the android system's default location is US and language is en. But I want to set the default location to another country. So, the users will see their mother language when the first time startup android.

I have tried to modify the code(/dalvik/libcore/luni/src/main/java/java/util/Locale.java), changed the locale's default value. But no effect.

Can you tell me how to set the default location?

*I want to make an android image, then burn it to the device, when the android starts up the first time, I want its os language is not English but another language.


Solution

  • thanks for all you reply.

    i have found the method to change the default language.

    just modify the file(build/core/Makefile).

    set PRODUCT_DEFAULT_LANGUAGE and PRODUCT_DEFAULT_REGION to what you want to set.