I have noticed that to codi work partially ( phone don't answer calls with the codi buttons.and you have to open the lid to accept the calls ) you have to install network-manager and reboot cosmo. It conflicts in part with connman. But that is the solution. I have also upgraded linux.
So, apt-get install network-manager to codi work ( partially ).