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

Commit 44956302 authored by Todd Kennedy's avatar Todd Kennedy Committed by Android (Google) Code Review
Browse files

Merge "Remove arch check"

parents 639e6dd8 7bfb3ae8
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -16337,17 +16337,6 @@ public class PackageManagerService extends IPackageManager.Stub
                                        + oldPackage.mSharedUserId);
                    }
                    // check if the new package supports all of the abis which the old package
                    // supports
                    boolean oldPkgSupportMultiArch =
                            oldPackage.applicationInfo.secondaryCpuAbi != null;
                    boolean newPkgSupportMultiArch = pkg.applicationInfo.secondaryCpuAbi != null;
                    if (isSystemApp(oldPackage) && oldPkgSupportMultiArch
                            && !newPkgSupportMultiArch) {
                        throw new PrepareFailure(INSTALL_FAILED_UPDATE_INCOMPATIBLE,
                                "Update to package " + pkgName11 + " doesn't support multi arch");
                    }
                    // In case of rollback, remember per-user/profile install state
                    allUsers = sUserManager.getUserIds();
                    installedUsers = ps.queryInstalledUsers(allUsers, true);