Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.SecurityException: Not allowed to start service Intent without permission com.google.android.c2dm.permission.RECEIVE #87

Closed
agilob opened this issue Apr 19, 2016 · 5 comments

Comments

@agilob
Copy link

agilob commented Apr 19, 2016

java.lang.SecurityException: Not allowed to start service Intent { 
act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has extras) }
without permission
com.google.android.c2dm.permission.RECEIVE
at android.app.ContextImpl.startService(ContextImpl.java:1217)
at android.content.ContextWrapper.startService(ContextWrapper.java:383)
at org.microg.gms.gcm.PushRegisterProxy.onHandleIntent(PushRegisterProxy.java:32)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.os.HandlerThread.run(HandlerThread.java:60)

Same device, android 4.1.2 LG, stock ROM.

@mar-v-in
Copy link
Member

  1. You are using microG GmsCore. Issues with GmsCore should be reported in its issue tracker: https://github.com/microg/android_packages_apps_GmsCore/issues
  2. This happens when you installed an application that uses GCM before you installed GmsCore. Android was not able to grant the requires permission to the app because it did not know about the permission at all (because it is defined in GmsCore). To work around this issue you can re-install the app that causes the problem (no need to remove it, just install it again).

@agilob
Copy link
Author

agilob commented Apr 19, 2016

Thanks for the explanation. How can I identify those apps?

@mar-v-in
Copy link
Member

In your case it seems to be the GsfProxy app. It depends on the app how or if at all it displays the exception in logcat.

@HanteIsHante
Copy link

I have encountered the same problem, but what does this have to do with GmsCore?
Question URL HanteIsHante/file#62

@ale5000-git
Copy link
Member

ale5000-git commented Jan 17, 2019

@HanteIsHante

This error is related to GCM (C2DM is the old version of GCM), it is a "function" not included in UnifiedNlp but included in GmsCore (it possible also need GsfProxy).

So if you are using UnifiedNlp, then the app will never work.
You have to use GmsCore (GmsCore also include all things included in UnifiedNlp but they aren't related to this specific error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants