Solved

traceroute mtr ping on android

Posted on 2014-09-29
8
1,202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 62

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 62

Expert Comment

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

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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
 
LVL 62

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 62

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This program is used to assist in finding and resolving common problems with wireless connections.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

627 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