appium/appium-adb — pull request #57 by imurchie (2014-10-31 15:27:42+00:00)
Title: Catch java.lang.SecurityException in activity launch

When there are insufficient permissions for an activity to be launched on a real device (the only such condition I have found being the app is disabled) `adb` "throws" a `java.lang.SecurityException`. This addition deals with that case.

I have, however, been struggling with a way to test this. Without a rooted device, `adb` won't allow you to disable and enable apps. And on the emulator a disabled app is not seen by the launcher, so it comes out the same as if there were no such activity (a case we already handle).

Fixes appium/appium#3675.