support a13 image
This commit is contained in:
+25
-15
@@ -8,8 +8,12 @@ from tools.logger import Logger
|
||||
|
||||
class Houdini(General):
|
||||
partition = "system"
|
||||
dl_link = "https://github.com/supremegamers/vendor_intel_proprietary_houdini/archive/81f2a51ef539a35aead396ab7fce2adf89f46e88.zip"
|
||||
act_md5 = "fbff756612b4144797fbc99eadcb6653"
|
||||
dl_links = {
|
||||
"11": ["https://github.com/supremegamers/vendor_intel_proprietary_houdini/archive/81f2a51ef539a35aead396ab7fce2adf89f46e88.zip", "fbff756612b4144797fbc99eadcb6653"],
|
||||
"13": ["https://github.com/supremegamers/vendor_intel_proprietary_houdini/archive/978d8cba061a08837b7e520cd03b635af643ba08.zip", "1e139054c05034648fae58a1810573b4"]
|
||||
}
|
||||
act_md5 = ...
|
||||
dl_link = ...
|
||||
dl_file_name = "libhoudini.zip"
|
||||
extract_to = "/tmp/houdiniunpack"
|
||||
init_rc_component = """
|
||||
@@ -32,17 +36,22 @@ on property:ro.enable.native.bridge.exec=1
|
||||
"ro.dalvik.vm.isa.arm64": "x86_64"
|
||||
}
|
||||
files = [
|
||||
"bin/arm",
|
||||
"bin/arm64",
|
||||
"bin/houdini",
|
||||
"bin/houdini64",
|
||||
"etc/binfmt_misc",
|
||||
"etc/init/houdini.rc",
|
||||
"lib/arm",
|
||||
"lib/libhoudini.so",
|
||||
"lib64/arm64",
|
||||
"lib64/libhoudini.so"
|
||||
]
|
||||
"bin/arm",
|
||||
"bin/arm64",
|
||||
"bin/houdini",
|
||||
"bin/houdini64",
|
||||
"etc/binfmt_misc",
|
||||
"etc/init/houdini.rc",
|
||||
"lib/arm",
|
||||
"lib/libhoudini.so",
|
||||
"lib64/arm64",
|
||||
"lib64/libhoudini.so"
|
||||
]
|
||||
|
||||
def __init__(self, android_version="11") -> None:
|
||||
super().__init__()
|
||||
self.dl_link = self.dl_links[android_version][0]
|
||||
self.act_md5 = self.dl_links[android_version][1]
|
||||
|
||||
def copy(self):
|
||||
run(["chmod", "+x", self.extract_to, "-R"])
|
||||
@@ -50,9 +59,10 @@ on property:ro.enable.native.bridge.exec=1
|
||||
name = re.findall("([a-zA-Z0-9]+)\.zip", self.dl_link)[0]
|
||||
shutil.copytree(os.path.join(self.extract_to, "vendor_intel_proprietary_houdini-" + name,
|
||||
"prebuilts"), os.path.join(self.copy_dir, self.partition), dirs_exist_ok=True)
|
||||
init_path = os.path.join(self.copy_dir, self.partition, "etc", "init", "houdini.rc")
|
||||
init_path = os.path.join(
|
||||
self.copy_dir, self.partition, "etc", "init", "houdini.rc")
|
||||
if not os.path.isfile(init_path):
|
||||
os.makedirs(os.path.dirname(init_path), exist_ok=True)
|
||||
with open(init_path, "w") as initfile:
|
||||
initfile.write(self.init_rc_component)
|
||||
initfile.write(self.init_rc_component)
|
||||
os.chmod(init_path, 0o644)
|
||||
|
||||
Reference in New Issue
Block a user