def patch_ramdisk(cpiofile, partition_config): global version if cpiofile.get_file('MSM8960_lpm.rc') is not None: version = 'jb43' else: version = 'kk44' qcom.modify_init_rc(cpiofile) modify_init_rc(cpiofile) qcom.modify_init_qcom_rc(cpiofile) qcom.modify_fstab(cpiofile, partition_config) qcom.modify_init_target_rc(cpiofile) modify_init_target_rc(cpiofile) modify_MSM8960_lpm_rc(cpiofile) modify_ueventd_rc(cpiofile) modify_ueventd_qcom_rc(cpiofile) # Samsung's init binary is pretty screwed up if version == 'kk44': newinit = os.path.join(OS.ramdiskdir, 'init', 'jflte', 'tw44-init') cpiofile.add_file(newinit, name='init', perms=0o755) newinit = os.path.join(OS.ramdiskdir, 'init', 'jflte', 'tw44-adbd') cpiofile.add_file(newinit, name='sbin/adbd', perms=0o755) mountscript = os.path.join(OS.ramdiskdir, 'jflte', 'TouchWiz', 'mount.modem.sh') cpiofile.add_file(mountscript, name='init.additional.sh', perms=0o755)
def patch_ramdisk(cpiofile, partition_config): qcom.modify_init_rc(cpiofile) qcom.modify_init_qcom_rc(cpiofile) apnhlos, mdm = qcom.modify_fstab(cpiofile, partition_config) qcom.modify_init_target_rc(cpiofile, insert_apnhlos=apnhlos, insert_mdm=mdm)
def patch_ramdisk(cpiofile, partition_config): qcom.modify_init_rc(cpiofile) qcom.modify_init_qcom_rc(cpiofile) qcom.modify_fstab(cpiofile, partition_config, additional=['gpe-fstab.qcom']) qcom.modify_init_target_rc(cpiofile)
def patch_ramdisk(cpiofile, partition_config): global version if cpiofile.get_file('MSM8960_lpm.rc') is not None: version = 'jb43' else: version = 'kk44' qcom.modify_init_rc(cpiofile) modify_init_rc(cpiofile) qcom.modify_init_qcom_rc(cpiofile, additional=['init.jgedlte.rc']) qcom.modify_fstab(cpiofile, partition_config) qcom.modify_init_target_rc(cpiofile) modify_MSM8960_lpm_rc(cpiofile) # Samsung's init binary is pretty screwed up if version == 'kk44': newinit = os.path.join(OS.ramdiskdir, 'init', 'init-kk44') cpiofile.add_file(newinit, name='init', perms=0o755)
def patch_ramdisk(cpiofile, partition_config): qcom.modify_init_rc(cpiofile) qcom.modify_fstab(cpiofile, partition_config) qcom.modify_init_target_rc(cpiofile, filename='init.g2.rc')