title: Will executing system "ping" command in my android application cause questions from Google on publishing?
body: <p>I am implementing an app which can ping remote hosts, get ping measurements and use them further for different purposes.
  My question is, is it okay to use android system ping command? Does it need any special permissions except android.permission.INTERNET?</p>
  <p>Is there any chance Google will ask any questions about system command execution or even refuse to publish it?</p>
  <p>My code:</p>
  <pre><code>private static String ping(String url, int testAmount) {
      String str = null;
      try {
          Process process = Runtime.getRuntime().exec(
                  &quot;/system/bin/ping -W 1 -c &quot; + testAmount + &quot; &quot; + url);
          BufferedReader reader = new BufferedReader(new InputStreamReader(
                  process.getInputStream()));
          int i;
          char[] buffer = new char[4096];
          StringBuffer output = new StringBuffer();
          while ((i = reader.read(buffer)) &gt; 0)
              output.append(buffer, 0, i);
          reader.close();
  
          str = output.toString();
  
      } catch (IOException e) {
          Log.e(TAG, &quot;Ping Exception: &quot;, e);
      }
      return str;
  }
  </code></pre>
  <p>It returns a string containing ping command output</p>