From 33c592da0cac04172b6edaabf47ec09cd826bc8c Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 9 Sep 2016 17:08:53 -0700 Subject: [PATCH] Installer: Support delete_odex command Add support for deleting odex files. Bug: 31347757 Change-Id: I29bca8751bcee8d6981c682fbbc816c73b78ac68 (cherry picked from commit e5fedb95761fbffbd80200440f32e99e0d8c6f90) --- services/core/java/com/android/server/pm/Installer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/core/java/com/android/server/pm/Installer.java b/services/core/java/com/android/server/pm/Installer.java index 72c549f7bec6..2e18b1c417fe 100644 --- a/services/core/java/com/android/server/pm/Installer.java +++ b/services/core/java/com/android/server/pm/Installer.java @@ -230,6 +230,11 @@ public final class Installer extends SystemService { mInstaller.execute("move_ab", apkPath, instructionSet, outputPath); } + public void deleteOdex(String apkPath, String instructionSet, String outputPath) + throws InstallerException { + mInstaller.execute("delete_odex", apkPath, instructionSet, outputPath); + } + private static void assertValidInstructionSet(String instructionSet) throws InstallerException { for (String abi : Build.SUPPORTED_ABIS) { -- 2.11.0