mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-11-25 22:25:22 +08:00
change rc permission to 644
This commit is contained in:
1 parent
b8469bed52
commit
dd9cd6c3a4
4 files changed
+9
-6
No files matched your search
+2
-1
@@ -62,4 +62,5 @@ on property:ro.enable.native.bridge.exec=1
|
|||||||
if not os.path.isfile(init_path):
|
if not os.path.isfile(init_path):
|
||||||
os.makedirs(os.path.dirname(init_path), exist_ok=True)
|
os.makedirs(os.path.dirname(init_path), exist_ok=True)
|
||||||
with open(init_path, "w") as initfile:
|
with open(init_path, "w") as initfile:
|
||||||
initfile.write(self.init_rc_component)
|
initfile.write(self.init_rc_component)
|
||||||
|
os.chmod(init_path, 0o644)
|
||||||
+1
-4
@@ -89,7 +89,4 @@ on property:init.svc.zygote=stopped
|
|||||||
with open(bootanim_path, "w") as initfile:
|
with open(bootanim_path, "w") as initfile:
|
||||||
initfile.write(self.oringinal_bootanim+self.bootanim_component)
|
initfile.write(self.oringinal_bootanim+self.bootanim_component)
|
||||||
|
|
||||||
|
os.chmod(bootanim_path, 0o644)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+2
-1
@@ -34,7 +34,8 @@ class Ndk(General):
|
|||||||
print_color("Copying libndk library files ...", bcolors.GREEN)
|
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)
|
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):
|
# if not os.path.isfile(init_path):
|
||||||
# os.makedirs(os.path.dirname(init_path), exist_ok=True)
|
# os.makedirs(os.path.dirname(init_path), exist_ok=True)
|
||||||
# with open(init_path, "w") as initfile:
|
# 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.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,
|
os.symlink("./libprotobuf-cpp-lite-3.9.1.so", os.path.join(self.copy_dir,
|
||||||
"vendor", "lib64", "libprotobuf-cpp-lite.so"))
|
"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