mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Upgrading STF for security reasons (#813)
* Upgrading STF for security reasons Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * update semaphore files Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * upgrading STF for security reasons v2 Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * update yarn.lock file Signed-off-by: Denis barbaron <denis.barbaron@orange.com> --------- Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
/**
|
||||
* Copyright © 2024 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
var util = require('util')
|
||||
|
||||
var Promise = require('bluebird')
|
||||
var syrup = require('@devicefarmer/stf-syrup')
|
||||
var split = require('split')
|
||||
var EventEmitter = require('eventemitter3')
|
||||
var adbkit = require('@devicefarmer/adbkit')
|
||||
var Parser = require('@devicefarmer/adbkit/lib/adb/parser')
|
||||
|
||||
var wire = require('../../../../wire')
|
||||
var logger = require('../../../../util/logger')
|
||||
@@ -351,7 +353,7 @@ module.exports = syrup.serial()
|
||||
return Promise.all([
|
||||
output.waitForEnd()
|
||||
, adb.shell(options.serial, ['kill', signum, pid])
|
||||
.then(adbkit.util.readAll)
|
||||
.then(adb.util.readAll)
|
||||
.return(true)
|
||||
])
|
||||
.timeout(2000)
|
||||
@@ -379,7 +381,7 @@ module.exports = syrup.serial()
|
||||
TouchConsumer.prototype._readBanner = function(socket) {
|
||||
log.info('Reading minitouch banner')
|
||||
|
||||
var parser = new Parser(socket)
|
||||
var parser = new adb.Parser(socket)
|
||||
var banner = {
|
||||
pid: -1 // @todo
|
||||
, version: 0
|
||||
|
||||
Reference in New Issue
Block a user