You only install apps from trustworthy sources

Only use official app stores or F-Droid to obtain your apps. If you know your way around, you can also download apps directly from the manufacturers' websites. Always consider whether you need an app at all.

More information

Infected apps have many ways of attacking you. For example, they can steal passwords.