Solved

traceroute mtr ping on android

Posted on 2014-09-29
8
994 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

19 Experts available now in Live!

Get 1:1 Help Now