Change Device language via ADB

前端 未结 11 2363
温柔的废话
温柔的废话 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:50

    Run through the following steps:

    • Create emulator with google APIs Intel x86
    • Root the emulator, by running the command:

      adb root
      
    • Run the following shell command through adb:

      adb -e shell "su root; setprop persist.sys.locale pt-PT; stop; sleep 2; start” 
      

      then, exit the shell which restarts the emulator.

    • Locales we need for screenshots:

      de_DE
      en_EN
      fr_FR
      ko_KO
      pt_PT
      es_ES
      ja_JA
      

提交回复
热议问题