如何使用 adb 重置 Google 键盘语言
How to reset Google Keyboard language using adb
所以我必须添加一个自动化步骤,其中需要重置键盘语言以防有人更改它。
为此使用了 adb,在三星 phones 上运行良好,但在 Moto X 和 Nexus phones 上运行不佳。
我使用的 adb 命令是 adb shell pm clear com.google.android.inputmethod.latin
用于 Moto X 和 Nexus phones。这没有达到预期的效果。
对于三星 phones,命令是 adb shell pm clear com.sec.android.inputmethod
。这很好用。
有人可以帮忙吗?唯一的限制是我们不能 root phone.
该命令不适用于 Google 键盘,因为所选语言没有像三星键盘一样保存在应用程序的首选项中,而是保存在 ENABLED_INPUT_METHODS
键中12=] table。
您可以使用以下命令重置 Google 键盘的所选语言:
adb shell settings put secure enabled_input_methods com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
所以我必须添加一个自动化步骤,其中需要重置键盘语言以防有人更改它。
为此使用了 adb,在三星 phones 上运行良好,但在 Moto X 和 Nexus phones 上运行不佳。
我使用的 adb 命令是 adb shell pm clear com.google.android.inputmethod.latin
用于 Moto X 和 Nexus phones。这没有达到预期的效果。
对于三星 phones,命令是 adb shell pm clear com.sec.android.inputmethod
。这很好用。
有人可以帮忙吗?唯一的限制是我们不能 root phone.
该命令不适用于 Google 键盘,因为所选语言没有像三星键盘一样保存在应用程序的首选项中,而是保存在 ENABLED_INPUT_METHODS
键中12=] table。
您可以使用以下命令重置 Google 键盘的所选语言:
adb shell settings put secure enabled_input_methods com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME