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.
What finally helped a bit was to run my service in different process.
<service
android:name="com.my.service"
android:process=":myFancyProcess" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With