Functionality and Security are inversely proportional to each other. If you introduce a "Play Store" in a phone, the security risk automatically increases billion times. In an ideal world, There would be some special devices which have very limited set of functionalities inbuilt like calls, message etc which is used by world leaders to communicate.