Link to home
Start Free TrialLog in
Avatar of projects
projects

asked on

traceroute mtr ping on android

Someone asked me if we could build an app which uses the above tools on our office mobile devices but when looking around, the only solutions I found were for rooted devices.

I cannot seem to find these tools which could be used in an app instead of a rooted device.
Avatar of gheist
gheist
Flag of Belgium image

You cannot intall and run suid executables with your APK. In <=4.3 they will run with user of application(thanks mount -o nosuid), with 4.4 they will not run at all thanks selinux.
Avatar of projects
projects

ASKER

Some seem to be doing this, offering visual traceroute, ping and other things. How are they doing it?
I think ping is included with system and you can call it.
Ok, but there are still many visual traceroute apps. Doesn't that mean there is a way of accessing some of those command line tools from an app?

I know one can install busybox but that is only on a rooted device.
Traceroute uses UDP, ping uses raw sockets which need root
Really? So this is impossible? To convert a small Linux script which uses ping, traceroute and mtr to android? There is no way what so ever to do this?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would have though mobiles are the future and would have ways to do practically anything.

I'm surprised but thanks for your input.