diff --git a/stuffs/houdini.py b/stuffs/houdini.py index 57277c7..4783017 100644 --- a/stuffs/houdini.py +++ b/stuffs/houdini.py @@ -62,4 +62,5 @@ on property:ro.enable.native.bridge.exec=1 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) \ No newline at end of file + initfile.write(self.init_rc_component) + os.chmod(init_path, 0o644) diff --git a/stuffs/magisk.py b/stuffs/magisk.py index 34a7d7c..999f7c8 100644 --- a/stuffs/magisk.py +++ b/stuffs/magisk.py @@ -89,7 +89,4 @@ on property:init.svc.zygote=stopped with open(bootanim_path, "w") as initfile: initfile.write(self.oringinal_bootanim+self.bootanim_component) - - - - + os.chmod(bootanim_path, 0o644) diff --git a/stuffs/ndk.py b/stuffs/ndk.py index a59befb..7ea99b1 100644 --- a/stuffs/ndk.py +++ b/stuffs/ndk.py @@ -34,7 +34,8 @@ class Ndk(General): print_color("Copying libndk library files ...", bcolors.GREEN) shutil.copytree(os.path.join(self.extract_to, "vendor_google_proprietary_ndk_translation-prebuilt-181d9290a69309511185c4417ba3d890b3caaaa8", "prebuilts"), os.path.join(self.copy_dir, "system"), dirs_exist_ok=True) - # init_path = os.path.join(self.copy_dir, "system", "etc", "init", "libndk.rc") + init_path = os.path.join(self.copy_dir, "system", "etc", "init", "ndk_translation.rc") + os.chmod(init_path, 0o644) # if not os.path.isfile(init_path): # os.makedirs(os.path.dirname(init_path), exist_ok=True) # with open(init_path, "w") as initfile: diff --git a/stuffs/widevine.py b/stuffs/widevine.py index 3af1be9..6e9aee0 100644 --- a/stuffs/widevine.py +++ b/stuffs/widevine.py @@ -59,3 +59,7 @@ class Widevine(General): os.path.join(self.copy_dir, "vendor", "lib", "libprotobuf-cpp-lite.so")) os.symlink("./libprotobuf-cpp-lite-3.9.1.so", os.path.join(self.copy_dir, "vendor", "lib64", "libprotobuf-cpp-lite.so")) + + for file in os.listdir(os.path.join(self.copy_dir, "vendor", "etc", "init")): + if file.endswith('.rc'): + os.chmod(os.path.join(self.copy_dir, "vendor", "etc", "init", file), 0o644) \ No newline at end of file