It can survive a flash if it's rooted. How does that work?
If you have to ask you likely won't understand the technical answer. Besides that, avast is not gonna reveal the their secrets. The bad guys can also read. ;)