Set label for ACCESS_SUPERUSER if the system doesn't have it yet

This commit is contained in:
Daniel Martí 2013-10-23 00:52:54 +02:00
parent 4fb720e271
commit 804496b50b

View File

@ -509,8 +509,10 @@ public class AppDetails extends ListActivity {
Permission permission = new Permission(this, permissionName);
sb.append("\t• " + permission.getName() + '\n');
} catch (NameNotFoundException e) {
Log.d( "FDroid",
"Can't find permission '" + permissionName + "'");
if (permissionName.equals("ACCESS_SUPERUSER"))
sb.append("\t• Full permissions to all device features and storage\n");
else
Log.d("FDroid", "Can't find permission "+permissionName);
}
}
sb.setLength(sb.length() - 1);