Admob Crash

2,137 views
Skip to first unread message

jaryd Liu

unread,
May 27, 2020, 11:35:10 PM5/27/20
to Google Mobile Ads SDK Developers
Admob sdk run on some device will crash.Why does it happen? 
logcat detail:
2020-05-28 10:24:36.942 26911-26911/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.google.android.gms.persistent, PID: 26911
    java.lang.RuntimeException: Unable to create application com.google.android.gms.common.app.GmsApplication: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10247 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7250)
        at android.app.ActivityThread.access$2200(ActivityThread.java:298)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2223)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:213)
        at android.app.ActivityThread.main(ActivityThread.java:8210)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
     Caused by: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10247 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
        at android.os.Parcel.createException(Parcel.java:2071)
        at android.os.Parcel.readException(Parcel.java:2039)
        at android.os.Parcel.readException(Parcel.java:1987)
        at android.content.pm.IPackageManager$Stub$Proxy.addOnPermissionsChangeListener(IPackageManager.java:9033)
        at android.app.ApplicationPackageManager.addOnPermissionsChangeListener(ApplicationPackageManager.java:1627)
        at rdw.a(:com.google.android.gms@15090033@15.0.90 (100300-231259764):12)
        at com.google.android.gms.common.app.GmsApplication.onCreate(:com.google.android.gms@15090033@15.0.90 (100300-231259764):89)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1202)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7234)
        at android.app.ActivityThread.access$2200(ActivityThread.java:298) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2223) 
        at android.os.Handler.dispatchMessage(Handler.java:107) 
        at android.os.Looper.loop(Looper.java:213) 
        at android.app.ActivityThread.main(ActivityThread.java:8210) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101) 

Mobile Ads SDK Forum Advisor Prod

unread,
May 28, 2020, 3:09:27 AM5/28/20
to 2282...@qq.com, google-adm...@googlegroups.com

Hi Jaryd,

 

Thank you for reaching out to us.

 

This seems to be more of a Google Play Services issue rather than an AdMob SDK one, as evidenced by the terms "com.google.android.gms.common.app.GmsApplication" and "com.google.android.gms.persistent". The Google Play Services of affected devices may have been disabled, or otherwise rendered non-functional, which may have led to these crashes.

 

I would suggest reaching out to the Google Play Help Center for further assistance on your concern, as I'm afraid that we can only assist you in your technical concerns with the AdMob SDK in this forum.

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5004Q1zsUa7:ref

Liran Barsisa

unread,
Aug 25, 2024, 11:55:09 AM8/25/24
to Google Mobile Ads SDK Developers
I have the same issue. Rare, but still occurs.
Any help about this?
I also reported it here:
https://issuetracker.google.com/issues/361964001

Mobile Ads SDK Forum Advisor

unread,
Aug 26, 2024, 5:07:18 AM8/26/24
to lbl...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for contacting the Mobile Ads SDK Support team.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated. 

This message is in relation to case "ref:!00D1U01174p.!5004Q01zsUa7:ref" (ADR-00037231)

Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Aug 28, 2024, 10:01:12 AM8/28/24
to lbl...@gmail.com, google-adm...@googlegroups.com
Hi Liran,

addOnPermissionsChangeListener is protected by permission android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS which is a signature | privileged permission. From the stack trace it looks like the caller of addOnPermissionsChangeListener doesn't have required permission. It's hard to find out why the caller doesn't have such permission, but it's not caused by the Google Mobile Ads SDK.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q01zsUa7:ref" (ADR-00037231)

Thanks,
 
Google Logo
Jill Song
Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages