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

Commit 481b2607 authored by Sanjana Sunil's avatar Sanjana Sunil
Browse files

Use new system dependency installer role string API

Bug: 380052797
Test: atest PackageManagerShellCommandInstallTest
Flag: NONE API to avoid hardcoding constant

Change-Id: Ib23846e27c93f6ed688d0a005f55caa6bd293596
parent cfefeced
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.server.pm;

import static android.app.role.RoleManager.ROLE_SYSTEM_DEPENDENCY_INSTALLER;
import static android.content.pm.PackageInstaller.ACTION_INSTALL_DEPENDENCY;
import static android.content.pm.PackageManager.INSTALL_FAILED_MISSING_SHARED_LIBRARY;
import static android.os.Process.SYSTEM_UID;
@@ -56,8 +57,6 @@ import java.util.concurrent.TimeUnit;
public class InstallDependencyHelper {
    private static final String TAG = InstallDependencyHelper.class.getSimpleName();
    private static final boolean DEBUG = true;
    private static final String ROLE_SYSTEM_DEPENDENCY_INSTALLER =
            "android.app.role.SYSTEM_DEPENDENCY_INSTALLER";
    // The maximum amount of time to wait before the system unbinds from the verifier.
    private static final long UNBIND_TIMEOUT_MILLIS = TimeUnit.HOURS.toMillis(6);
    private static final long REQUEST_TIMEOUT_MILLIS = TimeUnit.MINUTES.toMillis(1);