Solved

traceroute mtr ping on android

Posted on 2014-09-29
8
1,023 Views
Last Modified: 2014-10-06
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.
0
Comment
Question by:projects
  • 4
  • 4
8 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 40362022
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.
0
 

Author Comment

by:projects
ID: 40364327
Some seem to be doing this, offering visual traceroute, ping and other things. How are they doing it?
0
 
LVL 61

Expert Comment

by:gheist
ID: 40364454
I think ping is included with system and you can call it.
0
 

Author Comment

by:projects
ID: 40364526
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.
0
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 
LVL 61

Expert Comment

by:gheist
ID: 40364594
Traceroute uses UDP, ping uses raw sockets which need root
0
 

Author Comment

by:projects
ID: 40364651
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?
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 40364745
You can execute ping, you can send UDP packets with increasing TTL, well mtr is a no-go completely.
0
 

Author Comment

by:projects
ID: 40364892
I would have though mobiles are the future and would have ways to do practically anything.

I'm surprised but thanks for your input.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now