diff --git a/hardware/rockchip/camera/CameraHal/CameraHal_board_xml_parse.cpp b/hardware/rockchip/camera/CameraHal/CameraHal_board_xml_parse.cpp index d5044d94e2..57217922fe 100644 --- a/hardware/rockchip/camera/CameraHal/CameraHal_board_xml_parse.cpp +++ b/hardware/rockchip/camera/CameraHal/CameraHal_board_xml_parse.cpp @@ -2043,8 +2043,8 @@ int camera_board_profiles::ProduceNewXml(camera_board_profiles* profiles) int fileexit = access(RK_DST_MEDIA_PROFILES_XML_PATH, 0); ALOGD("judge the media profile xml fileexit = %d\n", fileexit); - //if((int)nCamNum>=1){ - if((int)nCamNum>=1 && fileexit == -1){ + if((int)nCamNum>=1){ + //if((int)nCamNum>=1 && fileexit == -1){ LOG1("enter produce new xml\n"); //new xml file name strlcpy(default_file, RK_DEFAULT_MEDIA_PROFILES_XML_PATH, sizeof(default_file)); @@ -2098,7 +2098,8 @@ int camera_board_profiles::LoadSensor(camera_board_profiles* profiles) //read sensor name count = ReadDevNameFromXML(fp, profiles->mXmlDevInfo); profiles->xml_device_count = count; - if(count<1){ + //if(count<1){ + if(count