title: Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider
body: <p>java.lang.SecurityException: Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider from ProcessRecord{932688f 12849:mobi.hubbler.app/u0a158} (pid=12849, uid=10158) that is not exported from uid 10034</p>
  
  <pre><code>    InputStream is = null;
      BitmapFactory.Options options = new BitmapFactory.Options();
      options.inJustDecodeBounds = true;
      is = context.getContentResolver().openInputStream(bitmapUri);
      BitmapFactory.decodeStream(is, null, options); 
  </code></pre>
  
  <p>trying to get bitmap from uri. This issue is happening only with MI(xiaomi) devices.</p>