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

Commit de4d7421 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Append root cause with error message while parsing APEX" am:...

Merge "Merge "Append root cause with error message while parsing APEX" am: 411f31c8 am: 227d69ec am: 4825a02c" into sc-dev
parents 36e23d34 27414445
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ public class StagingManager {
            newSigningDetails = ApkSignatureVerifier.verify(apexPath, minSignatureScheme);
        } catch (PackageParserException e) {
            throw new PackageManagerException(SessionInfo.STAGED_SESSION_VERIFICATION_FAILED,
                    "Failed to parse APEX package " + apexPath, e);
                    "Failed to parse APEX package " + apexPath + " : " + e, e);
        }

        // Get signing details of the existing package
@@ -232,7 +232,8 @@ public class StagingManager {
                existingApexPkg.applicationInfo.sourceDir, SignatureSchemeVersion.JAR);
        } catch (PackageParserException e) {
            throw new PackageManagerException(SessionInfo.STAGED_SESSION_VERIFICATION_FAILED,
                    "Failed to parse APEX package " + existingApexPkg.applicationInfo.sourceDir, e);
                    "Failed to parse APEX package " + existingApexPkg.applicationInfo.sourceDir
                            + " : " + e, e);
        }

        // Verify signing details for upgrade
@@ -291,7 +292,7 @@ public class StagingManager {
                }
            } catch (PackageParserException e) {
                throw new PackageManagerException(SessionInfo.STAGED_SESSION_VERIFICATION_FAILED,
                        "Failed to parse APEX package " + apexInfo.modulePath, e);
                        "Failed to parse APEX package " + apexInfo.modulePath + " : " + e, e);
            }
            final PackageInfo activePackage = mApexManager.getPackageInfo(packageInfo.packageName,
                    ApexManager.MATCH_ACTIVE_PACKAGE);