Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove GmsBoundBrokerService from app's process

I constantly see the Service GmsBoundBrokerService showing up in running services under my app which is taking whooping ~150 MB of RAM. How to stop the service?

A quick search on SO reveals people complaining about MeasurementBrokerService which isn't the case for me. However, I still applied the solution to remove the firebase-analytics completely. So here's what I tried so far which isn't working:

AndroidManifest

<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />

<service android:name="com.google.android.gms.chimera.GmsBoundBrokerService"
                 tools:replace="android:enabled"
                 android:enabled="false"
                 android:exported="false" />

<service android:name="com.google.android.gms.GmsBoundBrokerService"
                 tools:replace="android:enabled"
                 android:enabled="false"
                 android:exported="false" />

build.gradle

configurations {
    all*.exclude group: 'com.google.firebase', module: 'firebase-core'
}

If someone has tackled this or have some insights, then please share.

like image 960
Sandip Fichadiya Avatar asked Oct 17 '25 01:10

Sandip Fichadiya


1 Answers

What finally helped a bit was to run my service in different process.

<service
  android:name="com.my.service"
  android:process=":myFancyProcess" />
like image 184
Sandip Fichadiya Avatar answered Oct 21 '25 03:10

Sandip Fichadiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!