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.
I cannot seem to find these tools which could be used in an app instead of a rooted device.
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.
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.
ASKER
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.
I know one can install busybox but that is only on a rooted device.
Traceroute uses UDP, ping uses raw sockets which need root
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I would have though mobiles are the future and would have ways to do practically anything.
I'm surprised but thanks for your input.
I'm surprised but thanks for your input.