Linux has all the pieces. Other commercial vendors like Jolla have put it together before: https://en.wikipedia.org/wiki/Sailfish_OS
There are open UI shells from KDE and GNOME, multitouch gesture support, Android emulation... it's all there.