Fine Grained Confinement of Untrusted Third-Party Applications in Android