Here you can find the source of getRevokedPerms(String packageName, Context ctx)
public static String[] getRevokedPerms(String packageName, Context ctx)
//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 {/*from www . j a va 2 s . c o m*/ 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; } }