Open madroidmaq opened 10 months ago
same error
def text(self, input_str):
input_str = input_str.replace(" ", "%s")
input_str = input_str.replace("'", "")
adb_command = f"adb -s {self.device} shell input text {input_str}"
ret = execute_adb(adb_command)
return ret
I noticed that the project has implemented simple adaptations by replacing spaces and single quotes, and it works fine in my tests. I'm not sure if this is due to the input method?
Using
adb shell input text
will result in the following error message when multiple strings are entered into the text box:The error message is as follows: