Andreas Gampe | 7fc8f90 | 2014-08-25 15:05:04 -0700 | [diff] [blame] | 1 | This is a test checking the modifier (access flags) handling of ART. |
Andreas Gampe | 2b93681 | 2017-02-07 16:03:57 -0800 | [diff] [blame] | 2 | |
| 3 | The classes are pre-compiled and modified with ASM. |
| 4 | |
| 5 | To reproduce, compile the source files. Asm.java needs the ASM libraries (core and tree). Then |
| 6 | run Asm.java, which produces Inf.out and NonInf.out. Rename these to class files and put them |
| 7 | into the classes directory (this assumes the ASM libraries are names asm.jar and asm-tree.jar). |
| 8 | Finally, compile with jack/jill or dx, and run baksmali. |
| 9 | |
| 10 | javac Inf.java NonInf.java Main.java |
| 11 | javac -cp asm.jar:asm-tree.jar:. Asm.java |
| 12 | java -cp asm.jar:asm-tree.jar:. Asm |
Alan Leung | d5cbc56 | 2018-03-15 14:02:46 -0700 | [diff] [blame] | 13 | mv Inf.out classes_tmp/Inf.class |
| 14 | mv NonInf.out classes_tmp/NonInf.class |
| 15 | mv Main.class A.class A\$B.class A\$C.class classes_tmp/ |
Andreas Gampe | 2b93681 | 2017-02-07 16:03:57 -0800 | [diff] [blame] | 16 | dx --debug --dex --output=classes.dex classes |
Ben Gruver | 14fc9db | 2017-04-28 15:30:49 -0700 | [diff] [blame] | 17 | baksmali disassemble classes.dex |
Andreas Gampe | 2b93681 | 2017-02-07 16:03:57 -0800 | [diff] [blame] | 18 | mv out/*.smali smali/ |