Commit 2ac407d
committed
Use 'verify' filter for dexopt to prevent method inlining
This change switches the dexopt compiler filter from 'speed-profile' to 'verify' and keeps the force flag (-f).
Purpose:
- To ensure hook reliability: Higher optimization levels like 'speed' or 'speed-profile' perform Ahead-of-Time (AOT) method inlining. When a method is inlined, its original entry point is bypassed, making it impossible to hook.
- By forcing 'verify', we invalidate existing optimized machine code (odex) and prevent new inlining, ensuring that ART uses the Interpreter or JIT which respects hook entry points.1 parent 29ad3ca commit 2ac407d
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments