How to Keep Your Smartphone Safe from Attacks