You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
413 B
20 lines
413 B
4 months ago
|
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.
|