• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python fileinfo.FileInfo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中multiboot.fileinfo.FileInfo的典型用法代码示例。如果您正苦于以下问题:Python FileInfo类的具体用法?Python FileInfo怎么用?Python FileInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了FileInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: FileInfo

from multiboot.fileinfo import FileInfo
import re

file_info = FileInfo()

filename_regex = r"^UPDATE-SuperSU-v[0-9\.]+\.zip$"
file_info.name = "Chainfire's SuperSU"
file_info.patch = "Other/supersu.dualboot.patch"
file_info.has_boot_image = False


def matches(filename):
    if re.search(filename_regex, filename):
        return True
    else:
        return False


def get_file_info():
    return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:20,代码来源:supersu.py


示例2: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^gapps-jb43-[0-9]+-dmd151\.zip$"
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch
file_info.has_boot_image = False

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def print_message():
  print("Detected doomed151's Google Apps zip")

def get_file_info():
  return file_info
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:22,代码来源:gapps-doomed151.py


示例3: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^cm-[0-9\.]+(-[0-9]+-NIGHTLY)?-[a-z0-9]+\.zip$"
file_info.ramdisk        = 'hammerhead/AOSP/AOSP.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def print_message():
  print("Detected official CyanogenMod ROM zip")

def get_file_info():
  return file_info
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:22,代码来源:cyanogenmod.py


示例4: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^3Minit_Framework_.*\.zip$"
file_info.name           = '3Minit framework'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch
file_info.has_boot_image = False

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:20,代码来源:3minit.py


示例5: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
from multiboot.autopatchers.jflte import GoogleEditionPatcher
import re

file_info = FileInfo()

filename_regex           = r"^I9505_-_Official_Google_Edition_.*Jamal2367.*\.zip$"
file_info.name           = "jamal2367's Google Edition"
file_info.ramdisk        = 'jflte/GoogleEdition/GoogleEdition.def'
file_info.patch          = [ autopatcher.auto_patch, GoogleEditionPatcher.qcom_audio_fix ]
file_info.extract        = [ autopatcher.files_to_auto_patch, GoogleEditionPatcher.files_for_qcom_audio_fix ]

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info(filename = ""):
  if 'Final-R1.1' in filename:
    file_info.bootimg    = 'kernel/ktoonsez/boot.img'
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:23,代码来源:ge-jamal2367.py


示例6: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex = r"^FoxHound_.*\.zip$"
file_info.name = "FoxHound"
file_info.ramdisk = "jflte/TouchWiz/TouchWiz.def"
file_info.bootimg = "snakes/Kernels/Stock/boot.img"
file_info.patch = [autopatcher.auto_patch, "jflte/ROMs/TouchWiz/foxhound.dualboot.patch"]
file_info.extract = [autopatcher.files_to_auto_patch, "META-INF/com/google/android/aroma-config"]


def matches(filename):
    if re.search(filename_regex, filename):
        return True
    else:
        return False


def get_file_info():
    return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:23,代码来源:foxhound.py


示例7: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^[0-9]+-[0-9]+_GApps_Core_[0-9\.]+_signed\.zip$"
file_info.name           = "BaNks's Google Apps"
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch
file_info.has_boot_image = False

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:20,代码来源:gapps-banks.py


示例8: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
from multiboot.autopatchers.jflte import GoogleEditionPatcher
import re

file_info = FileInfo()

filename_regex           = r"^[a-zA-Z0-9]+BlackBoxGE[0-9]+\.zip$"
file_info.name           = 'BlackBox Google Edition'
file_info.ramdisk        = 'jflte/GoogleEdition/GoogleEdition.def'
file_info.patch          = [ autopatcher.auto_patch, GoogleEditionPatcher.qcom_audio_fix ]
file_info.extract        = [ autopatcher.files_to_auto_patch, GoogleEditionPatcher.files_for_qcom_audio_fix ]
file_info.bootimg        = 'dsa/Kernels/Stock/boot.img'

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:22,代码来源:blackbox-ge.py


示例9: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^(Liquid|LS)-(JB|KK|Kitkat)-v[0-9\.]+-.*-jflte.*\.zip$"
file_info.name           = 'LiquidSmooth'
file_info.ramdisk        = 'jflte/AOSP/AOSP.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:gmillz,项目名称:DualBootPatcher,代码行数:20,代码来源:liquidsmooth.py


示例10: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^KT-SGS4-(JB|KK)4.[2-4]-TW-.*\.zip$"
file_info.name           = 'Ktoonsez TouchWiz kernel'
file_info.ramdisk        = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch

