adb 命令设置android语言 $ adb shell '
setprop persist.sys.language en;
setprop persist.sys.country GB;
stop;
sleep 5;
start'验证语言
$ adb shell 'getprop persist.sys.language'
emulator启动模拟器的时候设置语言
emulator -avd my_avd -prop persist.sys.language=en -prop persist.sys.country=GB
语言ISO
| Configuration | Qualifier Values | Description |
| MCC and MNC | Examples: | The mobile country code (MCC), optionally followed by mobile network code (MNC) from the SIM card in the device. For example, If the device uses a radio connection (GSM phone), the MCC and MNC values come from the SIM card. You can also use the MCC alone (for example, to include country-specific legal resources in your application). If you need to specify based on the language only, then use the language and region qualifier instead (discussed next). If you decide to use the MCC and MNC qualifier, you should do so with care and test that it works as expected. Also see the configuration fields |
| Language and region | Examples: | The language is defined by a two-letter ISO 639-1 language code, optionally followed by a two letter ISO 3166-1-alpha-2 region code (preceded by lowercase " The codes are not case-sensitive; the This can change during the life of your application if the user changes his or her language in the system settings. See Handling Runtime Changes for information about how this can affect your application during runtime. See Localization for a complete guide to localizing your application for other languages. Also see the |
本文详细介绍了如何使用adb命令设置Android设备的语言,并提供了语言ISO配置的方法。包括在启动模拟器时预设语言,以及如何通过adb shell命令进行语言设置。同时解释了语言和地区的ISO代码规范。
1606

被折叠的 条评论
为什么被折叠?



