android权限被第三方安全软件禁止,如何获取该权限状态
迷茫
迷茫 2017-04-17 17:45:52
0
4
973

华为手机里有个自带手机管家 可以对应用设置权限

如图 使用 android6.0 的权限检测,只有在拨打电话与读取本机识别码(同一个权限组)都禁止的时候,才会检测到权限禁止。一个禁止一个允许的检测到拨打电话的状态是拥有该权限。如何获取到拨打电话权限状态。

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (4)
迷茫

Calling within the application may involve some security issues, so in 6.0, the phone permission is dangerous and needs to be actively applied for. The solution for our project is to call the system and bring the number. This will definitely not There will be permission issues

    Peter_Zhu

    Android has a method to check whether there is any permission currently, but it must be wrapped with try catch. If there is no permission you want, an exception will be reported. If you want to obtain it, there is no way. You can only check it and then notify the user to set it in the settings. The specific code will be posted tomorrow. . . .

      迷茫

      There’s no way around this

        伊谢尔伦

        I have also encountered this now. The system has granted permissions, but Huawei’s own security software has disabled the permissions. Then when making a call, it prompts:

        `this app not allowed to StartActivity:Intent { act=android.intent.action.CALL dat=tel:xxxxx }`

        Permissions have already been obtained when detecting system permissions, so there can be no relevant prompts. By the way, have you solved it now?

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!