def guess_phone_type_from_user_agent(user_agent):
    j2me_pattern = '[Nn]okia|NOKIA|CLDC|cldc|MIDP|midp|Series60|Series40|[Ss]ymbian|SymbOS|[Mm]aemo'
    if user_agent:
        if re.search(j2me_pattern, user_agent):
            return J2ME
        elif 'Android' in user_agent:
            return ANDROID
    return None
Returns the verification status code.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/domain/auth.py/guess_phone_type_from_user_agent--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/services/itunes_store.py/VerifyResponse.GetStatus