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

Last updated: Jul 02, 2019 14:13


After installing the *.apk, the test runs but throws this error after the test is complete “Test running failed: Instrumentation run failed due to 'java.lang.SecurityException'”

You may also see an error that your app is requesting super user system level access (need UID= 1000) and the app process is denied. 


14254-14274/<apk name> E/AndroidRuntime: FATAL EXCEPTION: Instr: <app>.utils.TestRunner
Process: <apk name>, PID: 14254
java.lang.SecurityException: Permission Denial: getIntentSender() from pid=14246, uid=2000, (need uid=1000) is not allowed to send as package android

The android OS itself is denying you access.

It is not expected that the app will ask for super user system access as UID 1000. Normally, this is only allowed on rooted devices.

Apps requesting root access probably work only on root devices, and this explain why the app works on local devices. However, the Perfecto devices are not rooted, so apps requesting root access will not act properly.

If the error appears there is an issue in the code and it is out of the Perfecto scope. The developers will need to debug this.