ANDROID not granting permission

im my application, it does not grant the permission for gps location update control. In logcat it shows 11-09 12:00:45.496: WARN/PackageManager(86): Not granting permission android.permission.CONTROL_LOCATION_UPDATES to package com.ars.application (protectionLevel=3 flags=0x7e46)

I have included the permission for this in manifest.xml as

<uses-permission
android:name="android.permission.CONTROL_LOCATION_UPDATES"></uses-permission>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<uses-permission
 android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<uses-permission
android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></uses-permission>
<uses-permission
android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>

What is the mistake in this for not getting the permission??


asifkt,

Please note the CONTROL_LOCATION_UPDATES permission has: android:protectionLevel="signature", which means only applications built into the system image can have this permission.

链接地址: http://www.djcxy.com/p/85332.html

上一篇: 默认安装应用程序,授予INSTALL

下一篇: ANDROID未授予许可