Deprecate reading of ro.lean property
ro.lean property is no longer used, so remove reading logic of this property. If ro.lean is added in the future, it will need vendor prefix. Change-Id: I6b5e891f6d59c0809f9136541bbfb6696cbf4d5a CRs-fixed: 2282702
This commit is contained in:
parent
6bb4b271cf
commit
06d93da4a1
3 changed files with 0 additions and 31 deletions
|
@ -467,7 +467,6 @@ typedef struct {
|
|||
unsigned int loc_feature_mask;
|
||||
char platform_list[LOC_MAX_PARAM_STRING];
|
||||
char baseband[LOC_MAX_PARAM_STRING];
|
||||
char lean_targets[LOC_MAX_PARAM_STRING];
|
||||
unsigned int sglte_target;
|
||||
char feature_gtp_cell_proc[LOC_MAX_PARAM_STRING];
|
||||
char feature_gtp_waa[LOC_MAX_PARAM_STRING];
|
||||
|
@ -512,7 +511,6 @@ static const loc_param_s_type loc_process_conf_parameter_table[] = {
|
|||
{"IZAT_FEATURE_MASK", &conf.loc_feature_mask, NULL, 'n'},
|
||||
{"PLATFORMS", &conf.platform_list, NULL, 's'},
|
||||
{"BASEBAND", &conf.baseband, NULL, 's'},
|
||||
{"LEAN_TARGETS", &conf.lean_targets, NULL, 's'},
|
||||
{"HARDWARE_TYPE", &conf.auto_platform, NULL, 's'},
|
||||
};
|
||||
|
||||
|
@ -554,7 +552,6 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
|
|||
FILE* conf_fp = nullptr;
|
||||
char platform_name[PROPERTY_VALUE_MAX], baseband_name[PROPERTY_VALUE_MAX];
|
||||
char autoplatform_name[PROPERTY_VALUE_MAX];
|
||||
int lean_target=0;
|
||||
unsigned int loc_service_mask=0;
|
||||
char config_mask = 0;
|
||||
unsigned char proc_list_length=0;
|
||||
|
@ -586,8 +583,6 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
|
|||
loc_get_platform_name(platform_name, sizeof(platform_name));
|
||||
//Get baseband name from ro.baseband property
|
||||
loc_get_target_baseband(baseband_name, sizeof(baseband_name));
|
||||
lean_target = loc_identify_lean_target();
|
||||
LOC_LOGD("%s:%d]: lean target:%d", __func__, __LINE__, lean_target);
|
||||
//Identify if this is an automotive platform
|
||||
loc_get_auto_platform_name(autoplatform_name,sizeof(autoplatform_name));
|
||||
|
||||
|
@ -927,13 +922,6 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
|
|||
}
|
||||
}
|
||||
|
||||
nstrings = loc_util_split_string(conf.lean_targets, split_strings, MAX_NUM_STRINGS, ' ');
|
||||
if(!strcmp("DISABLED", split_strings[0]) && lean_target) {
|
||||
LOC_LOGD("%s:%d]: Disabled for lean targets\n", __func__, __LINE__);
|
||||
child_proc[j].proc_status = DISABLED;
|
||||
continue;
|
||||
}
|
||||
|
||||
if((config_mask & CONFIG_MASK_TARGET_CHECK) &&
|
||||
(config_mask & CONFIG_MASK_BASEBAND_CHECK) &&
|
||||
(config_mask & CONFIG_MASK_AUTOPLATFORM_CHECK) &&
|
||||
|
|
|
@ -208,16 +208,3 @@ detected:
|
|||
LOC_LOGW("HAL: %s returned %d", __FUNCTION__, gTarget);
|
||||
return gTarget;
|
||||
}
|
||||
|
||||
/*Reads the property ro.lean to identify if this is a lean target
|
||||
Returns:
|
||||
0 if not a lean and mean target
|
||||
1 if this is a lean and mean target
|
||||
*/
|
||||
int loc_identify_lean_target()
|
||||
{
|
||||
char lean_target[PROPERTY_VALUE_MAX];
|
||||
property_get("ro.lean", lean_target, "");
|
||||
LOC_LOGD("%s:%d]: lean target: %s\n", __func__, __LINE__, lean_target);
|
||||
return !(strncmp(lean_target, "true", PROPERTY_VALUE_MAX));
|
||||
}
|
||||
|
|
|
@ -55,12 +55,6 @@ void loc_get_platform_name(char *platform_name, int array_length);
|
|||
of atleast PROPERTY_VALUE_MAX*/
|
||||
void loc_get_auto_platform_name(char *platform_name, int array_length);
|
||||
|
||||
/*Reads the property ro.lean to identify if this is a lean target
|
||||
Returns:
|
||||
0 if not a lean and mean target
|
||||
1 if this is a lean and mean target*/
|
||||
int loc_identify_lean_target();
|
||||
|
||||
/* Please remember to update 'target_name' in loc_log.cpp,
|
||||
if do any changes to this enum. */
|
||||
typedef enum {
|
||||
|
|
Loading…
Reference in a new issue