public final static boolean isOdexFile(ByteProvider provider) {
		try {
			String magic = new String(provider.readBytes(0, ODEX_MAGIC_LENGTH));
			return ODEX_MAGIC_35.equals(new String(magic)) ||
				ODEX_MAGIC_36.equals(new String(magic));
		}
		catch (Exception e) {
			// ignore
		}
		return false;
	}
https://android.googlesource.com/platform/dalvik/+/refs/heads/kitkat-release/libdex/DexFile.h
https://android.googlesource.com/platform/dalvik/+/refs/heads/lollipop-release/libdex/DexFile.h
https://android.googlesource.com/platform/dalvik/+/refs/heads/marshmallow-release/libdex/DexFile.h
https://android.googlesource.com/platform/dalvik/+/refs/heads/nougat-release/libdex/DexFile.h
https://android.googlesource.com/platform/dalvik/+/refs/heads/oreo-release/libdex/DexFile.h
https://android.googlesource.com/platform/dalvik/+/refs/heads/pie-release/libdex/DexFile.h
https://android.googlesource.com/platform/dalvik/+/refs/heads/android10-release/libdex/DexFile.h

Removed in Android11
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/odex/OdexConstants.java