Page tree
Skip to end of metadata
Go to start of metadata

Secured Screen Limitations 

Some applications are using SECURE FLAG in their application activities. This flag may block us from getting a screenshot from the device.

For most devices we are able to get screenshots using other methods, however, on some devices we can't get screenshots from such applications. On such cases, you will see a black screen instead of the actual device reflection.

A non-comprehensive list of such devices includes:

Marketing Name

Model

(other models might work)

LG V50 ThinQLM-V500N
LG G8 ThinQLG-G820
LG G6LG-H873
LG Aristo 3LMX220
LG G5LG-H831
LG G5LG-H860
LG G7 ThinQLM-G710
LG Stylo 5LM-Q720
LG Wing 5GLM-F100V
VivoAcross models 

Huawei

P20 Pro/MatePad

To get screenshots from such app you can do one of the following:

  • Build your application without this SECURE FLAG.
  • Use our Manual instrumentation tool, with -disableSecurityMode flag.

Device reboot

The USB connection type for OPPO device is not saved and resets to "Charge Only" after reboot. To make the device usable again, the device setting must be changed manually (requires physical access).

Therefore, a reboot is not supported for OPPO devices.


Additional steps for OnePlus devices

In developers options the option Disable permission monitoring should be enabled.

Limitation with Huawei and Xiaomi devices

For Huawei devices: If the device gets disconnected often or can't be connected to the cloud at all, the following option should be enabled in the Developer Options menu:

  • Allow ADB debugging in charge only mode

In order to install applications from USB on the device the following should be disabled in the Developer Options menu:

  • Verify app over USB
  • Monitor apps installed by ADB (When available, this option isn't available for every device)

The following options should be enabled the Developer Options menu:

  • Install via USB

If you are unable to enable Install via USB, enable USB debugging (Security settings) first, that should let you enable the former option.

Additional options for Huawei devices

If the device's connection is not stable after previous steps, or the device can't be launched in manual/automation session, take the following steps:

  • Go to Settings → Battery → App Launch
  • In the list search for 'UIAutomator' and tick it off
  • In the window opened click OK without ticking anything

Additional options for Xiaomi devices

Xiaomi devices will prompt before any application installation, disabling the following in the Developer Options menu should allow installation via USB without prompt (except for the first one).

Both options are on the bottom of the Developer Options menu:

  • Turn on MIUI optimisation
  • Notify about high-risk features

Android 12 & 13 limitation

Currently, Android 12 and 13 secured screens are only supported in Instrumented mode.

Non-instrumented apps with secured screens will not have actual screens displayed and a black image will be displayed instead (this includes setting/changing pin codes in settings app).

  • No labels