mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-02-24 16:35:08 +08:00
change rc permission to 644
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user