• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test for a dex file with an odd size followed by an aligned dex file.
2
3The code in classes.dex is:
4
5class Main {
6  public static void main(String[] args) {
7    System.out.println("HelloWorld");
8  }
9}
10
11The generated dex file was then manually edited to:
121) Add 1 to the size value in the dex header.
132) Add 1 byte to the file.
143) Change the checksum in the dex header.
15
16The code in classes2.dex is:
17
18class Foo {
19}
20