Change Device language via ADB

前端 未结 11 2359
温柔的废话
温柔的废话 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 13:02

    On Emulator: When changed language manually, it stopped working and had to do wipe data of Emulator in AVD manager to make it work again.

    And the script used:

    adb shell "su 0 setprop persist.sys.locale ja";adb shell "su 0 setprop ctl.restart zygote"
    

    May add ;sleep 20 in the end if some commands in script below this command depend on device to be ready.

提交回复
热议问题