错误:从ADB启动服务时需要权限

时间:2018-06-29 06:14:59

标签: android service permissions

am startservice com.xxx.xxx.locationservice / .GPSService

  

错误:需要权限com.xxx.xxx.locationservice.GPSService

这是我的manifest.xml

<service
android:name=".GPSService"
android:permission="com.xxx.xxx.locationservice.GPSService"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
    <action android:name="com.xxx.xxx.locationservice.GPSService"/>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</service>

你能帮我吗?怎么了? Android版本7.1.2

0 个答案:

没有答案