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

Commit 2ba54b52 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

Merge "Assume a package was removed if application info is missing." into main

parents 5d517aa0 0e0ab844
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6792,6 +6792,7 @@ public final class ActivityThread extends ClientTransactionHandler
                            }
                        }
                        if (killApp) {
                            // Keep in sync with "perhaps it was removed" case below.
                            mPackages.remove(packages[i]);
                            mResourcePackages.remove(packages[i]);
                        }
@@ -6859,6 +6860,12 @@ public final class ActivityThread extends ClientTransactionHandler
                                }
                            } catch (RemoteException e) {
                            }
                        } else {
                            // No package, perhaps it was removed?
                            Slog.e(TAG, "Package [" + packages[i] + "] reported as REPLACED,"
                                    + " but missing application info. Assuming REMOVED.");
                            mPackages.remove(packages[i]);
                            mResourcePackages.remove(packages[i]);
                        }
                    }
                }