To try this on an Android smartphone start an iperf3-server and build with ndk-build. Afterwards do the following:
- adb push $iperf-file /data/local/tmp
- adb shell "chmod +x /data/local/tmp/$iperf-file"
- adb shell "/data/local/tmp/$iperf-file -c $server"