title: What are corresponding directories on Android for common Linux pathnames?
body: <p>I'm porting the C++ <code>myToll</code> Linux application to run on Android using NDK r10d.  (Note this is not an Android app with an <code>apk</code>, but a utility tool to run from the shell.)  This is a command line interface and has no GUI and is being built as a standalone application with the NDK.</p>
  
  <p>On Linuxes such as Centos 5, the tool reads and writes to the following standard directory locations:</p>
  
  <pre><code>/var/run/myTool/   (read/write)
  /var/log/myTool/   (read/write)
  /etc/myTool/       (read only)
  /tmp/              (read-write)
  </code></pre>
  
  <p>The <code>myTool</code> is installed in <code>/system/xbin/myTool</code> and can run on a rooted android phone as a utility from the shell, but fails to access these same locations at runtime, even when run as <code>root</code>.</p>
  
  <p>What would be the corresponding locations to use on an android system that the <code>myTool</code> will have sufficient permissions to write too and is where such files would common be expected to be found on Android?  Are there any locations that can be created by <code>root</code> such that <code>myTool</code> can use them at runtime without being <code>root</code>?</p>