title: Clear android application user data
body: <p>Using <strong>adb shell</strong> we can clear application data.</p>
  <pre><code>adb shell pm clear com.android.browser
  </code></pre>
  <p>But when executing that command from the application</p>
  <pre><code>String deleteCmd = &quot;pm clear com.android.browser&quot;;      
          Runtime runtime = Runtime.getRuntime();
          try {
              runtime.exec(deleteCmd);
          } catch (IOException e) {
              e.printStackTrace();                
          }
  </code></pre>
  <p><strong>Issue:</strong></p>
  <p>It doesn't clear the user data nor give any exception though I have given the following permission.</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.CLEAR_APP_USER_DATA&quot;/&gt;
  </code></pre>
  <p><strong>Question:</strong></p>
  <p>How to clear another app application data using <strong>adb shell</strong>?</p>