def build_shared_pref_path(package, pref_name):
    """
    Build the full path for the shared pref

    :param package: The package name the shred pref belongs to.
    :param pref_name: The shared preference name (xml extension can be ommited)
    """
    if pref_name.endswith('.xml'):
        pref_name = pref_name.rsplit('.')[0]
    return "/data/data/{package}/shared_prefs/{pref_name}.xml".format(package=package, pref_name=pref_name)