Well that's what the permissions are for right? To avoid "arbitrary" code.
I think we've gotten a bit better since the Flash days at writing VMs that don't leak like a sieve. Would be nice if someone could go in and write the entire Android VM in dart or something though...
If you keep up with security mailing lists and similar, you'll see that we've not gotten significantly better. There are major security flaws found in well-used software all the time. It's going to take us a long time to dig ourselves out of this hole.