How to programmatically get the list of permissions of an Android App from Play Store URL?

ε祈祈猫儿з 提交于 2020-01-06 19:41:13

问题


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.

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?


回答1:


There is no official API for Google Play that does what you're looking for.

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.




回答2:


No easy way currently exists. See here for a longer discussion on this issue (older but still relevant): https://android.stackexchange.com/questions/20619/how-to-search-the-play-store-by-permissions/69964#69964



来源:https://stackoverflow.com/questions/12618186/how-to-programmatically-get-the-list-of-permissions-of-an-android-app-from-play

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!