from multiboot.fileinfo import FileInfo import multiboot.autopatcher as autopatcher import re file_info = FileInfo() filename_regex = r"^miuiandroid_(multi_)?jflte.*\.zip$" file_info.name = 'MIUI' file_info.ramdisk = 'jflte/AOSP/AOSP.def' file_info.patch = autopatcher.auto_patch file_info.extract = autopatcher.files_to_auto_patch file_info.patched_init = 'init-jb42' def matches(filename): if re.search(filename_regex, filename): return True else: return False def get_file_info(): return file_info
from multiboot.fileinfo import FileInfo import multiboot.autopatcher as autopatcher import re file_info = FileInfo() filename_regex = r"^Cataclysm.*\.zip$" file_info.name = 'Cataclysm' file_info.ramdisk = 'hammerhead/AOSP/AOSP.def' file_info.patch = autopatcher.auto_patch file_info.extract = autopatcher.files_to_auto_patch file_info.patched_init = 'init-kk44' def matches(filename): if re.search(filename_regex, filename): return True else: return False def get_file_info(): return file_info