Home | History | Annotate | Download | only in 663-odd-dex-size4
      1 Test for an aligned dex file followed by a dex file with an odd size.
      2 
      3 The code in classes.dex is:
      4 
      5 class Foo {
      6 }
      7 
      8 The code in classes2.dex is:
      9 
     10 class Main {
     11   public static void main(String[] args) {
     12     System.out.println("HelloWorld");
     13   }
     14 }
     15 
     16 The generated dex file was then manually edited to:
     17 1) Add 1 to the size value in the dex header.
     18 2) Add 1 byte to the file.
     19 3) Change the checksum in the dex header.
     20