change rc permission to 644

This commit is contained in:
Rikka
2023-04-11 15:14:42 +08:00
parent b8469bed52
commit dd9cd6c3a4
4 changed files with 9 additions and 6 deletions

View File

@@ -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)
initfile.write(self.init_rc_component)
os.chmod(init_path, 0o644)

View File

@@ -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)

View File

@@ -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:

View File

@@ -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)