houdini:support Android 8 - 9

This commit is contained in:
rote66
2024-12-18 23:43:41 +08:00
parent 0cc2b4cfbc
commit d36b605a35
3 changed files with 18 additions and 8 deletions

View File

@@ -86,11 +86,12 @@ def main():
helper.print_color(
"WARNING: Libndk seems to work only on redroid:11.0.0 or redroid:12.0.0", helper.bcolors.YELLOW)
if args.houdini:
if args.android in ["11.0.0", "12.0.0", "13.0.0", "14.0.0", "15.0.0"]:
if args.android in ["8.1.0", "9.0.0", "11.0.0", "12.0.0", "13.0.0", "14.0.0"]:
arch = helper.host()[0]
if arch == "x86" or arch == "x86_64":
Houdini(args.android).install()
Houdini_Hack(args.android).install()
if not args.android == "8.1.0":
Houdini_Hack(args.android).install()
dockerfile = dockerfile+"COPY houdini /\n"
tags.append("houdini")
else:

View File

@@ -27,6 +27,16 @@ on property:sys.boot_completed=1
exec -- /system/bin/sh -c "echo ':arm64_dyn:M::\\\\x7f\\\\x45\\\\x4c\\\\x46\\\\x02\\\\x01\\\\x01\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x03\\\\x00\\\\xb7::/system/bin/houdini64:P' >> /proc/sys/fs/binfmt_misc/register"
"""
dl_links = {
# 8.1.0 from cros R79 Android N not working
# "8.1.0":[
# "https://github.com/rote66/vendor_intel_proprietary_houdini/archive/9246014ddf22d5e34f294d726dc48ca446b0e20e.zip",
# "b0a9ddc0d817d290a15b132091a37f36"],
"8.1.0":[
"https://github.com/rote66/vendor_intel_proprietary_houdini/archive/46682f423b8497db3f96222f2669d770eff764c3.zip",
"cd4dd2891aa18e7699d33dcc3fe3ffd4"],
"9.0.0":[
"https://github.com/rote66/vendor_intel_proprietary_houdini/archive/46682f423b8497db3f96222f2669d770eff764c3.zip",
"cd4dd2891aa18e7699d33dcc3fe3ffd4"],
"11.0.0": [
"https://github.com/supremegamers/vendor_intel_proprietary_houdini/archive/81f2a51ef539a35aead396ab7fce2adf89f46e88.zip",
"fbff756612b4144797fbc99eadcb6653"],
@@ -46,8 +56,6 @@ on property:sys.boot_completed=1
# "15.0.0": [
# "https://github.com/rote66/vendor_intel_proprietary_houdini/archive/740353bf4391969902bc80ee2a9258db18481b45.zip",
# "d4824c0c00e8fa9611e1db5124ec61f9"]
# "9.0.0":[],
# "8.1.0":[]
}
dl_file_name = os.path.join(download_loc, "libhoudini.zip")
extract_to = "/tmp/houdiniunpack"

View File

@@ -13,8 +13,8 @@ class Houdini_Hack(General):
def __init__(self, version):
self.version = version
self.dl_link = "https://github.com/rote66/redroid_libhoudini_hack/archive/c48a37c4211ef1fe3d061ef1efeabce57cb15c97.zip"
self.act_md5 = "43f93337ca4db49aa23b3e8afe3c68fb"
self.dl_link = "https://github.com/rote66/redroid_libhoudini_hack/archive/a2194c5e294cbbfdfe87e51eb9eddb4c3621d8c3.zip"
self.act_md5 = "8f71a58f3e54eca879a2f7de64dbed58"
def download(self):
print_color("Downloading libhoudini_hack now .....", bcolors.GREEN)
@@ -28,5 +28,6 @@ class Houdini_Hack(General):
shutil.copytree(os.path.join(self.extract_to, "redroid_libhoudini_hack-" + name,
self.version), os.path.join(self.copy_dir, "system"), dirs_exist_ok=True)
init_path = os.path.join(self.copy_dir, "system", "etc", "init", "hw", "init.rc")
os.chmod(init_path, 0o644)
if not self.version == "9.0.0":
init_path = os.path.join(self.copy_dir, "system", "etc", "init", "hw", "init.rc")
os.chmod(init_path, 0o644)