diff --git a/local_coverage/resident_service/init_gcov.py b/local_coverage/resident_service/init_gcov.py index a368845c6a4089ead019d73948295cd1d3f8cdba..fcbb020e14b2d493b337aa72dfa9a0325ea31ed7 100644 --- a/local_coverage/resident_service/init_gcov.py +++ b/local_coverage/resident_service/init_gcov.py @@ -98,7 +98,7 @@ def modify_faultloggerd_file(developer_path, hdc_str): if os.path.exists(cfg_file_path): with open(cfg_file_path, "r") as fp: json_data = json.load(fp) - if len(json_data["jobs"]) == 1 and json_data["jobs"][0]["name"] != "pre-init": + if json_data.get("jobs"): json_data["jobs"].insert(0, { "name": "pre-init", "cmds": [ diff --git a/local_coverage/resident_service/system_part_service.json b/local_coverage/resident_service/system_part_service.json index e6e674663b19e3c07861607905a726476a0f2d1c..531710b8ea6bcbd1b463ea3098fea30f8e10c312 100644 --- a/local_coverage/resident_service/system_part_service.json +++ b/local_coverage/resident_service/system_part_service.json @@ -2,7 +2,7 @@ "system_info_dict": { "window": ["wms"], "security": ["huks_service", "dlp_permission", "accesstoken_ser|privacy_service|token_sync_ser", "dlp_credential_"], - "multimedia": ["media_lite","av_session"], + "multimedia": ["media_lite","av_session", "camera_service"], "resourceschedule": ["device_usage_st", "resource_schedu", "bgtaskmgr_servi"], "account": ["accountmgr"], "telephony": ["telephony|riladapter_host"], @@ -70,6 +70,7 @@ "wallpaper_servi": ["wallpaper_mgr"], "hilogd|hidumper_service": ["hiviewdfx"], "dinput": ["distributed_input"], + "camera_service": ["camera_framework"], "softbus_server": [ "BusCenterHeartbeatSdkTest", "BusCenterMetaNodeSdkTest", "BusCenterSdkTest", "BusCenterServerTest", "ClientBusCenterMgrTest", "ClientBusMangerTest", "SetDataChangeTest" @@ -110,6 +111,7 @@ "power": ["obj/base/powermgr"], "com.ohos.medialibrary.medialibrarydata": ["obj/foundation/distributeddatamgr/data_share"], "dinput": ["obj/foundation/distributedhardware/distributed_input"], - "softbus_server": ["obj/foundation/communication/dsoftbus"] + "softbus_server": ["obj/foundation/communication/dsoftbus"], + "camera_service": ["obj/foundation/multimedia/camera_framework"] } } \ No newline at end of file