Added a retry to adb

Changed retry strategy

Result fix

Added escapes to RegEx

Changed retry method