Пример #1
0
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^Kernel-Alucard.*AOSP.*\.zip$"
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 print_message():
  print("Detected Alucard AOSP kernel zip")

def get_file_info():
  return file_info
Пример #2
0
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
Пример #3
0
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
0
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
Пример #5
0
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
Пример #6
0
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
Пример #7
0
from multiboot.fileinfo import FileInfo

file_info = FileInfo()

file_info.ramdisk        = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch          = 'jflte/ROMs/TouchWiz/intrinsic-20130806.dualboot.patch'

def matches(filename):
  if filename == "iNTriNsiC 8-6-13.zip":
    return True
  else:
    return False

def print_message():
  print("Detected iNTriNsiC 20130806 ROM zip")

def get_file_info():
  return file_info
Пример #8
0
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
Пример #9
0
from multiboot.fileinfo import FileInfo
import re

file_info = FileInfo()

filename_regex           = r"^ChronicKernel-(JB4.3|KK4.4)-AOSP-.*\.zip$"
file_info.name           = 'ChronicKernel'
file_info.ramdisk        = 'jflte/AOSP/AOSP.def'
file_info.patch          = 'jflte/Kernels/AOSP/chronickernel.dualboot.patch'

def matches(filename):
  if re.search(filename_regex, filename):
    if 'VZW' in filename or 'ATT' in filename:
      file_info.loki     = True
      file_info.bootimg  = 'boot.lok'
      file_info.patch    = 'jflte/Kernels/AOSP/chronickernel-loki.dualboot.patch'
    return True
  else:
    return False

def get_file_info():
  return file_info
Пример #10
0
from multiboot.fileinfo import FileInfo
import re

file_info = FileInfo()

filename_regex           = r"^ComaDose_V[0-9\.]+_Cossbreeder_[0-9\.]+\.zip"
file_info.name           = 'ComaDose'
file_info.patch          = 'jflte/Other/comadose.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