Automatically set Android devices into the permissive mode
Reviewed By: nikoant Differential Revision: D35356211 fbshipit-source-id: 471470c5ca91c824590a409c4474433f2277b1f2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
052f417224
commit
501abc6b55
@@ -90,6 +90,8 @@ export class AndroidDeviceManager {
|
||||
// The default way of capturing screenshots through adb does not seem to work
|
||||
// There is a way of getting a screenshot through KaiOS dev tools though
|
||||
if (androidLikeDevice instanceof AndroidDevice) {
|
||||
await androidLikeDevice.setIntoPermissiveMode();
|
||||
|
||||
const screenRecordAvailable =
|
||||
await androidLikeDevice.screenRecordAvailable();
|
||||
androidLikeDevice.info.features.screenCaptureAvailable =
|
||||
|
||||
Reference in New Issue
Block a user