当前位置:网站首页>Privilege management of vivo mobile phone
Privilege management of vivo mobile phone
2022-06-28 12:12:00 【A cup of bitter mustard】
Recently, I encountered the problem of permission management in the project , Only Huawei and vivo, Therefore, only these two models are discussed here . A problem was found while debugging the code , As I wrote in my previous blog , It's discovery vivo I use it on my cell phone android Native api To check permissions ( Take camera permissions as an example ) It is found that you have this permission , But I am clearly setting up ( Relatively new vivo On the cell phone i The housekeeper and the permission management in the settings have been integrated into one set ) The permission is forbidden in ; It is normal on Huawei mobile phones , If it is forbidden, it will return -1( No authority ), Grant and return 0( Have permission ). original , In the relatively new vivo The default setting on the mobile phone is android The native rights management system hides , No matter what permissions you check , Will be returned to you 0( Have permission ), The real rights management system is in i In the housekeeper .
You're setting ( That is to say i The housekeeper , They have become one ) After prohibition , The code uses android The native permission check returns 0( Have permission ), Then there is no way to handle your own logic according to the return value ? Generally, there is no need to worry about this problem , Because when you really use this permission , If i The housekeeper finds that you don't have this permission , The permission management pop-up box will pop up automatically , Request this permission from you , This process is not managed by us , Completely by i Housekeeper automatically manages . Yes, of course , The program is designed to be compatible with other mobile phones , It still needs to be written according to the normal logical process .
original text :https://blog.csdn.net/aabbwoshishei/article/details/78895510
边栏推荐
- Web3安全连载(3) | 深入揭秘NFT钓鱼流程及防范技巧
- 纯纯大怨种!那些年被劝退的考研专业
- Day23 JS notes 2021.09.14
- Prefix and (one dimension)
- Data analysis learning notes
- MapReduce项目案例1
- 6.A-B
- Leetcode 48. 旋转图像(可以,已解决)
- CDC synchronization if the primary key of a database table changes, will it be synchronized into two data or will it be synchronized to update the primary key?
- Prefix and (2D)
猜你喜欢

The default point of this in JS and how to modify it to 2021.11.09

【C语言】NextDay问题

Web page tips this site is unsafe solution

Database Series: is there any way to seamlessly upgrade the business tables of the database
![[Beijing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[Beijing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination

Remote login sshd service

JS foundation 8
![Connectionreseterror: [winerror 10054] the remote host forced an existing connection to be closed](/img/9a/97813f5ac4d7c15711891cff25b9dd.jpg)
Connectionreseterror: [winerror 10054] the remote host forced an existing connection to be closed

Is it feasible to be a programmer at the age of 26?

【C语言】关于scanf()与scanf_s()的一些问题
随机推荐
Software test interview classic + 1000 high-frequency real questions, and the hit rate of big companies is 80%
來吧元宇宙,果然這熱度一時半會兒過不去了
Vivo手机的权限管理
自定义标题栏View
建立自己的网站(18)
Necessary for beginners PR 2021 quick start tutorial, PR green screen matting operation method
MapReduce project case 3 - temperature statistics
JNI函数的2种书写方式
Apache2 configuration denies access to the directory, but can access the settings of the files inside
Is it feasible to be a programmer at the age of 26?
如何获取泛型的类型
零基础C语言(一)
Array method in JS 2021.09.18
【无标题】虚拟机vmnet0找不到且报错:没有未桥接的主机网络适配器
Web3 security serials (3) | in depth disclosure of NFT fishing process and prevention techniques
Class pattern and syntax in JS 2021.11.10
纯纯大怨种!那些年被劝退的考研专业
Research on personalized product search
Unity屏幕截图功能
Using MySQL database in the express framework of node