diff --git a/lib/roles/device/resources/service.js b/lib/roles/device/resources/service.js index f147ecce..01ee8ca6 100644 --- a/lib/roles/device/resources/service.js +++ b/lib/roles/device/resources/service.js @@ -6,6 +6,7 @@ var semver = require('semver') var pathutil = require('../../../util/pathutil') var streamutil = require('../../../util/streamutil') +var promiseutil = require('../../../util/promiseutil') var logger = require('../../../util/logger') module.exports = syrup.serial() @@ -71,8 +72,18 @@ module.exports = syrup.serial() }) .catch(function() { log.info('Installing STFService') - return adb.install(options.serial, resource.apk) - .timeout(30000) + return promiseutil.periodicNotify( + adb.install(options.serial, resource.apk) + , 10000 + ) + .progressed(function() { + log.warn( + 'STFService installation is taking a long time; ' + + 'perhaps you have to accept 3rd party app installation ' + + 'on the device?' + ) + }) + .timeout(60000) .then(function() { return getPath() })