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

Commit 6044d6cc authored by Todd Kennedy's avatar Todd Kennedy
Browse files

reflect errors to child package

Change-Id: I387b7dc4729b099a4064fbe10e9d949a8a7c340c
Fixes: 63055904
Test: install test and see that the system server does not restart
Test: adb install -r -g out/target/product/sailfish/data/app/FrameworkCoreTests_install_multi_package/FrameworkCoreTests_install_multi_package.apk
parent 52ec4283
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -16933,12 +16933,20 @@ public class PackageManagerService extends IPackageManager.Stub
        public void setError(String msg, PackageParserException e) {
            setReturnCode(e.error);
            setReturnMessage(ExceptionUtils.getCompleteMessage(msg, e));
            final int childCount = (addedChildPackages != null) ? addedChildPackages.size() : 0;
            for (int i = 0; i < childCount; i++) {
                addedChildPackages.valueAt(i).setError(msg, e);
            }
            Slog.w(TAG, msg, e);
        }
        public void setError(String msg, PackageManagerException e) {
            returnCode = e.error;
            setReturnMessage(ExceptionUtils.getCompleteMessage(msg, e));
            final int childCount = (addedChildPackages != null) ? addedChildPackages.size() : 0;
            for (int i = 0; i < childCount; i++) {
                addedChildPackages.valueAt(i).setError(msg, e);
            }
            Slog.w(TAG, msg, e);
        }