Merge "DoH: Use DoH feature in T if the flag is unset"
diff --git a/util.h b/util.h
index a591358..69665a9 100644
--- a/util.h
+++ b/util.h
@@ -61,5 +61,6 @@
 }
 
 inline bool isDoHEnabled() {
-    return android::net::Experiments::getInstance()->getFlag("doh", 0);
+    static bool isAtLeastT = android::modules::sdklevel::IsAtLeastT();
+    return android::net::Experiments::getInstance()->getFlag("doh", isAtLeastT ? 1 : 0);
 }