Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
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
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to firstname.lastname@example.org. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
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:
and provide relevant evidence. A staff member will contact you within 5 working days.