modified android messaging functions