Android - I want to pass a large string using adb shell command. Is there a restriction on the length of the input string ?
$ adb shell input text
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityAndroid - I want to pass a large string using adb shell command. Is there a restriction on the length of the input string ?
$ adb shell input text
According to my search. Max length for adb shell input text
is 1024 bytes.
Here is the code of adb_client.c
Android 4.4
if((len < 1) || (len > 1024)) {
strcpy(__adb_error, "service name too long");
return -1;
}
Reference: https://android.googlesource.com/platform/system/core/+/android-4.4_r1/adb/adb_client.c#184