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

Commit 9440df91 authored by Jackal Guo's avatar Jackal Guo
Browse files

Remove unused interface and implementation

Get rid of the unused method to mitigate the potential information
leakage.

Bug: 185124942
Test: atest view-compiler-tests
Test: atest android.view.cts.LayoutInflaterTest
Test: atest -p core/java/android/content/pm
Test: atest -p services/core/java/com/android/server/pm
Test: manually using the PoC in the buganizer to ensure the symptom
      no longer exists.
Change-Id: I5ee7381728a93535849fcf61a1373a5ed9036aa4
parent 92a2c69b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -585,11 +585,6 @@ interface IPackageManager {
    boolean performDexOptSecondary(String packageName,
            String targetCompilerFilter, boolean force);

    /**
    * Ask the package manager to compile layouts in the given package.
    */
    boolean compileLayouts(String packageName);

    /**
     * Ask the package manager to dump profiles associated with a package.
     */
+0 −15
Original line number Diff line number Diff line
@@ -12677,21 +12677,6 @@ public class PackageManagerService extends IPackageManager.Stub
        return performDexOpt(new DexoptOptions(packageName, compilerFilter, flags));
    }
    /**
    * Ask the package manager to compile layouts in the given package.
    */
    @Override
    public boolean compileLayouts(String packageName) {
        AndroidPackage pkg;
        synchronized (mLock) {
            pkg = mPackages.get(packageName);
            if (pkg == null) {
                return false;
            }
        }
        return mViewCompiler.compileLayouts(pkg);
    }
    /*package*/ boolean performDexOpt(DexoptOptions options) {
        if (getInstantAppPackageName(Binder.getCallingUid()) != null) {
            return false;