當前位置: 首頁>>代碼示例>>Python>>正文


Python PatchInfo.ramdisk方法代碼示例

本文整理匯總了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]
開發者ID:Kratos1982,項目名稱:DualBootPatcher,代碼行數:11,代碼來源:ael-ge.py

示例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]
開發者ID:Kratos1982,項目名稱:DualBootPatcher,代碼行數:12,代碼來源:cyanogenmod.py

示例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
開發者ID:Kratos1982,項目名稱:DualBootPatcher,代碼行數:33,代碼來源:chenxiaolong.py


注:本文中的multiboot.patchinfo.PatchInfo.ramdisk方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。