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

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


Level 2.3: Gingerbread


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



Level 2.0: Eclair

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.