process launch switch based on vendor enhanced check is incorrect

Some vendor enhaced processes are not to be launched only if this
is not a vendor enhanced produce. Condition incorrect.

Change-Id: Ieb520d77500f78968cb78b69169b068356f880ab
CRs-Fixed: 2392220
This commit is contained in:
Kevin Tang 2019-02-01 14:56:46 -08:00
parent 955f05e8e7
commit 4b5fd7ed54

View file

@ -768,7 +768,7 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
continue;
}
if (isVendorEnhanced() != conf.vendor_enhanced_process != 0) {
if (!isVendorEnhanced() && (conf.vendor_enhanced_process != 0)) {
LOC_LOGD("%s:%d]: Process %s is disabled via vendor enhanced process check",
__func__, __LINE__, conf.proc_name);
child_proc[j].proc_status = DISABLED_VIA_VENDOR_ENHANCED_CHECK;