Dynamically replace applicationId in the file_paths.xml
<p>I have set a FileProvider with the following <code>res/xml/file_paths.xml</code>:</p>

<pre><code>&lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;external-path name="suggestions" path="Android/data/com.example.app.dev/files/suggestions" /&gt;
&lt;/paths&gt;
</code></pre>

<p>The problem is, I have many product flavors that change the <code>applicationId</code>. Is there any way to replace that value with the proper applicationId without creating a filepath for each product flavor? Like replacing a tag like this <code>Android/data/{appId}/files/suggestions</code>? Or even using a relative path... (I've tried everything but only this full path worked).</p>