public static boolean isProfile(ByteProvider provider) {
		try {
			byte[] magicBytes = provider.readBytes(0, kProfileMagicLength);
			if (Arrays.equals(magicBytes, kProfileMagic)) {
				byte[] versionBytes =
					provider.readBytes(kProfileMagicLength, kProfileVersion_010.length);
				if (Arrays.equals(versionBytes, kProfileVersion_010)) {
					return true;
				}
			}
		}
		catch (Exception e) {
			// ignore
		}
		return false;
	}
Converts the byte array into String and trims it.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/prof/ProfileConstants.java