code: public static boolean isAndroidGetsocknameError(AssertionError e) {
      return e.getCause() != null && e.getMessage() != null
          && e.getMessage().contains("getsockname failed");
    }
docs: Returns true if {@code e} is due to a firmware bug fixed after Android 4.2.2.
  https://code.google.com/p/android/issues/detail?id=54072