本文整理汇总了Python中multiboot.fileinfo.FileInfo.bootimg方法的典型用法代码示例。如果您正苦于以下问题:Python FileInfo.bootimg方法的具体用法?Python FileInfo.bootimg怎么用?Python FileInfo.bootimg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类multiboot.fileinfo.FileInfo
的用法示例。
在下文中一共展示了FileInfo.bootimg方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [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" ]
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 print_message():
print("Detected Echoe TouchWiz ROM zip")
def matches(filename):
for regex in filename_regex:
if re.search(regex, filename):
return True
return False
def get_file_info():
return file_info
示例2: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [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
示例3: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [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
示例4: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import multiboot.fileio as fileio
import re
file_info = FileInfo()
filename_regex = r"^TriForceROM[0-9\.]+\.zip$"
file_info.name = 'TriForceROM'
file_info.ramdisk = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch = [ autopatcher.auto_patch ]
file_info.extract = [ autopatcher.files_to_auto_patch,
'META-INF/com/google/android/aroma-config' ]
file_info.bootimg = "aroma/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
def fix_aroma(directory, bootimg = None, device_check = True,
partition_config = None):
aroma_config = 'META-INF/com/google/android/aroma-config'
lines = fileio.all_lines(aroma_config, directory = directory)
i = 0
while i < len(lines):
示例5: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [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
示例6: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
filename_regex = r"^PhoeniX.ROM.*\.zip$"
file_info.name = 'PhoeniX'
file_info.ramdisk = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch = autopatcher.auto_patch
file_info.extract = autopatcher.files_to_auto_patch
file_info.bootimg = 'tamirda/boot.img'
def matches(filename):
if re.search(filename_regex, filename):
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 bootimg [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import multiboot.fileio as fileio
import re
file_info = FileInfo()
filename_regex = r"^negalite-.*\.zip"
file_info.name = 'Negalite'
file_info.ramdisk = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch = [ autopatcher.auto_patch,
'jflte/ROMs/TouchWiz/negalite.dualboot.patch' ]
file_info.extract = [ autopatcher.files_to_auto_patch,
'META-INF/com/google/android/aroma-config' ]
file_info.bootimg = "kernel/stock_kernel/kernel/boot.img"
def matches(filename):
if re.search(filename_regex, filename):
return True
else:
return False
def get_file_info():
return file_info
def dont_wipe_data(directory, bootimg = None, device_check = True,
partition_config = None):
updater_script = 'META-INF/com/google/android/updater-script'
lines = fileio.all_lines(updater_script, directory = directory)
i = 0
示例8: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
filename_regex = r"^SHOstock-.*\.zip$"
file_info.name = 'SHOstock'
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.lok'
file_info.loki = True
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 bootimg [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
filename_regex = r'^EclipseTW.*\.zip$'
file_info.name = 'Eclipse TouchWiz'
file_info.ramdisk = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch = autopatcher.auto_patch
file_info.extract = autopatcher.files_to_auto_patch
file_info.loki = True
file_info.bootimg = [
'eclipse/kernels/kt/boot.lok',
'eclipse/kernels/stock/boot.lok'
]
def matches(filename):
if re.search(filename_regex, filename):
return True
return False
def get_file_info():
return file_info
示例10: FileInfo
# 需要导入模块: from multiboot.fileinfo import FileInfo [as 别名]
# 或者: from multiboot.fileinfo.FileInfo import bootimg [as 别名]
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re
file_info = FileInfo()
filename_regex = r"^touchliteGE.*\.zip$"
file_info.name = "TouchliteGE 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):
if re.search(filename_regex, filename):
return True
else:
return False
def get_file_info():
return file_info