--- src/src/iperf_api.c 2023-09-14 21:38:11.000000000 +0300 +++ src/src/iperf_api.c.patch 2023-09-23 18:27:44.715256242 +0300 @@ -4307,7 +4307,7 @@ } if (tempdir == 0){ #if defined(__ANDROID__) - tempdir = "/data/local/tmp"; + tempdir = "@TERMUX_PREFIX@/tmp"; #else tempdir = "/tmp"; #endif