Revert "Revert "Remove kTempHidlSupport to stop supporting HIDL ..."

Revert submission 26784360-revert-26722372-nomo_hidl-ZIPOWCUGSA

Reason for revert: fixing test (b/332395670) and relanding

Reverted changes: /q/submissionid:26784360-revert-26722372-nomo_hidl-ZIPOWCUGSA

Change-Id: I0f2dd742ec3a3fb9bff1bfd4f2200d6d6640f0e1
diff --git a/transport/ServiceManagement.cpp b/transport/ServiceManagement.cpp
index 8867f53..8807898 100644
--- a/transport/ServiceManagement.cpp
+++ b/transport/ServiceManagement.cpp
@@ -222,13 +222,13 @@
         return false;
     }
 #ifdef __ANDROID__
-    // TODO(b/218588089) remove this temporary support variable once Cuttlefish
-    // (the only current Android V launching device) no longer requires HIDL.
-    constexpr bool kTempHidlSupport = true;
     static const char* kVendorApiProperty = "ro.vendor.api_level";
     // HIDL and hwservicemanager are not supported in Android V+
-    return android::base::GetIntProperty(kVendorApiProperty, 0) < __ANDROID_API_V__ ||
-           kTempHidlSupport;
+    // This is also set with `max-level="8"` in the framework manifest fragment
+    // for android.hidl.manager. We don't check for android.hidl.manager to be
+    // declared through defaultServiceManager1_2() because the fake
+    // servicemaanger will say it is declared.
+    return android::base::GetIntProperty(kVendorApiProperty, 0) < __ANDROID_API_V__;
 #else
     // No access to properties and no requirement for dropping HIDL support if
     // this isn't Android