import importlib.util from pathlib import Path import struct import unittest spec = importlib.util.spec_from_file_location("apk_pages", Path(__file__).parents[1] / "scripts/check-apk-pages.py") checker = importlib.util.module_from_spec(spec) spec.loader.exec_module(checker) def elf(alignment=16384, relro_end=16384, writable_end=32768): data = bytearray(64 + 2 * 56) data[:6] = b"\x7fELF\x02\x01" struct.pack_into("