I'm able to add quick settings tile to my app statically using service and declaring it in manifest by
<service android:name=".QuickSettingsService"
android:icon="@drawable/ic_qt_24dp"
android:label="@string/qt_label"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
And I'm able to add the above tile to quick settings and interact with it. But I need to allow them to be added dynamically. Like, I provide setting in my app to turn certain tiles on or off and the tile reflects the availability in available tiles in quick tiles edit menu.How do I do that?