java.lang.SecurityException: Permission Denial: 从 ProcessRecord{932688f 12849:mobi.hubbler.app/u0a158} (pid=12849, uid=10158) 打开提供程序 com.miui.gallery.provider.GalleryOpenProvider 不是从 uid 10034 导出的
InputStream is = null;
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
is = context.getContentResolver().openInputStream(bitmapUri);
BitmapFactory.decodeStream(is, null, options);
试图从 uri 获取位图。此问题仅发生在 MI(xiaomi) 设备上。