adb shell input text "&"
无效,adb shell input keyevent KEYCODE_AMPERSAND
也是如此。
相关问题请参考7789826号问题。
adb shell input text "&"
无效,adb shell input keyevent KEYCODE_AMPERSAND
也是如此。
相关问题请参考7789826号问题。
尝试:
adb shell input text "\&"
对于未来偶然发现这篇文章的人,最终对我有效的转义字符不是\&,而是"\&"
就像这样
adb shell echo Macaroni "\&" Cheese
而不是
adb shell echo Macaroni \& Cheese
adb shell input text ^&
,adb shell input text "^&"
。 - yellowantphiladb shell "input text \&"
- Alex P.adb shell input text "\&"
在我的两部手机上都可以使用。 - yellowantphiladb shell input text ^&
还是adb shell input text "^&"
都不起作用。 - Alex Henrie