阅读android手机中已安装的应用程序的权限? [英] Read permission of installed Application in android phone?
本文介绍了阅读android手机中已安装的应用程序的权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用编程读取安装在android手机中的其他应用程序的权限.
I want to read permission of other applications installed in my android mobile using programming.
我认为 Android Cleaner 具有以下权限:其他应用程序并显示详细信息,例如
I think Android Cleaner read permission of other apps and display details like
我想获得像这张图一样的细节.
I want get detail like this Image.
在此提供了广告网络
我如何在我的应用程序中获取类似此应用程序的详细信息?
How i get details like this app in my app?
如果该应用未获得读取权限",那么它如何操作?
推荐答案
好了,您可以为给定的应用抓取playstore应用页面,并获取所需的权限:)
Well you can scrape the playstore app page for a given app and get the permissions it needs :)
那只是我的头上.请注意,您可以执行以下操作:
Well that's just off the top of my head. On a serious note, you can do the following:
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
List appsList = getPackageManager().queryIntentActivities(intent, 0);
for (Object app : appsList) {
ResolveInfo resolveInfo = (ResolveInfo) app;
PackageInfo packageInfo = null;
try {
packageInfo = getPackageManager().getPackageInfo(resolveInfo.activityInfo.packageName, PackageManager.GET_PERMISSIONS);
} catch (NameNotFoundException ex) {
ex.printStackTrace();
}
String[] requestedPermissions = packageInfo.requestedPermissions;
}
这篇关于阅读android手机中已安装的应用程序的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文