private void clearIfNeeded(Program program, TaskMonitor monitor, MessageLog log) {
		Symbol oatDataSymbol = OatUtilities.getOatDataSymbol(program);
		Data oatDataSymbolData = program.getListing().getDefinedDataAt(oatDataSymbol.getAddress());
		if (oatDataSymbolData != null && oatDataSymbolData.isArray()) {
			Array array = (Array) oatDataSymbolData.getDataType();
			if (array.getDataType().isEquivalent(new Undefined1DataType())) {
				program.getListing()
						.clearCodeUnits(oatDataSymbolData.getMinAddress(),
							oatDataSymbolData.getMaxAddress(), false);
			}
		}
		Symbol oatExecSymbol = OatUtilities.getOatExecSymbol(program);
		if (oatExecSymbol != null) {
			Data oatExecSymbolData =
				program.getListing().getDefinedDataAt(oatExecSymbol.getAddress());
			if (oatExecSymbolData != null && oatExecSymbolData.isArray()) {
				Array array = (Array) oatExecSymbolData.getBaseDataType();
				if (array.getDataType().isEquivalent(new Undefined1DataType())) {
					program.getListing()
							.clearCodeUnits(oatExecSymbolData.getMinAddress(),
								oatExecSymbolData.getMaxAddress(), false);
				}
			}
		}
		Symbol oatLastWordSymbol = OatUtilities.getOatLastWordSymbol(program);
		if (oatLastWordSymbol != null) {
			Data oatLastWordSymbolData =
				program.getListing().getDefinedDataAt(oatLastWordSymbol.getAddress());
			if (oatLastWordSymbolData != null) {
				program.getListing()
						.clearCodeUnits(oatLastWordSymbolData.getMinAddress(),
							oatLastWordSymbolData.getMaxAddress(), false);
			}
		}
	}
Ghidra sometimes applies undefined1[x] at "oatdata" and "oatexec".
This method checks for these arrays and clears if they exist.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/oat/OatHeaderAnalyzer.java