Merge "Add the API to set and read the location mode" into klp-dev