WO2023273403A1 - 一种Android平台非侵入式通讯服务的实现方法 - Google Patents

一种Android平台非侵入式通讯服务的实现方法 Download PDF

Info

Publication number
WO2023273403A1
WO2023273403A1 PCT/CN2022/080252 CN2022080252W WO2023273403A1 WO 2023273403 A1 WO2023273403 A1 WO 2023273403A1 CN 2022080252 W CN2022080252 W CN 2022080252W WO 2023273403 A1 WO2023273403 A1 WO 2023273403A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
layer
communication framework
state change
modem module
Prior art date
Application number
PCT/CN2022/080252
Other languages
English (en)
French (fr)
Inventor
邱国强
Original Assignee
惠州Tcl云创科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 惠州Tcl云创科技有限公司 filed Critical 惠州Tcl云创科技有限公司
Publication of WO2023273403A1 publication Critical patent/WO2023273403A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Definitions

  • the present disclosure relates to the field of computer technology, in particular to a method for implementing non-intrusive communication services on an Android platform.
  • the technical problem to be solved in the present disclosure is to provide a method for implementing non-intrusive communication services on the Android platform in view of the deficiencies in the prior art.
  • the first aspect of the embodiment of the present disclosure provides a method for implementing a non-intrusive communication service on the Android platform, wherein it is applied to a terminal device configured with a communication framework expansion layer, and the implementation method includes:
  • the communication framework loads and initializes the communication framework expansion layer through the reflection mechanism, so that the communication framework expansion layer calls and registers the Modem module through RIL;
  • the communication framework expansion layer monitors the state change of the Modem module through the RIL, and the state change refers to a change in the communication state;
  • the communication framework extension layer After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to Send to the communication framework expansion layer;
  • the communication framework extension layer sends the control command to the Modem module, so that the Modem module responds to the control command.
  • the implementation method of the Android platform non-intrusive communication service wherein, after the state change is monitored, the communication framework extension layer reports the state change to the application layer, and determines the control operation of the state change through the application layer , converting the control operation into a control command and sending the control command to the communication framework expansion layer, specifically:
  • the communication framework extension layer After listening to the state change, the communication framework extension layer reports the state change to the application layer through the IPC; the application layer determines the prompt interface based on the state information corresponding to the state change, and receives the control operation based on the prompt interface, and sends the The control operation is converted into a control instruction, and the control instruction is sent to the communication framework extension layer.
  • the implementation method of the Android platform non-intrusive communication service wherein, the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction specifically includes:
  • the communication framework expansion layer detects whether the control command needs to be sent to the Modem module
  • the communication framework expansion layer calls the RIL interface corresponding to the control command, and sends the control command to the Modem module through the RIL interface, so that the Modem module responds to the control Instructions and execution results are fed back to the communication framework extension layer through the RIL, so as to be fed back to the application layer through the communication framework extension layer.
  • the implementation method of the Android platform non-intrusive communication service wherein, the method also includes:
  • the communication framework extension layer responds to the control command to execute the control operation, and feeds back the execution result to the application layer through the IPC.
  • the implementation method of the Android platform non-intrusive communication service wherein the method also includes:
  • the communication application layer monitors the call and receives user feedback information, and sends the received user feedback information to the application layer.
  • the second aspect of the present disclosure provides a method for implementing a non-intrusive communication service on an Android platform, which is applied to a terminal device equipped with a communication framework extension layer.
  • the implementation method includes:
  • the communication framework expansion layer monitors the state changes of the Modem module
  • the communication framework extension layer After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to Send to the communication framework expansion layer;
  • the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction.
  • the implementation method of the non-intrusive communication service of the Android platform wherein, before the communication framework expansion layer monitors the state change of the Modem module, the method also includes:
  • the communication framework loads and initializes the communication framework expansion layer through the reflection mechanism, so that the communication framework expansion layer calls and registers the Modem module through RIL.
  • the implementation method of the non-intrusive communication service of the Android platform, wherein the state change of the communication framework expansion layer monitoring the Modem module specifically includes:
  • the communication framework expansion layer monitors the state changes of the Modem module through RIL.
  • the implementation method of the Android platform non-intrusive communication service wherein, after the state change is monitored, the communication framework extension layer reports the state change to the application layer, and determines the control operation of the state change through the application layer , converting the control operation into a control command and sending the control command to the communication framework expansion layer, specifically:
  • the communication framework extension layer After listening to the state change, the communication framework extension layer reports the state change to the application layer through the IPC; the application layer determines the prompt interface based on the state information corresponding to the state change, and receives the control operation based on the prompt interface, and sends the The control command is converted into a control command, and the control command is sent to the communication framework extension layer.
  • the implementation method of the Android platform non-intrusive communication service wherein, the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction specifically includes:
  • the communication framework expansion layer detects whether the control command needs to be sent to the Modem module
  • the communication framework expansion layer calls the RIL interface corresponding to the control command, and sends the control command to the Modem module through the RIL interface, so that the Modem module responds to the control Instructions and execution results are fed back to the communication framework extension layer through the RIL, so as to be fed back to the application layer through the communication framework extension layer.
  • the implementation method of the Android platform non-intrusive communication service wherein the method also includes:
  • the communication framework extension layer responds to the control command to execute the control operation, and feeds back the execution result to the application layer through the IPC.
  • the implementation method of the Android platform non-intrusive communication service wherein the method also includes:
  • the communication application layer monitors the call and receives user feedback information, and sends the received user feedback information to the application layer.
  • the implementation method of the non-intrusive communication service of the Android platform, wherein, the initialization communication framework expansion layer includes:
  • the implementation method of the Android platform non-intrusive communication service wherein, after the initialization of the communication framework expansion layer, it also includes:
  • the application layer is initialized through Binder, and the application layer is preset.
  • the implementation method of the Android platform non-intrusive communication service, wherein the application layer includes:
  • Phone sub-module the Phone sub-module is used for real-time monitoring and response to the state of Phone;
  • the communication sub-module is used for monitoring and responding to the communication state.
  • the third aspect of the embodiment of the present disclosure provides a device for implementing non-intrusive communication services on the Android platform.
  • the device for implementing includes: a communication framework expansion layer, a Modem module, and an application layer; the communication framework expansion layer is used for monitoring the communication framework expansion layer The state change of the Modem module; After listening to the state change, the communication framework extension layer reports the state change to the application layer, and sends the control instruction to the Modem module; the application layer is used to determine the determination of the state change Control operations, converting the control operations into control instructions and sending the control instructions to the communication framework expansion layer; the Modem module is used to execute the control operations.
  • the implementation device of the Android platform non-intrusive communication service wherein the application layer includes:
  • Phone sub-module the Phone sub-module is used for real-time monitoring and response to the state of Phone;
  • the communication sub-module is used for monitoring and responding to the communication state.
  • the device for implementing non-intrusive communication services on the Android platform wherein the call sub-module is disguised as a Car call management module for monitoring calls and receiving user feedback information, and sending the received user feedback information to the communication Framework extension layer.
  • the fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to Realize the steps in the implementation method of the Android platform non-intrusive communication service as described above.
  • the fifth aspect of the embodiments of the present disclosure provides a terminal device, which includes: a processor, a memory, and a communication bus; a computer-readable program executable by the processor is stored in the memory;
  • the communication bus realizes connection and communication between the processor and the memory
  • the present disclosure provides a method for implementing non-intrusive communication services on the Android platform.
  • the implementation method includes: the communication framework expansion layer monitors the state changes of the Modem module; , the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer ;
  • the communication framework extension layer sends the control command to the Modem module, so that the Modem module responds to the control command.
  • This disclosure superimposes the communication framework expansion layer on the Android communication system, and realizes the real-time monitoring and response of the communication status through the communication framework expansion layer, so that the secondary development can be realized through the communication framework expansion layer without changing the communication service stack.
  • the function communicates with the communication service stack, so as to meet the needs of secondary development for regions, operators and customers.
  • FIG. 1 is a flowchart of a method for implementing a non-intrusive communication service on an Android platform provided by the present disclosure.
  • FIG. 2 is an example diagram of an initialization process in a method for implementing a non-intrusive communication service on an Android platform provided by the present disclosure.
  • FIG. 3 is a schematic flowchart of a call status response process in the implementation method of the Android platform non-intrusive communication service provided by the present disclosure.
  • Fig. 4 is a schematic structural diagram of a terminal device provided by the present disclosure.
  • the present disclosure provides a method for implementing a non-intrusive communication service on the Android platform.
  • the present disclosure will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present disclosure, not to limit the present disclosure.
  • the terminal devices described in the embodiments of the present disclosure include but are not limited to other portable devices such as mobile phones with touch-sensitive surfaces (for example, touch screens and/or touchpads), laptop computers or tablet computers. equipment. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (eg, a touchscreen display and/or a touchpad).
  • a terminal device comprising a display and a touch-sensitive surface is described.
  • a terminal device may also include one or more other physical user interface devices such as a physical keyboard, mouse and/or joystick.
  • the terminal device supports various applications such as one or more of the following: drawing application, presentation application, word processing application, video conferencing application, disk burning application, spreadsheet application, gaming application, telephone applications, video conferencing applications, e-mail applications, instant messaging applications, exercise support applications, photo management applications, data camera applications, digital video camera applications, web browsing applications, digital music player applications and/or digital video playback applications, etc.
  • Various applications that can be executed on the terminal device can use at least one common physical user interface device, such as a touch-sensitive surface.
  • the first or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within a respective application.
  • the common physical frame of the terminal eg, touch-sensitive surface
  • the inventor found that since 2019, Google officially launched the Mainline project, and Google released the binary files of some modules to device manufacturers. Among them, the modules that released the binary files included the Telephony Stack. For equipment manufacturers, when performing secondary development and customization of the communication service stack to meet the needs of regions and operators, they need to submit the required development code to Google and it can be used only after it is adopted by Google. However, the requirement development code has a long submission cycle and a low adoption rate, making it difficult to meet actual requirements.
  • a communication framework expansion layer is added in the communication framework, and the communication framework expansion layer monitors the state change of the Modem module; when the state change is detected, the communication framework expansion layer reports the state change to the application layer , determine the control operation determined by the state change through the application layer, convert the control operation into a control instruction and issue the control instruction to the communication framework expansion layer; the communication framework expansion layer issues the control instruction to the Modem module, so that the Modem module responds to the control command.
  • This disclosure superimposes the communication framework expansion layer on the Android communication system, and realizes the real-time monitoring and response of the communication status through the communication framework expansion layer, so that the secondary development can be realized through the communication framework expansion layer without changing the communication service stack.
  • the function communicates with the communication service stack, so as to meet the needs of secondary development for regions, operators and customers.
  • This embodiment provides a method for implementing a non-intrusive communication service on an Android platform, as shown in FIG. 1 , the method includes:
  • the communication framework expansion layer monitors the state change of the Modem module.
  • the communication framework expansion layer is superimposed on the communication framework expansion layer in the Android communication system, and is used to monitor the status changes of the Modem module in real time.
  • the status change refers to a communication status change, for example, a communication status change caused by an answer, a communication status change caused by a hangup, and the like.
  • the state change refers to the change of the current communication state relative to the previous numerical control communication state.
  • the communication framework expansion layer can communicate with the Modem module through the RIL, wherein the Modem module can be a Modem chip, etc., and different communication systems can use different Modem chips.
  • the method before the communication framework expansion layer monitors the state change of the Modem module, as shown in Figure 2, the method includes:
  • the communication framework loads and initializes the communication framework expansion layer through the reflection mechanism, so that the communication framework expansion layer calls and registers the Modem module through RIL.
  • the communication framework is a communication framework built on the Framework layer in the Android system loaded on the terminal device, and provides developers with the ability to operate communication affairs.
  • Described RIL Radio Interface Layer, radio interface layer
  • the communication framework expands the communication framework layer by means of reflection and initializes the communication framework expansion layer. When initializing the communication framework expansion layer, it can call and initialize the Phone core, Components such as sim lock and core service.
  • the application layer is initialized through Binder in the communication framework expansion layer, wherein, the application layer is a preset setting, and the application layer includes a Phone module and a call sub-module, and the Phone sub-module is a communication sub-module
  • the framework extension layer is accessed and initialized in a cross-process manner.
  • the Phone sub-module is used for real-time monitoring and response of the Phone status, and the Phone sub-module communicates with the Modem module through RIL.
  • the call sub-module is used to disguise as a traditional Car call management module to monitor the call status and obtain call information, and the call sub-module can be integrated with the system or coexist with Dialer/InCallUI of the three parties.
  • the communication framework expansion layer since the communication framework expansion layer communicates with the Modem module through the RIL, the communication framework expansion layer monitors the state changes of the Modem module specifically as follows: the communication framework expansion layer monitors the Modem module state changes through the RIL. In addition, before the communication framework expansion layer monitors the status changes of the Modem module through the RIL, the communication framework expansion layer calls and registers the Modem module through the RIL, so that the communication framework expansion layer can monitor the status changes of the Modem module through the RIL.
  • the communication framework extension layer After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and The command is sent to the communication framework expansion layer.
  • control operation is a control operation determined based on the state change, wherein the control operation may be input by a user, or formed by a controller, and the like.
  • the control instruction is used to send to the communication framework extension layer, so that the communication framework extension layer sends the control instruction to the Modem module or responds by itself. It can be understood that when the communication framework extension layer receives a state change, it acquires and receives the state change and reports it to the application layer, determines the control operation determined by the state change through the application layer, and converts the control operation into a control operation through the application layer.
  • the control command identified by the communication framework expansion layer, and the control command is issued to the communication framework expansion layer, so that the communication framework expansion layer can respond to the control command or be sent to the Modem module to respond to the control command, so that the terminal The device can respond to the control operation.
  • the communication framework extension layer reports the state change to the application layer, and the application layer determines the control operation for determining the state change, and the control Converting the operation into a control command and sending the control command to the communication framework expansion layer specifically includes:
  • the communication framework extension layer After listening to the state change, the communication framework extension layer reports the state change to the application layer through the IPC; the application layer determines the prompt interface based on the state information corresponding to the state change, and receives the control operation based on the prompt interface, and sends the The control operation is converted into a control instruction, and the control instruction is sent to the communication framework extension layer.
  • the state information is the detailed state of the state change.
  • the state information can be read through IPC, and based on the detailed state, it can be detected whether the state information will trigger an external operation.
  • the application layer A prompt interface will be formed.
  • the state change can be ignored or discarded.
  • the application layer when the application layer triggers an external operation, it can detect whether the terminal device displays a prompt interface. If a prompt interface is displayed, the prompt interface will be updated.
  • Input control operations After obtaining the control operation, the application layer converts the control operation into a control instruction, and sends the control instruction to the communication framework extension layer through the IPC, so that the communication framework extension layer obtains the control instruction.
  • the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction.
  • the communication framework expansion layer After the communication framework expansion layer receives the control instruction, it will analyze the control instruction to determine whether it needs to be sent to the Modem module based on the control instruction, so as to determine whether the control instruction needs to be sent to the Modem module to pass The Modem module responds to the control command.
  • the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction specifically including:
  • the communication framework expansion layer detects whether the control command needs to be sent to the Modem module
  • the communication framework expansion layer calls the RIL corresponding to the control instruction, and sends the control instruction to the Modem module through the RIL, so that the Modem module responds to the control instruction and Feedback the execution result to the communication framework expansion layer through RIL, so as to feed back to the application layer through the communication framework expansion layer;
  • the communication framework extension layer responds to the control command to execute the control operation, and feeds back the execution result to the application layer through the IPC.
  • the RIL interface corresponding to the control command is determined, and the determined RIL interface is called to send the control command to the Modem module through the RIL.
  • the Modem module receives the control command, it responds to the control command
  • the control operation corresponding to the control instruction is executed, and the control result is fed back to the communication framework extension layer through the RIL, so that the communication framework extension layer feeds back the operation result to the application layer.
  • the communication framework extension layer directly responds to the control command to execute the control operation, and feeds back the execution result to the application layer through the IPC.
  • the method further includes:
  • the communication application layer monitors the call and receives user feedback information, and sends the received user feedback information to the communication framework extension layer.
  • the subclass of InCallService is registered through the application layer so that the application layer can pretend to be the Car call management module to realize the monitoring of the call state and the acquisition of call information. class and pretends to be a Car call management module.
  • the application layer disguised as the Car call management module can coexist with the system integration or the three-party Dialer/InCallUI, and the user cannot perceive its existence, because the application layer is disguised as the workflow of the Car call management module and the ordinary InCallUI The same, but the registration and notification are later than the InCallUI visible to ordinary users, and will not affect the timing and performance of the three-party Dialer.
  • the Car call service disguised at the application layer coexists with other Car call services and the system default call service, and is authorized to obtain and modify calls.
  • the Car call service disguised at the application layer can monitor the addition and removal of calls, and then register and/or unregister the status changes of each call; register to monitor changes in the content, status, events, and members of the call, and based on content changes and /or status changes to determine whether a response operation needs to be performed; if a response operation is required, perform corresponding user interaction feedback, such as playing sound, vibration, pop-up prompts, etc.
  • the user feedback interaction operation is encapsulated and returned to the application layer, and then the application layer can feed back the result to the observer.
  • This embodiment utilizes the management service provided for traditional in-vehicle devices in the existing Android call service system, and reversely implements the integration of the Android device server and the simulated in-vehicle device in the Android device, so as to achieve user-free and non-intrusive the realization of the purpose.
  • the application layer may include a Phone submodule and a call submodule, the Phone submodule is used for real-time monitoring and response to the state of the Phone, and the call submodule is used for call status monitoring and response.
  • the Phone sub-module is used to perform the steps of steps S10-S30, and the call sub-module is used to pretend to be a Car call management module for monitoring calls and receiving user feedback information, and the received user feedback information
  • the information is sent to the communication framework extension layer.
  • the communication framework expansion layer can monitor and respond to the status of the Phone in real time and monitor and respond to the call status at the same time, so that it can be used for subsequent needs of regions, operators and customers without changing the current Telephony module. Secondary development and customization.
  • the present embodiment also provides a realization device of the Android platform non-intrusive communication service, and the realization device includes: a communication framework expansion layer, a Modem module and an application layer;
  • the frame extension layer is used for the communication frame extension layer to monitor the state change of the Modem module; when the state change is detected, the communication frame extension layer reports the state change to the application layer, and sends the control instruction to the Modem module;
  • the layer is used to determine the control operation determined by the state change, convert the control operation into a control instruction and send the control instruction to the communication framework expansion layer; the Modem module is used to execute the control operation.
  • this embodiment Based on the method for implementing non-intrusive communication services on the Android platform, this embodiment provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be accessed by One or more processors are executed to implement the steps in the method for implementing the non-intrusive communication service on the Android platform as described in the above-mentioned embodiments.
  • the present disclosure also provides a terminal device, as shown in FIG. 4 , which includes at least one processor (processor) 20; display screen 21; and memory (memory) 22 , may also include a communication interface (Communications Interface) 23 and a bus 24.
  • processor processor
  • display screen 21 the display screen 21
  • memory 22 the memory 22
  • the communication interface 23 can communicate with each other through the bus 24 .
  • the display screen 21 is configured to display the preset user guidance interface in the initial setting mode.
  • the communication interface 23 can transmit information.
  • the processor 20 can invoke logic instructions in the memory 22 to execute the methods in the above-mentioned embodiments.
  • logic instructions in the memory 22 may be implemented in the form of software functional units and when sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the memory 22 can be configured to store software programs and computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 20 runs software programs, instructions or modules stored in the memory 22 to execute functional applications and data processing, ie to implement the methods in the above-mentioned embodiments.
  • the memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the terminal device, and the like.
  • the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory.
  • various media that can store program codes such as U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., can also be temporary state storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

