adb shell input text "&"
doesn't work, nor does adb shell input keyevent KEYCODE_AMPERSAND
.
Related to question 7789826.
adb shell input text "&"
doesn't work, nor does adb shell input keyevent KEYCODE_AMPERSAND
.
Related to question 7789826.
Try:
adb shell input text "\&"
For anyone stumbling across this in the future, the escape that finally worked from me was not \&, but rather "\&"
as in
adb shell echo Macaroni "\&" Cheese
and not
adb shell echo Macaroni \& Cheese
Hopefully this helps someone.
For the record, this is on Windows.