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 { } else {
Log.e(TAG, "Unable to get external view provider factory"); Log.e(TAG, "Unable to get external view provider factory");
} }
} catch (RemoteException e) { } catch (RemoteException | SecurityException e) {
e.printStackTrace(); Log.e(TAG, "Unable to connect to service", e);
} }
// We should unbind the service if we failed to connect to the provider // We should unbind the service if we failed to connect to the provider
if (mService != service && service != null) { if (mService != service && service != null) {