Towards A Security Framework for Smartphone Operating Systems