1# Copyright (c) 2021-2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//foundation/ability/ability_runtime/ability_runtime.gni") 15 16abilityms_files = [ 17 "${ability_runtime_services_path}/abilitymgr/src/ability_background_connection.cpp", 18 "${ability_runtime_services_path}/abilitymgr/src/ability_cache_manager.cpp", 19 "${ability_runtime_services_path}/abilitymgr/src/ability_connect_manager.cpp", 20 "${ability_runtime_services_path}/abilitymgr/src/ability_debug_deal.cpp", 21 "${ability_runtime_services_path}/abilitymgr/src/ability_event_handler.cpp", 22 "${ability_runtime_services_path}/abilitymgr/src/disposed_observer.cpp", 23 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_stub.cpp", 24 "${ability_runtime_services_path}/abilitymgr/src/ability_record.cpp", 25 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_collaborator_proxy.cpp", 26 "${ability_runtime_services_path}/abilitymgr/src/ability_scheduler_proxy.cpp", 27 "${ability_runtime_services_path}/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp", 28 "${ability_runtime_services_path}/abilitymgr/src/ability_token_stub.cpp", 29 "${ability_runtime_services_path}/abilitymgr/src/app_scheduler.cpp", 30 "${ability_runtime_services_path}/abilitymgr/src/app_exit_reason_helper.cpp", 31 "${ability_runtime_services_path}/abilitymgr/src/assert_fault_callback_death_mgr.cpp", 32 "${ability_runtime_services_path}/abilitymgr/src/assert_fault_proxy.cpp", 33 "${ability_runtime_services_path}/abilitymgr/src/connection_record.cpp", 34 "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_caller_recipient.cpp", 35 "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_manager.cpp", 36 "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_record.cpp", 37 "${ability_runtime_services_path}/abilitymgr/src/dialog_session/dialog_session_manager.cpp", 38 "${ability_runtime_services_path}/abilitymgr/src/lifecycle_deal.cpp", 39 "${ability_runtime_services_path}/abilitymgr/src/ability_running_info.cpp", 40 "${ability_runtime_services_path}/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service_param.cpp", 41 "${ability_runtime_services_path}/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp", 42 "${ability_runtime_services_path}/abilitymgr/src/extension_config.cpp", 43 "${ability_runtime_services_path}/abilitymgr/src/extension_running_info.cpp", 44 "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record_manager.cpp", 45 "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record.cpp", 46 "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record_factory.cpp", 47 "${ability_runtime_services_path}/abilitymgr/src/caller_info.cpp", 48 "${ability_runtime_services_path}/abilitymgr/src/sub_managers_helper.cpp", 49 "${ability_runtime_services_path}/abilitymgr/src/pending_want_record.cpp", 50 "${ability_runtime_services_path}/abilitymgr/src/pending_want_key.cpp", 51 "${ability_runtime_services_path}/abilitymgr/src/pending_want_manager.cpp", 52 "${ability_runtime_services_path}/abilitymgr/src/pending_want_common_event.cpp", 53 "${ability_runtime_services_path}/abilitymgr/src/restart_app_manager.cpp", 54 "${ability_runtime_services_path}/abilitymgr/src/ams_configuration_parameter.cpp", 55 "${ability_runtime_services_path}/abilitymgr/src/recovery_info_timer.cpp", 56 "${ability_runtime_services_path}/abilitymgr/src/modal_system_dialog/modal_system_dialog_ui_extension.cpp", 57 "${ability_runtime_services_path}/abilitymgr/src/hidden_start_observer_manager.cpp", 58 "${ability_runtime_services_path}/abilitymgr/src/interceptor/ability_interceptor_executer.cpp", 59 "${ability_runtime_services_path}/abilitymgr/src/interceptor/ability_jump_interceptor.cpp", 60 "${ability_runtime_services_path}/abilitymgr/src/interceptor/block_all_app_start_interceptor.cpp", 61 "${ability_runtime_services_path}/abilitymgr/src/interceptor/control_interceptor.cpp", 62 "${ability_runtime_services_path}/abilitymgr/src/interceptor/crowd_test_interceptor.cpp", 63 "${ability_runtime_services_path}/abilitymgr/src/interceptor/disposed_rule_interceptor.cpp", 64 "${ability_runtime_services_path}/abilitymgr/src/interceptor/ecological_rule_interceptor.cpp", 65 "${ability_runtime_services_path}/abilitymgr/src/interceptor/extension_control_interceptor.cpp", 66 "${ability_runtime_services_path}/abilitymgr/src/interceptor/screen_unlock_interceptor.cpp", 67 "${ability_runtime_services_path}/abilitymgr/src/interceptor/start_other_app_interceptor.cpp", 68 "${ability_runtime_services_path}/abilitymgr/src/interceptor/kiosk_interceptor.cpp", 69 "${ability_runtime_services_path}/abilitymgr/src/window_focus_changed_listener.cpp", 70 "${ability_runtime_services_path}/abilitymgr/src/window_visibility_changed_listener.cpp", 71 72 # start ability handler 73 "${ability_runtime_services_path}/abilitymgr/src/start_ability_handler.cpp", 74 "${ability_runtime_services_path}/abilitymgr/src/start_ability_handler/start_ability_sandbox_savefile.cpp", 75 76 # new ability manager service here 77 "${ability_runtime_services_path}/abilitymgr/src/ui_extension/preload_uiext_state_observer.cpp", 78 "${ability_runtime_services_path}/abilitymgr/src/ui_extension_record/ui_extension_record.cpp", 79 "${ability_runtime_services_path}/abilitymgr/src/ui_extension_record/ui_extension_record_factory.cpp", 80 "${ability_runtime_services_path}/abilitymgr/src/screen_lock/unlock_screen_manager.cpp", 81 "${ability_runtime_services_path}/abilitymgr/src/start_options.cpp", 82 "${ability_runtime_services_path}/abilitymgr/src/user_callback_proxy.cpp", 83 "${ability_runtime_services_path}/abilitymgr/src/call_container.cpp", 84 "${ability_runtime_services_path}/abilitymgr/src/call_record.cpp", 85 "${ability_runtime_services_path}/abilitymgr/src/inner_mission_info.cpp", 86 "${ability_runtime_services_path}/abilitymgr/src/mission/mission_listener_controller.cpp", 87 "${ability_runtime_services_path}/abilitymgr/src/mission/mission_listener_proxy.cpp", 88 "${ability_runtime_services_path}/abilitymgr/src/rdb/ability_resident_process_rdb.cpp", 89 "${ability_runtime_services_path}/abilitymgr/src/rdb/parser_util.cpp", 90 "${ability_runtime_services_path}/abilitymgr/src/rdb/rdb_data_manager.cpp", 91 "${ability_runtime_services_path}/abilitymgr/src/remote_mission_listener_proxy.cpp", 92 "${ability_runtime_services_path}/abilitymgr/src/scene_board/status_bar_delegate_manager.cpp", 93 "${ability_runtime_services_path}/abilitymgr/src/scene_board/ui_ability_lifecycle_manager.cpp", 94 "${ability_runtime_services_path}/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp", 95 96 #connection observer 97 "${ability_runtime_services_path}/abilitymgr/src/connection_observer_controller.cpp", 98 "${ability_runtime_services_path}/abilitymgr/src/connection_state_item.cpp", 99 "${ability_runtime_services_path}/abilitymgr/src/connection_state_manager.cpp", 100 "${ability_runtime_services_path}/abilitymgr/src/dlp_state_item.cpp", 101 102 #multi user 103 "${ability_runtime_services_path}/abilitymgr/src/user_controller.cpp", 104 "${ability_runtime_services_path}/abilitymgr/src/user_event_handler.cpp", 105 106 #free_install 107 "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback_proxy.cpp", 108 "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback_stub.cpp", 109 "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback.cpp", 110 "${ability_runtime_services_path}/abilitymgr/src/free_install_observer_manager.cpp", 111 112 #erms 113 "${ability_runtime_services_path}/abilitymgr/src/query_erms_manager.cpp", 114 "${ability_runtime_services_path}/abilitymgr/src/query_erms_observer_manager.cpp", 115 116 "${ability_runtime_services_path}/abilitymgr/src/background_task_observer.cpp", 117 118 #resident_process 119 "${ability_runtime_services_path}/abilitymgr/src/resident_process/resident_process_manager.cpp", 120 121 "${ability_runtime_services_path}/abilitymgr/src/ability_bundle_event_callback.cpp", 122 123 "${ability_runtime_services_path}/abilitymgr/src/app_exit_reason_data_manager.cpp", 124 125 "${ability_runtime_services_path}/abilitymgr/src/ability_auto_startup_data_manager.cpp", 126 "${ability_runtime_services_path}/abilitymgr/src/ability_auto_startup_service.cpp", 127 "${ability_runtime_services_path}/abilitymgr/src/auto_startup_info.cpp", 128 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_db_cache.cpp", 129 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_execute_manager.cpp", 130 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_execute_result.cpp", 131 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_profile.cpp", 132 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_rdb_data_mgr.cpp", 133 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_rdb_storage_mgr.cpp", 134 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_utils.cpp", 135 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/extract_insight_intent_profile.cpp", 136 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_event_mgr.cpp", 137 "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_sys_event_receiver.cpp", 138 139 #sa interceptor 140 "${ability_runtime_services_path}/abilitymgr/src/sa_interceptor_manager.cpp", 141 142 # keep alive 143 "${ability_runtime_services_path}/abilitymgr/src/keep_alive/ability_keep_alive_data_manager.cpp", 144 "${ability_runtime_services_path}/abilitymgr/src/keep_alive/ability_keep_alive_service.cpp", 145 "${ability_runtime_services_path}/abilitymgr/src/keep_alive/keep_alive_process_manager.cpp", 146 147 "${ability_runtime_services_path}/abilitymgr/src/ability_manager_event_subscriber.cpp", 148 149 "${ability_runtime_services_path}/abilitymgr/src/exit_info_data_manager.cpp", 150 151 #utils 152 "${ability_runtime_services_path}/abilitymgr/src/utils/ability_event_util.cpp", 153 "${ability_runtime_services_path}/abilitymgr/src/utils/ability_permission_util.cpp", 154 "${ability_runtime_services_path}/abilitymgr/src/utils/app_mgr_util.cpp", 155 "${ability_runtime_services_path}/abilitymgr/src/utils/dms_util.cpp", 156 "${ability_runtime_services_path}/abilitymgr/src/utils/dump_utils.cpp", 157 "${ability_runtime_services_path}/abilitymgr/src/utils/extension_permissions_util.cpp", 158 "${ability_runtime_services_path}/abilitymgr/src/utils/hmsf_utils.cpp", 159 "${ability_runtime_services_path}/abilitymgr/src/utils/keep_alive_utils.cpp", 160 "${ability_runtime_services_path}/abilitymgr/src/utils/main_element_utils.cpp", 161 "${ability_runtime_services_path}/abilitymgr/src/utils/modal_system_dialog_util.cpp", 162 "${ability_runtime_services_path}/abilitymgr/src/utils/multi_app_utils.cpp", 163 "${ability_runtime_services_path}/abilitymgr/src/utils/multi_instance_utils.cpp", 164 "${ability_runtime_services_path}/abilitymgr/src/utils/start_ability_utils.cpp", 165 "${ability_runtime_services_path}/abilitymgr/src/utils/start_options_utils.cpp", 166 "${ability_runtime_services_path}/abilitymgr/src/utils/hidden_start_utils.cpp", 167 "${ability_runtime_services_path}/abilitymgr/src/utils/state_utils.cpp", 168 "${ability_runtime_services_path}/abilitymgr/src/utils/update_caller_info_util.cpp", 169 "${ability_runtime_services_path}/abilitymgr/src/utils/uri_utils.cpp", 170 "${ability_runtime_services_path}/abilitymgr/src/utils/window_options_utils.cpp", 171 "${ability_runtime_services_path}/abilitymgr/src/utils/timeout_state_utils.cpp", 172 "${ability_runtime_services_path}/abilitymgr/src/kiosk_status.cpp", 173 "${ability_runtime_services_path}/abilitymgr/src/kiosk_manager.cpp" 174] 175 176if (ability_runtime_graphics) { 177 abilityms_files += [ 178 "${ability_runtime_services_path}/appdfr/src/application_anr_listener.cpp", 179 "${ability_runtime_services_path}/abilitymgr/src/implicit_start_processor.cpp", 180 "${ability_runtime_services_path}/abilitymgr/src/system_dialog_scheduler.cpp", 181 "${ability_runtime_services_path}/abilitymgr/src/ability_first_frame_state_observer_manager.cpp", 182 "${ability_runtime_services_path}/abilitymgr/src/screen_lock/unlock_screen_callback.cpp", 183 ] 184} 185 186if (include_app_domain_verify) { 187 abilityms_files += [ "${ability_runtime_services_path}/abilitymgr/src/ag_convert_callback_impl.cpp" ] 188} 189