GoogleApiManager Error in Logcat

1,193 views
Skip to first unread message

nawa gaani

unread,
Mar 9, 2025, 8:41:38 PM3/9/25
to Google Mobile Ads SDK Developers
Hi, 

I keep getting this error after I login to my app in the logcat. The app is not crashing so I've been ignoring it for now, but I think I have to get rid of this error. I made sure my Google Play Services is up to date, my JSON matches everything in the FirebaseConsole for my project, I also added an SHA-1 key after doing a bit of research. But no matter what I do the error is still there. I also noticed that a little after the GoogleApiManager, I get a CondFlagRegister warning. 

GoogleApiManager: 
Failed to get service from broker.
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
at android.os.Parcel.createExceptionOrNull

CondFlagRegister:
Failed to register com.google.android.gms.providerinstaller#com.google.android.gms
euqe: 17: 17: API: Phenotype.API is not available on this device. Connection failed with: ConnectionResult{statusCode=DEVELOPER_ERROR, resolution=null, message=null}


Mobile Ads SDK Forum Advisor

unread,
Mar 10, 2025, 2:13:06 AM3/10/25
to nawa...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team. 

This is a known issue and the team is still looking into this internally and will update when a fix is deployed. As of now, we believe this error will only be thrown in a background thread of the com.google.android.gms process and shouldn't have a negative impact on app behavior.

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-10 06:12:23Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH816:ref" (ADR-00292974)



João Breno

unread,
Jul 15, 2025, 8:10:05 AM7/15/25
to Google Mobile Ads SDK Developers
Hi,
I'm having the same issue here after implementing this:
https://developer.android.com/privacy-and-security/security-gms-provider

Mobile Ads SDK Forum Advisor

unread,
Jul 15, 2025, 11:17:14 AM7/15/25
to joao.br...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team. 

We believe this error will only be thrown in a background thread of the com.google.android.gms process and shouldn't have a negative impact on app behavior. Could you please confirm whether you are  facing any issues with this while loading the ads? or somewhere in the application.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-07-15 15:16:29Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH816:ref" (ADR-00292974)



JerryBohenek

unread,
Jan 6, 2026, 8:17:02 AM (yesterday) Jan 6
to Google Mobile Ads SDK Developers
Hello,

I am working on a simple android application that utilizes Firebase to store data. I am having the same issue as described above:

Failed to get service from broker.
                                                                                                    java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
                                                                                                    at android.os.Parcel.createExceptionOrNull(Parcel.java:3339)
                                                                                                    at android.os.Parcel.createException(Parcel.java:3323)
                                                                                                    at android.os.Parcel.readException(Parcel.java:3306)
                                                                                                    at android.os.Parcel.readException(Parcel.java:3248)
                                                                                                    at auub.a(:com.google.android.gms@251532035@25.15.32 (260400-748827973):36)
                                                                                                    at ausi.z(:com.google.android.gms@251532035@25.15.32 (260400-748827973):143)
                                                                                                    at atzp.run(:com.google.android.gms@251532035@25.15.32 (260400-748827973):42)
                                                                                                    at android.os.Handler.handleCallback(Handler.java:995)
                                                                                                    at android.os.Handler.dispatchMessage(Handler.java:103)
                                                                                                    at ccwr.mi(:com.google.android.gms@251532035@25.15.32 (260400-748827973):1)
                                                                                                    at ccwr.dispatchMessage(:com.google.android.gms@251532035@25.15.32 (260400-748827973):5)
                                                                                                    at android.os.Looper.loopOnce(Looper.java:248)
                                                                                                    at android.os.Looper.loop(Looper.java:338)
                                                                                                    at android.os.HandlerThread.run(HandlerThread.java:85
)

All I wanted to do at first is to try the connection between my application and Firestore database and add a simple record:

private void addSimpleTestRecord() {
        FirebaseFirestore db = FirebaseFirestore.getInstance();
        Map<String, Object> testData = new HashMap<>();
        testData.put("test_number", 123);
        testData.put("description", "This is a connection test");
        testData.put("timestamp", System.currentTimeMillis());

        db.collection("test")
                .add(testData)
                .addOnSuccessListener(documentReference -> {
                    Log.d(TAG, "DocumentSnapshot added with ID: " + documentReference.getId());
                    if (getContext() != null) {
                        Toast.makeText(getContext(), "Success! ID: " + documentReference.getId(), Toast.LENGTH_SHORT).show();
                    }
                })
                .addOnFailureListener(e -> {
                    Log.w(TAG, "Error adding document", e);
                    if (getContext() != null) {
                        Toast.makeText(getContext(), "Error: " + e.getMessage(), Toast.LENGTH_LONG).show();
                    }
                });
}

"I made sure my Google Play Services is up to date, my JSON matches everything in the FirebaseConsole for my project, I also added an SHA-1 key after doing a bit of research. But no matter what I do the error is still there." 

I did the same and also tried to uninstall the Google Play Services update becuase I read online that the issue may be becuase of two versions of the Google Play Services installed on the phone. I am not using emulator but a physical device with Android 16.
Reply all
Reply to author
Forward
0 new messages