for folding mirrors look at the retrofit thread. There’s 2 ways to code it depending on the comfort module you have. Think this is facelift/pfl dependant.
As for rest it could be the same and will be dependant on the comfort module.
Old ways was through long coding and it looks like the new ways to do things is through adaptations and there’s hundreds if not thousands of them.