ApkParser.zip

上传者: 36586138 | 上传时间: 2022-07-20 10:04:13 | 文件大小: 42KB | 文件类型: ZIP
把压缩文件解压到目录下,更新命名空间 $filename = 'benben.apk';//apk所在的路径地址 $apkParser = new Parser($filename); $apkParser->getManifest()->getPackageName(); //获取apk包名 $apkParser->getManifest()->getVersionCode(); //获取apk版本号 $apkParser->getManifest()->getVersionName(); //获取apk版本名称 $apkParser->getManifest()->getMinSdk(); // 支持最低sdk的平台 $apkParser->getManifest()->getMinSdkLevel(); // 支持最低sdk的版本 $apkParser->getManifest()->getTargetSdk(); // 目标Sdk的平台 $apkParser->getManifest()->getTargetSdkLevel(); //目标sdk的版本 $labelIndex = $apkParser->getManifest()->getApplication()->getLabel(); //获取应用名称的索引 $r = $apkParser->getResources($labelIndex); //获取应用名称的数组 dd($r); $iconIndex = $apkParser->getManifest()->getApplication()->getIcon();//获取图标的索引 $icons = $apkParser->getResources($iconIndex); //获取图标路径的数组 file_put_contents('保存icon图标的全路径名.png', stream_get_contents($apkParser->getStream($icons[0]))); //把第1个图标转为流后保存到相应 dd($icons);

文件下载

资源详情

[{"title":"( 20 个子文件 42KB ) ApkParser.zip","children":[{"title":"ApkParser","children":[{"title":"Archive.php <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"Manifest.php <span style='color:#111;'> 54.55KB </span>","children":null,"spread":false},{"title":"Dex","children":null,"spread":false},{"title":"ResourcesParser.php <span style='color:#111;'> 14.22KB </span>","children":null,"spread":false},{"title":"SeekableStream.php <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"Stream.php <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"Utils.php <span style='color:#111;'> 745B </span>","children":null,"spread":false},{"title":"Exceptions","children":[{"title":"XmlParserException.php <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"StreamNotFoundException.php <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"FileNotFoundException.php <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"ApkException.php <span style='color:#111;'> 330B </span>","children":null,"spread":false}],"spread":true},{"title":"Activity.php <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"Config.php <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"AndroidPlatform.php <span style='color:#111;'> 6.90KB </span>","children":null,"spread":false},{"title":"Application.php <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"IntentFilter.php <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"ManifestXmlElement.php <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"Parser.php <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"Xml.php <span style='color:#111;'> 323B </span>","children":null,"spread":false},{"title":"XmlParser.php <span style='color:#111;'> 109.06KB </span>","children":null,"spread":false},{"title":"lang","children":[{"title":"en.permissions.json <span style='color:#111;'> 27.83KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明