diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index c02cafab7..f6f1acc31 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp @@ -18,6 +18,7 @@ #include "sysdeps.h" +#include #include #include #include @@ -177,6 +178,11 @@ int adbd_main(int server_port) { signal(SIGPIPE, SIG_IGN); + auto fdsan_level = android_fdsan_get_error_level(); + if (fdsan_level == ANDROID_FDSAN_ERROR_LEVEL_DISABLED) { + android_fdsan_set_error_level(ANDROID_FDSAN_ERROR_LEVEL_WARN_ONCE); + } + init_transport_registration(); // We need to call this even if auth isn't enabled because the file