Is there anyway in android sdk where they provide information for a specific resolution? As with google, whenever you click on a permission, you can read what that permission does. I have this function to return me specific permissions for the application
public static List<String> getAppPermissions(Context context, String packageName) { try { PackageInfo info = context.getPackageManager().getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); return Arrays.asList(info.requestedPermissions); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); return new ArrayList<>(); } }
By this code, I get only permission names, but I'm wondering if there are any api that return permissions and their data.
source share