美文网首页
aardio 获取安卓Apk包名等信息

aardio 获取安卓Apk包名等信息

作者: 刺猬定制脚本软件 | 来源:发表于2020-04-05 15:14 被阅读0次

    //获取APK包名等信息

    import console;

    getPackageName=function(apkPath){

    import process.popen;

    var aaptPath="D:\Changzhi\dnplayer2\aapt.exe"//雷电模拟器

    var cmd=" dump badging "++apkPath

    var subprocess = ..process.popen(aaptPath,cmd)

        var str = subprocess.read()

        subprocess.close();

        //console.log(str)

        m,n,packageName=string.find(str,"name='(.+?)'")

    //console.log(m,n,packageName)

    if(m>0){

    return packageName;

    }else {

    return false

    }

    }

    console.log(getPackageName("D:\桌面\QQ.apk"))

    console.pause()

    相关文章

      网友评论

          本文标题:aardio 获取安卓Apk包名等信息

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