There is application has name "Vicario" in "Google Play". It is an Android application that provides remote access to your device.
The device is managed via email.
In other words, you write a mail with commands for the app and the app performs them in the specified sequence.
Vicario size is 128 KB!