change rc permission to 644

This commit is contained in:
Rikka
2023-05-27 16:55:28 +08:00
parent 43d8cfb18d
commit 0b2afba187
4 changed files with 8 additions and 0 deletions
+4
View File
@@ -35,3 +35,7 @@ class Widevine(General):
Logger.info("Copying widevine library files ...")
shutil.copytree(os.path.join(self.extract_to, "vendor_google_proprietary_widevine-prebuilt-"+name,
"prebuilts"), os.path.join(self.copy_dir, self.partition), dirs_exist_ok=True)
for file in os.listdir(os.path.join(self.copy_dir, self.partition, "etc", "init")):
if file.endswith('.rc'):
os.chmod(os.path.join(self.copy_dir, self.partition, "etc", "init", file), 0o644)