code: public static final int getMaxAllowedKeyLength(String transformation)
              throws NoSuchAlgorithmException {
          // Android-changed: Remove references to CryptoPermission and throw early
          // if transformation == null or isn't valid.
          //
          // CryptoPermission cp = getConfiguredPermission(transformation);
          // return cp.getMaxAllowedKeyLength();
          if (transformation == null) {
              throw new NullPointerException("transformation == null");
          }
          // Throws NoSuchAlgorithmException if necessary.
          tokenizeTransformation(transformation);
          return Integer.MAX_VALUE;
      }
docs: Returns the maximum key length for the specified transformation
  according to the installed JCE jurisdiction policy files. If
  JCE unlimited strength jurisdiction policy files are installed,
  Integer.MAX_VALUE will be returned.
  For more information on default key size in JCE jurisdiction
  policy files, please see Appendix E in the
  <a href=
  "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/crypto/CryptoSpec.html#AppC">
  Java Cryptography Architecture Reference Guide</a>.
  
  @param transformation the cipher transformation.
  @return the maximum key length in bits or Integer.MAX_VALUE.
  @exception NullPointerException if <code>transformation</code> is null.
  @exception NoSuchAlgorithmException if <code>transformation</code>
  is not a valid transformation, i.e. in the form of "algorithm" or
  "algorithm/mode/padding".
  @since 1.5