Default enable DoH feature in T
Bug: 200763585
Bug: 155855709
Test: atest
Change-Id: I1a99889891ef7212aa618198c4840488d23a35d9
diff --git a/util.h b/util.h
index 0c37851..a5eb556 100644
--- a/util.h
+++ b/util.h
@@ -23,6 +23,7 @@
#include <netinet/in.h>
#include <android-base/properties.h>
+#include <android-modules-utils/sdk_level.h>
#include "Experiments.h"
@@ -60,5 +61,8 @@
}
inline bool isDoHEnabled() {
+ // STOPSHIP(b/200763585): clean up it before T shipping.
+ if (android::modules::sdklevel::IsAtLeastT()) return 1;
+
return android::net::Experiments::getInstance()->getFlag("doh", 0);
}