Skip to content Skip to sidebar Skip to footer

Android Error Message On Install "no Content Provider Found"

I'm trying to write a broadcast receiver that gets called for every SMS text message that comes in. All the published code to do that (that I can find) either has been deprecated

Solution 1:

Your code (and mine) works just fine on another handset, Mark. I had flashed ICS onto this phone, and I suspect there's something slightly out of whack. It's the handset or the build. Thank you, Peter

Solution 2:

Look for a(another) error message

“No content provider found or permission revoke” is a warning that may not mean anything wrong. In the package install case I investigated it's just a warning message that the package URI doesn't contain an 'authority' (userid/password) portion. handleStartCopy(), (in frameworks/base/services/java/com/android/server/pm/PackageManagerService.java) does:

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)

For me, this part of the .apk install process worked -- despite the warning message. Check logcat showed for other messages that might indicate why it failed.

Post a Comment for "Android Error Message On Install "no Content Provider Found""