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); Permission permission = new Permission(this, permissionName);
sb.append("\t• " + permission.getName() + '\n'); sb.append("\t• " + permission.getName() + '\n');
} catch (NameNotFoundException e) { } catch (NameNotFoundException e) {
Log.d( "FDroid", if (permissionName.equals("ACCESS_SUPERUSER"))
"Can't find permission '" + permissionName + "'"); 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); sb.setLength(sb.length() - 1);