Guard against apps with no permissions
am: 01a4491600
* commit '01a44916003ebdff399406405548c6058b114c5a':
Guard against apps with no permissions
This commit is contained in:
@@ -914,6 +914,9 @@ public class InstalledAppDetails extends AppInfoBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasPermission(String permission) {
|
private boolean hasPermission(String permission) {
|
||||||
|
if (mPackageInfo.requestedPermissions == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (int i = 0; i < mPackageInfo.requestedPermissions.length; i++) {
|
for (int i = 0; i < mPackageInfo.requestedPermissions.length; i++) {
|
||||||
if (mPackageInfo.requestedPermissions[i].equals(permission)) {
|
if (mPackageInfo.requestedPermissions[i].equals(permission)) {
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user