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

Commit b39686b4 authored by Luke Huang's avatar Luke Huang
Browse files

Default enable DoH feature in T

Bug: 200763585
Bug: 155855709
Test: atest
Change-Id: I1a99889891ef7212aa618198c4840488d23a35d9
parent 072497e6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@ cc_library {
        "libcutils",
        "libnetdutils",
        "libdoh_ffi",
        "libmodules-utils-build",
        "libprotobuf-cpp-lite",
        "libstatslog_resolv",
        "libstatspush_compat",
+1 −0
Original line number Diff line number Diff line
@@ -180,6 +180,7 @@ cc_test {
        "libbpf_android",
        "libcrypto_static",
        "libgmock",
        "libmodules-utils-build",
        "libnetd_test_dnsresponder_ndk",
        "libnetd_test_metrics_listener",
        "libnetd_test_resolv_utils",
+4 −0
Original line number Diff line number Diff line
@@ -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 isUserDebugBuild() {
}

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);
}