blob: 7dba1133d1e2f2ab0f53a247e67b30df71ae0b77 [file] [log] [blame]
Andreas Gampe7fc8f902014-08-25 15:05:04 -07001This is a test checking the modifier (access flags) handling of ART.
Andreas Gampe2b936812017-02-07 16:03:57 -08002
3The classes are pre-compiled and modified with ASM.
4
5To reproduce, compile the source files. Asm.java needs the ASM libraries (core and tree). Then
6run Asm.java, which produces Inf.out and NonInf.out. Rename these to class files and put them
7into the classes directory (this assumes the ASM libraries are names asm.jar and asm-tree.jar).
8Finally, compile with jack/jill or dx, and run baksmali.
9
10javac Inf.java NonInf.java Main.java
11javac -cp asm.jar:asm-tree.jar:. Asm.java
12java -cp asm.jar:asm-tree.jar:. Asm
Alan Leungd5cbc562018-03-15 14:02:46 -070013mv Inf.out classes_tmp/Inf.class
14mv NonInf.out classes_tmp/NonInf.class
15mv Main.class A.class A\$B.class A\$C.class classes_tmp/
Andreas Gampe2b936812017-02-07 16:03:57 -080016dx --debug --dex --output=classes.dex classes
Ben Gruver14fc9db2017-04-28 15:30:49 -070017baksmali disassemble classes.dex
Andreas Gampe2b936812017-02-07 16:03:57 -080018mv out/*.smali smali/