Pull in device discovery helper from Android sample.