In Androids System UI config_systemUIFactoryComponent
is used to define the factory that shall be used for starting different System UI services.
<string name="config_systemUIFactoryComponent" translatable="false">
com.android.systemui.SystemUIFactory
</string>
For TVs or Cars this is somehow overridden with own config files.
For Cars this is done at packages/apps/Car/SystemUI/res/values/config.xml
:
<string name="config_systemUIFactoryComponent" translatable="false">
com.android.systemui.CarSystemUIFactory
</string>
From my understanding this does not follow the usual overlay approach of Android, since I cannot find any reference to this path via the Android Code Search.
The only place, where this config variable is used is in the code is SystemUIFactory:
final String clsName = context.getString(R.string.config_systemUIFactoryComponent);
I guess that context
is important for deciding, from which config.xml
to read the value from.
Where is decided, whether to take the config.xml
from System UI or Car System UI?