本文整理汇总了Python中multiboot.fileinfo.FileInfo.name方法的典型用法代码示例。如果您正苦于以下问题:Python FileInfo.name方法的具体用法?Python FileInfo.name怎么用?Python FileInfo.name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类multiboot.fileinfo.FileInfo
的用法示例。
在下文中一共展示了FileInfo.name方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
filename_regex = r"^aokp_.*\.zip$"
file_info.name = 'AOKP'
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
示例2: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例3: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例4: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例5: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例6: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例7: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
filename_regex = r"^KT-SGS4-[^-]+-AOSP-.*\.zip$"
file_info.name = 'Ktoonsez AOSP kernel'
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):
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
示例8: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例9: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例10: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
# Didn't check Illusion
# Just so I don't need to redownload, illusion filenames:
# Echoe_Illusion_RomTHEMED_v7_09Nov_Vzw_v2.zip
# AT&T_Echoe_Illusion_Rom_v7_09Nov.zip
filename_regex = [ r"^Echoe[ _]?(Rom|SLIM).*\.zip$",
r"^S4_Echoe.*\.zip",
'Echoe_v14.*\.zip',
'Echoe_v17.*\.zip' ]
file_info.name = 'Echoe TouchWiz'
file_info.ramdisk = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch = autopatcher.auto_patch
file_info.extract = autopatcher.files_to_auto_patch
file_info.bootimg = 'boot.img'
def matches(filename):
for regex in filename_regex:
if re.search(regex, filename):
return True
return False
def get_file_info(filename = ""):
if 'Echoe_v17' in filename:
file_info.bootimg = [
'EchoeExtras/kernel/echoe1/boot.img',
'EchoeExtras/kernel/echoe2/boot.img',
示例11: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例12: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
from multiboot.autopatchers.jflte import GoogleEditionPatcher
import re
file_info = FileInfo()
filename_regex = r"^Echoe_KitKat.*\.zip$"
file_info.name = 'Echoe 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():
return file_info
示例13: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
file_info = FileInfo()
file_info.name = "geiti94's HTC Sense 5 port"
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 filename.lower() == "sense5port.zip" or filename == "4.3 official port.zip" or filename == "ALPHA V1.5.zip":
return True
else:
return False
def get_file_info():
return file_info
示例14: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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
示例15: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import name [as 别名]
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.name = "doomed151'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