diff options
author | Brian Carlstrom <bdc@google.com> | 2013-04-30 16:25:16 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-30 16:25:16 -0700 |
commit | a9e818e1be628743755fb24ef6dcedbfebc7bf8b (patch) | |
tree | 3c9d0740a45ac320568f5787634e206fa9423151 | |
parent | 6587070aa5d6da060b4b10a40f38505c8dad4595 (diff) | |
parent | 0b42772c20d87d468bb095205c5461dacbbe9cea (diff) | |
download | libcore-a9e818e1be628743755fb24ef6dcedbfebc7bf8b.zip libcore-a9e818e1be628743755fb24ef6dcedbfebc7bf8b.tar.gz libcore-a9e818e1be628743755fb24ef6dcedbfebc7bf8b.tar.bz2 |
am 0b42772c: Merge "Fix DexMerger to emit dex files without extended op codes."
* commit '0b42772c20d87d468bb095205c5461dacbbe9cea':
Fix DexMerger to emit dex files without extended op codes.
-rw-r--r-- | dex/src/main/java/com/android/dex/TableOfContents.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex/src/main/java/com/android/dex/TableOfContents.java b/dex/src/main/java/com/android/dex/TableOfContents.java index 54411ca..d1b87ac 100644 --- a/dex/src/main/java/com/android/dex/TableOfContents.java +++ b/dex/src/main/java/com/android/dex/TableOfContents.java @@ -75,7 +75,7 @@ public final class TableOfContents { byte[] magic = headerIn.readByteArray(8); int apiTarget = DexFormat.magicToApi(magic); - if (apiTarget < 0) { + if (apiTarget != DexFormat.API_NO_EXTENDED_OPCODES) { throw new DexException("Unexpected magic: " + Arrays.toString(magic)); } @@ -164,7 +164,7 @@ public final class TableOfContents { } public void writeHeader(Dex.Section out) throws IOException { - out.write(DexFormat.apiToMagic(DexFormat.API_CURRENT).getBytes("UTF-8")); + out.write(DexFormat.apiToMagic(DexFormat.API_NO_EXTENDED_OPCODES).getBytes("UTF-8")); out.writeInt(checksum); out.write(signature); out.writeInt(fileSize); |