mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-02-24 16:35:08 +08:00
Update bootanim.rc for magisk
This commit is contained in:
13
redroid.py
13
redroid.py
@@ -31,7 +31,7 @@ def main():
|
||||
help='Install Magisk ( Bootless )',
|
||||
action='store_true')
|
||||
# Not working
|
||||
# parser.add_argument('-h', '--install-libhoudini', dest='houdini',
|
||||
# parser.add_argument('-l', '--install-libhoudini', dest='houdini',
|
||||
# help='Install libhoudini for arm translation',
|
||||
# action='store_true')
|
||||
# Not working
|
||||
@@ -59,11 +59,12 @@ def main():
|
||||
else:
|
||||
helper.print_color(
|
||||
"WARNING: Libndk seems to work only on redroid:11.0.0", helper.bcolors.YELLOW)
|
||||
# if args.houdini and not args.installndk:
|
||||
# arch = helper.host()[0]
|
||||
# if arch == "x86" or arch == "x86_64":
|
||||
# Houdini(args.android).install()
|
||||
# dockerfile = dockerfile+"COPY houdini /\n"
|
||||
# if args.houdini and not args.ndk:
|
||||
# arch = helper.host()[0]
|
||||
# if arch == "x86" or arch == "x86_64":
|
||||
# tags.append("houdini")
|
||||
# Houdini(args.android).install()
|
||||
# dockerfile = dockerfile+"COPY houdini /\n"
|
||||
if args.magisk:
|
||||
Magisk().install()
|
||||
dockerfile = dockerfile+"COPY magisk /\n"
|
||||
|
||||
@@ -8,6 +8,16 @@ from tools.helper import bcolors, get_download_dir, print_color, run
|
||||
class Houdini(General):
|
||||
download_loc = get_download_dir()
|
||||
copy_dir = "./houdini"
|
||||
init_rc_component = """
|
||||
on early-init
|
||||
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
|
||||
|
||||
on property:ro.enable.native.bridge.exec=1
|
||||
exec -- /system/bin/sh -c "echo ':arm_exe:M::\\\\x7f\\\\x45\\\\x4c\\\\x46\\\\x01\\\\x01\\\\x01\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x02\\\\x00\\\\x28::/system/bin/houdini:P' > /proc/sys/fs/binfmt_misc/register"
|
||||
exec -- /system/bin/sh -c "echo ':arm_dyn:M::\\\\x7f\\\\x45\\\\x4c\\\\x46\\\\x01\\\\x01\\\\x01\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x03\\\\x00\\\\x28::/system/bin/houdini:P' >> /proc/sys/fs/binfmt_misc/register"
|
||||
exec -- /system/bin/sh -c "echo ':arm64_exe:M::\\\\x7f\\\\x45\\\\x4c\\\\x46\\\\x02\\\\x01\\\\x01\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x02\\\\x00\\\\xb7::/system/bin/houdini64:P' >> /proc/sys/fs/binfmt_misc/register"
|
||||
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 = {
|
||||
"11.0.0": [
|
||||
"https://github.com/supremegamers/vendor_intel_proprietary_houdini/archive/81f2a51ef539a35aead396ab7fce2adf89f46e88.zip",
|
||||
@@ -44,7 +54,7 @@ class Houdini(General):
|
||||
print_color("Copying libhoudini library files ...", bcolors.GREEN)
|
||||
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, "vendor"), dirs_exist_ok=True)
|
||||
"prebuilts"), os.path.join(self.copy_dir, "system"), dirs_exist_ok=True)
|
||||
|
||||
init_path = os.path.join(self.copy_dir, "system", "etc", "init", "houdini.rc")
|
||||
if not os.path.isfile(init_path):
|
||||
|
||||
@@ -34,20 +34,12 @@ on post-fs-data
|
||||
mkdir /sbin/.magisk/block 700
|
||||
copy /system/etc/init/magisk/config /sbin/.magisk/config
|
||||
rm /dev/.magisk_unblock
|
||||
start 7zKkuZ1ZhD
|
||||
exec u:r:su:s0 root root -- /sbin/magisk --auto-selinux --post-fs-data
|
||||
wait /dev/.magisk_unblock 40
|
||||
rm /dev/.magisk_unblock
|
||||
|
||||
service 7zKkuZ1ZhD /sbin/magisk --auto-selinux --post-fs-data
|
||||
user root
|
||||
seclabel u:r:su:s0
|
||||
oneshot
|
||||
|
||||
service wHgGlkRCtMoIQw /sbin/magisk --auto-selinux --service
|
||||
class late_start
|
||||
user root
|
||||
seclabel u:r:su:s0
|
||||
oneshot
|
||||
on zygote-start
|
||||
exec u:r:su:s0 root root -- /sbin/magisk --auto-selinux --service
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
mkdir /data/adb/magisk 755
|
||||
|
||||
Reference in New Issue
Block a user