Пример #1
0
def zipalign(apk_path):
    output_apk_name = os.path.splitext(
        os.path.basename(apk_path))[0] + '_aligned.apk'
    retcode, msg = star.runcmd2([
        PathManager.get_zipaligin_tool_path(), '-f', '4', apk_path,
        os.path.join(Utils.getparent(apk_path), output_apk_name)
    ])
    if retcode == 0:
        print('zipalign successed')
    return retcode, msg