需要检查文件是否为有效的APK [英] need to check if file is a valid APK

查看:172
本文介绍了需要检查文件是否为有效的APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个允许最终用户上传 .apk的网页文件. 我需要一个库/组件来检查上传的文件是否为有效的.apk文件. 我正在寻找的不仅仅是查看内容的功能.

I am working on a web page that will allow the end-user to upload .apk files. I need a library/component to check that the files uploaded are valid .apk files. I am looking for something more that the ability to just view the contents.

预先感谢...

推荐答案

如果需要以编程方式执行此操作,建议您尝试使用zip --check filenamedex2jar filename.就我而言,它有助于丢弃无效的apk.

If you need to do this programmatically, I suggest you to try with zip --check filename or dex2jar filename. In my case it helped to discard invalid apk.

这篇关于需要检查文件是否为有效的APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