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

Commit 411f31c8 authored by Mohammad Islam's avatar Mohammad Islam Committed by Gerrit Code Review
Browse files

Merge "Append root cause with error message while parsing APEX"

parents d4b7104f 6a051228
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -203,7 +203,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
@@ -221,7 +221,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
@@ -283,7 +284,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);