Merge "dexopt: Replace -Xhidden-api-checks with -Xhidden-api-policy"
diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp
index 214c665..7eee749 100644
--- a/cmds/installd/dexopt.cpp
+++ b/cmds/installd/dexopt.cpp
@@ -534,7 +534,7 @@
         }
         AddRuntimeArg(target_sdk_version_arg);
         if (enable_hidden_api_checks) {
-            AddRuntimeArg("-Xhidden-api-checks");
+            AddRuntimeArg("-Xhidden-api-policy:enabled");
         }
 
         if (dex_metadata_fd > -1) {