title: Runtime.getRuntime().exec("logcat -d") returns null
body: <p>I'm trying to get the log of my app. Android 4.1.2 (Huawei tablet)</p>
  
  <p>This is the code that I'm using</p>
  
  <pre><code>StringBuilder log=new StringBuilder();
          try {  
              Process process = Runtime.getRuntime().exec("logcat -d");  
              BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));  
  
  
              String line;  
              while ((line = bufferedReader.readLine()) != null) {                
  
                log.append(line); 
                log.append(System.getProperty("line.separator"));
              }  
              System.out.println(line == null);
  
            } catch (IOException e) { 
               System.out.println("error");
                e.printStackTrace();
            }  
  </code></pre>
  
  <p>I have added ther permissions to manifest</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_LOGS" /&gt;
  </code></pre>
  
  <p>When I try to read it <code>bufferedReader</code> is null and nothing is added to <code>log</code> variable.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've founded this info</p>
  
  <p><a href="https://stackoverflow.com/a/18395092/2781852/">INFO</a></p>
  
  <p>Apparently Huawei devices have service loggin disabled by default. I've tried the solution of the post but it doesn't work for me because "service loggin" option doesn't appears</p>
  
  <p>Can someone help me?</p>
  
  <p>Thanks</p>