Merge "Throw IOException when checking if invalid target defines overlayable"

This commit is contained in:
TreeHugger Robot
2020-01-08 01:51:39 +00:00
committed by Android (Google) Code Review

View File

@@ -1154,6 +1154,10 @@ public final class OverlayManagerService extends SystemService {
throws RemoteException, IOException {
PackageInfo packageInfo = mPackageManager.getPackageInfo(targetPackageName, 0,
userId);
if (packageInfo == null) {
throw new IOException("Unable to get target package");
}
String baseCodePath = packageInfo.applicationInfo.getBaseCodePath();
ApkAssets apkAssets = null;