public class OdexHeaderItem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
AUX_LENGTH_OFFSET |
static int |
AUX_OFFSET |
static int |
DEPENDENCIES_LENGTH_OFFSET |
static int |
DEPENDENCIES_OFFSET |
static int |
DEX_LENGTH_OFFSET |
static int |
DEX_OFFSET |
static int |
FLAGS_OFFSET |
static int |
ITEM_SIZE |
static int |
MAGIC_LENGTH |
static int |
MAGIC_OFFSET |
| Constructor and Description |
|---|
OdexHeaderItem() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDependenciesOffset(byte[] buf) |
static int |
getDexOffset(byte[] buf) |
static int |
getVersion(byte[] buf,
int offset)
Gets the dex version from an odex header
|
static boolean |
isSupportedOdexVersion(int version) |
static boolean |
verifyMagic(byte[] buf,
int offset)
Verifies the magic value at the beginning of an odex file
|
public static final int ITEM_SIZE
public static final int MAGIC_OFFSET
public static final int MAGIC_LENGTH
public static final int DEX_OFFSET
public static final int DEX_LENGTH_OFFSET
public static final int DEPENDENCIES_OFFSET
public static final int DEPENDENCIES_LENGTH_OFFSET
public static final int AUX_OFFSET
public static final int AUX_LENGTH_OFFSET
public static final int FLAGS_OFFSET
public static boolean verifyMagic(byte[] buf,
int offset)
buf - A byte array containing at least the first 8 bytes of an odex fileoffset - The offset within the buffer to the beginning of the odex headerpublic static int getVersion(byte[] buf,
int offset)
buf - A byte array containing at least the first 7 bytes of an odex fileoffset - The offset within the buffer to the beginning of the odex headerpublic static boolean isSupportedOdexVersion(int version)
public static int getDexOffset(byte[] buf)
public static int getDependenciesOffset(byte[] buf)