Installer: Support delete_odex command
Add support for deleting odex files.
Bug: 31347757
Change-Id: I29bca8751bcee8d6981c682fbbc816c73b78ac68
(cherry picked from commit e5fedb9576)
This commit is contained in:
@@ -230,6 +230,11 @@ public final class Installer extends SystemService {
|
|||||||
mInstaller.execute("move_ab", apkPath, instructionSet, outputPath);
|
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)
|
private static void assertValidInstructionSet(String instructionSet)
|
||||||
throws InstallerException {
|
throws InstallerException {
|
||||||
for (String abi : Build.SUPPORTED_ABIS) {
|
for (String abi : Build.SUPPORTED_ABIS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user