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

Commit 16382634 authored by Mårten Kongstad's avatar Mårten Kongstad Committed by Adam Lesinski
Browse files

installd: add command 'removeIdmap'

Add an installd command to remove an idmap file. This is the inverse of
the 'idmap' command and is intended for clean-up once an idmap file is
no longer needed because an APK was removed, etc.

This commit depends on a corresponding commit in frameworks/native (with
the same Change-Id).

Bug: 31052947
Test: run tests from 'OMS: tests for OverlayManagerService'
Change-Id: Iae19a519803f0c172b02a32faa283ef36f43863c
parent 896c7f89
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -295,6 +295,15 @@ public class Installer extends SystemService {
        }
    }

    public void removeIdmap(String overlayApkPath) throws InstallerException {
        if (!checkBeforeRemote()) return;
        try {
            mInstalld.removeIdmap(overlayApkPath);
        } catch (Exception e) {
            throw InstallerException.from(e);
        }
    }

    public void rmdex(String codePath, String instructionSet) throws InstallerException {
        assertValidInstructionSet(instructionSet);
        if (!checkBeforeRemote()) return;