May i ask what flavour of kodi you're using with your RPi4? OpenELEC, LibreELEC?
You can also use apt to customize OSMC because it's based on Debian[1].
The maintainer, Sam Nazarko seems really helpful too.
[1] https://osmc.tv/wiki/general/installing-packages-via-apt/