华为手机里有个自带手机管家 可以对应用设置权限
如图 使用 android6.0 的权限检测,只有在拨打电话与读取本机识别码(同一个权限组)都禁止的时候,才会检测到权限禁止。一个禁止一个允许的检测到拨打电话的状态是拥有该权限。如何获取到拨打电话权限状态。
迷茫2017-04-17 17:47:52
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
天蓬老师2017-04-17 17:47:52
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. . . .
伊谢尔伦2017-04-17 17:47:52
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?