Device Parts - Project-Fluid-Devices/official_devices GitHub Wiki
Our view on device parts
The content
Device specific settings are a thing on any device, but recently there has been a trend of, well making them anything but device settings. Our look on device parts is that they should contain ONLY device specific settings (Dirac, doze, etc.) and potentially some features to improve/fix specific hardware issues (eg. kcal for Xiaomi's display retention). Things like SELinux switches and CPU controllers are completely unneeded in device parts. Some monitoring features may be allowed under conditions but there is a small number of things that can fall in that category outside the mentioned allowed categories.
The category
We think that device settings shouldn't be a separated dashboard category, instead, they should have a category either in system settings, or the content itself should be spread inside the different settings sections.
To move your parts to system settings, change <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
in your parts manifest to <action android:name="com.android.settings.action.IA_SETTINGS" />
and change
<meta-data android:name="com.android.settings.category" android:value="com.android.settings.category.ia.homepage" />
to
<meta-data android:name="com.android.settings.category" android:value="com.android.settings.category.ia.system" />
Additionally you can set an icon with
<meta-data android:name="com.android.settings.icon" android:resource="@drawable/ic_icon_name" />