I need to paste text into the Android emulator clipboard using adb shell. tried on Android 1.6 and 2.3.1
I tried to use adb shell command: clipboard:[android.text.iclipboard]
"service call clipboard" where service codes are 1, 2, and 3, for getClipboardText, setClipboardText, and hasClipboardText respectively.
service call clipboard 2 s16 thisisinsertedtext 
does not seem to work while
service call clipboard 1 
shows the content of clipboard:
service call clipboard 1
Result: Parcel(
   0x00000000: 00000000 00000001 00000001 00000004 '................'
   0x00000010: 00650074 00740078 00000000          't.e.x.t.....    ')
Please advise how to set a value for emulator clipboard!
 
     
     
     
     
     
     
     
    