Add hidden-api-flag to Installedinstru for APCT

APCT needs that flag in its runner.

Test: unit tests
Bug: 74963051
Change-Id: I29c8d8f6194ea95ce209393a55e106b1a6788882
diff --git a/src/com/android/tradefed/testtype/InstalledInstrumentationsTest.java b/src/com/android/tradefed/testtype/InstalledInstrumentationsTest.java
index 5e15312..49b7966 100644
--- a/src/com/android/tradefed/testtype/InstalledInstrumentationsTest.java
+++ b/src/com/android/tradefed/testtype/InstalledInstrumentationsTest.java
@@ -154,6 +154,14 @@
     )
     private boolean mCoverage = false;
 
+    @Option(
+        name = "hidden-api-checks",
+        description =
+                "If set to false, the '--no-hidden-api-checks' flag will be passed to the am "
+                        + "instrument command. Only works for P or later."
+    )
+    private boolean mHiddenApiChecks = true;
+
     private int mTotalShards = 0;
     private int mShardIndex = 0;