Merge "Make error message readable." into tm-dev am: fadb0863d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17110250 Change-Id: I3cf56f4266fb8348bef405d8b4c636f203e449e7
This commit is contained in:
@@ -1403,7 +1403,7 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
|
||||
}
|
||||
} else {
|
||||
if (ps.getUserStateOrDefault(userId).isInstantApp() && !bp.isInstant()) {
|
||||
throw new SecurityException("Cannot grant non-ephemeral permission" + permName
|
||||
throw new SecurityException("Cannot grant non-ephemeral permission " + permName
|
||||
+ " for package " + packageName);
|
||||
}
|
||||
|
||||
@@ -3532,8 +3532,9 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
|
||||
final Boolean granted =
|
||||
SystemConfig.getInstance().getOemPermissions(pkg.getPackageName()).get(permission);
|
||||
if (granted == null) {
|
||||
throw new IllegalStateException("OEM permission" + permission + " requested by package "
|
||||
+ pkg.getPackageName() + " must be explicitly declared granted or not");
|
||||
throw new IllegalStateException("OEM permission " + permission
|
||||
+ " requested by package " + pkg.getPackageName()
|
||||
+ " must be explicitly declared granted or not");
|
||||
}
|
||||
return Boolean.TRUE == granted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user