通过ADB更改设备的语言语言、设备、ADB

2023-09-06 16:08:39 作者:ゞ那一场爱的游戏

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

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"
 
精彩推荐
图片推荐