本文整理匯總了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