public final static boolean isDexFile(ByteProvider provider) {
		try {
			byte[] bytes = provider.readBytes(0, DEX_MAGIC_BASE.length());
			return DEX_MAGIC_BASE.equals(new String(bytes));
		}
		catch (Exception e) {
			// ignore
		}
		return false;
	}
First Dex format version enforcing class definition ordering rules.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/dex/format/DexConstants.java