def matches(filename):
  if re.search(filename_regex, filename):
    if 'VZW' in filename or 'ATT' in filename:
      file_info.bootimg  = 'boot.lok'
      file_info.loki     = True
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:gmillz,项目名称:DualBootPatcher,代码行数:23,代码来源:ktoonsez-tw.py


示例11: FileInfo

from multiboot.fileinfo import FileInfo
import re

file_info = FileInfo()

filename_regex           = r"^Evil_UnWizzed_v[0-9]+\.zip$"
file_info.ramdisk        = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch          = 'jflte/ROMs/TouchWiz/unwizzed.dualboot.patch'

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def print_message():
  print("Detected Evil UnWizzed ROM zip")

def get_file_info():
  return file_info
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:20,代码来源:unwizzed.py


示例12: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^miui_i9505_shiro_.*\.zip$"
file_info.ramdisk        = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch
file_info.device_check   = False

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def print_message():
  print("Detected Official MIUI ROM zip")

def get_file_info():
  return file_info
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:23,代码来源:miui-official.py


示例13: FileInfo

from multiboot.fileinfo import FileInfo
import re

file_info = FileInfo()

filename_regex           = r"^.*\.img$"
file_info.ramdisk        = 'jflte/AOSP/AOSP.def'

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def print_message():
  print("Detected boot.img file")
  print("ASSUMING RAMDISK IS FOR AOSP. USE patchramdisk SCRIPT IF IT'S FOR TOUCHWIZ")

def get_file_info():
  return file_info
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:20,代码来源:bootimg.py


示例14: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

file_info.patch          = 'Other/xposed.dualboot.patch'
file_info.has_boot_image = False

def matches(filename):
  if filename == 'Xposed-Disabler-Recovery.zip':
    return True
  else:
    return False

def print_message():
  print("Detected Xposed disabler zip")

def get_file_info():
  return file_info
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:20,代码来源:xposed.py


示例15: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

att_filenames = [
  'GE-XXUEML6-18.2.zip'
]

filename_regex           = r"^GE.*\.zip$"
file_info.name           = 'GoldenEye'
file_info.ramdisk        = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch
file_info.bootimg        = 'kernel/boot.img'

def matches(filename):
  if re.search(filename_regex, filename):
    if 'ATT' in filename or filename in att_filenames:
      file_info.loki     = True
      file_info.bootimg  = 'kernel/boot.lok'
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:28,代码来源:goldeneye.py


示例16: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import multiboot.fileio as fileio
import re

file_info = FileInfo()

filename_regex           = r"^cm-.*noobdev.*.zip$"
file_info.ramdisk        = 'hammerhead/AOSP/cxl.def'
file_info.patch          = [ autopatcher.auto_patch ]
file_info.extract        = [ autopatcher.files_to_auto_patch, 'system/build.prop' ]
# ROM has built in dual boot support
file_info.configs        = [ 'all', '!dualboot' ]

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def print_message():
  print("Detected chenxiaolong's noobdev CyanogenMod ROM zip")

def get_file_info(filename = ""):
  return file_info

# My ROM has dual-boot support built in, so we'll hack around that to support
# triple, quadruple, ... boot
def multi_boot(directory, bootimg = None, device_check = True,
               partition_config = None):
  updater_script = 'META-INF/com/google/android/updater-script'
开发者ID:luisafire666,项目名称:DualBootPatcher,代码行数:31,代码来源:chenxiaolong.py


示例17: FileInfo

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
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:21,代码来源:miui.py


示例18: FileInfo

from multiboot.fileinfo import FileInfo
import re

file_info = FileInfo()

filename_regex           = r"^.*\.img$"
file_info.name           = 'boot.img'
file_info.ramdisk        = 'hammerhead/AOSP/AOSP.def'

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:wendy91,项目名称:DualBootPatcher,代码行数:17,代码来源:bootimg.py


示例19: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^aosp[0-9]+-i9505-.*\.zip$"
file_info.name           = "Broodplank's AOSP"
file_info.ramdisk        = 'jflte/AOSP/AOSP.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch

def matches(filename):
  if re.search(filename_regex, filename):
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:20,代码来源:aosp.py


示例20: FileInfo

from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

file_info.name           = 'Xposed Framework Disabler'
file_info.patch          = 'Other/xposed.dualboot.patch'
file_info.has_boot_image = False

def matches(filename):
  if filename == 'Xposed-Disabler-Recovery.zip':
    return True
  else:
    return False

def get_file_info():
  return file_info
开发者ID:KRZ-2PA,项目名称:DualBootPatcher,代码行数:18,代码来源:xposed.py



注:本文中的multiboot.fileinfo.FileInfo类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python patchinfo.PatchInfo类代码示例发布时间:2022-05-27
下一篇:
Python multiarray.dtype函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap