# telephony_core_service **Repository Path**: libo729/telephony_core_service ## Basic Information - **Project Name**: telephony_core_service - **Description**: Establishing communication with RIL Adapter | 电话基础服务模块主要功能实现与RIL Adapter进行通信 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1138 - **Created**: 2021-09-08 - **Last Updated**: 2022-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Telephony Core Service - [Introduction](#section117mcpsimp) - [Directory Structure](#section129mcpsimp) - [Constraints](#section133mcpsimp) - [Available APIs](#section139mcpsimp) - [APIs for the SIM Card Service](#section142mcpsimp) - [APIs for the Network Search Service](#section198mcpsimp) - [Usage Guidelines](#section370mcpsimp) - [Network Search](#section393mcpsimp) - [SIM Card](#section402mcpsimp) - [Repositories Involved](#section409mcpsimp) ## Introduction The telephony core service initializes the RIL Manager, SIM card module, and network search module, and provides access to the RIL Adapter service. You can implement communication with the RIL Adapter by registering the callback service and implement communication between modules by subscribing to callbacks. **Figure 1** Architecture of the telephony core service  As shown in the preceding figure, the telephony core service consists of the SIM card service, network search service, and RIL Manager service. - SIM card service: Provides services including SIM card initialization, file read/write, loading status notification, and single-SIM/dual-SIM control. These services implement functions such as SIM card status query, SIM card management, SIM card control, STK, contact storage, and SMS storage. - Network search service: Provides services including network registration and network status acquisition. These services offer functions such as network registration, network mode query, radio status query, network search management, signal strength query, cell management, registration status management, and time and time zone setting. - RIL Manager service: Provides the proactive callback service and query result callback service. ## Directory Structure ``` /base/telphony/core_service ├── interfaces # APIs │ ├── innerkits # Internal APIs │ └── kits # External APIs (such as JS APIs) ├── services # Implementation of the telephony core service │ ├── include │ └── src ├── etc # Telephony core service driver scripts │ └── init ├── sa_profile # SA profile ├── tel_ril # RIL Manager service code │ ├── include │ ├── src │ └── test ├── network_search # Network search service code │ ├── include │ ├── src │ └── test ├── sim # SIM card service code │ ├── include │ ├── src │ └── test ├── common │ ├── log # Core service log print directory │ ├── preferences │ ├── utils │ └── test ``` ## Constraints - Programming language: C++、JavaScript - In terms of software, this module needs to work with the RIL adapter service \(ril\_adapter\) and status registration service \(state\_registry\). - In terms of hardware, the accommodating device must be equipped with a modem and a SIM card capable of independent cellular communication. ## Available APIs The telephony core service module needs to provide APIs for related modules, including the SIM card, network search modules. ### APIs for the SIM Card Service