added more logic to detect android pre ver 4