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

Commit 536184a9 authored by 张倞诚's avatar 张倞诚
Browse files

Update persist cache when package updated.

Fix a bug where an old package does not have RECEIVE_BOOT_COMPLETED permission but a new application has this permission and still crashes.

Change-Id: I20f76b50b5f3cfe85ba633e74f098b8029d4ee14
Merged-In: I20f76b50b5f3cfe85ba633e74f098b8029d4ee14
parent 44102a40
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -906,6 +906,10 @@ public class JobSchedulerService extends com.android.server.SystemService
                    synchronized (mLock) {
                        mUidToPackageCache.remove(uid);
                    }
                } else {
                    synchronized (mJobSchedulerStub.mPersistCache) {
                        mJobSchedulerStub.mPersistCache.remove(pkgUid);
                    }
                }
            } else if (Intent.ACTION_PACKAGE_FULLY_REMOVED.equals(action)) {
                if (DEBUG) {