如何以编程方式从Play商店网址获取Android应用的权限列表? [英] How to programmatically get the list of permissions of an Android App from Play Store URL?
问题描述
我想从现有Android应用的程序包名称(或Google Play商店URL)开始(例如,
I would like to start with the package name (or google play store URL) of an existing Android app (e.g., https://play.google.com/store/apps/details?id=com.google.android.gm), and programmatically obtain the list of permissions it asks for.
在使用上述URL上权限"选项卡上的HTML代码上的JSoup之前,我想知道是否存在一种更简洁的方法.例如,是否有JSON API?
Before I go using JSoup on the HTML code on the "Permissions" tab on the above URL, I wanted to know if a cleaner way exists. Is there, for example, a JSON API for this?
推荐答案
没有Google Play的官方API可以满足您的需求.
There is no official API for Google Play that does what you're looking for.
但是,您似乎可以使用这个非官方的API,尽管它似乎已经被放弃了:
You might, however, be able to use this unofficial API, although it does seems to have been abandoned:
http://code.google.com/p/android-market-api /
我认为您最好的选择可能是获取源代码,对其进行解析并祈祷它不会中断.
I think your best option is possibly to fetch the source code, parse it and pray that it doesn't break.
这篇关于如何以编程方式从Play商店网址获取Android应用的权限列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!