apk.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:ave 作者: sonyxperiadev 项目源码 文件源码
def t1(w):
    pretty = '%s t1' % __file__
    print(pretty)
    root_path = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir)
    rel_path = os.path.join(root_path, "handset/jobs/tests/testdata/galatea-v-1.apk")
    apk_path = os.path.abspath(rel_path)
    if not apk_path:
        print('FAIL %s: could not download apk' % pretty)
        return False

    try:
        package_name = w.get_package_name(apk_path) # apk
        if not package_name:
            print(
                'FAIL %s: Could not get package name of apk: %s'
                % (pretty, apk_path)
            )
            return False
    except Exception, e:
        print('FAIL %s: %s' % (pretty, str(e)))
        return False

    return True

# check that get_aapt_path return an existing path
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号