Content Provider Settings¶
Content Provider Setup Guide¶
To optimize multi-process data collection, ft-sdk >= 1.6.14 uses ContentProvider. The SDK uses the following configuration by default, which adapts based on the application's applicationId.
<provider
android:name="com.ft.garble.db.FTContentProvider"
android:authorities="${applicationId}.com.ft.sdk.provider"
android:exported="false"
android:multiprocess="true">
</provider>
Custom Provider¶
If customization is needed, you must use tools:replace to override the provider settings and also configure the meta-data accordingly.
The
android:authoritiesin theprovidermust match theandroid:valuein themeta-data.
<provider
tools:replace="android:authorities"
android:name="com.ft.sdk.garble.db.FTContentProvider"
android:authorities="com.custom.app.provider"
android:exported="false"
android:multiprocess="true">
</provider>
<meta-data
android:name="com.ft.sdk.PROVIDER_AUTHORITY"
android:value="com.custom.app.provider" />