SecurityException: Permission Denial when user clicks on ads

3,897 views
Skip to first unread message

Sulabh Puri

unread,
Jul 12, 2018, 2:30:22 AM7/12/18
to Google Mobile Ads SDK Developers
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.blacklightsw.ludo/com.google.android.gms.ads.AdActivity}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://googleads.g.doubleclick.net/... flg=0x10000000 cmp=com.mxtech.videoplayer.ad/com.mxtech.videoplayer.ActivityWebBrowser } from ProcessRecord{10e6e51 23092:com.blacklightsw.ludo/u0a172} (pid=23092, uid=10172) not exported from uid 10110
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2430)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
       at android.app.ActivityThread.access$900(ActivityThread.java:157)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5437)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

implementation 'com.google.firebase:firebase-ads:15.0.1'
buildToolsVersion '27.0.3'

Is there a way where we can prevent these kind of crashes from our side?

mobileadssdk-a...@google.com

unread,
Jul 12, 2018, 6:12:18 AM7/12/18
to Sulabh Puri, Google Mobile Ads SDK Developers
Hi there,

Thanks for contacting us.

Based on the crash logs you've shared, it seems that the devices of the affected users have MX Player installed (com.mxtech.videoplayer.ad). That said, why might have happened when they click an Ad, it launches the ActivityWebBrowser of MX Player app instead of the default browser. The SecurityException seems to be triggered when ActivityWebBrowser (which I assume should not be externally accessible) was launched from your app (which has different user Id from MX Player).

However, for troubleshooting purposes, could you try the following on your end?
  • With MX Player installed in the device, download and run our sample apps. Click an Ad and see if the SecurityException is reproducible.
  • If possible, uninstall the MX Player app from the affected device and see if the SecurityException persists.
Also, could you provide the model of the affected devices and the Google Play Services version installed?

Regards,
Steven Balan
Mobile Ads SDK Team

Sulabh Puri

unread,
Jul 12, 2018, 9:45:28 AM7/12/18
to google-adm...@googlegroups.com
Hi, 
 
With MX Player installed in the device, download and run our sample apps. Click an Ad and see if the SecurityException is reproducible. Tried with both the samples and our app with MX Player installed. MX Player was not shown as an option to complete action. Looks to me like user clicked MX Player ad for retargeting and were redirected to their activity through deep linking where it crashed.
Screenshot_2018-07-12-17-58-06.png

mobileadssdk-a...@google.com

unread,
Jul 13, 2018, 1:31:43 AM7/13/18
to Sulabh Puri, Google Mobile Ads SDK Developers
Hi there,

Thanks for testing and taking time to share your findings.

Do you mean to say that you were not able to reproduce this crash on your end? Upon testing on my end, I didn't encounter this crash. That said, could you provide to us the details of the affected devices and the version of the Google Play Services installed?

bhavesh.s...@gmail.com

unread,
Nov 5, 2018, 4:21:33 AM11/5/18
to Google Mobile Ads SDK Developers
Hello,

We found same bug in our app.

These are the details of the devices : -

1) Coolpad 3505I,
   Version Android 6.0,
2) YuLong - Coolpad 3600i   
   Version Android 6.0.1
3) Xiaomi - 1) HM NOTE 1LTETD
                   2) HM NOTE 1S CT
     Version Android 4.4.4
4) TECNO MOBILE LIMITED - TECNO IN1
     Version Android 8.1.0
5) Sony - Xperia Z3 Dual
     Version Android 6.0.1
6) OPPO - A1601
     Version Android 5.1
7) HMD Global - Nokia 1
     Version - Android 8.1.0

And  this is crash : - 

Caused by java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://click.liftoff.io/... flg=0x10000000 cmp=com.mxtech.videoplayer.ad/com.mxtech.videoplayer.ActivityWebBrowser } from ProcessRecord{4c87bd4 18181:com.srashtasoft.okgooglecommands/u0a160} (pid=18181, uid=10160) not exported from uid 10128
       at android.os.Parcel.readException(Parcel.java:2005)
       at android.os.Parcel.readException(Parcel.java:1951)
       at android.app.IActivityManager$Stub$Proxy.startActivity(IActivityManager.java:4387)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1611)
       at android.app.Activity.startActivityForResult(Activity.java:4501)
       at android.app.Activity.startActivityForResult(Activity.java:4459)
       at android.app.Activity.startActivity(Activity.java:4820)
       at android.app.Activity.startActivity(Activity.java:4788)
       at com.google.android.gms.ads.internal.util.m.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):275)
       at com.google.android.gms.ads.internal.overlay.a.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):34)
       at com.google.android.gms.ads.internal.overlay.a.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):25)
       at com.google.android.gms.ads.internal.overlay.r.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):12)
       at com.google.android.gms.ads.internal.overlay.client.c.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):30)
       at mu.onTransact(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):4)
       at android.os.Binder.transact(Binder.java:627)
       at com.google.android.gms.internal.zzeu.zzb(Unknown Source:7)
       at com.google.android.gms.internal.zzxg.onCreate(Unknown Source:8)
       at com.google.android.gms.ads.AdActivity.onCreate(Unknown Source:28)
       at android.app.Activity.performCreate(Activity.java:7023)
       at android.app.Activity.performCreate(Activity.java:7014)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2758)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2883)
       at android.app.ActivityThread.-wrap11(Unknown Source)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1613)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6523)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)

Hoping for positive reply 
Thank You,
Bhavesh Sathwara.
Android Developer,
@SrashtaSoft.

mobileadssdk-a...@google.com

unread,
Nov 5, 2018, 3:35:10 PM11/5/18
to bhavesh.s...@gmail.com, Google Mobile Ads SDK Developers
Hi Bhavesh,

Are you able to reproduce the crash locally? If yes, can you please share the steps to reproduce the issue using our sample apps?

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/33bbc150-3f00-478d-b85b-5cb3e627d9c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bhavesh Sathwara

unread,
Nov 13, 2018, 7:28:36 AM11/13/18
to Google Mobile Ads SDK Developers
Hii Deepika Urahayala,

This crash is generated when any device comes this ads from this package : -com.mxtech.videoplayer.ad/com.mxtech.videoplayer.ActivityWebBrowser

So try to check this ads only because i am getting crash when user get this ads on thme devices.

Thank You,
Regards,
Bhavesh Sathwara
Android Developer
@SrashtaSoft.

mobileadssdk-a...@google.com

unread,
Nov 13, 2018, 3:01:36 PM11/13/18
to Bhavesh Sathwara, Google Mobile Ads SDK Developers
Hi Bhavesh,

Can you please share the Charles logs and are you able to reproduce the issue with yourself when you try with that package name? If yes, please share the Charles logs (here are setup instructionsand complete device logs for us o take a look.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

       at com.google.android.gms.ads.internal.util.m.a(:com.google.android.gms.dynamite_adsdynamite@1436...@14.3.67 (110304-216465562):275)
       at com.google.android.gms.ads.internal.overlay.a.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):34)
       at com.google.android.gms.ads.internal.overlay.a.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):25)
       at com.google.android.gms.ads.internal.overlay.r.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):12)
       at com.google.android.gms.ads.internal.overlay.client.c.a(:com.google.android.gms.dynamite_adsdynamite@14367095@14.3.67 (110304-216465562):30)
       at mu.onTransact(:com.google.android.gms.dynamite_adsdynamite@1436...@14.3.67 (110304-216465562):4)
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

mobileadssdk-a...@google.com

unread,
Nov 14, 2018, 2:52:28 PM11/14/18
to Bhavesh Sathwara, Google Mobile Ads SDK Developers
Hi Bhavesh,

We would not be able to detect the ads that are coming from the package name as we don't deal with Ad Serving. If you are able to capture any specific creative that is causing this crash, please share the Ad unit Id with us and we will be able to assist you further.

Regards,
Deepika Uragyala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Vairavan Srinivasan

unread,
Feb 20, 2019, 2:13:45 PM2/20/19
to Google Mobile Ads SDK Developers
I got the same exception from these devices

Micromax Q440

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://adclick.g.doubleclick.net/... flg=0x10000000 cmp=com.mxtech.videoplayer.ad/com.mxtech.videoplayer.ActivityWebBrowser }

mobileadssdk...@google.com

unread,
Feb 20, 2019, 3:11:45 PM2/20/19
to Vairavan Srinivasan, Google Mobile Ads SDK Developers
Hello there,

Thanks for reaching out to us. I found a relevant thread and it seems related to this issue.You can go through this StackOverflow post for more information on this. 

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

Pablo Alfonso

unread,
Jul 14, 2020, 11:11:25 AM7/14/20
to Google Mobile Ads SDK Developers
So, what is the solution for this case after two years?

I'm getting crashes with same error too.

According to the suggested StackOverflow post, "Android shouldn't crash the app, it should ignore unexported activities in this case."

If there is some app causing this issue, this fact should not interfere with the behavior of other apps.

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 14, 2020, 11:30:23 AM7/14/20
to google-adm...@googlegroups.com
Hi Pablo,

Thank you for bringing this crash up. We haven't heard of this issue since then. If you are experiencing crashes like this then please forward to us your crashlogs and Charles logs of the crash if you can record it, and if you have a reliable way of reproducing it please modify one of our sample apps and send it to us with steps to reliably reproduce.

Kind regards,
Aryeh Baker
Mobile Ads SDK Team

ref:_00D1U1174p._5004Q21ldIZ:ref

hiddeneyes02

unread,
Oct 29, 2020, 4:13:48 PM10/29/20
to Google Mobile Ads SDK Developers
Getting the same error here.
Android   7.1.2   Device: FHD Ultra Slim LED TV Powered by Android  

Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://googleads.g.doubleclick.net/... flg=0x10000000 cmp=com.mxtech.videoplayer.ad/com.mxtech.videoplayer.ActivityWebBrowser } from ProcessRecord{cca1b6d 22699:com.dzboot.vpn/u0a152} (pid=22699, uid=10152) not exported from uid 10094
       at android.os.Parcel.readException(Parcel.java:1684)
       at android.os.Parcel.readException(Parcel.java:1637)
       at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:3101)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1518)
       at android.app.Activity.startActivityForResult(Activity.java:4228)
       at android.app.Activity.startActivityForResult(Activity.java:4186)
       at android.app.Activity.startActivity(Activity.java:4525)
       at android.app.Activity.startActivity(Activity.java:4493)
       at com.google.android.gms.internal.ads.zzbhz.startActivity(com.google.android.gms:play-services-ads@@19.4.0:10)
       at com.google.android.gms.internal.ads.zzayu.zza(com.google.android.gms:play-services-ads@@19.4.0:332)
       at com.google.android.gms.ads.internal.overlay.zza.zza(com.google.android.gms:play-services-ads@@19.4.0:43)
       at com.google.android.gms.ads.internal.overlay.zza.zza(com.google.android.gms:play-services-ads@@19.4.0:7)
       at com.google.android.gms.ads.internal.overlay.zzl.zza(com.google.android.gms:play-services-ads@@19.4.0:6)
       at com.google.android.gms.internal.ads.zzbgi.zza(com.google.android.gms:play-services-ads@@19.4.0:175)
       at com.google.android.gms.internal.ads.zzbgi.zza(com.google.android.gms:play-services-ads@@19.4.0:146)
       at com.google.android.gms.internal.ads.zzbgz.zza(com.google.android.gms:play-services-ads@@19.4.0:623)
       at com.google.android.gms.internal.ads.zzbgu.zza(com.google.android.gms:play-services-ads@@19.4.0:164)
       at com.google.android.gms.internal.ads.zzahu.zza(com.google.android.gms:play-services-ads@@19.4.0:74)
       at com.google.android.gms.internal.ads.zzbgi.zza(com.google.android.gms:play-services-ads@@19.4.0:376)
       at com.google.android.gms.internal.ads.zzbgi.zzh(com.google.android.gms:play-services-ads@@19.4.0:355)
       at com.google.android.gms.internal.ads.zzbhh.zzh(com.google.android.gms:play-services-ads@@19.4.0:6)
       at com.google.android.gms.internal.ads.zzbhe.zzfu(com.google.android.gms:play-services-ads@@19.4.0:28)
       at com.google.android.gms.internal.ads.zzbhg.run(com.google.android.gms:play-services-ads@@19.4.0)
       at android.os.Handler.handleCallback(Handler.java:751)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at com.google.android.gms.internal.ads.zzdvo.zzb(com.google.android.gms:play-services-ads-lite@@19.4.0:7)
       at com.google.android.gms.internal.ads.zzayo.zzb(com.google.android.gms:play-services-ads@@19.4.0:8)
       at com.google.android.gms.internal.ads.zzdvo.dispatchMessage(com.google.android.gms:play-services-ads-lite@@19.4.0:5)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6121)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 29, 2020, 11:25:46 PM10/29/20
to fahd.z...@gmail.com, google-adm...@googlegroups.com

Hi there,

Thank you for reaching out to us.

First off, kindly note that the AdMob SDK does not officially support Android TV as one of its platforms, and thus I'm afraid that we are unable to provide full technical support for it.

Second, the mention of com.mxtech.videoplayer.ad in the stack trace implies that this app is installed on your device, and is interfering with the AdMob SDK's ability to display its ads. You may try uninstalling that and seeing if that would fix the issue.
 

Google Logo
Ziv Yves Sanchez
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q21ldIZ:ref

Jane

unread,
Sep 11, 2022, 4:21:55 AM9/11/22
to Google Mobile Ads SDK Developers
Hi:
 I have the same error in my logcat by casttv:
Caused by java.lang.SecurityException
Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.casttv.castforchromecast.screencast/com.thntech.cast68.screen.tab.webcast.WebCastActivity } from ProcessRecord{bc663 26911/u0a154} (pid=26911, uid=10154) not exported from uid 10118
How can I solve the problem?



Mobile Ads SDK Forum Advisor

unread,
Sep 13, 2022, 1:38:40 AM9/13/22
to goticanap...@gmail.com, google-adm...@googlegroups.com

Hi Jane,

Thank you for reaching out to us.

 

For us to further check this concern, can you provide us the following information below? You can provide the following details via Reply privately to author option or directly provide it to the link below.

  • Sample app project
  • Steps to replicate
  • Full stack trace
  • SDK version used
  • App ID

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q000021ldIZQAY&entry.80707362=00041304

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q21ldIZ:ref

stevieh...@gmail.com

unread,
Oct 26, 2022, 8:40:02 AM10/26/22
to Google Mobile Ads SDK Developers
Hi all,

Bringing this up again. We're still getting this, 4 years after it was reported. It occurs on android 9 and above so far.

1.I don't have a sample app, as it'd take me months to unpick all un-related code.
2. Can't replicate as it doesn't crash on any of my 10 test phones.

3. Stack trace:

Caused by java.lang.SecurityException:
  at android.os.Parcel.createExceptionOrNull (Parcel.java:2373)
  at android.os.Parcel.createException (Parcel.java:2357)
  at android.os.Parcel.readException (Parcel.java:2340)
  at android.os.Parcel.readException (Parcel.java:2282)
  at android.app.IActivityTaskManager$Stub$Proxy.startActivity (IActivityTaskManager.java:3781)
  at android.app.Instrumentation.execStartActivity (Instrumentation.java:1723)
  at android.app.Activity.startActivityForResult (Activity.java:5416)
  at android.app.Activity.startActivityForResult (Activity.java:5374)
  at android.app.Activity.startActivity (Activity.java:5764)
  at android.app.Activity.startActivity (Activity.java:5717)
  at com.google.android.gms.ads.internal.util.q.H (:com.google.android.gms.policy_ads_fdr_dynamite@223104600@223104600057.463978484.463978484:2)
  at com.google.android.gms.ads.internal.overlay.a.a (:com.google.android.gms.policy_ads_fdr_dynamite@223104600@223104600057.463978484.463978484:3)
  at com.google.android.gms.ads.internal.overlay.a.b (:com.google.android.gms.policy_ads_fdr_dynamite@223104600@223104600057.463978484.463978484:17)
  at com.google.android.gms.ads.internal.overlay.w.d (:com.google.android.gms.policy_ads_fdr_dynamite@223104600@223104600057.463978484.463978484:8)
  at com.google.android.gms.ads.internal.overlay.client.a.bN (:com.google.android.gms.policy_ads_fdr_dynamite@223104600@223104600057.463978484.463978484:23)
  at aer.onTransact (:com.google.android.gms.policy_ads_fdr_dynamite@223104600@223104600057.463978484.463978484:4)
  at android.os.Binder.transact (Binder.java:1052)
  at com.google.android.gms.internal.ads.uh.B0
  at com.google.android.gms.internal.ads.df0.l4
  at com.google.android.gms.ads.AdActivity.onCreate
  at android.app.Activity.performCreate (Activity.java:8108)
  at android.app.Activity.performCreate (Activity.java:8092)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1309)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3501)

Admob version : com.google.android.gms:play-services-ads:21.3.0'
Compile/targets SDK : 33
I can give you our app id privately if you like.

Thanks,

Steve.

Mobile Ads SDK Forum Advisor

unread,
Oct 26, 2022, 1:52:47 PM10/26/22
to stevieh...@gmail.com, google-adm...@googlegroups.com
Hi Steve,

Thank you for getting back to us. For your AdMob App ID, kindly provide it to us using reply privately to author option. Also, since the issue is not reproducible locally, could you share the percentage occurrence of the crash as well? Once provided, I'll be raising this to the wider team for further investigation.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q21ldIZ:ref

John

unread,
Nov 29, 2022, 2:04:08 AM11/29/22
to Google Mobile Ads SDK Developers

Hi,

 I have the same issue, when an interstitial ad popups up and I click the ad, my app crashes, it’s quite easy to reproduce.

 Firebase log is as the following:

================================

Caused by java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.casttv.castforchromecast.screencast/com.thntech.cast68.screen.tab.webcast.WebCastActivity mCallingUid=10187 } from ProcessRecord{e423e01 24051:com.boost.universal.remote/u0a187} (pid=24051, uid=10187) not exported from uid 10212

  at android.os.Parcel.createException(Parcel.java:2088)

  at android.os.Parcel.readException(Parcel.java:2056)

  at android.os.Parcel.readException(Parcel.java:2004)

  at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:3872)

  at android.app.Instrumentation.execStartActivity(Instrumentation.java:1712)

  at android.app.Activity.startActivityForResult(Activity.java:5334)

  at android.app.Activity.startActivityForResult(Activity.java:5265)

  at android.app.Activity.startActivity(Activity.java:5663)

  at android.app.Activity.startActivity(Activity.java:5631)

  at com.google.android.gms.ads.internal.util.q.S(q.java:2)

  at com.google.android.gms.ads.internal.util.q.M(q.java:4)

  at com.google.android.gms.ads.internal.overlay.a.a(a.java:3)

  at com.google.android.gms.ads.internal.overlay.a.b(a.java:3)

  at com.google.android.gms.ads.internal.overlay.w.d(w.java:8)

  at com.google.android.gms.ads.internal.overlay.client.a.bQ(a.java:23)

  at aeu.onTransact(aeu.java:4)

  at android.os.Binder.transact(Binder.java:914)

  at com.google.android.gms.internal.ads.zzaqw.zzbl(com.google.android.gms:play-services-ads-base@@21.1.0:2)

  at com.google.android.gms.internal.ads.zzbxt.zzk(com.google.android.gms:play-services-ads-lite@@21.1.0:3)

  at com.google.android.gms.ads.AdActivity.onCreate(com.google.android.gms:play-services-ads-lite@@21.1.0:3)

  at android.app.Activity.performCreate(Activity.java:7980)

  at android.app.Activity.performCreate(Activity.java:7969)

  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)

  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3508)

  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3692)

  at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)

  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)

  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100)

  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2235)

  at android.os.Handler.dispatchMessage(Handler.java:107)

  at android.os.Looper.loop(Looper.java:240)

  at android.app.ActivityThread.main(ActivityThread.java:7829)

  at java.lang.reflect.Method.invoke(Method.java)

  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:512)

  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1027)

======================================


According to the log, it seems that another APP with packagename “com.casttv.castforchromecast.screencast” has something to do with the crash. Their WebCastActivity has absorbed the launch intent., which seems probably is to launch a browser. But They didn’t export their own web Activity, then java.lang.SecurityException is thrown 


This bug can be replicated on many devices. According to our Firebase Crashlytics log, there are Samsung G930V, motorola one zoom android 10, Nokia G400 5G android 12, etc


Any suggestion how to prevent this crash frome happening since I can’t catch such exception in my own code?

Sohaib Ahmed

unread,
Dec 1, 2022, 12:26:21 AM12/1/22
to Google Mobile Ads SDK Developers
Hi there,

I'm also getting this crash. 

The steps are easy & reproduce-able. 
1) Install Mx-Player App 
2) Disable Chrome or any browser App
3) Run your app & click on any testing interstitial-Ad
4) It will throw an exception, see in logcats / crashlytics.

Solution by ME
 * Admob-SDK developers should handle this kind of security exception. If others apps are unable to show web-links, the exception should be caught maybe like this
    try {
         ...
         startActivity(intent)
    } catch (ex: Security Exception) {
         //handleCrash()
    }

* So, in this way our crashlytics will not admob issues. 


It is not only limited to Mx-Player, but also different applications like screenCast.

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{photocollage.photoeditor.layout.collagemaker.photo.grid/com.google.android.gms.ads.AdActivity}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.casttv.castforchromecast.screencast/com.thntech.cast68.screen.tab.webcast.WebCastActivity } from ProcessRecord{44bfc4c 20566:photocollage.photoeditor.layout.collagemaker.photo.grid/u0a251} (pid=20566, uid=10251) not exported from uid 10246
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3322)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3471)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2058)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:226)
       at android.app.ActivityThread.main(ActivityThread.java:7592)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://www.googleadservices.com/... flg=0x10000000 cmp=com.casttv.castforchromecast.screencast/com.thntech.cast68.screen.tab.webcast.WebCastActivity } from ProcessRecord{44bfc4c 20566:photocollage.photoeditor.layout.collagemaker.photo.grid/u0a251} (pid=20566, uid=10251) not exported from uid 10246
       at android.os.Parcel.createException(Parcel.java:2074)
       at android.os.Parcel.readException(Parcel.java:2042)
       at android.os.Parcel.readException(Parcel.java:1990)
       at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:3973)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1716)
       at android.app.Activity.startActivityForResult(Activity.java:5277)
       at android.app.Activity.startActivityForResult(Activity.java:5235)
       at android.app.Activity.startActivity(Activity.java:5606)
       at android.app.Activity.startActivity(Activity.java:5574)

       at com.google.android.gms.ads.internal.util.q.S(q.java:2)
       at com.google.android.gms.ads.internal.util.q.M(q.java:4)
       at com.google.android.gms.ads.internal.overlay.a.a(a.java:3)
       at com.google.android.gms.ads.internal.overlay.a.b(a.java:3)
       at com.google.android.gms.ads.internal.overlay.w.d(w.java:8)
       at com.google.android.gms.ads.internal.overlay.client.a.bQ(a.java:23)
       at aeu.onTransact(aeu.java:4)
       at android.os.Binder.transact(Binder.java:917)
       at com.google.android.gms.internal.ads.zzarz.zzbl(zzarz.java:7)
       at com.google.android.gms.internal.ads.zzbza.zzk(zzbza.java:8)
       at com.google.android.gms.ads.AdActivity.onCreate(AdActivity.java:49)
       at android.app.Activity.performCreate(Activity.java:7916)
       at android.app.Activity.performCreate(Activity.java:7903)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3297)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3471)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2058)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:226)
       at android.app.ActivityThread.main(ActivityThread.java:7592)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Mobile Ads SDK Forum Advisor

unread,
Dec 1, 2022, 11:52:47 AM12/1/22
to sohaibahme...@gmail.com, google-adm...@googlegroups.com
Hi Sohaib,

Thank you for sharing your solution to the community. However, I'm having trouble following the steps and validating the solution on my end. Could you please clarify the following? Lastly, would it be possible for you to provide a screen recording and a sample app that reliably reproduce the issue? This will greatly help us in our investigation. You may provide it by following the steps below.

 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q000021ldIZQAY&entry.80707362=00041304

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.



Reply all
Reply to author
Forward
0 new messages