...
The bytecode verification process runs by default. The -Xverify:none flag on the JVM command line suppresses the verification process. With Android, that could be done by setting a property in the adb shell (adb shell setprop dalvik.vm.dexopt-flags v=n). This noncompliant code example uses the flag to disable bytecode verification.
| Code Block | ||
|---|---|---|
| ||
java -Xverify:none ApplicationName
|
...
Specifying the -Xverify:all flag on the command line requires the JVM to enable bytecode verification (even when it would otherwise have been suppressed), as shown in this compliant solution.
| Code Block | ||
|---|---|---|
| ||
java -Xverify:all ApplicationName
|
...
The Bytecode Verifier | |
Section 7.3, The Class File Verifier |