拒绝权限:打开提供商com.miui.gallery.provider.GalleryOpenProvider

问题描述 投票:0回答:2

java.lang.SecurityException:权限拒绝:从 ProcessRecord{932688f 12849:mobi.hubbler.app/u0a158} (pid=12849,uid=10158) 打开未从 uid 导出的提供程序 com.miui.gallery.provider.GalleryOpenProvider 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) 设备上。

android inputstream android-bitmap xiaomi
2个回答
0
投票

{73d855 2121:com.moi.ministry.ministry_project/ u0a309} (pid=2121, uid=10309) 不是从 UID 10154 导出的


-3
投票

android.permission.READ_EXTERNAL_STORAGE

© www.soinside.com 2019 - 2024. All rights reserved.