F-06E doesn't find the STFService if we don't tell it which component to use.

This commit is contained in:
Simo Kinnunen
2014-05-30 00:00:24 +09:00
parent f09fb07606
commit 36f62f3276
2 changed files with 9 additions and 3 deletions

View File

@@ -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)

View File

@@ -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() {