To enter very long characters into the phone, you can use adb shell input "" to enter the desired characters, but for some special characters, there will be problems when using adb shell input
For example, there are two methods for the special character "?": 1. Using the escape character, you can normally enter adb shell input text "\?" #After the command is executed, there will be "&" in the text input box of the mobile phone. Disadvantages: Each "?" Must be preceded by an escape character, otherwise an error will be reported 2. Add a space character before a space, followed by how many special characters (?) Does not matter adb shell input text "[email protected] & * # ()? "3. It needs to be imported after encapsulation: input ('\" [email protected] & * # () \ "') In summary, it can be seen that there are spaces and '\' in the adb shell input text What is the special meaning if you want to enter a space in the edit box of the mobile phone, this can not be used adb shell input text command directly using adb shell input keyevent 62
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.