diff --git a/lib/roles/device/plugins/service.js b/lib/roles/device/plugins/service.js index 5d5102ea..cf387cf7 100644 --- a/lib/roles/device/plugins/service.js +++ b/lib/roles/device/plugins/service.js @@ -147,7 +147,11 @@ module.exports = syrup.serial() // So, we should be good to go. function openService() { log.info('Launching service') - return callService(util.format("-a '%s'", apk.startAction)) + return callService(util.format( + "-a '%s' -n '%s'" + , apk.startIntent.action + , apk.startIntent.component + )) .then(function() { return devutil.waitForPort(adb, options.serial, service.port) .timeout(15000) diff --git a/lib/roles/device/resources/service.js b/lib/roles/device/resources/service.js index ae8d5edd..e9a514c7 100644 --- a/lib/roles/device/resources/service.js +++ b/lib/roles/device/resources/service.js @@ -22,8 +22,10 @@ module.exports = syrup.serial() , wire: ProtoBuf.loadProtoFile( pathutil.vendor('STFService/wire.proto') ).build().jp.co.cyberagent.stf.proto - , startAction: 'jp.co.cyberagent.stf.ACTION_START' - , stopAction: 'jp.co.cyberagent.stf.ACTION_STOP' + , startIntent: { + action: 'jp.co.cyberagent.stf.ACTION_START' + , component: 'jp.co.cyberagent.stf/.Service' + } } function getPath() {