mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-11-25 22:25:22 +08:00
houdini:update rc and use hack file to pass namespace error
redroid:enable houdini with args dl link: android11 -> wsa android12 -> wsa12.1 android13 -> wsa13 android14/15 -> chromeos volteer
This commit is contained in:
1 parent
1be5944213
commit
0026c7996a
3 files changed
+67
-5
No files matched your search
@@ -0,0 +1,32 @@
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
from stuff.general import General
|
||||
from tools.helper import bcolors, get_download_dir, print_color, run
|
||||
|
||||
|
||||
class Houdini_Hack(General):
|
||||
download_loc = get_download_dir()
|
||||
copy_dir = "./houdini"
|
||||
dl_file_name = os.path.join(download_loc, "libhoudini_hack.zip")
|
||||
extract_to = "/tmp/houdinihackunpack"
|
||||
|
||||
def __init__(self, version):
|
||||
self.version = version
|
||||
self.dl_link = "https://github.com/rote66/redroid_libhoudini_hack/archive/07712bdd32c1ac487d89bf3d03b2b258d0d47fc0.zip"
|
||||
self.act_md5 = "873c8b01165506b8def921d9f7b7dc89"
|
||||
|
||||
def download(self):
|
||||
print_color("Downloading libhoudini_hack now .....", bcolors.GREEN)
|
||||
super().download()
|
||||
|
||||
def copy(self):
|
||||
run(["chmod", "+x", self.extract_to, "-R"])
|
||||
|
||||
print_color("Copying libhoudini hack files ...", bcolors.GREEN)
|
||||
name = re.findall("([a-zA-Z0-9]+)\.zip", self.dl_link)[0]
|
||||
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)
|
||||
Reference in new issue
Block a user