Merge "USB: Adjust exception message in dealing with permission check" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9ca7052183
@@ -689,8 +689,10 @@ class UsbUserPermissionManager {
|
||||
try {
|
||||
ApplicationInfo aInfo = mContext.getPackageManager().getApplicationInfo(packageName, 0);
|
||||
if (aInfo.uid != uid) {
|
||||
throw new IllegalArgumentException("package " + packageName
|
||||
Slog.w(TAG, "package " + packageName
|
||||
+ " does not match caller's uid " + uid);
|
||||
throw new IllegalArgumentException("package " + packageName
|
||||
+ " not found");
|
||||
}
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
throw new IllegalArgumentException("package " + packageName + " not found");
|
||||
|
||||
Reference in New Issue
Block a user