Set clipboard text via adb shell as of API level 11
Before API level 11, it was possible to set the content of the clipboard by using the service program on the adb shell : service call SERVICE CODE [i32 INT | s16 STR] ... Options: i32: Write the integer INT into the send parcel. s16: Write the UTF-16 string STR into the send parcel. There were three integer codes to define the methods: 1 TRANSACTION_getClipboardText 2 TRANSACTION_setClipboardText 3 TRANSACTION_hasClipboardText For instance this command $ adb shell service call clipboard 2 i32 1 i32 1 s16 "Hello Android!" set the clipboard's content to "Hello Android!" . As of API level 11 the