6

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) 设备上。

4

1 回答 1

-2

android.permission.READ_EXTERNAL_STORAGE

于 2020-06-23T08:26:21.650 回答