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

Commit 2a895457 authored by Todd Kennedy's avatar Todd Kennedy
Browse files

clear calling identity to dexopt

Bug: 22067670
Change-Id: I3596f26a079660f6898401ed679463193b00c799
parent 6a401410
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -6159,13 +6159,17 @@ public class PackageManagerService extends IPackageManager.Stub {
                return false;
            }
        }
        long callingId = Binder.clearCallingIdentity();
        try {
            synchronized (mInstallLock) {
                final String[] instructionSets = new String[] { targetInstructionSet };
                int result = mPackageDexOptimizer.performDexOpt(p, instructionSets,
                        false /* forceDex */, false /* defer */, true /* inclDependencies */);
                return result == PackageDexOptimizer.DEX_OPT_PERFORMED;
            }
        } finally {
            Binder.restoreCallingIdentity(callingId);
        }
    }
    public ArraySet<String> getPackagesThatNeedDexOpt() {