美文网首页
androguard 隐私调用方法分析,分析使用了哪些隐私政策权

androguard 隐私调用方法分析,分析使用了哪些隐私政策权

作者: Nebula995 | 来源:发表于2021-08-13 14:58 被阅读0次

    通过androguard分析获取如MAC地址,设备ID,IMEI信息等 代码在哪些地方被调用了

    环境

    python
    https://www.python.org
    pycharm
    https://www.jetbrains.com/pycharm/download/
    androguard
    https://androguard.readthedocs.io/en/latest/

    安装

    pip install -U androguard
    
    #启动androguard
    #: androguard analyze
    # 加载apk
     a, d, dx = AnalyzeAPK("xxxxx.apk")
    # import AnalyzeAPK 
    from androguard.misc import AnalyzeAPK
    # 循环遍历
     for meth in dx.classes['Ljava/net/NetworkInterface;'].get_methods():
                print("\nusage of method {}\n".format(meth.name))
                # 拿到改函数的引用函数
                for _, call, _ in meth.get_xref_from():
                print("usage of call {} {}".format(call.class_name,call.name))
     
    
    #输出结果
    usage of method getMacAddress
    usage of call Lcom/meizu/cloud/pushsdk/base/c; b
    usage of call Lcom/alipay/security/mobile/module/b/b; k
    usage of call Lcom/baidu/location/e/h; r
    usage of call Lcom/umeng/commonsdk/utils/UMUtils; getMac
    usage of call Lcom/meizu/cloud/pushsdk/util/MzSystemUtils; getWifiMac
    usage of call Lcom/tencent/smtt/utils/b; f
    usage of call Lcom/tencent/a/a/a/a/h; b
    usage of call Lcom/baidu/location/a/c; a
    usage of call Lcom/umeng/commonsdk/statistics/common/DeviceConfig; getMacBySystemInterface
    usage of call Lcom/baidu/lbsapi/auth/b; d
    usage of call Lcom/igexin/push/core/e; e
    usage of call Lcom/alipay/sdk/util/a; <init>
    usage of call Lcom/tencent/wxop/stat/common/r; b
    usage of call Lcom/baidu/lbsapi/auth/b; d
    usage of call Lcom/loc/p; m
    

    待完善
    感谢【https://blog.csdn.net/m0_46622598/article/details/118854019

    相关文章

      网友评论

          本文标题:androguard 隐私调用方法分析,分析使用了哪些隐私政策权

          本文链接:https://www.haomeiwen.com/subject/ayndbltx.html