diff options
author | Narayan Kamath <narayan@google.com> | 2014-07-21 13:38:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-17 19:45:26 +0000 |
commit | e5e02cc239f8948ebcfdc8545e9c234d4887576d (patch) | |
tree | b43100f209fd22883bcffa456bf4995f75dcd5fb /dalvik/src | |
parent | eec5d62636deeb683f516082018b7fd508c9b744 (diff) | |
parent | 71202f8ed84edc6ab57e7b6c26f0a1ec97d5adc6 (diff) | |
download | libcore-e5e02cc239f8948ebcfdc8545e9c234d4887576d.zip libcore-e5e02cc239f8948ebcfdc8545e9c234d4887576d.tar.gz libcore-e5e02cc239f8948ebcfdc8545e9c234d4887576d.tar.bz2 |
Merge "Use the provided path when opening dex files." into lmp-dev
Diffstat (limited to 'dalvik/src')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/DexFile.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/dalvik/src/main/java/dalvik/system/DexFile.java b/dalvik/src/main/java/dalvik/system/DexFile.java index 5a9c01a..8c78312 100644 --- a/dalvik/src/main/java/dalvik/system/DexFile.java +++ b/dalvik/src/main/java/dalvik/system/DexFile.java @@ -281,21 +281,15 @@ public final class DexFile { } } - /* - * Open a DEX file. The value returned is a magic VM cookie. On - * failure, an IOException is thrown. - */ - private static long openDexFile(String sourceName, String outputName, int flags) throws IOException { - return openDexFileNative(new File(sourceName).getCanonicalPath(), - (outputName == null) ? null : new File(outputName).getCanonicalPath(), - flags); - } - private static native void closeDexFile(long cookie); private static native Class defineClassNative(String name, ClassLoader loader, long cookie) throws ClassNotFoundException, NoClassDefFoundError; private static native String[] getClassNameList(long cookie); - private static native long openDexFileNative(String sourceName, String outputName, int flags); + /* + * Open a DEX file. The value returned is a magic VM cookie. On + * failure, an IOException is thrown. + */ + private static native long openDexFile(String sourceName, String outputName, int flags); /** * Returns true if the VM believes that the apk/jar file is out of date |