コード例 #1
0
ファイル: echoe.py プロジェクト: luisafire666/DualBootPatcher
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
0
ファイル: goldeneye.py プロジェクト: KRZ-2PA/DualBootPatcher
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
0
ファイル: foxhound.py プロジェクト: KRZ-2PA/DualBootPatcher
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
0
ファイル: triforce.py プロジェクト: KRZ-2PA/DualBootPatcher
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
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"^[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
0
ファイル: phoenix.py プロジェクト: KRZ-2PA/DualBootPatcher
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
0
ファイル: adam.py プロジェクト: KRZ-2PA/DualBootPatcher
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^.*_AdamKernel.V[0-9\.]+\.CWM\.zip$"
file_info.name           = 'Adam kernel'
file_info.ramdisk        = 'jflte/TouchWiz/TouchWiz.def'
file_info.patch          = autopatcher.auto_patch
file_info.extract        = autopatcher.files_to_auto_patch
file_info.bootimg        = "wanam/boot.img"

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

def get_file_info():
  return file_info
コード例 #8
0
ファイル: negalite.py プロジェクト: KRZ-2PA/DualBootPatcher
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
ファイル: shostock.py プロジェクト: gmillz/DualBootPatcher
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
コード例 #10
0
ファイル: eclipse.py プロジェクト: gmillz/DualBootPatcher
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
コード例 #11
0
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
コード例 #12
0
ファイル: skyfall.py プロジェクト: gmillz/DualBootPatcher
from multiboot.fileinfo import FileInfo
import multiboot.autopatcher as autopatcher
import re

file_info = FileInfo()

filename_regex           = r"^SF-.*\.zip$"
file_info.name           = 'SkyFall'
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.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