I think we should refactor this so the android task can use it, i.e. pass in the task class (Deploy, AndroidTasks, etc) as an argument?