Service failed to start due to "Denial of permission", permission is null

My program works fine, but I think I must have accidentally changed what I shouldn't have done. I had my program with "UpdateService" with the click of a button, but now it does not start, and debug displays the following two lines:

01-05 21:43:39.945: WARN/ActivityManager(98): Permission denied: checkComponentPermission() reqUid=10084 01-05 21:43:39.955: WARN/ActivityManager(98): Permission Denial: Accessing service ComponentInfo{com.android.datausagemonitor/com.android.datausagemonitor.UpdateService} from pid=98, uid=1000 requires null 

Here is my manifest, judging by similar reports, this may be a problem with this, but I donโ€™t see it, and Iโ€™m sure I havenโ€™t changed anything since the last time it worked:

 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.datausagemonitor" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="3" /> <uses-permission android:name="android.permission.READ_CONTACTS"></uses-permission> <uses-permission android:name="android.permission.READ_SMS"></uses-permission> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".DataUsageMonitorActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name="com.android.datausagemonitor.UpdateService"></service> <service android:name="com.android.datausagemonitor.ResetService"></service> </application> 

+6
source share
1 answer

[Solved] There was a problem with Uid between Eclipse and the device I tested on. Rebooting the device solved the problem.

+7
source

Source: https://habr.com/ru/post/905249/


All Articles