diff options
| author | 2016-09-09 17:08:53 -0700 | |
|---|---|---|
| committer | 2016-09-28 14:00:20 -0700 | |
| commit | 33c592da0cac04172b6edaabf47ec09cd826bc8c (patch) | |
| tree | 3e0253be301e1628b59afd41f6acd385559b83c5 | |
| parent | 71ea678683bccc5cc51365a91ffae4ea87a33fc2 (diff) | |
Installer: Support delete_odex command
Add support for deleting odex files.
Bug: 31347757
Change-Id: I29bca8751bcee8d6981c682fbbc816c73b78ac68
(cherry picked from commit e5fedb95761fbffbd80200440f32e99e0d8c6f90)
| -rw-r--r-- | services/core/java/com/android/server/pm/Installer.java | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |