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