Android "Missing content provider or permission to cancel" using android 4

I have an Android app that works fine on Android 2-2 and 2-3. But when I try to install the application on Android 4-0 or 4-2-2, I get the following error twice:

No content provider found to revoke permission: file: ///data/local/tmp/myapp.apk

I found out that others had a similar problem, and I tried the solutions mentioned in the following links:

It is not possible to install the APK on an Android device via Eclipse for this I must say that my device is not implemented. I am trying to run an application on an emulator.

Android 4.0.3 emulator: installation ends with revoking permission "

Android error message during installation and the absence of a content provider here I tried another phone for the emulator. I originally used the nexus galaxy, but I also tried with nexus 7

Android "There is no content provider found to revoke permission" last but not least: I tried to add the main action to "androidmanifest.xml". I'm not sure if I did this right, this is the manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.service" android:versionCode="1" android:versionName="1.0" > <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.SEND_SMS" /> <uses-permission android:name="android.permission.RECEIVE_SMS" /> <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_SMS" /> <uses-permission android:name="android.permission.READ_SMS" /> <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="6" android:maxSdkVersion="17"/> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" android:debuggable="true"> <activity android:name=".SMSReceiver"> <intent-filter android:priority="1000"> <action android:name="android.intent.action.MAIN"/> <action android:name="android.provider.Telephony.SMS_RECEIVED"/> <action android:name="android.intent.action.NEW_OUTGOING_CALL"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> 

Is there something wrong with my manifest.xml file or do you have another idea why I can run this application on android 2, but not 4?

+4
source share
4 answers

I had the same problem and none of the current answers fooled. This worked for me:

adb install -s C: /path/to/your/package/bin/MyApp.apk

'- s' puts it on the SD card, I'm not sure if this is necessary in your case.

+3
source

This message may indicate insufficient internal storage on the device. There is a certain level at which Android begins to complain and will not install new applications. I saw: “There is no content provider found to revoke permission”, followed by errors like “insufficient space” or “Installation error code: -20”, or “INSTALL_FAILED_MEDIA_UNAVAILABLE”, or “Package installation status for -20” - all this means that same thing. In my case, the solution was to free some storage (clear cache / data, delete some applications).

+1
source

Add some memory to your virtual device and uninstall the application. Reinstall, and voila! This worked for me, and I didn't even use the repository in my application.

0
source

Red Herring: "Content Provider Not Found or Permission Canceled"

I found this message to strangers. In the case of installing the package, I examined this only warning that the package URI does not contain part of the permissions (userid / password). handleStartCopy (), (within /base/services/java/com/android/server/pm/PackageManagerService.java):

 mContext.grantUriPermission(DEFAULT_CONTAINER_PACKAGE, mPackageURI, Intent.FLAG_GRANT_READ_URI_PERMISSION); 

some work, then:

 mContext.revokeUriPermission(mPackageURI, Intent.FLAG_GRANT_READ_URI_PERMISSION); 

the message is true but inconsequential. (removeUriPermission () is in frameworks / base / services / java / com / android / server / pm / ActivityManagerService.java)

0
source

All Articles