My phone keeps installing apps on its own

I scan the phone and storage space with avast but it doesnt find anything. I have deleted the sd card and restored to factory settings twice but the same thing keeps happening. This is probably a virus. Will it help if i update the android software? I dont know how to do that. I have a doogee x5 (galicia). Can someone help me fix the problem?

Try Mobil forum section

Avast Mobile Products >> https://forum.avast.com/index.php?board=66.0