Can anyone help me to get the permissions of an application. I would like to print the permissions, an application contains.
Please its urgent.
Im trying this, but getting null value only.
- Code: Select all
PackageManager packageManager = getPackageManager();
List<PackageInfo> packs =
packageManager.getInstalledPackages(0);
int size = packs.size();
for (int i = 0; i < size; i++)
{
p = packs.get(i);
PermissionInfo permList = new ArrayList<PermissionInfo[]>();
permList.add(p.permissions);
}
and in manifest.xml file i added the following
- Code: Select all
<uses-permission android:name="android.permission.GET_PERMISSIONS"/>
Please help me to solve the issue,.
Thanks in advance.


