title: How to read Android properties with Java
body: <p>I use 'adb shell getprop' in the terminal.
  What interfaces can I use in Android JAVA to get the same information?</p>
  
  <p>I have tried several things like:</p>
  
  <pre><code>Properties sysProps = System.getProperties();
  </code></pre>
  
  <p>But I don't think these are the same properties I am looking for?  Specifically, I want to find values that will return similar to the following:</p>
  
  <pre><code>adb shell getprop | grep dolby
  </code></pre>
  
  <p>The shell 'grep dolby' command returns this: </p>
  
  <pre><code>[audio.dolby.ds2.enabled]: [true] 
  [dolby.audio.sink.info]: [headset] 
  [dolby.ds.dialogenhancer.state]: [on] 
  [dolby.ds.graphiceq.state]: [off] 
  [dolby.ds.hpvirtualizer.state]: [off] 
  [dolby.ds.intelligenteq.preset]: [Off] 
  [dolby.ds.intelligenteq.state]: [off] 
  [dolby.ds.platform]: [qcom] 
  [dolby.ds.profile.name]: [Movie] 
  [dolby.ds.spkvirtualizer.state]: [off] 
  [dolby.ds.state]: [off] 
  [dolby.ds.volumeleveler.state]: [on] 
  </code></pre>
  
  <p>But I want to access this information in Android JAVA code. </p>
  
  <p>Any ideas?</p>