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

Commit 9b317ef1 authored by Ömer Yaveroğlu's avatar Ömer Yaveroğlu
Browse files

Stop evaluating the install requests from package manager and approve all...

Stop evaluating the install requests from package manager and approve all evaluation requests by default.

This is part of the efforts to deprecate the AppIntegrityManager

Change-Id: Ibcebe265461a3958774bdf40114a98b5ed6ab149
parent 93a6b69a
Loading
Loading
Loading
Loading
+2 −475

File changed.

Preview size limit exceeded, changes collapsed.

+0 −5
Original line number Diff line number Diff line
@@ -67,10 +67,8 @@ import android.provider.Settings;
import androidx.test.InstrumentationRegistry;

import com.android.internal.R;
import com.android.internal.pm.parsing.PackageParser2;
import com.android.server.compat.PlatformCompat;
import com.android.server.integrity.model.IntegrityCheckResult;
import com.android.server.pm.parsing.TestPackageParser2;
import com.android.server.testutils.TestUtils;

import org.junit.After;
@@ -140,8 +138,6 @@ public class AppIntegrityManagerServiceImplTest {
    @Mock IntegrityFileManager mIntegrityFileManager;
    @Mock Handler mHandler;

    private Supplier<PackageParser2> mParserSupplier = TestPackageParser2::new;

    private final Context mRealContext = InstrumentationRegistry.getTargetContext();

    private PackageManager mSpyPackageManager;
@@ -173,7 +169,6 @@ public class AppIntegrityManagerServiceImplTest {
                new AppIntegrityManagerServiceImpl(
                        mMockContext,
                        mPackageManagerInternal,
                        mParserSupplier,
                        mIntegrityFileManager,
                        mHandler);