コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
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)
コード例 #4
0
ファイル: cxl.py プロジェクト: Kratos1982/DualBootPatcher
def patch_ramdisk(cpiofile, partition_config):
    # /raw-cache needs to always be mounted rw so OpenDelta can write to
    # /cache/recovery
    qcom.modify_fstab(cpiofile, partition_config,
                      force_cache_rw=True,
                      keep_mountpoints=True,
                      system_mountpoint='/raw-system',
                      cache_mountpoint='/raw-cache',
                      data_mountpoint='/raw-data')
コード例 #5
0
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)
コード例 #6
0
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)
コード例 #7
0
ファイル: AOSP.py プロジェクト: Kratos1982/DualBootPatcher
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')
コード例 #8
0
ファイル: AOSP.py プロジェクト: Kratos1982/DualBootPatcher
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)