title: How to check what other apps granted from permissions
body: <p>Can I use <code>checkPermission (String permName, String pkgName)</code> inside my application to check other apps granted permissions?</p>
  
  <p>for example If I want to check if app1 which is installed in my device granted <code>android.permission.WRITE_CONTACTS</code> , can I use <code>checkPermission</code> to check that in my app or not ?
  I know the new release of marshmallow allow user to revoke some permissions, for that I want to check it </p>
  
  <p>If that is not allowed please suggest alternative method.
  <a href="https://developer.android.com/reference/android/content/pm/PackageManager.html#checkPermission(java.lang.String,%20java.lang.String)" rel="nofollow">This more information about checkPermission </a></p>