Skip to main content
New Member
May 9, 2024 12:24 AM UTC
Question

Disable prompt for the user's consent for an app that records screen

  • 2 replies
  • 86 views
  • Translate All • Beta, powered by Gemini

We are working on an app that is used to test our software and products.  The app is constantly running on test Android devices.  It starts recording the screen based on an event and sends the recording to our backend servers to verify that the test passed.  Currently, the whole process halts if the app or OS is restarted until a human approves the screen recording dialog that pops up when the app opens.  Is there a way to pre-approve the screen recording for this app using the Enterprise Management APIs.  As mentioned before, the app only runs on test devices that are not used by any employees.  Currently, we have to constantly monitor these devices just to press the screen recording approval button when the app crashes, has to be restarted, or when the os is updated.  I am trying to find a solution so that this is automated.

 

Thanks for any help

2 replies

jeremy
Level 1.6: Donut
May 14, 2024 7:33 PM UTC

Hello,

This is a security measure added by Google in the latest Android versions there is no way around that.

 

Jeremy

Translate • Beta, powered by Gemini
mattdermody
Level 3.0: Honeycomb
May 15, 2024 2:21 AM UTC

What OEM are the devices? There are some manufacturer specific methods to silently grant the System Alert Window permission for "drawing over other apps" if your app has that permission declared in it's manifest.

Translate • Beta, powered by Gemini