Change Device language via ADB

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

    You can change the locale/language for testing purposes without rooting the device, also on newer (4.2+) devices. You have to create an application that changes the device locale. Or, you can use a helper app, e.g. ADB Change Language.

    Next, on 4.2+ devices, you have to use grant the app CHANGE_CONFIGURATION permission via adb, adb shell pm grant android.permission.CHANGE_CONFIGURATION.

    Finally, you can use adb commands (launch activity) to switch locale.

提交回复
热议问题