title: Android get GPU model
body: <p>When running the following command from termial: </p>
  
  <blockquote>
    <p>adb shell dumpsys | grep GLES</p>
  </blockquote>
  
  <p>The output is:</p>
  
  <blockquote>
    <p>GLES: Qualcomm, Adreno (TM) 330, OpenGL ES 3.0 V@53.0 AU@  (CL@)</p>
  </blockquote>
  
  <p>However I am unable to get the output when running programatically.</p>
  
  <pre><code>String GPUModel = "";
  String command = "adb shell dumpsys | grep GLES";
  
  try {
  
      InputStream inputStream = Runtime.getRuntime()
                                           .exec(command)
                                           .getInputStream();
  
      InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
      BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
  
      GPUModel = bufferedReader.readLine();
  
  } catch (IOException e) {
          e.printStackTrace();
  }
  </code></pre>
  
  <p>GPUModel is null.</p>