ExtViews: Catch SecurityException due to bad interface

When interfaces get obfucsated, bad things happen.

Change-Id: I9b0829853da536f4047dab8223c97f993a399645
TICKET: CYNGNOS-2916
This commit is contained in:
d34d 2016-05-23 02:12:28 -07:00 committed by Gerrit Code Review
parent 0b76a46515
commit 9c42d415b9

View File

@ -127,8 +127,8 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
} else {
Log.e(TAG, "Unable to get external view provider factory");
}
} catch (RemoteException e) {
e.printStackTrace();
} catch (RemoteException | SecurityException e) {
Log.e(TAG, "Unable to connect to service", e);
}
// We should unbind the service if we failed to connect to the provider
if (mService != service && service != null) {