mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Introduce support for new VM based minicap to support Android 12
This commit introduce a new option to use a new minicap implementation by specifying --screen-grabber or the env variable SCREEN_GRABBER. The current native minicap is the default and is refered as 'minicap-bin'. The new minicap which is packaged in an apk is usable with 'minicap-apk' and will be used as a fallback. At the moment, this apk is expected to be included in minicap-prebuilt node package at this location minicap-prebuilt/prebuilt/noarch/minicap.apk. STFService.apk has also been updated to take into account Android 12 Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
This commit is contained in:
@@ -116,6 +116,12 @@ module.exports.builder = function(yargs) {
|
||||
, type: 'number'
|
||||
, default: process.env.SCREEN_JPEG_QUALITY || 80
|
||||
})
|
||||
.option('screen-grabber', {
|
||||
describe: 'The tool to be used for screen capture. '+
|
||||
'Value must be either: minicap-bin (default) or minicap-apk'
|
||||
, type: 'string'
|
||||
, default: process.env.SCREEN_GRABBER || 'minicap-bin'
|
||||
})
|
||||
.option('screen-ping-interval', {
|
||||
describe: 'The interval at which to send ping messages to keep the ' +
|
||||
'screen WebSocket alive.'
|
||||
|
||||
Reference in New Issue
Block a user