diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java index 3305b985b96..5808219a8a7 100644 --- a/src/com/android/settings/DeviceInfoSettings.java +++ b/src/com/android/settings/DeviceInfoSettings.java @@ -265,6 +265,13 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In Toast.LENGTH_LONG); mDevHitToast.show(); } + } else if (preference.getKey().equals(KEY_SECURITY_PATCH)) { + if (getPackageManager().queryIntentActivities(preference.getIntent(), 0).isEmpty()) { + // Don't send out the intent to stop crash + Log.w(LOG_TAG, "Stop click action on " + KEY_SECURITY_PATCH + ": " + + "queryIntentActivities() returns empty" ); + return true; + } } else if (preference.getKey().equals(KEY_DEVICE_FEEDBACK)) { sendFeedback(); }