search

Home  >  Q&A  >  body text

android - 红米手机java.io.IOException: open failed: EACCES (Permission denied)

为什么只有红米手机会报权限问题,我把权限都添加上了,只有红米手机报错
我调用的是拍照功能

怪我咯怪我咯2772 days ago641

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-17 17:39:52

    Android version of Redmi phone? If it is 6.0 or above, you need to apply for runtime permissions.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:39:52

    Have you added permissions

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>  

    If it is a 6.0 system

       你可以看看大神的介绍:http://blog.csdn.net/lmj623565791/article/details/50709663

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:39:52

    These mobile phones have built-in permission management. It may be that the built-in permission management has prohibited relevant permissions

    reply
    0
  • Cancelreply