MIUI手机 读取相册图片出问题,可以存入litepal数据库,但不能从数据库中拿出来显示。
具体错误如下
```java
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.xyb/com.example.xyb.controller.User_BaseInfo}: java.lang.SecurityException: Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider from ProcessRecord{228aa34 28053:com.example.xyb/u0a361} (pid=28053, uid=10361) that is not exported from UID 10069
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3822)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)
搜出来是显示权限错误,但其实权限已经开了,其他手机可以正常执行,但小米手机不能执行,单击登录之后会闪退
返回后的设置
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/846941092386176.jpg "#left")