From f51abd05d257cb86cfa78d809b8501a6db5ce47f Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Mon, 12 May 2014 18:24:18 +0900 Subject: [PATCH] Expose service.copy() for the clipboard plugin. --- lib/roles/device/plugins/service.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/roles/device/plugins/service.js b/lib/roles/device/plugins/service.js index f6cb0648..6e6dc58a 100644 --- a/lib/roles/device/plugins/service.js +++ b/lib/roles/device/plugins/service.js @@ -270,6 +270,12 @@ module.exports = syrup.serial() }) } + plugin.copy = function() { + // @TODO Not sure how to force the device to copy the current selection + // yet. + return plugin.getClipboard() + } + plugin.wake = function() { return runAgentCommand( apk.wire.MessageType.DO_WAKE