refactored if statement in UiTestUtils from hardcoded value to android version code