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

Commit aaedfaf9 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Remove TODO(b/251903639) from PackageManagerShellCommand.

We are now forwarding all dexopt shell commands to ART Service, so
PackageManagerShellCommand doesn't need to call into ART Service in the
legacy shell command handlers.

Bug: 251903639
Bug: 263247832
Test: Presubmit
Change-Id: I2e9c9dbf6f5713a2bed98463bf2fd57c77852ba9
parent 7f8adb3e
Loading
Loading
Loading
Loading
+38 −48
Original line number Diff line number Diff line
@@ -1979,9 +1979,7 @@ class PackageManagerShellCommand extends ShellCommand {
        return 0;
    }

    private int runBgDexOpt() throws RemoteException {
        // TODO(b/251903639): Call into ART Service.
        try {
    private int runBgDexOpt() throws RemoteException, LegacyDexoptDisabledException {
        String opt = getNextOption();

        if (opt == null) {
@@ -2022,20 +2020,12 @@ class PackageManagerShellCommand extends ShellCommand {

        getOutPrintWriter().println("Success");
        return 0;
        } catch (LegacyDexoptDisabledException e) {
            throw new RuntimeException(e);
        }
    }

    private int cancelBgDexOptJob() throws RemoteException {
        // TODO(b/251903639): Call into ART Service.
        try {
    private int cancelBgDexOptJob() throws RemoteException, LegacyDexoptDisabledException {
        BackgroundDexOptService.getService().cancelBackgroundDexoptJob();
        getOutPrintWriter().println("Success");
        return 0;
        } catch (LegacyDexoptDisabledException e) {
            throw new RuntimeException(e);
        }
    }

    private int runDeleteDexOpt() throws RemoteException {