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

Commit d7bc388f authored by Calin Juravle's avatar Calin Juravle Committed by Android (Google) Code Review
Browse files

Merge "LoadedApk: Notify cross-package use only when code is requested."

parents 1176f7b2 bf07e2a1
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -597,8 +597,7 @@ public final class LoadedApk {
        // Avoid the binder call when the package is the current application package.
        // Avoid the binder call when the package is the current application package.
        // The activity manager will perform ensure that dexopt is performed before
        // The activity manager will perform ensure that dexopt is performed before
        // spinning up the process.
        // spinning up the process.
        if (!Objects.equals(mPackageName, ActivityThread.currentPackageName())) {
        if (!Objects.equals(mPackageName, ActivityThread.currentPackageName()) && mIncludeCode) {
            VMRuntime.getRuntime().vmInstructionSet();
            try {
            try {
                ActivityThread.getPackageManager().notifyPackageUse(mPackageName,
                ActivityThread.getPackageManager().notifyPackageUse(mPackageName,
                        PackageManager.NOTIFY_PACKAGE_USE_CROSS_PACKAGE);
                        PackageManager.NOTIFY_PACKAGE_USE_CROSS_PACKAGE);