公开了一种Android平台非侵入式通讯服务的实现方法,包括:通讯框架拓展层监听Modem模块的状态变化;当监听到状态变化后,通讯框架拓展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并下发至通讯框架拓展层;通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。

Description

一种Android平台非侵入式通讯服务的实现方法
优先权
所述PCT专利申请要求申请日为2021年6月30日,申请号为202110742835.4的中国专利优先权,本专利申请结合了上述专利的技术方案。
技术领域
本公开涉及计算机技术领域,特别涉及一种Android平台非侵入式通讯服务的实现方法。
背景技术
从2019年起,Google正式启动了Mainline计划,Google将部分模块的二进制文件释放给设备厂商,其中,释放二进制文件的模块包括通讯服务栈(Telephony Stack)。对于设备厂商来说,在对该通讯服务栈进行二次开发和定制以符合区域和运营商的需求时,需要商向Google提交需求开发代码并被Google采纳后才可以使用。然而,需求开发代码的提交周期长并且采纳率低,从而难以满足实际需求。
发明内容
本公开要解决的技术问题在于,针对现有技术的不足,提供一种Android平台非侵入式通讯服务的实现方法。
为了解决上述技术问题,本公开实施例第一方面提供了一种Android平台非侵入式通讯服务的实现方法,其中,应用于配置有通讯框架拓展层终端设备,所述实现方法包括:
调用终端设备装载的通讯服务栈,并且通过通讯服务栈加载并初始化通讯框架;
通讯框架通过反射机制加载并初始化通讯框架拓展层,以使得通讯框架拓展层通过RIL调用并注册Modem模块;
通讯框架拓展层通过RIL监听Modem模块的状态变化,所述状态变化指通讯状态发生变化;
当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令 下发至通讯框架拓展层;
通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。
所述Android平台非侵入式通讯服务的实现方法,其中,所述当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层具体为:
当监听到状态变化后,通讯框架扩展层通过IPC将状态变化上报至应用层;通过应用层基于所述状态变化对应的状态信息确定提示界面,并基于所述提示界面接收控制操作,将所述控制操作转换为控制指令,以及将所述控制指令下发至通讯框架拓展层。
所述Android平台非侵入式通讯服务的实现方法,其中,所述通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令具体包括:
通讯框架拓展层检测所述控制指令是否需要下发至Modem模块;
当所述控制指令需要下发至Modem模块时,通讯框架拓展层调用所述控制指令对应的RIL接口,并通过RIL接口将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令并将执行结果通过RIL反馈给通讯框架拓展层,以通过通讯框架拓展层反馈至应用层。
所述的Android平台非侵入式通讯服务的实现方法,其中,所述方法还包括:
当所述控制指令不需要下发至Modem模块时,通讯框架拓展层响应所述控制指令以执行所述控制操作,并将执行结果通过IPC反馈给应用层。
所述Android平台非侵入式通讯服务的实现方法,其中,所述方法还包括:
通过应用层注册InCallService的子类,以使得应用层具有Car通话管理模块功能;
通讯应用层监听通话并接收用户反馈信息,将接收到的用户反馈信息发给应用层。
本公开的第二方面提供了一种Android平台非侵入式通讯服务的实现方法,应用于配置有通讯框架拓展层终端设备,所述实现方法包括:
通讯框架拓展层监听Modem模块的状态变化;
当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;
通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述 控制指令。
所述Android平台非侵入式通讯服务的实现方法,其中,所述通讯框架拓展层监听Modem模块的状态变化之前,所述方法还包括:
调用终端设备装载的通讯服务栈,并且通过通讯服务栈加载并初始化通讯框架;
通讯框架通过反射机制加载并初始化通讯框架拓展层,以使得通讯框架拓展层通过RIL调用并注册Modem模块。
所述Android平台非侵入式通讯服务的实现方法,其中,所述通讯框架拓展层监听Modem模块的状态变化具体包括:
通讯框架拓展层通过RIL监听Modem模块的状态变化。
所述Android平台非侵入式通讯服务的实现方法,其中,所述当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层具体为:
当监听到状态变化后,通讯框架扩展层通过IPC将状态变化上报至应用层;通过应用层基于所述状态变化对应的状态信息确定提示界面,并基于所述提示界面接收控制操作,将所述控制指令转换为控制指令,以及将所述控制指令下发至通讯框架拓展层。
所述Android平台非侵入式通讯服务的实现方法,其中,所述通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令具体包括:
通讯框架拓展层检测所述控制指令是否需要下发至Modem模块;
当所述控制指令需要下发至Modem模块时,通讯框架拓展层调用所述控制指令对应的RIL接口,并通过RIL接口将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令并将执行结果通过RIL反馈给通讯框架拓展层,以通过通讯框架拓展层反馈至应用层。
所述Android平台非侵入式通讯服务的实现方法,其中,所述方法还包括:
当所述控制指令不需要下发至Modem模块时,通讯框架拓展层响应所述控制指令以执行所述控制操作,并将执行结果通过IPC反馈给应用层。
所述Android平台非侵入式通讯服务的实现方法,其中,所述方法还包括:
通过应用层注册InCallService的子类,以使得应用层具有Car通话管理模块功能;
通讯应用层监听通话并接收用户反馈信息,将接收到的用户反馈信息发给应用层。
所述Android平台非侵入式通讯服务的实现方法,其中,所述初始化通讯框架拓展 层包括:
通过IPC调用并初始化所述通讯框架拓展层的Phone核心组件、sim lock组件和core service组件。
所述Android平台非侵入式通讯服务的实现方法,其中,在所述初始化通讯框架拓展层后,还包括:
在所述通讯框架拓展层中通过Binder初始化应用层,所述应用层为预设设置。
所述Android平台非侵入式通讯服务的实现方法,其中,所述应用层包括:
Phone子模块,所述Phone子模块用于对Phone的状态的实时监听并响应;
通话子模块,所述通话子模块用于通话状态的监听和响应。
本公开实施例第三方面提供了一种Android平台非侵入式通讯服务的实现装置,所述实现装置包括:通讯框架拓展层、Modem模块以及应用层;通讯框架拓展层用于通讯框架拓展层监听Modem模块的状态变化;当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,以及将所述控制指令下发至Modem模块;应用层用于确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;Modem模块用于执行所述控制操作。
所述的Android平台非侵入式通讯服务的实现装置,其中,所述应用层包括:
Phone子模块,所述Phone子模块用于对Phone的状态的实时监听并响应;
通话子模块,所述通话子模块用于通话状态的监听和响应。
所述的Android平台非侵入式通讯服务的实现装置,其中,所述通话子模块伪装成Car通话管理模块,用于监听通话并接收用户反馈信息,将接收到的用户反馈信息发给所述通讯框架拓展层。
本公开实施例第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上任一所述的Android平台非侵入式通讯服务的实现方法中的步骤。
本公开实施例第五方面提供了一种终端设备,其包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;
所述通信总线实现处理器和存储器之间的连接通信;
所述处理器执行所述计算机可读程序时实现如上任一所述的Android平台非侵入式通讯服务的实现方法中的步骤。
有益效果:与现有技术相比,本公开提供了一种Android平台非侵入式通讯服务的 实现方法,所述实现方法包括:通讯框架拓展层监听Modem模块的状态变化;当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。本公开通过在Android通讯体系上叠加通讯框架拓展层,通过通讯框架拓展层实现通讯状态的实时监听并响应,这样在不改动通讯服务栈的情况下,可以通过通讯框架拓展层来实现二次开发功能与通讯服务栈的通讯,从而可以满足针对区域、运营商和客户等需要二次开发的需求。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员而言,在不符创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开提供的Android平台非侵入式通讯服务的实现方法的流程图。
图2为本公开提供的Android平台非侵入式通讯服务的实现方法中初始化流程示例图。
图3为本公开提供的Android平台非侵入式通讯服务的实现方法中通话状态响应过程的流程示意图。
图4为本公开提供的终端设备的结构原理图。
具体实施方式
本公开提供一种Android平台非侵入式通讯服务的实现方法,为使本公开的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本公开进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本公开,并不用于限定本公开。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者 也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本公开所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。
具体实现中,本公开实施例中描述的终端设备包括但不限于诸如具有触摸敏感表面(例如,触摸显示屏和/或触摸板)的移动电话,膝上形计算机或平板计算机之类的其他便携式设备。还应该理解的是,在某些实施例中,所述设备并非便携式通讯设备,而是具有触摸敏感表面(例如,触摸显示屏和/或触摸板)的台式计算机。
在接下来的讨论中,描述了包括显示器和触摸敏感表面的终端设备。然而,应当理解的是,终端设备还可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其他物理用户接口设备。
终端设备支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、视频会议应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件由于程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数据相机应用程序、数字摄像机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放应用程序等。
可以在终端设备上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的第一或多个功能以及终端上显示的相应信息。这样,终端的公共物理框架(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。
应理解,本实施例中各步骤的序号和大小并不意味着执行顺序的先后,各过程的执行顺序以其功能和内在逻辑确定,而不应对本公开实施例的实施过程构成任何限定。
发明人经过研究发现,从2019年起,Google正式启动了Mainline计划,Google将部分模块的二进制文件释放给设备厂商,其中,释放二进制文件的模块包括通讯服务栈(Telephony Stack)。对于设备厂商来说,在对该通讯服务栈进行二次开发和定制以符合区域和运营商的需求时,需要商向Google提交需求开发代码并被Google采纳后才可以 使用。然而,需求开发代码的提交周期长并且采纳率低,从而难以满足实际需求。
为了解决上述问题,本实施例中在通讯框架中增设通讯框架拓展层,通讯框架拓展层监听Modem模块的状态变化;当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。本公开通过在Android通讯体系上叠加通讯框架拓展层,通过通讯框架拓展层实现通讯状态的实时监听并响应,这样在不改动通讯服务栈的情况下,可以通过通讯框架拓展层来实现二次开发功能与通讯服务栈的通讯,从而可以满足针对区域、运营商和客户等需要二次开发的需求。
下面结合附图,通过对实施例的描述,对申请内容作进一步说明。
本实施例提供了一种Android平台非侵入式通讯服务的实现方法,如图1所示,所述方法包括:
S10、通讯框架拓展层监听Modem模块的状态变化。
具体地,通讯框架拓展层为叠加于Android通讯体系内中的通讯框架拓展层上,用于实时监听Modem模块的状态变化。其中,所述状态变化指的是通讯状态发送变化,例如,接听所形成的通讯状态变化,挂断所形成的通讯状态变化等等。可以理解的是,状态变化指的是当前时刻的通讯状态相对于前一数控的通讯状态所发生的变化。此外,通讯框架拓展层可以通过RIL与Modem模块进行通讯,其中,Modem模块可以为Modem芯片等,并且不同的通讯制式可以采用不同的Modem芯片。
在本实施例的一个实现方式中,在通讯框架拓展层监听Modem模块的状态变化之前,如图2所示,所述方法包括:
调用终端设备装载的通讯服务栈,并且通过通讯服务栈加载并初始化通讯框架;
通讯框架通过反射机制加载并初始化通讯框架拓展层,以使得通讯框架拓展层通过RIL调用并注册Modem模块。
具体地,所述通讯框架为终端设备装载的Android系统中在Framework层搭建的通讯框架,面向开发者提供操作通讯事务的能力。所述RIL(Radio Interface Layer,无线接口层)为用于适配Modem芯片的中间层,通过RIL可以将Modem模块的Modem指令转换为Java可用的数据流。通讯框架通过反射方式通讯框架拓展层并初始化通讯框架拓展层,其中,在初始化通讯框架拓展层时,可以通过IPC(Inter-Process Communication,进程间通信)调用并初始化通讯框架拓展层的Phone核心、sim lock和core service等组 件。此外,在初始化通讯框架拓展层后,在该通讯框架拓展层中通过Binder初始化应用层,其中,所述应用层为预设设置,应用层包括Phone模块和通话子模块,Phone子模块是被通讯框架拓展层内部通过跨进程的方式访问并初始化,Phone子模块用于Phone状态的实时监听与响应,并Phone子模块通过RIL与Modem模块进行通信。通话子模块用于伪装成传统的Car通话管理模块,实现通话状态的监听与通话信息的获取,并且通话子模块可以与系统集成或三方的Dialer/InCallUI共存。
在本实施例的一个实现方式中,由于通讯框架拓展层通过RIL与Modem模块通讯,从而通讯框架拓展层监听Modem模块的状态变化具体可以为:通讯框架拓展层通过RIL监听Modem模块的状态变化。此外,通讯框架拓展层通过RIL监听Modem模块的状态变化之前,通讯框架拓展层会通过RIL调用并注册Modem模块,以使得通讯框架拓展层可以通过RIL监听Modem模块的状态变化。
S20、当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层。
具体地,所述控制操作为基于所述状态变化所确定的控制操作,其中,所述控制操作为可以是用户输入的,也可以是通过控制器所形成的等。所述控制指令用于下发至通讯框架拓展层,以使得通讯框架拓展层将所述控制指令发送至Modem模块或者自行响应。可以理解的是,通讯框架拓展层在接收到状态变化时,获取接收该状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,并通过应用层将该控制操作转换为可被通讯框架拓展层所识别的控制指令,并将控制指令下发至通讯框架拓展层,以使得通讯框架拓展层可以响应所述控制指令或者下发至Modem模块响应所述控制指令,以使得终端设备可以响应所述控制操作。
在本实施例的一个实现方式中,所述当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层具体包括:
当监听到状态变化后,通讯框架扩展层通过IPC将状态变化上报至应用层;通过应用层基于所述状态变化对应的状态信息确定提示界面,并基于所述提示界面接收控制操作,将所述控制操作转换为控制指令,以及将所述控制指令下发至通讯框架拓展层。
具体地,所述状态信息为状态变化的详细状态,所述状态信息可以通过IPC读取,并且基于所述详细状态可以检测所述状态信息是否会触发外部操作,当会触发外部操作 时,应用层会形成提示界面,当不会触发外部操作时,可以忽略所述状态变化,或者是丢弃所述状态变化等。此外,应用层在会触发外部操作时,可以检测终端设备是否显示有提示界面,若显示有提示界面,则更新提醒界面,若未显示提示界面则创建并显示提示界面,以通过提示界面接收外部输入的控制操作。在获取到控制操作后,应用层将所述控制操作转换为控制指令,并将所述控制指令通过IPC下发至通讯框架拓展层,以使得通讯框架拓展层获取到所述控制指令。
S30、通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。
具体地,通讯框架拓展层接收到控制指令后,会解析所述控制指令确定是否需要基于所述控制指令下发至Modem模块,以便于确定是否需要将控制指令下发至所述Modem模块以通过Modem模块响应所述控制指令。在本实施例的一个实现方式中,所述通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令具体包括:
通讯框架拓展层检测所述控制指令是否需要下发至Modem模块;
当所述控制指令需要下发至Modem模块时,通讯框架拓展层调用所述控制指令对应的RIL,并通过RIL将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令并将执行结果通过RIL反馈给通讯框架拓展层,以通过通讯框架拓展层反馈给应用层;
当所述控制指令不需要下发至Modem模块时,通讯框架拓展层响应所述控制指令以执行所述控制操作,并将执行结果通过IPC反馈给应用层。
具体地,在获取到控制指令时,确定控制指令对应的RIL接口,并调用确定的RIL接口,以通过RIL将控制指令下发到Modem模块,Modem模块接收到控制指令后,响应所述控制指令以执行所述控制指令对应的控制操作,并将控制结果通过RIL反馈给通讯框架拓展层,以使得通讯框架拓展层将操作结果反馈给应用层。此外,当所述控制指令不需要下发至Modem模块时,通讯框架拓展层直接响应所述控制指令以执行所述控制操作,并将执行结果通过IPC反馈给应用层。
在本实施例的一个实现方式中,如图3所示,所述方法还包括:
通过应用层注册InCallService的子类,以使得应用层具有Car通话管理模块功能;
通讯应用层监听通话并接收用户反馈信息,将接收到的用户反馈信息发给通讯框架拓展层。
具体地,通过应用层注册InCallService的子类以使得应用层可以伪装成Car通话管理模块,实现通话状态的监听与通话信息的获取,其中,应用层包括通话子模块,通话子模块注册InCallService的子类并伪装成Car通话管理模块。此外,应用层伪装成Car通话管理模块可以与系统集成或三方的Dialer/InCallUI共存,并且对于用户感知不到它的存在,这是由于应用层伪装成Car通话管理模块的工作流程和普通的InCallUI一样,但注册与通知均晚于普通用户可见的InCallUI的,亦不会对三方Dialer造成时序和性能影响。
此外,应用层伪装的Car通话服务与其他的Car通话服务和系统默认通话服务并存,并得到获取并修改通话的权限。应用层伪装的Car通话服务可以监听通话的添加与移除,进而注册和/或取消注册每一通通话的状态变化;注册监听通话的信息、状态、事件以及成员等内容变化,并根据内容变化和/或状态变化确定是否需要执行响应操作;如果需要执行响应操作,则执行对应的用户交互反馈,如播放声音、震动、弹框提示等。在执行对应的用户交互反馈后,将用户反馈的交互操作,封装并返回给应用层,之后应用层可以将结果反馈给观察者。本实施例利用了现有Android通话服务体系中为传统车载设备提供的管理服务,反向在Android设备中,完成Android设备服务端和模拟的车载设备端一体实现,从而达到用户无感知和非侵入的实现的目的。
在本实施例的一个实现方式中,所述应用层可以包括Phone子模块和通话子模块,所述Phone子模块用于对Phone的状态的实时监听并响应,所述通话子模块用于通话状态的监听和响应。可以理解的是,所述Phone子模块用于执行步骤S10-S30的步骤,所述通话子模块用于伪装成Car通话管理模块,用于监听通话并接收用户反馈信息,将接收到的用户反馈信息发给通讯框架拓展层。这样通讯框架拓展层可以同时对Phone的状态的实时监听并响应以及对通话状态的监听和响应,这样在不改动当前Telephony模块的前提下,可以供后续的针对区域、运营商和客户的需求进行二次开发与定制。
基于上述Android平台非侵入式通讯服务的实现方法,本实施例还提供了一种Android平台非侵入式通讯服务的实现装置,所述实现装置包括:通讯框架拓展层、Modem模块以及应用层;通讯框架拓展层用于通讯框架拓展层监听Modem模块的状态变化;当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,以及将所述控制指令下发至Modem模块;应用层用于确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;Modem模块用于执行所述控制操作。
基于上述Android平台非侵入式通讯服务的实现方法,本实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上述实施例所述的Android平台非侵入式通讯服务的实现方法中的步骤。
基于上述Android平台非侵入式通讯服务的实现方法,本公开还提供了一种终端设备,如图4所示,其包括至少一个处理器(processor)20;显示屏21;以及存储器(memory)22,还可以包括通信接口(Communications Interface)23和总线24。其中,处理器20、显示屏21、存储器22和通信接口23可以通过总线24完成相互间的通信。显示屏21设置为显示初始设置模式中预设的用户引导界面。通信接口23可以传输信息。处理器20可以调用存储器22中的逻辑指令,以执行上述实施例中的方法。
此外,上述的存储器22中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器22作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器20通过运行存储在存储器22中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。
存储器22可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
此外,上述Android平台非侵入式通讯服务的实现装置的具体工作过程,存储介质以及终端设备中的多条指令处理器加载并执行的具体过程在上述方法中已经详细说明,在这里就不再一一陈述。
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。

Claims (20)

  1. 一种Android平台非侵入式通讯服务的实现方法,其特征在于,应用于配置有通讯框架拓展层终端设备,所述实现方法包括:
    调用终端设备装载的通讯服务栈,并且通过通讯服务栈加载并初始化通讯框架;
    通讯框架通过反射机制加载并初始化通讯框架拓展层,以使得通讯框架拓展层通过RIL调用并注册Modem模块;
    通讯框架拓展层通过RIL监听Modem模块的状态变化,所述状态变化指通讯状态发生变化;
    当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;
    通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。
  2. 根据权利要求1所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层具体为:
    当监听到状态变化后,通讯框架扩展层通过IPC将状态变化上报至应用层;通过应用层基于所述状态变化对应的状态信息确定提示界面,并基于所述提示界面接收控制操作,将所述控制操作转换为控制指令,以及将所述控制指令下发至通讯框架拓展层。
  3. 根据权利要求1所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令具体包括:
    通讯框架拓展层检测所述控制指令是否需要下发至Modem模块;
    当所述控制指令需要下发至Modem模块时,通讯框架拓展层调用所述控制指令对应的RIL接口,并通过RIL接口将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令并将执行结果通过RIL反馈给通讯框架拓展层,以通过通讯框架拓展层反馈至应用层。
  4. 根据权利要求3所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述方法还包括:
    当所述控制指令不需要下发至Modem模块时,通讯框架拓展层响应所述控制指令 以执行所述控制操作,并将执行结果通过IPC反馈给应用层。
  5. 根据权利要求1所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述方法还包括:
    通过应用层注册InCallService的子类,以使得应用层具有Car通话管理模块功能;
    通讯应用层监听通话并接收用户反馈信息,将接收到的用户反馈信息发给应用层。
  6. 一种Android平台非侵入式通讯服务的实现方法,其特征在于,应用于配置有通讯框架拓展层终端设备,所述实现方法包括:
    通讯框架拓展层监听Modem模块的状态变化;
    当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层;
    通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令。
  7. 根据权利要求6所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述通讯框架拓展层监听Modem模块的状态变化之前,所述方法还包括:
    调用终端设备装载的通讯服务栈,并且通过通讯服务栈加载并初始化通讯框架;
    通讯框架通过反射机制加载并初始化通讯框架拓展层,以使得通讯框架拓展层通过RIL调用并注册Modem模块。
  8. 根据权利要求6所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述通讯框架拓展层监听Modem模块的状态变化具体包括:
    通讯框架拓展层通过RIL监听Modem模块的状态变化。
  9. 根据权利要求6所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,通过应用层确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框架拓展层具体为:
    当监听到状态变化后,通讯框架扩展层通过IPC将状态变化上报至应用层;通过应用层基于所述状态变化对应的状态信息确定提示界面,并基于所述提示界面接收控制操作,将所述控制操作转换为控制指令,以及将所述控制指令下发至通讯框架拓展层。
  10. 根据权利要求6所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述通讯框架拓展层将所述控制指令下发至Modem模块,以使得Modem模块响应所述 控制指令具体包括:
    通讯框架拓展层检测所述控制指令是否需要下发至Modem模块;
    当所述控制指令需要下发至Modem模块时,通讯框架拓展层调用所述控制指令对应的RIL接口,并通过RIL接口将所述控制指令下发至Modem模块,以使得Modem模块响应所述控制指令并将执行结果通过RIL反馈给通讯框架拓展层,以通过通讯框架拓展层反馈至应用层。
  11. 根据权利要求10所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述方法还包括:
    当所述控制指令不需要下发至Modem模块时,通讯框架拓展层响应所述控制指令以执行所述控制操作,并将执行结果通过IPC反馈给应用层。
  12. 根据权利要求6所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述方法还包括:
    通过应用层注册InCallService的子类,以使得应用层具有Car通话管理模块功能;
    通讯应用层监听通话并接收用户反馈信息,将接收到的用户反馈信息发给应用层。
  13. 根据权利要求7所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述初始化通讯框架拓展层包括:
    通过IPC调用并初始化所述通讯框架拓展层的Phone核心组件、sim lock组件和core service组件。
  14. 根据权利要求7所述Android平台非侵入式通讯服务的实现方法,其特征在于,在所述初始化通讯框架拓展层后,还包括:
    在所述通讯框架拓展层中通过Binder初始化应用层,所述应用层为预设设置。
  15. 根据权利要求14所述Android平台非侵入式通讯服务的实现方法,其特征在于,所述应用层包括:
    Phone子模块,所述Phone子模块用于对Phone的状态的实时监听并响应;
    通话子模块,所述通话子模块用于通话状态的监听和响应。
  16. 一种Android平台非侵入式通讯服务的实现装置,其特征在于,所述实现装置包括:通讯框架拓展层、Modem模块以及应用层;通讯框架拓展层用于通讯框架拓展层监听Modem模块的状态变化;当监听到状态变化后,通讯框架扩展层将所述状态变化上报至应用层,以及将所述控制指令下发至Modem模块;应用层用于确定所述状态变化确定的控制操作,将所述控制操作转换为控制指令并将所述控制指令下发至通讯框 架拓展层;Modem模块用于执行所述控制操作。
  17. 根据权利要求16所述的Android平台非侵入式通讯服务的实现装置,其特征在于,所述应用层包括:
    Phone子模块,所述Phone子模块用于对Phone的状态的实时监听并响应;
    通话子模块,所述通话子模块用于通话状态的监听和响应。
  18. 根据权利要求17所述的Android平台非侵入式通讯服务的实现装置,其特征在于,所述通话子模块伪装成Car通话管理模块,用于监听通话并接收用户反馈信息,将接收到的用户反馈信息发给所述通讯框架拓展层。
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求6-12任意一项所述的Android平台非侵入式通讯服务的实现方法中的步骤。
  20. 一种终端设备,其特征在于,包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;
    所述通信总线实现处理器和存储器之间的连接通信;
    所述处理器执行所述计算机可读程序时实现如权利要求6-12任意一项所述的Android平台非侵入式通讯服务的实现方法中的步骤。
PCT/CN2022/080252 2021-06-30 2022-03-10 一种Android平台非侵入式通讯服务的实现方法 WO2023273403A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110742835.4 2021-06-30
CN202110742835.4A CN113377556A (zh) 2021-06-30 2021-06-30 一种Android平台非侵入式通讯服务的实现方法

Publications (1)

Publication Number Publication Date
WO2023273403A1 true WO2023273403A1 (zh) 2023-01-05

Family

ID=77580350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/080252 WO2023273403A1 (zh) 2021-06-30 2022-03-10 一种Android平台非侵入式通讯服务的实现方法

Country Status (2)

Country Link
CN (1) CN113377556A (zh)
WO (1) WO2023273403A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377556A (zh) * 2021-06-30 2021-09-10 Tcl通讯(宁波)有限公司 一种Android平台非侵入式通讯服务的实现方法
CN114726905B (zh) * 2022-03-07 2023-09-15 中科创达软件股份有限公司 一种Tbox网络接入Android系统的方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060222009A1 (en) * 2005-03-29 2006-10-05 Microsoft Corporation UMTS RIL extension
CN102769937A (zh) * 2012-07-16 2012-11-07 青岛海信移动通信技术股份有限公司 一种安卓系统的多待终端及终端实现多待的方法
CN107734495A (zh) * 2017-09-30 2018-02-23 广东欧珀移动通信有限公司 信息处理方法、装置、存储介质和终端
CN112565526A (zh) * 2020-11-30 2021-03-26 广州橙行智动汽车科技有限公司 监听方法、监听装置、车辆和存储介质
CN113377556A (zh) * 2021-06-30 2021-09-10 Tcl通讯(宁波)有限公司 一种Android平台非侵入式通讯服务的实现方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662734B (zh) * 2012-03-06 2014-01-29 中国人民解放军理工大学 一种Android RIL系统及其构建方法
CN104184635B (zh) * 2014-08-19 2018-02-13 烽火通信科技股份有限公司 家庭网关基于Android RIL实现一对多数据通讯的方法及装置
CN105653331A (zh) * 2015-12-29 2016-06-08 Tcl集团股份有限公司 一种中间件的应用方法及装置
CN106102046B (zh) * 2016-05-24 2019-06-11 中国科学院信息工程研究所 一种加密手机一键入密的通信方法
CN107135298A (zh) * 2017-04-14 2017-09-05 努比亚技术有限公司 来电拦截方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060222009A1 (en) * 2005-03-29 2006-10-05 Microsoft Corporation UMTS RIL extension
CN102769937A (zh) * 2012-07-16 2012-11-07 青岛海信移动通信技术股份有限公司 一种安卓系统的多待终端及终端实现多待的方法
CN107734495A (zh) * 2017-09-30 2018-02-23 广东欧珀移动通信有限公司 信息处理方法、装置、存储介质和终端
CN112565526A (zh) * 2020-11-30 2021-03-26 广州橙行智动汽车科技有限公司 监听方法、监听装置、车辆和存储介质
CN113377556A (zh) * 2021-06-30 2021-09-10 Tcl通讯(宁波)有限公司 一种Android平台非侵入式通讯服务的实现方法

Also Published As

Publication number Publication date
CN113377556A (zh) 2021-09-10

Similar Documents

Publication Publication Date Title
WO2023273403A1 (zh) 一种Android平台非侵入式通讯服务的实现方法
US11829787B2 (en) Multi-process model for cross-platform applications
US8477143B2 (en) Buffers for display acceleration
CA2600503C (en) Method and system for executing a container-managed application on a processing device
US10019298B2 (en) Middleware interface and middleware interface generator
JP2010288301A (ja) ポータブルデバイスにおけるマルチメディアレンダリングのためのシステム
CN110933075B (zh) 服务调用方法、装置、电子设备及存储介质
JP2021132413A (ja) 対話プラットフォームのテスト方法、装置、電子機器及び記憶媒体
WO2019119315A1 (zh) 基于多操作系统的输入处理方法、装置及电子设备
WO2023124141A1 (zh) 一种输入法调用方法及相关设备
KR20220151585A (ko) 업무 데이터 처리 방법, 장치, 전자 기기, 저장 매체 및 컴퓨터 프로그램
CN114327087A (zh) 输入事件处理方法、装置、电子设备和存储介质
KR20050004209A (ko) 이동 전화기의 도메스틱 os의 시스템-레벨 기능을어플리케이션 os로 연결하는 방법
WO2019179068A1 (zh) 风险检测方法、装置、移动终端和存储介质
WO2020052392A1 (zh) 游戏平台的能力调用方法及相关产品
WO2021082785A1 (zh) 游戏开发方法、游戏运行方法、装置和电子设备
WO2015078214A1 (zh) 用于实现远程虚拟桌面和应用程序的方法以及设备
WO2017041604A1 (zh) 一种应用加速方法及装置
CN113950043B (zh) 通信方法、装置、存储介质以及终端
CN110874143B (zh) 传感器数据获取方法、智能终端、存储介质及电子设备
CN106507413A (zh) 发送消息的方法、移动终端及播放设备
CN112015538A (zh) 一种基于软件定义的音视频系统及其工作方法
CN112866336B (zh) 异步网络通信方法、通信系统、装置及存储介质
CN111880792B (zh) 用户界面的实现方法、移动终端及计算机可读存储介质
US11297185B1 (en) Systems and methods for conference call system management

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831234

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE