Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unknown calling package name 'com.google.android.gms'

1,410 views
Skip to first unread message

Saima Usman

unread,
Nov 20, 2024, 8:05:25 AM11/20/24
to Google Mobile Ads SDK Developers
I am trying to show App Open Ad in my android app in the beginning of the app with a delay of 10 seconds. The issue I am facing is that in the first run it gives the following error but in the next run the app and the app Open Ad is shown perfectly fine:

Failed to get service from broker.
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
at android.os.Parcel.createExceptionOrNull(Parcel.java:2390)
at android.os.Parcel.createException(Parcel.java:2374)
at android.os.Parcel.readException(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2299)
at alvr.a(:com.google.android.gms@244433022@24.44.33 (150400-694629214):36)
at alty.z(:com.google.android.gms@244433022@24.44.33 (150400-694629214):150)
at albi.run(:com.google.android.gms@244433022@24.44.33 (150400-694629214):54)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at bqws.lR(:com.google.android.gms@244433022@24.44.33 (150400-694629214):1)
at bqws.dispatchMessage(:com.google.android.gms@244433022@24.44.33 (150400-694629214):5)
at android.os.Looper.loop(Looper.java:264)
at android.os.HandlerThread.run(HandlerThread.java:67)

Any help would be appreciated. Regards.

Mobile Ads SDK Forum Advisor

unread,
Nov 20, 2024, 11:33:02 AM11/20/24
to saima.u...@gmail.com, google-adm...@googlegroups.com

Hi,

In response to your concern, I understand that you are experiencing errors while showing App Open ads in your Android app. Could you please attempt to run our Google sample project to replicate the issue and confirm the results with us? Kindly provide us with the below information for further investigation privately:

  • app ID
  • ad unit ID
  • Mobile Ads SDK Version
  • Breakdown of device/OS versions affected
  • Sample project reproducing the issue

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, kindly provide requested information to us via reply to author option or using 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=5004Q00002vGlJ7QAK&entry.80707362=00276237

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.

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

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Mobile Ads SDK Forum Advisor

unread,
Dec 5, 2024, 5:46:10 PM12/5/24
to saima.u...@gmail.com, google-adm...@googlegroups.com
Hi Saima,

I've tried running this sample project by putting 10 seconds delay when showing ads but it's not showing "java.lang.SecurityException: Unknown calling package name 'com.google.android.gms': issue. Is it device specific ? 

Could you provide more detail/ Code Snippet on how to replicate this issue ? Kindly provide your sample project replicating issue for further investigation.

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:

Mobile Ads SDK Forum Advisor

unread,
Dec 11, 2024, 5:38:39 AM12/11/24
to saima.u...@gmail.com, google-adm...@googlegroups.com
Hi Saima,

Could you share business logic behind loading ads with 10 sec delay ? It is bad practice to load ad with delay because it blocks the main thread for 10 seconds.

Thanks

Emmanuel Emeka

unread,
Dec 11, 2024, 6:19:18 AM12/11/24
to google-adm...@googlegroups.com

Saima Usman

unread,
Dec 30, 2024, 2:08:40 AM12/30/24
to Google Mobile Ads SDK Developers
Dear Google Team,
Thanks for your message. I apologize I replied quite late this is because I was trying to resolve the issue on my end but failed.
About the question you asked, I am sorry I didn't mean that I actually apply a 10 second delay. It is the time that is required by App Open ad to load (approx).
Secondly, I did create an empty project with the same Ap Open Ad implementation as in my project but i could not reproduce the error. As per people's opinion on different forums they say it has something to do with Firebase Firestore database and remote config and I can confirm it as per my experience in an empty project. I will share more in a while as I am about to implement Firebase in my dummy project. I have shared my demo project with you (which has no problem showing app open ad) and will share the new demo project with firebase firestore and remote config if the problem persists.

Thanks & Regards,
Saima.

Saima Usman

unread,
Dec 30, 2024, 4:21:21 AM12/30/24
to Google Mobile Ads SDK Developers
Dear Google Team,
The project in which I was successful in reproducing the issue has been uploaded on the Google Drive link shared above named as AppOpenAdWithIssue UPDATED

The project that I shared in Google Drive earlier has no problems and can be disregarded. Kindly check the Google Drive, you just need to run the project, and it would proceed without showing the app open ad & in logcat you will get the error.

Thanking you in anticipation.

Regards,
Saima Usman.

Awais Khan

unread,
Dec 30, 2024, 4:36:17 AM12/30/24
to Saima Usman, Google Mobile Ads SDK Developers

Detail


--

---
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-admob-ads-sdk/2084bb0e-dc01-4e40-92d1-ec0a096f5234n%40googlegroups.com.

Mobile Ads SDK Forum Advisor

unread,
Dec 30, 2024, 6:14:13 AM12/30/24
to saima.u...@gmail.com, google-adm...@googlegroups.com

Hi Saima Usman,

I've raised this concern to the wider team. I will intimate you once I receive any feedback on this. Meanwhile, your patience is important.

Saima Usman

unread,
Jan 1, 2025, 2:33:09 AMJan 1
to Google Mobile Ads SDK Developers
Thank you for your kind reply and forwarding it to the relevant team. Anxiously waiting for the resolution of this issue as I am facing huge revenue drop.

Appreciate your efforts.
Regards,
Saima.

Mobile Ads SDK Forum Advisor

unread,
Jan 7, 2025, 5:45:49 AMJan 7
to saima.u...@gmail.com, google-adm...@googlegroups.com

Hi Saima Usman,

I downloaded the provided project, and the app ran successfully on my end. I couldn't reproduce the mentioned issue.

Could you try cleaning and rebuilding the project, and make sure there isn't a VPN or proxy that might interfere with the app's connection to Google Play services.

Please reach out to us, if you need any further assistance.

Reply all
Reply to author
Forward
0 new messages