Java tutorial
//package com.java2s; import java.lang.reflect.Method; import android.content.Context; import android.content.pm.PackageManager; public class Main { public static String[] getRevokedPerms(String packageName, Context ctx) { String[] revokedPerms = null; PackageManager pkgManager = ctx.getPackageManager(); Method getRevokedPermissions; try { getRevokedPermissions = pkgManager.getClass().getMethod("getRevokedPermissions", java.lang.String.class); Object[] params = new Object[] { packageName }; revokedPerms = (String[]) getRevokedPermissions.invoke(pkgManager, params); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return revokedPerms; } }