how do I install the traceroute functionality from

2019-05-24 23:38发布

问题:

I am currently working on implementing traceroute functionality in android and for that I need some help.

I aksed question on this on SO.

And in answer user of suggested me to do following :

The busybox utility includes traceroute. You can run busybox on your device without rooting your phone by following this youtube tutorial. You should then be able to use the first code segment you posted to query traceroute from within your app. Of course, you will need to make sure that you use the correct path when calling traceroute.

Now you will think why I am asking same again but I watched video and coudnt understand how to make it work in my application as If I want to make app like this how can I install busybox apk in user's device.

So please show me some code so that I can understand it.