通过ADB更改设备的语言 [英] Change Device language via ADB

查看:8151
本文介绍了通过ADB更改设备的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过亚洲开发银行改变语言。 我尝试:

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 get errors:

setprop: command not found
stop: missing job name
Try `stop --help' for more information.
start: missing job name
Try `start --help' for more information.

什么是错的? 我想这样做对物理设备

what is wrong? I want to do this on physical device

推荐答案

您的错误无关,与亚洲开发银行。你只缺少如何使你的本地shell处理您的命令的理解。你在做什么是本地运行这些命令(在PC上):

Your errors have nothing to do with adb. You just lack understanding of how your local shell processes your command. What you are doing is running these commands locally (on your PC):

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

和来自本地shell你看到错误消息(即有您的系统上没有 setprop 可执行文件和启动停止命令具有非可选参数。

and the error messages you see are from local shell (i.e. there is no setprop executable on your system and start and stop commands have non-optional parameters.

正确的命令应该是

adb shell "setprop persist.sys.language fr; setprop persist.sys.country CA; setprop ctl.restart zygote"

这篇关于通过ADB更改设备的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