Permission is only granted to system apps
来源:互联网 发布:萨龙网络 编辑:程序博客网 时间:2024/06/06 04:10
Permission is only granted to system apps
在增加获取WakeLock 权限时,添加的权限是<uses-permission android:name="android.permission.DEVICE_POWER"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
然而<uses-permission android:name="android.permission.DEVICE_POWER"/> 却报错Permission is only granted to system apps
此类权限仅授予系统级应用,可以修改下Link Error Checking项的安全级别;
Window -> Preferences -> Android -> Lint Error Checking
在ID列表中,找到ID = ProtectedPermission,设置Serverity低于Error,比如Warning级别就好了。如上图所示
0 0
- permission is only granted to system apps
- Permission is only granted to system apps
- permission is only granted to system apps
- Permission is only granted to system apps
- permission is only granted to system apps .
- permission is only granted to system apps
- Permission is only granted to system apps
- permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps
- Permission is only granted to system apps解决方法
- Mark一下 Permission is only granted to system apps
- permission is only granted to system apps错误
- 链表的删除和插入
- Struts面试题
- 【软考】递归调用
- POJ 2528 Mayor's posters(线段树+离散化)
- android发送短信
- Permission is only granted to system apps
- Java中Object类
- JavaScript打开新页面的方法
- 【实例】html-canvas中实现图片的放大
- android系统service组件的线程关系
- Matlab中fft函数的用法及关键问题详解
- android编写junit单元测试
- J2EE面试题集
- 包装类