android: set default timeout to 30s

Also, remove the 1s value which is too low.
android: saner implementation of the heartbeat mechanism

A sole function is responsible of the process and messages are used to
signal aliveness.