deprecate code for AndroidDriver.