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

bshamsian
Level 1.5: Cupcake

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 2

jeremy
Level 2.3: Gingerbread

Hello,

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

 

Jeremy

mattdermody
Level 2.2: Froyo

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.