Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36133d1a authored by David Brazdil's avatar David Brazdil
Browse files

dexopt: Replace -Xhidden-api-checks with -Xhidden-api-policy

Command line flag is changed to enable passing all valid values. Adjust
dexopt accordingly.

Bug: 125701194
Test: compiles, boots, dexopt working
Change-Id: I4807bb0a99ec37a69ca64a3bdbf9a441531bdfb7
parent 0a75a6ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -534,7 +534,7 @@ class RunDex2Oat : public ExecVHelper {
        }
        AddRuntimeArg(target_sdk_version_arg);
        if (enable_hidden_api_checks) {
            AddRuntimeArg("-Xhidden-api-checks");
            AddRuntimeArg("-Xhidden-api-policy:enabled");
        }

        if (dex_metadata_fd > -1) {