Merge "use negative mask" am: 4e427f0aab
am: 469295f68e
* commit '469295f68e283977b0a5ff7e04a4413697f7eee7':
use negative mask
diff --git a/cmds/installd/commands.cpp b/cmds/installd/commands.cpp
index d3efb7c..757290f 100644
--- a/cmds/installd/commands.cpp
+++ b/cmds/installd/commands.cpp
@@ -1066,7 +1066,7 @@
bool boot_complete = (dexopt_flags & DEXOPT_BOOTCOMPLETE) != 0;
bool use_jit = (dexopt_flags & DEXOPT_USEJIT) != 0;
- if ((dexopt_flags & DEXOPT_MASK) != 0) {
+ if ((dexopt_flags & ~DEXOPT_MASK) != 0) {
LOG_FATAL("dexopt flags contains unknown fields\n");
}