Change Device language via ADB

前端 未结 11 2366
温柔的废话
温柔的废话 2020-11-28 12:16

I want to change language via ADB. I try:

adb shell setprop persist.sys.language fr;setprop persist.sys.country CA;stop;sleep 5;start

but I

11条回答
  •  甜味超标
    2020-11-28 12:51

    There is few solutions.It works for me.


    1.

    adb shell am start -a android.settings.LOCALE_SETTINGS (You could see the language menu, then choose language by appium)


    2.

    download adbchangelanguage on google store

    adb shell pm grant net.sanapeli.adbchangelanguage

    android.permission.CHANGE_CONFIGURATION

    adb shell am start -n net.sanapeli.adbchangelanguage/.AdbChangeLanguage -e language zh -e country TW

    https://gist.github.com/douglasselph/b9998e69998759c6cceec1df1aa96ac5


    3.

    using appium then set desired capabilities (language and locale) http://appium.io/docs/en/writing-running-appium/caps/

提交回复
热议问题