本文整理汇总了Python中multiboot.patchinfo.PatchInfo.ramdisk方法的典型用法代码示例。如果您正苦于以下问题:Python PatchInfo.ramdisk方法的具体用法?Python PatchInfo.ramdisk怎么用?Python PatchInfo.ramdisk使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类multiboot.patchinfo.PatchInfo
的用法示例。
在下文中一共展示了PatchInfo.ramdisk方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: PatchInfo
# 需要导入模块: from multiboot.patchinfo import PatchInfo [as 别名]
# 或者: from multiboot.patchinfo.PatchInfo import ramdisk [as 别名]
from multiboot.autopatchers.standard import StandardPatcher
from multiboot.patchinfo import PatchInfo
patchinfo = PatchInfo()
patchinfo.matches = r'^AEL_GE.+\.zip$'
patchinfo.name = 'Echoe AEL Google Edition kernel'
patchinfo.ramdisk = 'jflte/GoogleEdition/GoogleEdition.def'
patchinfo.autopatchers = [StandardPatcher]
示例2: PatchInfo
# 需要导入模块: from multiboot.patchinfo import PatchInfo [as 别名]
# 或者: from multiboot.patchinfo.PatchInfo import ramdisk [as 别名]
from multiboot.autopatchers.standard import StandardPatcher
from multiboot.autopatchers.cyanogenmod import DalvikCachePatcher
from multiboot.patchinfo import PatchInfo
patchinfo = PatchInfo()
patchinfo.matches = r"^cm-[0-9\.]+(-[0-9]+-NIGHTLY|-RC[0-9]+)?-[a-z0-9]+\.zip$"
patchinfo.name = 'Official CyanogenMod'
patchinfo.ramdisk = 'jflte/AOSP/AOSP.def'
patchinfo.autopatchers = [StandardPatcher, DalvikCachePatcher]
示例3: PatchInfo
# 需要导入模块: from multiboot.patchinfo import PatchInfo [as 别名]
# 或者: from multiboot.patchinfo.PatchInfo import ramdisk [as 别名]
from multiboot.autopatchers.base import BasePatcher
from multiboot.autopatchers.cyanogenmod import DalvikCachePatcher
from multiboot.autopatchers.standard import StandardPatcher
from multiboot.patchinfo import PatchInfo
import multiboot.fileio as fileio
import os
patchinfo = PatchInfo()
patchinfo.matches = r"^cm-.*noobdev.*.zip$"
patchinfo.name = "chenxiaolong's noobdev CyanogenMod"
patchinfo.ramdisk = 'jflte/AOSP/cxl.def'
patchinfo.autopatchers = [StandardPatcher, DalvikCachePatcher]
# ROM has built in dual boot support
patchinfo.configs = ['all', '!dual']
class MultiBoot(BasePatcher):
def __init__(self, **kwargs):
super(MultiBoot, self).__init__(**kwargs)
# Don't need to add, since it's not from the original zip file
#self.files_list.append('dualboot.sh')
def patch(self, directory, file_info, bootimages=None):
# My ROM has dual-boot support built in, so we'll hack around that to
# support triple, quadruple, ... boot
updater_script = 'META-INF/com/google/android/updater-script'
lines = fileio.all_lines(os.path.join(directory, updater_script))
i = 0