Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be4903ec authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't throw a runtime exception in getPackageInfo."

parents 15ef4920 471817fa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3941,13 +3941,13 @@ public class PackageManagerService extends IPackageManager.Stub
                if (apex != null) {
                    try {
                        final ApexInfo activePkg = apex.getActivePackage(packageName);
                        if (activePkg != null) {
                        if (activePkg != null && !TextUtils.isEmpty(activePkg.packagePath)) {
                            try {
                                return PackageParser.generatePackageInfoFromApex(
                                        new File(activePkg.packagePath), true /* collect certs */);
                            } catch (PackageParserException pe) {
                                throw new IllegalStateException("Unable to parse: " + activePkg,
                                        pe);
                                Log.e(TAG, "Unable to parse package at "
                                        + activePkg.packagePath, pe);
                            }
                        }
                    } catch (RemoteException e) {