change rc permission to 644
This commit is contained in:
parent
43d8cfb18d
commit
0b2afba187
4 changed files with 8 additions and 0 deletions
|
|
@ -55,3 +55,4 @@ on property:ro.enable.native.bridge.exec=1
|
|||
os.makedirs(os.path.dirname(init_path), exist_ok=True)
|
||||
with open(init_path, "w") as initfile:
|
||||
initfile.write(self.init_rc_component)
|
||||
os.chmod(init_path, 0o644)
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ on property:init.svc.zygote=stopped
|
|||
f_gz.write(self.oringinal_bootanim.encode('utf-8'))
|
||||
with open(bootanim_path, "w") as initfile:
|
||||
initfile.write(self.oringinal_bootanim+self.bootanim_component)
|
||||
os.chmod(bootanim_path, 0o644)
|
||||
|
||||
|
||||
# Delete the contents of upperdir
|
||||
|
|
|
|||
|
|
@ -40,4 +40,6 @@ class Ndk(General):
|
|||
run(["chmod", "+x", self.extract_to, "-R"])
|
||||
Logger.info("Copying libndk library files ...")
|
||||
shutil.copytree(os.path.join(self.extract_to, "vendor_google_proprietary_ndk_translation-prebuilt-181d9290a69309511185c4417ba3d890b3caaaa8", "prebuilts"), os.path.join(self.copy_dir, self.partition), dirs_exist_ok=True)
|
||||
init_path = os.path.join(self.copy_dir, self.partition, "etc", "init", "ndk_translation.rc")
|
||||
os.chmod(init_path, 0o644)
|
||||
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue