Can't Run Iperf3 On Android Without Root Permission
I need to make android application that run iperf3 library, so i have compiled 'iperf3' using android-ndk-r20 with changes made in iperf_api.c char buf[] = '/tmp/iperf3.XXXXXX'; I'
Solution 1:
I figured it out how to make it work. Before compile "iperf3" you need to change followed line in "iperf_api.c"
char buf[] = "/tmp/iperf3.XXXXXX";
to char buf[] = "/data/data/your.package.name/cache/iperf3.XXXXXX";
And it works fine!
I hope I helped someone.
Post a Comment for "Can't Run Iperf3 On Android Without Root Permission"