消除“Permission is only granted to system apps”错误


from://http://blog.csdn.net/gaojinshan/article/details/14230673

在AndroidManifest.xml中使用了如下的配置:
<uses-permission android:name="android.permission.INSTALL_PACKAGES" />

就会报错:Permission is only granted to system apps

原因如下:
此类权限仅授予系统级应用,可以修改下Link Error Checking项的安全级别;
In Eclipse: Window -> Preferences -> Android -> Lint Error Checking
在ID列表中,找到ID = ProtectedPermission,设置Serverity低于Error,比如Warning级别就好了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM